/* Explain: Component styles for gallery filter buttons and lightbox. */
.is-hidden {
    display: none !important;
}

.gallery-filter-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    background: #ffffff;
    color: var(--text-color);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(74, 55, 40, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

.gallery-filter-active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.gallery-filter-active:hover {
    color: #ffffff;
}

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(74, 55, 40, 0.85);
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}

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

.gallery-lightbox-inner {
    background: #ffffff;
    border-radius: 2rem;
    padding: 1rem;
    max-width: 56rem;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 4px solid #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox-img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 1.5rem;
}

.gallery-lightbox-caption {
    text-align: center;
    font-weight: 700;
    color: var(--text-color);
    padding: 1rem 0.5rem 0.25rem;
    font-family: var(--font-heading);
}

.gallery-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #ffffff;
    color: var(--text-color);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.gallery-lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--primary-color);
}

.gallery-no-scroll {
    overflow: hidden;
}