   MAIN GALLERY
========================================================= */

.event-gallery-section {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100vw;

    box-sizing: border-box;

    overflow: hidden;

    background: #050706;

    isolation: isolate;

    gap: 32px;
}

.event-gallery {
    position: relative;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 28px;

    color: #ffffff;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}
.event-gallery *{ box-sizing: border-box; }


/* =========================================================
   FILTER BAR
========================================================= */

.gallery-filter {
    position: relative;

    flex-shrink: 0;

    isolation: isolate;

    z-index: 1000;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 7px 8px 7px 15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 999px;

    background:
        rgba(13, 15, 14, 0.80);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    box-shadow:
        0 12px 40px
        rgba(0, 0, 0, 0.30);
}


/* =========================================================
   FILTER LABEL
========================================================= */

.filter-label {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    color:
        rgba(255, 255, 255, 0.92);

    font-size: 12px;

    font-weight: 500;

    line-height: 1;

    white-space: nowrap;
}

.filter-label i {
    display: flex;

    align-items: center;
    justify-content: center;

    color: #d7ad5c;

    font-size: 14px;
}


/* =========================================================
   CUSTOM DROPDOWN
========================================================= */

.custom-dropdown {
    position: relative;

    width: 190px;
}


/* =========================================================
   DROPDOWN TRIGGER
========================================================= */

.dropdown-trigger {
    position: relative;

    width: 100%;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 10px 0 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 999px;

    outline: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.105),
            rgba(255, 255, 255, 0.045)
        );

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;

    font-size: 12px;

    font-weight: 500;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.06);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.dropdown-trigger:hover {
    background:
        rgba(255, 255, 255, 0.11);

    border-color:
        rgba(255, 255, 255, 0.24);
}

.dropdown-trigger-left {
    display: flex;

    align-items: center;

    gap: 9px;
}

.dropdown-trigger-left > i {
    display: flex;

    align-items: center;
    justify-content: center;

    color: #d7ad5c;

    font-size: 13px;
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.dropdown-arrow {
    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color:
        rgba(255, 255, 255, 0.70);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.dropdown-arrow i {
    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 15px;

    line-height: 1;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);

    background:
        rgba(255, 255, 255, 0.07);
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.dropdown-menu {
    position: absolute;

    display: block;

    left: 0;
    right: 0;

    top:
        calc(100% + 9px);

    z-index: 1200;

    padding: 6px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 16px;

    background:
        rgba(17, 19, 18, 0.96);

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.48);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px)
        scale(0.97);

    transform-origin:
        top center;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* =========================================================
   DROPDOWN OPTION
========================================================= */

.dropdown-option {
    width: 100%;

    min-height: 38px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 0 10px;

    border: 0;

    border-radius: 10px;

    outline: none;

    background: transparent;

    color:
        rgba(255, 255, 255, 0.72);

    font-family: inherit;

    font-size: 11px;

    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dropdown-option:hover {
    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;
}

.dropdown-option.active {
    background:
        rgba(215, 173, 92, 0.11);

    color: #ffffff;
}

.option-icon {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.06);

    color: #d7ad5c;
}

.option-icon i {
    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 11px;
}


/* =========================================================
   3D GALLERY SCENE
========================================================= */

.gallery-scene {
    position: relative;

    flex-shrink: 0;

    z-index: 1;

    width: 100vw;
    height: 260px;

    transform-style:
        preserve-3d;

    overflow: visible;

    user-select: none;

    touch-action: pan-y;

    cursor: grab;
}

.gallery-scene.dragging {
    cursor: grabbing;
}


/* =========================================================
   TRACK
========================================================= */

.gallery-track {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 100%;
    height: 100%;

    transform:
        translate(-50%, -50%);

    transform-style:
        preserve-3d;

    overflow: visible;
}


/* =========================================================
   CARD
========================================================= */

.gallery-card {
    position: absolute;

    left: 50%;
    top: 50%;

    width:
        clamp(
            115px,
            10.7vw,
            180px
        );

    aspect-ratio:
        0.68 / 1;

    transform-style:
        preserve-3d;

    transform-origin:
        center center;

    backface-visibility:
        hidden;

    will-change:
        transform,
        opacity;

    /*
     * EXACT REQUESTED BOX SHADOW
     */
    box-shadow:
        rgba(50, 50, 93, 0.25)
        0px 6px 12px -2px,

        rgba(0, 0, 0, 0.3)
        0px 3px 7px -3px;

    /*
     * IMPORTANT:
     * Reflection needs to extend outside card.
     */
    overflow: visible;
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.gallery-card-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    z-index: 4;

    border:
        1px solid
        rgba(255, 255, 255, 0.17);

    border-radius: 7px;

    box-shadow:
        rgba(50, 50, 93, 0.25)
        0px 6px 12px -2px,

        rgba(0, 0, 0, 0.3)
        0px 3px 7px -3px;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;
}

.gallery-card {
    cursor: pointer;
}

/* Animated rotating gold border — always on by default, pure CSS, no JS.
   Masked conic-gradient ring layered over the card image, same technique
   used sitewide (The Craft cards, Signature Venues, Blog cards). */
@property --gallery-border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.gallery-card::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 5;

    border-radius: 7px;

    padding: 1.5px;

    background:
        conic-gradient(
            from var(--gallery-border-angle),
            transparent 0%, #d7ad5c 12%, rgba(215, 173, 92, .15) 28%, transparent 45%,
            transparent 55%, rgba(215, 173, 92, .15) 72%, #d7ad5c 88%, transparent 100%
        );

    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: .85;

    pointer-events: none;

    animation: galleryBorderSpin 4.5s linear infinite;

    transition: opacity .3s ease;
}
@keyframes galleryBorderSpin {
    to { --gallery-border-angle: 360deg; }
}

/* Hover effect — separate from the border: the photo itself lifts,
   brightens slightly and the gold ring intensifies + spins a bit faster. */
.gallery-card-image {
    transition: transform .35s ease, filter .35s ease;
}
.gallery-card:hover .gallery-card-image {
    transform: scale(1.055);
    filter: brightness(1.08) saturate(1.08);
}
.gallery-card:hover::after {
    opacity: 1;
    animation-duration: 2.2s;
}


/* =========================================================
   CARD GRADIENT
========================================================= */

.gallery-card-gradient {
    position: absolute;

    inset: 0;

    z-index: 5;

    border-radius: 7px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            transparent 38%,
            rgba(0, 0, 0, 0.08) 52%,
            rgba(0, 0, 0, 0.88) 100%
        );
}


/* =========================================================
   CARD INFO
========================================================= */

.gallery-card-info {
    position: absolute;

    left: 11px;
    right: 9px;

    bottom: 11px;

    z-index: 6;

    display: flex;

    flex-direction: column;

    gap: 4px;

    pointer-events: none;
}


/* =========================================================
   EVENT CATEGORY
========================================================= */

.gallery-event-name {
    color: #ffffff;

    font-size:
        clamp(
            10px,
            0.82vw,
            14px
        );

    font-weight: 650;

    line-height: 1.1;

    letter-spacing:
        -0.015em;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.9);
}


/* =========================================================
   BANQUET
========================================================= */

.gallery-banquet {
    display: flex;

    align-items: center;

    gap: 4px;

    color:
        rgba(255, 255, 255, 0.78);

    font-size:
        clamp(
            7px,
            0.58vw,
            10px
        );

    line-height: 1.1;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    text-shadow:
        0 1px 6px
        rgba(0, 0, 0, 0.9);
}

.gallery-banquet i {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    color: #d7ad5c;

    font-size: 9px;
}


/* =========================================================
   TRUE IMAGE REFLECTION
   ---------------------------------------------------------
   Starts EXACTLY from image bottom.
========================================================= */

.gallery-reflection {
    position: absolute;

    left: -2.5%;
    right: -2.5%;

    /*
     * EXACTLY at image bottom.
     *
     * There is NO gap.
     */
    top: 100%;

    /*
     * Long reflection.
     */
    height: 105%;

    z-index: 0;

    overflow: hidden;

    /*
     * IMPORTANT:
     *
     * Do NOT flip the container.
     *
     * Only the reflection image is flipped.
     */
    transform: none;

    transform-origin:
        center top;

    /*
     * Overall blur.
     */
    filter:
        blur(3px);

    /*
     * Soft visibility.
     */
    opacity: 0.30;

    pointer-events: none;

    /*
     * Smooth vertical disappearance.
     */
    -webkit-mask-image:
        linear-gradient(
            to bottom,

            rgba(0, 0, 0, 0.95) 0%,

            rgba(0, 0, 0, 0.78) 8%,

            rgba(0, 0, 0, 0.52) 25%,

            rgba(0, 0, 0, 0.30) 45%,

            rgba(0, 0, 0, 0.12) 68%,

            rgba(0, 0, 0, 0.035) 86%,

            rgba(0, 0, 0, 0) 100%
        );

    mask-image:
        linear-gradient(
            to bottom,

            rgba(0, 0, 0, 0.95) 0%,

            rgba(0, 0, 0, 0.78) 8%,

            rgba(0, 0, 0, 0.52) 25%,

            rgba(0, 0, 0, 0.30) 45%,

            rgba(0, 0, 0, 0.12) 68%,

            rgba(0, 0, 0, 0.035) 86%,

            rgba(0, 0, 0, 0) 100%
        );
}


/* =========================================================
   REFLECTION IMAGE
========================================================= */

.gallery-reflection img {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position:
        center bottom;

    /*
     * ONLY IMAGE IS FLIPPED.
     *
     * This makes the reflection appear
     * below the card instead of collapsing
     * upward.
     */
    transform:
        scaleY(-1);

    transform-origin:
        center center;

    border-radius:
        0 0 10px 10px;

    /*
     * Strong image blur.
     */
    filter:
        blur(4px);

    opacity:
        0.82;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;
}


/* =========================================================
   REFLECTION DARK FADE
========================================================= */

.gallery-reflection::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,

            rgba(5, 7, 6, 0.00) 0%,

            rgba(5, 7, 6, 0.04) 10%,

            rgba(5, 7, 6, 0.16) 25%,

            rgba(5, 7, 6, 0.34) 43%,

            rgba(5, 7, 6, 0.58) 62%,

            rgba(5, 7, 6, 0.80) 78%,

            rgba(5, 7, 6, 0.94) 91%,

            rgba(5, 7, 6, 1.00) 100%
        );
}


/* =========================================================
   SOFT GROUND REFLECTION
========================================================= */

.gallery-reflection-floor {
    position: absolute;

    left: -35%;
    right: -35%;

    top: 72%;

    width: 170%;

    height: 70px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,

            rgba(255, 255, 255, 0.12) 0%,

            rgba(255, 255, 255, 0.055) 30%,

            rgba(255, 255, 255, 0.018) 55%,

            transparent 78%
        );

    filter:
        blur(24px);

    opacity:
        0.32;

    pointer-events: none;

    z-index: 3;
}


/* =========================================================
   VIEW MORE
========================================================= */

.gallery-view-more {
    position: relative;

    flex-shrink: 0;

    z-index: 900;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding:
        9px 16px;

    color:
        rgba(255, 255, 255, 0.88);

    text-decoration: none;

    font-size: 12px;

    font-weight: 500;

    letter-spacing:
        0.02em;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.055);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.28);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.gallery-view-more i {
    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;

    transition:
        transform 0.3s ease;
}

.gallery-view-more:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(215, 173, 92, 0.45);

    transform:
        translateY(-3px);
}

.gallery-view-more:hover i {
    transform:
        translate(2px, -2px);
}


/* =========================================================
   BACKGROUND FLOOR
========================================================= */

.event-gallery-section::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 0;

    height: 260px;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,

            transparent 0%,

            rgba(5, 7, 6, 0.55) 45%,

            #050706 100%
        );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .gallery-scene {
        height: 230px;
    }


    .gallery-card {
        width:
            clamp(
                105px,
                13vw,
                155px
            );
    }


    .gallery-reflection {
        height: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .event-gallery-section {
        gap: 22px;
    }


    .event-gallery {
        gap: 20px;
    }


    .gallery-filter {
        width:
            calc(100% - 30px);

        justify-content:
            space-between;

        gap: 8px;

        padding:
            7px 7px 7px 11px;
    }


    .filter-label {
        font-size: 10px;

        gap: 5px;
    }


    .filter-label i {
        font-size: 12px;
    }


    .custom-dropdown {
        width: 145px;
    }


    .dropdown-trigger {
        height: 35px;

        font-size: 10px;
    }


    .dropdown-menu {
        top:
            calc(100% + 7px);
    }


    .dropdown-option {
        min-height: 35px;

        font-size: 10px;
    }


    .gallery-scene {
        height: 195px;
    }


    .gallery-card {
        width:
            clamp(
                90px,
                22vw,
                130px
            );
    }


    .gallery-card-info {
        left: 8px;
        right: 7px;

        bottom: 9px;

        gap: 3px;
    }


    .gallery-event-name {
        font-size: 9px;
    }


    .gallery-banquet {
        font-size: 7px;
    }


    .gallery-banquet i {
        font-size: 7px;
    }


    /* -----------------------------------------
       MOBILE REFLECTION
    ----------------------------------------- */

    .gallery-reflection {
        top: 100%;

        height: 90%;

        opacity: 0.21;

        filter:
            blur(3.5px);
    }


    .gallery-reflection img {
        filter:
            blur(3px);
    }


    .gallery-view-more {
        font-size: 10px;

        padding:
            8px 13px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .filter-label span {
        display: none;
    }


    .gallery-filter {
        justify-content: center;
    }


    .custom-dropdown {
        width: 145px;
    }


    .gallery-scene {
        height: 175px;
    }


    .gallery-card {
        width:
            25vw;

        max-width:
            115px;
    }


    .gallery-reflection {
        height: 82%;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dropdown-menu,
    .dropdown-arrow,
    .gallery-view-more,
    .gallery-view-more i,
    .gallery-card::after,
    .gallery-card:hover::after,
    .gallery-card-image,
    .gallery-card:hover .gallery-card-image {

        transition: none;
        animation: none;
    }
}

