/* The gallery overlay */

#galleryOverlay{
	width:100%;
	height:100%;
	position:fixed;
	top:0;
	left:0;
	opacity:0;
	z-index:100000;
	background-color:#222;
	background-color:rgba(0,0,0,0.8);
	overflow:hidden;
	display:none;
	
	-moz-transition:opacity 1s ease;
	-webkit-transition:opacity 1s ease;
	transition:opacity 1s ease;
}

/* This class will trigger the animation */

#galleryOverlay.visible{
	opacity:1;
}

#gallerySlider{
	height:100%;
	
	left:0;
	top:0;
	
	width:100%;
	white-space: nowrap;
	position:absolute;
	
	-moz-transition:left 0.4s ease;
	-webkit-transition:left 0.4s ease;
	transition:left 0.4s ease;
}

#gallerySlider .placeholder{
	height: 100%;
	line-height: 1px;
	text-align: center;
	width:100%;
	display:inline-block;
}

/* The before element moves the
 * image halfway from the top */

#gallerySlider .placeholder:before{
	content: "";
	display: inline-block;
	height: 50%;
	width: 1px;
	margin-right:-1px;
}

#gallerySlider .placeholder img{
	display: inline-block;
	max-height: 90vh; /* Limita la altura al 90% de la altura visible */
	max-width: 90vw; /* Limita el ancho al 90% del ancho visible */
	width: auto;
	height: auto;
	vertical-align: middle;
	object-fit: contain; /* Mantiene la proporción de la imagen */
}

.lightbox-item {
    position: relative;
    display: inline-block;
    max-height: 90vh;
    max-width: 90vw;
    vertical-align: middle;
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: left;
    z-index: 1000;
}

.lightbox-caption h2 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.lightbox-caption p {
    margin: 0;
    font-size: 14px;
    color: white;
    font-family: 'Oxygen', sans-serif;
}

/* Ajuste para el título */
#gallerySlider .placeholder[data-title]:after {
    font-weight: bold;
    font-size: 16px;
}

/* Estilos para los botones de navegación */
#prevArrow, #nextArrow {
    position: fixed;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    cursor: pointer;
    z-index: 100001;
    background: url('../img/arrows.png') no-repeat;
    opacity: 0.6;
    transition: opacity 0.2s;
}

#prevArrow {
    left: 20px;
    background-position: left center;
}

#nextArrow {
    right: 20px;
    background-position: right center;
}

#prevArrow:hover, #nextArrow:hover {
    opacity: 1;
}
