.trend-gallery {
    margin-bottom: 28px;
    color: #36393d;
}

.trend-gallery__stage {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    outline: none;
}

.trend-gallery__stage:focus-visible {
    outline: 2px solid #fd64c4;
    outline-offset: 2px;
}

.trend-gallery__viewport {
    width: 100%;
    aspect-ratio: var(--trend-gallery-aspect, 4 / 5);
    position: relative;
    overflow: hidden;
    background: #f7f8f9;
    touch-action: pan-y;
}

.trend-gallery__track {
    display: flex;
    height: 100%;
    transition: transform .45s cubic-bezier(.25,.8,.25,1);
}

.trend-gallery:not(.is-initialized) .trend-gallery__track {
    flex-wrap: wrap;
    transform: none !important;
}

.trend-gallery__slide {
    min-width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: opacity .3s ease;
}

.trend-gallery__picture,
.trend-gallery__img {
    width: 100%;
    height: 100%;
}

.trend-gallery__img {
    object-fit: contain;
    transition: opacity .2s ease;
}

.trend-gallery__caption {
    font-size: 13px;
    color: rgba(0,0,0,0.7);
    text-align: center;
    margin-top: 6px;
}

.trend-gallery__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    color: #36393d;
    box-shadow: 0 6px 14px rgba(15,15,15,0.15);
}

.trend-gallery__control:hover,
.trend-gallery__control:focus-visible {
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(253,100,196,0.35);
}

.trend-gallery__control--prev { left: 12px; }
.trend-gallery__control--next { right: 12px; }

.trend-gallery__live {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

.trend-gallery__gesture-hint {
    font-size: 12px;
    color: rgba(0,0,0,0.65);
    margin: 8px 16px 14px;
    text-align: center;
}

.trend-gallery__thumbs {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.trend-gallery__thumb {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #fff;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border .2s ease, transform .2s ease;
}

.trend-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trend-gallery__thumb.is-active {
    border-color: #fd64c4;
    box-shadow: 0 6px 14px rgba(253,100,196,0.25);
    transform: none;
}

.trend-gallery__thumb:focus-visible {
    border-color: #36393d;
    outline: none;
}

.trend-gallery__noscript img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 10px;
}

.trend-gallery--single .trend-gallery__control {
    display: none;
}

@media (max-width: 767px) {
    .trend-gallery__control {
        display: none;
    }
}

@media (min-width: 768px) {
    .trend-gallery {
        margin-bottom: 36px;
    }

    .trend-gallery__thumb {
        width: 90px;
        height: 90px;
    }
}

@media (min-width: 992px) {
    .single-product .product {
        position: relative;
    }

    .single-product .product .trend-gallery {
        float: left;
        width: 48%;
        margin-right: 4%;
        margin-bottom: 0;
        max-width: 640px;
    }

    .single-product .product .summary.entry-summary {
        float: right;
        width: 48%;
        margin-bottom: 0 !important;
    }

    .single-product .product::after {
        content: "";
        display: table;
        clear: both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trend-gallery__track,
    .trend-gallery__img,
    .trend-gallery__control,
    .trend-gallery__thumb {
        transition: none !important;
    }
}
