/* Shared Photo Lightbox - ambilight glow, EXIF bar */

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ambilight backlight — dual-layer glow */

/* Outer glow: massive diffuse color wash across viewport */
.photo-lb-outer {
    position: absolute;
    inset: -50%;
    z-index: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(220px) saturate(3) brightness(0.55);
    opacity: 0;
    transform: scale(1.3);
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.photo-lb-outer.active {
    opacity: 0.8;
}

/* Inner glow: tighter vivid halo near image edges */
.photo-lb-inner {
    position: absolute;
    inset: 5%;
    z-index: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(60px) saturate(2.2) brightness(0.7);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.photo-lb-inner.active {
    opacity: 0.55;
}

.photo-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0.5rem;
}

.photo-lightbox-close:hover {
    opacity: 1;
}

.photo-lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 0;
    z-index: 1;
}

.photo-lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 3px;
    filter: drop-shadow(0 0 60px rgba(0,0,0,0.9));
}

.photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 1rem;
    z-index: 2001;
}

.photo-lightbox-nav:hover {
    opacity: 1;
}

.photo-lightbox-prev {
    left: 0.5rem;
}

.photo-lightbox-next {
    right: 0.5rem;
}

.photo-lightbox-exif {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #aaa;
    font-size: 0.85rem;
}

.photo-lightbox-exif span {
    white-space: nowrap;
}

.photo-lightbox-counter {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    z-index: 2001;
}

.photo-lightbox-link {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 0.85rem;
}

.photo-lightbox-link:hover {
    text-decoration: underline;
    color: #aecbfa;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .photo-lightbox-nav {
        font-size: 1.8rem;
        padding: 0.5rem;
    }

    .photo-lightbox-exif {
        font-size: 0.75rem;
        gap: 0.8rem;
        padding: 0.6rem 1rem;
    }
}
