.product-stories {
    margin: 20px 0;
    display: flex;
    justify-content: var(--justify);
    text-align: var(--text-align);
}
.product-story-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.product-story-container {
    display: flex;
    justify-content: var(--justify);
    overflow-x: auto;
    padding: 3px 0;
}
.product-story-container > * + * {
    margin-left: 8px;
}
.product-story-heading {
    margin-bottom: 8px;
}
.product-story-thumb {
    width: var(--story-size);
    height: var(--story-size);
    border-radius: 50%;
    border: 2px solid white;
    background-color: #d7d7d7;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.product-story-thumb img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-story-thumb-accent {
    border: solid 3px var(--accent-color);
    border-radius: 50%;
}
.product-story-caret {
    display: inline-block !important;
    width: 24px;
    height: 16px;
    border-left: 16px solid var(--accent-color);
    border-top: 10px solid rgba(0,0,0,0);
    border-bottom: 10px solid rgba(0,0,0,0);
}

/* Video player */

.trend-media-player-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000005;
    position: fixed;
    top: 0;
    width: 100%;
    font-family: "Helvetica", sans-serif !important;
    font-weight: bold;
}

.trend-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0,0,0,0.9);
    display: block !important;
}

.trend-logo {
    position: fixed;
    top: 16px;
    left: 16px;
    display: none;
}
.trend-logo.mobile {
    display: block;
    top: 56px;
    z-index: 2000010;
}

.trend-media-player-outer {
    position: relative;
}

.trend-media-player-close {
    color: white;
    cursor: pointer;
    font-size: 24px;
    z-index: 2000010;
}
.trend-media-player-close.desktop {
    position: fixed;
    right: 16px;
    top: 16px;
    display: none;
}
.trend-media-player-close.mobile {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    width: 120px;
    height: 120px;
}
.trend-media-player-close.mobile > svg {
    position: absolute;
    right: 16px;
    top: 56px;
}

.trend-media-player {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: black;
    aspect-ratio: 9/16;
    height: 100vh;
    max-width: 100vw;
}

.trend-media-player-next,
.trend-media-player-prev {
    display: none;
    position: absolute;
    height: 48px;
    width: 48px;
    top: calc(50% - 24px);
    z-index: 2000003;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.1s ease-in;
    border-radius: 50%;
}

.trend-media-player-next:focus,
.trend-media-player-prev:focus,
.trend-media-player-next:hover,
.trend-media-player-prev:hover {
    opacity: 1;
}

.trend-media-player-next {
    right: -64px;
}

.trend-media-player-prev {
    left: -64px;
}

@media(min-width: 720px) {
    .trend-media-player-close.desktop,
    .trend-logo.desktop {
        display: block;
    }
    .trend-logo.mobile {
        display: none;
    }
    .trend-media-player-close.mobile {
        display: none;
    }
    .trend-media-player {
        height: 90vh;
    }
    .trend-media-player-wrapper {
        top: 5%;
    }
    .trend-media-player-prev,
    .trend-media-player-next {
        display: block;
    }
}


.trend-media-playback-indicator-container {
    position: absolute;
    top: 36px;
    left: 16px;
    width: calc(100% - 32px);
    display: flex;
    justify-content: space-evenly;
    height: 4px;
    z-index: 2000003;
}
.trend-media-playback-indicator-container > * + * {
    margin-left: 2px;
}
.trend-media-playback-indicator {
    display: block !important;
    width: 100%;
    background-color: rgba(255,255,255);
    overflow: hidden;
}
.trend-media-playback-indicator.active,
.trend-media-playback-indicator.active ~ .trend-media-playback-indicator {
    background-color: rgba(255,255,255,0.5);
}
.trend-media-playback-indicator.active:after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    transform: translateX(calc(var(--progress, 0%) - 100%));
    background-color: rgba(255,255,255);
}

.trend-media-item {
    position: absolute;
    width: 100%;
    height:100%;
    z-index: 2000001;
    transform: none;
}

.trend-media-item.current {
    z-index: 2000002;
}

.trend-media-item.previous {
    transform: translateX(calc(-100% - 48px)) scale(.6);
}

.trend-media-item.next {
    transform: translateX(calc(100% + 48px)) scale(.6);
}

.trend-media-item.previous,
.trend-media-item.next {
    display: none;
    top: 32px;
    border-radius: 10px;
}

@media(min-width: 720px) {
    .trend-media-item {
        transition: transform 330ms;
    }
    .trend-media-item.previous,
    .trend-media-item.next {
        display: block;
    }
}

.trend-media-view {
    width: 100%;
    height: 100%;
}

.trend-media-view img,
.trend-media-view video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trend-media-controls {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 2000004;
    bottom: 60px;
}
.trend-control-container {
    width: 100%;
}
.trend-media-controls .trend-control-btn {
    background-color: rgba(0,0,0,0);
    color: white;
    width: 62.5px;
    padding: 0;
    border: none;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.1s ease-in;
}
.trend-media-controls .trend-control-btn:hover {
    opacity: 1;
}

.trend-media-controls .trend-control-btn {
    position: absolute;
}
.trend-media-controls .trend-control-bottom-left {
    left: 5px;
}

.trend-media-controls .trend-control-bottom-right {
    right: 5px;
}


.trend-media-actions {
    position: absolute;
    bottom: 75px;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 2000003;
    padding: 0 8px;
}

.trend-media-action-btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    color: white;
    background-color: #222;
    border: none;
    border-radius: 32px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
    font-family: "Helvetica", sans-serif !important;
}
.trend-media-action-btn > svg {
    height: 100%;
    width: 25px;
    margin-right: 5px;
}
.trend-media-action-btn.primary {
    color: black;
    background-color: white;
}
.trend-media-action-btn + .trend-media-action-btn {
    margin-left: 10px;
}
@media(min-width: 720px) {
    .trend-media-action-btn > svg {
        width: 32px;
    }
    .trend-media-action-btn {
        padding: 10px 25px;
        font-size: 25px;
    }
}

.trend-product-description {
    position: absolute;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 2000003;
    padding: 0 8px;
    font-size: 20px;
    color: white;
    text-transform: uppercase;
    text-align: center;
}
.trend-product-description .trend-product-price {
    font-size: 15px;
}
@media(min-width: 720px) {
    .trend-product-description {
        font-size: 30px;
    }
    .trend-product-description .trend-product-price {
        font-size: 25px;
    }
}

.trend-no-scroll {
    overflow-y: hidden;
}

.hidden {
    display: none;
}

form[action="/cart/add"] {
    scroll-margin: 64px;
}

.trend-play-button {
    position: absolute;
    z-index: 2000003;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-play-button svg {
    color: white;
    height: 25%;
    width: 25%;
    opacity: 0.5;
}
