/* Explain: CSS styles for the photo gallery and lightbox components. */
.gallery-filter.is-active {
    background: var(--button-color);
    border-color: var(--button-color);
    color: #ffffff;
    box-shadow: var(--shadow-button);
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20, 33, 61, 0.9);
    padding: 1.5rem;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(100%, 1000px);
}

.gallery-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 78vh;
}

.gallery-lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-lightbox-caption {
    color: #ffffff;
    font-size: 0.95rem;
    text-align: center;
}

.gallery-lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(12px);
    transition: background 300ms ease;
    cursor: pointer;
}

.gallery-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

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

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

@media (max-width: 640px) {
    .gallery-lightbox-prev {
        left: 0;
    }

    .gallery-lightbox-next {
        right: 0;
    }

    .gallery-lightbox-stage {
        height: 70vh;
    }
}