.video-element {
    image-rendering: auto;
    -webkit-transform: translateZ(0);
    will-change: transform;
    display: block;
}

/* =========================
   VIDEO FRAMES (DESKTOP)
========================= */

.video-frame {
    display: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
}

.video-frame.active {
    display: block;
}

/* =========================
   VIDEO WRAPPER
========================= */

.video-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   DESKTOP ONLY BLOCK
========================= */

.video-desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .video-desktop-only {
        display: block;
    }
}

/* =========================
   DESKTOP ARROWS
========================= */

.video-prev-arrow,
.video-next-arrow {
    position: absolute;
    top: 1%;
    z-index: 10;

    font-size: 14px;
    color: #fff;

    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 50%;

    cursor: pointer;
    user-select: none;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    transition: background 0.3s ease;
}

.video-prev-arrow {
    left: 8px;
}

.video-next-arrow {
    right: 8px;
}

.video-prev-arrow:hover,
.video-next-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
}

/* =========================
   VIDEO PRODUCT LINK (DESKTOP + MOBILE)
========================= */

.video-product-link,
.video-frame a,
.mobile-video-link {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 2px;

    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;

    background: transparent;
    border-radius: 0;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(0, 0, 0, 0.35);

    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.video-product-link:hover,
.video-frame a:hover,
.mobile-video-link:hover {
    color: #000;
    text-decoration-color: rgba(0, 0, 0, 0.85);
}

/* =========================
   MOBILE VIDEO SLOT
========================= */

.mobile-video-slot {
    display: none;
    position: relative;
    margin-bottom: 15px;
}

.mobile-video-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.mobile-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-video-prev,
.mobile-video-next {
    position: absolute;
    top: 8px;
    z-index: 5;

    font-size: 16px;
    color: #fff;

    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    padding: 6px 9px;

    cursor: pointer;
    user-select: none;
}

.mobile-video-prev {
    left: 8px;
}

.mobile-video-next {
    right: 8px;
}


@media (max-width: 1023px) {
    .mobile-video-slot {
        display: block;
    }

    .video-product-link,
    .mobile-video-link {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .video-product-link {
        font-size: 16px;
    }
}
