/* /assets/css/lightbox.css */

/* The main overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(11, 15, 25, 0.95); /* Theme: Midnight overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* The content wrapper (image + info) */
.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease-in-out 0.1s, transform 0.3s ease-in-out 0.1s;
    border-radius: 0.75rem; /* xl */
    overflow: hidden; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.lightbox-overlay.active .lightbox-content {
    opacity: 1;
    transform: scale(1);
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh; 
    object-fit: contain;
    transition: opacity 0.2s ease-out;
}

.lightbox-info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5rem 2rem 2rem; /* More top padding for gradient */
    background: linear-gradient(to top, rgba(11, 15, 25, 1) 10%, transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out 0.3s, transform 0.4s ease-out 0.3s;
}

.lightbox-overlay.active .lightbox-info-panel {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-title {
    font-family: var(--font-display, serif); 
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.lightbox-location {
    font-family: var(--font-sans, sans-serif);
    font-size: 0.95rem;
    color: #fbbf24; /* Amber-400 for theme consistency */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Navigation Buttons ===== */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1010;
    background-color: #ffffff; /* Clean white */
    color: #0b0f19; /* Midnight Text */
    border: none;
    border-radius: 50%;
    width: 3.5rem; 
    height: 3.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.lightbox-nav .material-symbols-outlined {
    font-size: 1.5rem;
    font-variation-settings: 'wght' 600;
}

.lightbox-nav:hover {
    opacity: 1;
    background-color: #DC2626; /* Primary Red */
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ===== Close Button ===== */
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1020;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff; 
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close .material-symbols-outlined {
    font-size: 1.5rem;
}

.lightbox-close:hover {
    background-color: #DC2626; /* Primary Red */
    border-color: #DC2626;
    transform: rotate(90deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 2.75rem;
        height: 2.75rem;
        background-color: rgba(255, 255, 255, 0.9);
    }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    
    .lightbox-close {
        width: 2.5rem;
        height: 2.5rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .lightbox-title { font-size: 1.25rem; }
    .lightbox-info-panel { padding: 4rem 1.25rem 1.25rem; }
}