/* ----- Modal general ----- */
#workModal .modal-dialog {
	max-width: 90vw;
	height: 90vh;
}

#workModal .modal-content {
	height: 90vh;
	background-color: #111;
	color: #fff;
	position: relative;
	overflow: hidden; /* evita que contenido desborde */
}

/* ----- Fondo oscuro más intenso ----- */
.modal-backdrop.show {
	opacity: 0.95 !important;
	background-color: rgba(0, 0, 0, 0.95) !important;
}

/* ----- Columna izquierda (texto) ----- */
#modalInfo {
	width: 50%;
	min-width: 450px;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	overflow-y: auto;
	font-weight: normal;
	padding: 1rem;
}

/* ----- Texto dentro del modal ----- */
#modalTitle {
	font-size: 1.6rem;
	font-weight: normal;
	margin-bottom: 10px;
}

#modalDesc {
	font-size: 1.2rem;
	font-weight: normal;
}

/* ----- Imágenes dentro del modal ----- */
#modalImages {
	width: 50%;
	padding: 1rem;
	overflow-y: auto;
}

#modalImages img {
	border-radius: 6px;
	display: block;
	margin-bottom: 10px;
	max-height: 70vh;
	max-width: 800px;
	width: 100%;
	object-fit: contain;
}

/* ----- Botón cerrar “X” siempre visible, relativo al modal ----- */
#workModal .btn-close {
	position: absolute;        /* relativo al modal */
	top: 10px;
	right: 10px;
	font-size: 50px;           /* escritorio */
	color: #fff !important;    /* blanca */
	text-shadow: 0 0 5px rgba(0,0,0,0.7); /* sombra negra */
	background: none !important;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 5000;
}

/* Solo ::before para mostrar la X */
#workModal .btn-close::before {
	content: "X";
	color: #fff;
	text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* Eliminamos ::after */
#workModal .btn-close::after {
	content: none;
}

/* Hover */
#workModal .btn-close:hover {
	color: #ccc;
	transform: scale(1.2);
}

/* ----- Captions ----- */
.slide-caption {
	width: 400px;
}

.pdf-slide .slide-caption h5 {
	font-size: 1.1rem;
	margin: 10px 0 3px 0;
	color: #d1c4e9;
}

.pdf-slide .slide-caption p {
	font-size: 0.9rem;
	margin: 0;
	color: #fff;
}

/* ----- Responsive móvil ----- */
@media (max-width: 767.98px) {

	/* Botón X más pequeño en móvil */
	#workModal .btn-close {
		 font-size: 35px;
	}

	#workModal .modal-dialog {
		 max-width: 100vw;
		 width: 100vw;
		 height: 100vh;
		 margin: 0;
	}

	#workModal .modal-content {
		 height: 100%;
	}

	#workModal .modal-body {
		 flex-direction: column;   /* texto arriba, imágenes abajo */
		 overflow-y: auto;         /* scroll vertical de todo */
	}

	#modalInfo {
		 width: 100% !important;
		 height: 300px;             /* altura fija para texto */
		 min-width: auto;
		 border-right: none;
		 border-bottom: 1px solid rgba(255,255,255,0.1);
		 margin-bottom: 10px;
		 overflow-y: auto;          /* scroll si texto largo */
	}

	#modalImages {
		 width: 100%;
		 height: calc(100% - 300px); /* ocupa resto del modal */
		 flex-grow: 0;
		 padding: 1rem;
	}
}
