.product-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    touch-action: pan-y pinch-zoom;
}

.product-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.28s ease;
    will-change: transform;
}

.product-gallery--single .product-gallery-track {
    transform: translateX(0) !important;
}

.product-gallery-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-gallery-slide[data-video-src]::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 76px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.product-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
}

.product-gallery-image--cover {
    object-fit: cover;
}

.product-gallery-image--contain {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
}

.product-gallery-video-trigger {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 4;
    border: none;
    border-radius: 999px;
    background: rgba(227, 47, 47, 0.94);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.product-gallery-video-trigger i {
    font-size: 18px;
    line-height: 1;
}

.product-gallery-video-modal {
    width: 100%;
    text-align: center;
}

.product-gallery-video-player {
    display: block;
    width: 100%;
    max-width: 920px;
    max-height: 70vh;
    margin: 0 auto;
    border-radius: 12px;
    background: #000;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #212121;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.product-gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
}

.product-gallery-prev {
    left: 10px;
}

.product-gallery-next {
    right: 10px;
}

.product-gallery-nav i {
    font-size: 22px;
    line-height: 1;
}

.product-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 3;
    text-align: center;
    line-height: 1;
}

.product-gallery-dot {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    margin: 0 3px;
    padding: 0;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.product-gallery-dot.active {
    background: #ffffff;
    transform: scale(1.16);
}

.product-card .product-gallery {
    height: 100%;
    border-radius: 6px;
}

.product-card .product-gallery-slide {
    cursor: pointer;
}

.product-gallery--single .product-gallery-slide {
    cursor: pointer;
}

.product-card .product-gallery-dots {
    bottom: 8px;
}

.product-card .product-gallery-nav {
    width: 30px;
    height: 30px;
}

.product-card .product-gallery-nav i {
    font-size: 20px;
}

.product-card .product-gallery-video-trigger {
    bottom: 20px;
    padding: 7px 14px;
    font-size: 12px;
}

.view-product .item-image .product-gallery {
    min-height: 260px;
    background: #fff;
}

.view-product .item-image .product-gallery-slide {
    min-height: 260px;
}

.view-product .item-image .product-gallery-image--cover,
.view-product .item-image .product-gallery-image--contain {
    min-height: 260px;
}

.fp-product-gallery-shell {
    width: 36%;
    height: 240px;
    float: left;
}

#fp-product .bgh-header .fp-logo .fp-product-gallery-shell {
    width: 36% !important;
    height: 240px !important;
}

#fp-product .bgh-header .fp-logo .fp-title {
    width: 62% !important;
    margin-left: 36% !important;
}

.fp-product-gallery-shell .product-gallery {
    border-radius: 0;
    background: transparent;
}

.fp-product-gallery-shell .product-gallery-image--cover,
.fp-product-gallery-shell .product-gallery-image--contain {
    background: transparent;
}

.fp-product-gallery-shell .product-gallery-nav {
    width: 30px;
    height: 30px;
}

.fp-product-gallery-shell .product-gallery-dots {
    bottom: 6px;
}

@media only screen and (max-width: 599px) {
    .product-card .product-gallery-nav {
        width: 28px;
        height: 28px;
    }

    .product-card .product-gallery-nav i {
        font-size: 18px;
    }

    .product-card .product-gallery-dots {
        bottom: 6px;
    }

    .product-gallery-video-trigger {
        bottom: 16px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .product-gallery-video-trigger i {
        font-size: 16px;
    }

    .fp-product-gallery-shell {
        width: 100%;
        height: 200px;
        float: none;
    }

    #fp-product .bgh-header .fp-logo .fp-product-gallery-shell {
        width: 100% !important;
        height: 220px !important;
    }

    #fp-product .bgh-header .fp-logo .fp-title {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .fp-product-gallery-shell .product-gallery {
        border-radius: 0;
    }
}
