.product-detail #slider.product-gallery {
    box-sizing: border-box;
    padding: 10px 10px 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fafafa;
}
.product-gallery-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fff;
}
.product-detail .product-gallery .bx-wrapper {
    box-sizing: border-box;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
}
.product-detail .product-gallery .bx-viewport {
    height: 100% !important;
    border: 0 !important;
    border-radius: 0;
}
.product-gallery .inner,
.product-gallery .inner > li,
.product-gallery .inner > li > div {
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.product-gallery .inner > li { width: 100%; }
.product-gallery .product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-gallery .inner > li > .bx-caption {
    height: auto;
}
.product-gallery .bx-wrapper .bx-caption {
    box-sizing: border-box;
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px;
    width: auto !important;
    max-width: calc(100% - 20px);
    height: auto !important;
}
.product-gallery lite-youtube {
    width: 100%;
    height: 100%;
    max-width: none;
    padding-bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
}
.product-gallery lite-youtube::before { position: absolute; }
.product-gallery-pager {
    display: none;
    box-sizing: border-box;
    height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.has-gallery-pager .product-gallery-pager { display: block; }
.product-gallery-thumbs {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    min-width: 100%;
    height: 100%;
    padding: 5px;
}
.product-gallery-thumbs button {
    flex: 0 0 52px;
    box-sizing: border-box;
    width: 52px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #2b84c2;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
}
.product-gallery-thumbs button[aria-current="true"],
.product-gallery-thumbs button:focus-visible {
    outline: 2px solid #2b84c2;
    outline-offset: 1px;
}
.product-gallery-thumbs img {
    display: block;
    width: 50px;
    height: 38px;
    object-fit: contain;
}
.product-gallery-video-thumb {
    display: block;
    color: #2b84c2;
    font-size: 24px;
    line-height: 38px;
}
