/* ======= Gallery Pages Style ======= */

/* Filter Tabs */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.gallery-filter-btn {
    padding: 8px 22px;
    border: 1px solid #c8102e;
    background: transparent;
    color: #c8102e;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: all .3s ease;
}
.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: #c8102e;
    color: #fff;
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1199px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: repeat(1, 1fr); } }

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #f5f0eb;
    border: 1px solid #ece6de;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.gallery-item:hover img {
    transform: scale(1.07);
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,20,14,.55);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease;
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-item-overlay i {
    color: #fff;
    font-size: 28px;
}
.gallery-item-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(26,20,14,.75);
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
    padding: 6px 8px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.gallery-item:hover .gallery-item-label {
    transform: translateY(0);
}

/* Empty state */
.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}
.gallery-empty-icon {
    font-size: 64px;
    color: #c8102e;
    margin-bottom: 20px;
    display: block;
}
.gallery-empty h4 {
    font-family: 'Bodoni Moda', serif;
    color: #1a140e;
    margin-bottom: 10px;
}
.gallery-empty p {
    color: #888;
    font-size: 15px;
}

/* Lightbox */
.glb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.glb-overlay.active { display: flex; }
.glb-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.glb-inner img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    margin: auto;
}
.glb-close {
    position: absolute;
    top: -40px; right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}
.glb-prev, .glb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(200,169,126,.8);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 48px; height: 48px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.glb-prev { left: 16px; }
.glb-next { right: 16px; }
.glb-prev:hover, .glb-next:hover { background: #c8102e; }
.glb-caption {
    text-align: center;
    color: #ddd;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 12px;
    font-family: 'Outfit', sans-serif;
}
