.event-gallery {
    display: flex;
    gap: 25px;
    width: 100%;
    align-items: stretch
}

.gallery-thumbs {
    width: 35%;
    height: 56vh;
    min-height: 0;
    max-height: 750px;
    overflow-y: auto;
    padding-right: 8px
}

.gallery-thumbs::-webkit-scrollbar {
    width: 8px
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #d2d2d2;
    border-radius: 20px
}

.gallery-thumbs .swiper {
    height: auto
}

@media (min-width: 1025px) {
    .gallery-thumbs .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        transform: none !important;
    }
}

.gallery-thumbs .swiper-slide {
    width: 100%!important;
    height: auto!important;
    margin: 0!important;
    cursor: pointer;
    border: 3px solid transparent;
    transition: .25s;
    opacity: .6
}

.gallery-thumbs .swiper-slide-thumb-active {
    border-color: #f58220;
    opacity: 1
}

.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block
}

.gallery-main {
    width: 65%;
    position: relative
}

.gallery-main .swiper {
    height: 56vh;
    min-height: 0;
    max-height: 750px
}

.gallery-main .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.gallery-prev,.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,.18);
    cursor: pointer;
    z-index: 100
}

.gallery-prev {
    left: 20px
}

.gallery-next {
    right: 20px
}

.gallery-prev::after,.gallery-next::after {
    font-family: swiper-icons;
    font-size: 22px;
    color: #222;
    position: absolute;
    top: 8px;
    left: 18px
}

.gallery-prev::after {
    content: "prev"
}

.gallery-next::after {
    content: "next";
    left: 22px
}

.gallery-prev:hover,.gallery-next:hover {
    background: #f58220
}

.gallery-prev:hover::after,.gallery-next:hover::after {
    color: #fff
}

.gallery-thumbs { overflow-y: auto; direction: rtl; scrollbar-gutter: stable; padding-left: 10px } 
.gallery-thumbs::-webkit-scrollbar { width: 8px } 
.gallery-thumbs::-webkit-scrollbar-track { background: #6b6b6b } 
.gallery-thumbs::-webkit-scrollbar-thumb { background: #ff7a00; border-radius: 10px } 
.gallery-thumbs>* { direction: ltr } 
.gallery-thumbs { scrollbar-width: thin; scrollbar-color: #ff7a00 #6b6b6b }

@media (max-width: 1024px) {
    .event-gallery {
        flex-direction:column-reverse
    }

    .gallery-main,.gallery-thumbs {
        width: 100%
    }

    .gallery-main .swiper {
        height: 50vw;
        min-height: unset;
        max-height: unset
    }

    .gallery-thumbs {
        height: auto;
        overflow: hidden;
        padding: 0
    }

    .gallery-thumbs .swiper {
        width: 100%;
        height: auto;
        overflow: auto
    }

    .gallery-thumbs .swiper-wrapper {
        display: flex!important;
        grid-template-columns: none!important;
    }

    .gallery-thumbs .swiper-slide {
        width: 75px!important;
        height: auto!important;
        flex-shrink: 0;
        margin: 0!important;
        opacity: 1
    }

    .gallery-thumbs img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover
    }

    .gallery-thumbs {
        padding-left: 0
    }

    .gallery-thumbs {
        direction: ltr !important;
    }

    .event-gallery .swiper-slide img {
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-select: none;
        pointer-events: none; /* let the slide div handle the gesture, not the img */
    }

    .event-gallery .thumbs-swiper {
        overflow: hidden !important;
    }


}

@media (max-width: 767px) {
    .gallery-main .swiper {
        height:90vw
    }

    .gallery-prev,.gallery-next {
        width: 30px;
        height: 30px
    }

    .gallery-prev::after,.gallery-next::after {
        font-size: 16px;
        top: 3px;
        left: 10px
    }

    .gallery-next::after {
        left: 12px
    }
}
