.image-gallery {
    --image-gallery-image-border: #999999 solid 1px;
    --image-gallery-image-border-hover: #00a5b2 solid 1px;
    margin: auto;
    flex-shrink: 0;
    padding-bottom: 10px;
}

.image-gallery.overview {
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: content-box;
}

.image-gallery.overview.small {
    width: 492px;
    max-width: 100%;
    margin: 0 auto;
}

.image-gallery .main-gallery {
    position: relative;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.image-gallery .main-gallery .swiper-wrapper {
    margin: 0 auto;
}

.image-gallery .main-gallery img {
    border: var(--image-gallery-image-border, #999999 solid 1px);
}

.image-gallery .gallery-thumbnails {
    position: relative;
    margin: 10px auto auto auto;
    display: flex;
}

.image-gallery .gallery-thumbnails .swiper {
    overflow: hidden;
    padding: 10px 0;
    width: calc(100% - 40px);
}

.image-gallery .gallery-thumbnails .swiper .swiper-wrapper {
    justify-content: center;
    width: 100%;
}

.image-gallery .gallery-thumbnails .swiper .swiper-wrapper:has(> :nth-child(4)) {
    justify-content: flex-start;
    padding-left: 0;
}

.image-gallery .gallery-thumbnails img {
    border: var(--image-gallery-image-border, #999999 solid 1px);
    cursor: pointer;
}

.image-gallery .gallery-thumbnails img:hover {
    border: var(--image-gallery-image-border-hover, #00a5b2 solid 1px);
}

.image-gallery .gallery-thumbnails .swiper-slide-thumb-active img {
    border: var(--image-gallery-image-border-hover, #00a5b2 solid 1px);
}

.image-gallery .gallery-thumbnails .custom-button-prev,
.image-gallery .gallery-thumbnails .custom-button-next {
    display: flex;
    font-size: 15px;
    color: #515151;
    cursor: pointer;
    align-items: center;
    transition: opacity .4s ease-out;
    z-index: 9;
    align-content: center;
    flex-flow: wrap;
    width: 20px;
    flex-shrink: 0;
}

.image-gallery .gallery-thumbnails .custom-button-prev {
    justify-content: flex-start;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.image-gallery .gallery-thumbnails .custom-button-next {
    justify-content: flex-end;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.image-gallery .gallery-thumbnails .custom-button-prev::before,
.image-gallery .gallery-thumbnails .custom-button-next::before {
    content: "";
    width: 15px;
    height: 100%;
    position: absolute;
    top: 0;
}

.image-gallery .gallery-thumbnails .custom-button-prev::before {
    background-image: linear-gradient(90deg, rgba(134, 134, 139, 0.2), transparent);
    left: 20px;
}

.image-gallery .gallery-thumbnails .custom-button-next::before {
    background-image: linear-gradient(270deg, rgba(134, 134, 139, 0.2), transparent);
    right: 20px;
}

.image-gallery .gallery-thumbnails .swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.image-gallery .gallery-thumbnails .swiper-scrollbar {
    display: none;
    height: 5px;
}

.image-gallery .gallery-thumbnails .swiper-scrollbar .swiper-scrollbar-drag {
    background-color: #8E8E8E;
}

@media only screen and (max-width: 991px) {
    .image-gallery.overview img {
        width: auto;
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 767px) {
    .image-gallery.overview {
        padding-left: 0;
        padding-right: 0;
    }
}

@media only screen and (max-width: 477px) {
    .image-gallery.overview {
        width: 100%;
    }

    .image-gallery .main-gallery {
        max-width: 100%;
    }

    .image-gallery .gallery-thumbnails {
        display: block;
    }

    .image-gallery .gallery-thumbnails .swiper {
        width: 100%;
        padding: 0;
    }

    .image-gallery .gallery-thumbnails .custom-button-prev,
    .image-gallery .gallery-thumbnails .custom-button-next {
        display: none;
    }

    .image-gallery .gallery-thumbnails .swiper-scrollbar {
        display: block;
        margin: 10px 0 5px 0;
    }
}