/* GeoFotos Unified Lightbox */

.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
	display: flex;
	opacity: 1;
	visibility: visible;
}

.lightbox-close {
	position: absolute !important;
	top: 20px !important;
	right: 30px !important;
	font-size: 40px;
	color: #fff;
	background: none;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease;
	line-height: 1;
	padding: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000001;
}

.lightbox-close:hover {
	transform: rotate(90deg);
	color: #fbbf24;
}

.lightbox-image-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: fit-content;
	flex-direction: column;
	position: relative;
}

.lightbox-image {
	max-height: 85vh;
	max-width: 90vw;
	object-fit: contain;
	box-shadow: 0 0px 50px rgba(0,0,0,0.8);
	border-radius: 4px;
}

/* Estilos para la barra de información EXIF en el lightbox */
.geofotos-lightbox-exif {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(17, 24, 39, 0.85);
    color: #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-top: -1px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    box-sizing: border-box;
}

.geofotos-lightbox-exif span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geofotos-lightbox-exif .fas, 
.geofotos-lightbox-exif .fa-solid {
    color: #fbbf24;
    font-size: 1rem;
    width: 1.2em;
	text-align: center;
}

/* Loading state for EXIF */
.geofotos-lightbox-exif.loading {
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 767px) {
	.lightbox {
		padding: 10px;
	}
	
	.lightbox-close {
		top: 10px;
		right: 10px;
		font-size: 32px;
	}

	.geofotos-lightbox-exif {
		font-size: 0.75rem;
		gap: 0.5rem 1rem;
		padding: 0.5rem;
	}
}
