.vh-gallery {
    --vh-gallery-main-height: clamp(280px, 52vw, 480px);
    box-sizing: border-box;
    min-height: var(--vh-gallery-main-height);
    display: flex;
    gap: 16px;
}

.vh-gallery__thumb-side {
    width: 122px;
    flex: 0 0 122px;
    height: var(--vh-gallery-main-height);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vh-gallery__thumb-frame {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.vh-gallery__main-swiper{
    
    border: 1px solid #e4eaf2;
    box-sizing: border-box;
}
.vh-gallery__thumb-swiper,
.vh-gallery__main-swiper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.vh-gallery__thumb-swiper .swiper-wrapper,
.vh-gallery__main-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.vh-gallery__thumb-swiper:not(.swiper-container-vertical) .swiper-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.vh-gallery__thumb-swiper:not(.swiper-container-vertical) .vh-gallery__thumb-slide {
    height: calc((100% - 30px) / 4);
    flex: 0 0 calc((100% - 30px) / 4);
}

.vh-gallery__main-swiper:not(.swiper-container-horizontal):not(.swiper-container-vertical) .swiper-wrapper {
    display: block;
}

.vh-gallery__main-swiper:not(.swiper-container-horizontal):not(.swiper-container-vertical) .vh-gallery__main-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.vh-gallery__main-swiper:not(.swiper-container-horizontal):not(.swiper-container-vertical) .vh-gallery__main-slide:first-child {
    display: block;
}

.vh-gallery__arrow {
    width: 100%;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.vh-gallery__arrow span {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.vh-gallery__arrow--prev span {
    border-bottom: 10px solid #6b7280;
}

.vh-gallery__arrow--next span {
    border-top: 10px solid #6b7280;
}

.vh-gallery__arrow:hover {
    border-color: #9fb5ff;
}

.vh-gallery__arrow.is-disabled,
.vh-gallery__arrow[aria-disabled="true"] {
    opacity: 0.38;
    cursor: default;
    box-shadow: none;
}

.vh-gallery__thumb-slide {
    box-sizing: border-box;
}

.vh-gallery__thumb-card {
    width: 100%;
    height: 100%;
    padding: 0;
    background: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vh-gallery__thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-gallery__main-side {
    flex: 1;
    min-width: 0;
    height: var(--vh-gallery-main-height);
    overflow: hidden;
}

.vh-gallery__main-slide {
    height: 100%;
}

.vh-gallery__main-swiper,
.vh-gallery__main-slide {
    border-radius: inherit;
}

.vh-gallery__main-media {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vh-gallery__main-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vh-gallery.is-static .vh-gallery__thumb-frame {
    padding-top: 0;
}

@media (max-width: 900px) {
    .vh-gallery {
        --vh-gallery-main-height: clamp(280px, 50vw, 420px);
    }
    .vh-gallery {
        gap: 10px;
    }

    .vh-gallery__thumb-side {
        width: 100px;
        flex-basis: 100px;
    }

    .vh-gallery__thumb-card {
        padding: 0;
    }

    .vh-gallery__main-media {
        padding: 12px;
    }
}

@media (max-width: 640px) {
    .vh-gallery {
        --vh-gallery-main-height: clamp(260px, 76vw, 380px);
    }

    .vh-gallery {
        gap: 8px;
    }

    .vh-gallery__thumb-side {
        width: 82px;
        flex-basis: 82px;
        gap: 8px;
    }

    .vh-gallery__arrow {
        height: 30px;
    }

    .vh-gallery__thumb-card {
        padding: 0;
    }

    .vh-gallery__main-media {
        padding: 8px;
    }
}