﻿.gl-banner {
    background: linear-gradient(135deg,rgba(15,10,8,.9),rgba(92,15,30,.55)),url('images/gallery2.jpg') center/cover no-repeat;
}

.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid rgba(201,168,76,.25);
    background: transparent;
    color: var(--light-gray);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    transition: all .3s;
}

    .filter-btn:hover, .filter-btn.active {
        border-color: var(--gold);
        color: var(--gold);
        background: rgba(201,168,76,.1);
    }

.gallery-count {
    font-size: 12px;
    color: rgba(212,200,190,.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

    .gallery-count span {
        color: var(--gold);
        font-weight: 600;
    }

.masonry-grid {
    columns: 3;
    column-gap: 10px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: opacity .4s ease,transform .4s ease;
}

    .masonry-item.hide {
        opacity: 0 !important;
        transform: scale(.9) !important;
        pointer-events: none;
        height: 0;
        margin: 0;
        overflow: hidden;
    }

    .masonry-item img {
        width: 100%;
        display: block;
        transition: transform .6s ease,filter .4s;
        filter: saturate(.88);
    }

    .masonry-item:hover img {
        transform: scale(1.06);
        filter: saturate(1.15);
    }

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,transparent 40%,rgba(10,6,4,.8));
    opacity: 0;
    transition: opacity .35s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-label {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--cream);
}

.mo-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.6);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(201,168,76,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--charcoal);
    transition: transform .3s,opacity .3s;
    opacity: 0;
}

.masonry-item:hover .mo-icon {
    transform: translate(-50%,-50%) scale(1);
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5,3,2,.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

    .lightbox.open {
        opacity: 1;
        pointer-events: all;
    }

.lb-inner {
    position: relative;
}

#lb-img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid rgba(201,168,76,.2);
}

.lb-close {
    position: fixed;
    top: 24px;
    right: 30px;
    font-size: 28px;
    color: var(--gold);
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.lb-prev, .lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201,168,76,.12);
    border: 1px solid rgba(201,168,76,.3);
    color: var(--gold);
    font-size: 28px;
    width: 54px;
    height: 54px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
    z-index: 10001;
}

    .lb-prev:hover, .lb-next:hover {
        background: rgba(201,168,76,.3);
    }

.lb-prev {
    left: 16px;
}

.lb-next {
    right: 16px;
}

.lb-caption {
    position: absolute;
    bottom: -36px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: rgba(212,200,190,.55);
}

.lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(201,168,76,.5);
    z-index: 10001;
}

@media(max-width:768px) {
    .masonry-grid {
        columns: 2;
    }
}

@media(max-width:480px) {
    .masonry-grid {
        columns: 1;
    }
}
