
/* ===== KDBBA EVENT GALLERY v1.0 ===== */

.kdbba-event-gallery-section{
    margin-top:54px!important;
}

.kdbba-event-gallery-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;

    margin-bottom:20px;
}

.kdbba-event-gallery-heading h2{
    margin-bottom:0!important;
}

.kdbba-event-gallery-count{
    flex:0 0 auto;

    padding:6px 10px;

    border:1px solid rgba(223,175,69,.38);
    border-radius:999px;

    color:#d9b85e;

    font-size:10px;
    line-height:1.2;
    font-weight:800;

    letter-spacing:.06em;
    text-transform:uppercase;
}

.kdbba-event-gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.kdbba-event-gallery-item{
    position:relative;

    display:block;

    min-width:0;
    aspect-ratio:4/3;

    overflow:hidden;

    background:#0d0d0d;

    border:1px solid #292929;
    border-radius:7px;

    text-decoration:none!important;
}

.kdbba-event-gallery-item img{
    display:block;

    width:100%;
    height:100%;

    object-fit:cover;

    transition:
        transform .35s cubic-bezier(.22,.61,.36,1),
        filter .35s ease;
}

.kdbba-event-gallery-item:hover img{
    transform:scale(1.035);
    filter:brightness(.88);
}

.kdbba-event-gallery-zoom{
    position:absolute;
    right:12px;
    bottom:12px;

    width:32px;
    height:32px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(223,175,69,.55);
    border-radius:50%;

    background:rgba(0,0,0,.72);
    color:#f0cd72;

    font-size:22px;
    line-height:1;
    font-weight:400;

    opacity:0;
    transform:translateY(5px);

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.kdbba-event-gallery-item:hover .kdbba-event-gallery-zoom{
    opacity:1;
    transform:translateY(0);
}

/* Lightbox */
body.kdbba-event-lightbox-open{
    overflow:hidden!important;
}

.kdbba-event-lightbox{
    position:fixed;
    inset:0;
    z-index:2147482000;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:32px 72px;

    background:rgba(0,0,0,.94);

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.kdbba-event-lightbox.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.kdbba-event-lightbox-image{
    display:block;

    max-width:min(1200px,90vw);
    max-height:86vh;

    width:auto;
    height:auto;

    object-fit:contain;

    border-radius:4px;

    box-shadow:0 24px 80px rgba(0,0,0,.55);
}

.kdbba-event-lightbox-close,
.kdbba-event-lightbox-prev,
.kdbba-event-lightbox-next{
    position:absolute;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,255,255,.18);
    background:rgba(12,12,12,.78);
    color:#fff;

    cursor:pointer;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.kdbba-event-lightbox-close:hover,
.kdbba-event-lightbox-prev:hover,
.kdbba-event-lightbox-next:hover{
    border-color:rgba(223,175,69,.65);
    color:#f0cd72;
    background:#0a0a0a;
}

.kdbba-event-lightbox-close{
    top:24px;
    right:24px;

    width:44px;
    height:44px;

    border-radius:50%;

    font-size:28px;
    line-height:1;
}

.kdbba-event-lightbox-prev,
.kdbba-event-lightbox-next{
    top:50%;

    width:48px;
    height:64px;

    transform:translateY(-50%);

    border-radius:5px;

    font-size:28px;
    line-height:1;
}

.kdbba-event-lightbox-prev{
    left:18px;
}

.kdbba-event-lightbox-next{
    right:18px;
}

.kdbba-event-lightbox-counter{
    position:absolute;
    left:50%;
    bottom:20px;

    transform:translateX(-50%);

    color:#bcbcb6;

    font-size:11px;
    line-height:1.2;
    font-weight:700;

    letter-spacing:.08em;
    text-transform:uppercase;
}

@media(max-width:900px){

    .kdbba-event-gallery-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .kdbba-event-lightbox{
        padding:58px 54px;
    }
}

@media(max-width:560px){

    .kdbba-event-gallery-heading{
        align-items:flex-start;
    }

    .kdbba-event-gallery-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .kdbba-event-gallery-item{
        aspect-ratio:4/3;
    }

    .kdbba-event-gallery-zoom{
        opacity:1;
        transform:none;
    }

    .kdbba-event-lightbox{
        padding:62px 12px 70px;
    }

    .kdbba-event-lightbox-image{
        max-width:96vw;
        max-height:78vh;
    }

    .kdbba-event-lightbox-close{
        top:12px;
        right:12px;
    }

    .kdbba-event-lightbox-prev,
    .kdbba-event-lightbox-next{
        top:auto;
        bottom:12px;

        width:48px;
        height:44px;

        transform:none;
    }

    .kdbba-event-lightbox-prev{
        left:12px;
    }

    .kdbba-event-lightbox-next{
        right:12px;
    }

    .kdbba-event-lightbox-counter{
        bottom:28px;
    }
}

/* ===== END KDBBA EVENT GALLERY v1.0 ===== */
