﻿/* ==============================
   VIDEO SLIDER (scoped)
   ============================== */

.video-slider-section {
    padding: 100px 0 0 0;
    background-color: #f9f5ed;
}

@media only screen and (min-width: 768px) {
    .video-slider-section {
        padding: 80px 0 80px 0;
    }
}

.video-slider-section .inner {
    position: relative;
}

    .video-slider-section .inner:after {
        content: '';
        position: absolute;
        z-index: 1;
        top: 0;
        bottom: 0;
        right: -100%;
        width: 100%;
        background-color: #f9f5ed;
    }

.video-slider-section .eyebrow {
    font-family: 'Panton', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #2E3543;
}

.video-slider-section h2 {
    font-family: 'Panton', sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 36px;
    line-height: 42px;
    letter-spacing: 0.5px;
    color: #2E3543;
    margin: 20px 0 0 0;
}

.video-slider-section p {
    font-family: 'Panton', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 36px;
    color: #2E3543;
}

/* --- Slick slider overrides (video only) --- */
.video-slider-section .slick-slider .slick-track,
.video-slider-section .slick-slider .slick-list {
    overflow: visible;
}

@media only screen and (min-width: 768px) {
    .video-slider-section .slick-slider .slick-track:after,
    .video-slider-section .slick-slider .slick-list:after {
        content: '';
        position: absolute;
        z-index: 1;
        top: 0;
        bottom: 0;
        right: -100%;
        width: 100%;
        background-color: #f9f5ed;
    }
}

/* --- Layout --- */
.video-slider-section .me-gallery-slider--grid {
    display: flex;
    flex-direction: column-reverse;
}

@media only screen and (min-width: 768px) {
    .video-slider-section .me-gallery-slider--grid {
        flex-direction: row;
    }
}

.video-slider-section .me-gallery-slider--grid .copy-plus-controls {
    position: relative;
    z-index: 5; /* ensure text over videos */
    width: 100%;
    padding: 0;
    background: #f9f5ed;
}

@media only screen and (min-width: 768px) {
    .video-slider-section .me-gallery-slider--grid .copy-plus-controls {
        width: 50%;
        padding: 0 0 0 40px;
    }
}

@media screen and (min-width: 990px) {
    .video-slider-section .me-gallery-slider--grid .copy-plus-controls {
        padding: 0 0 0 125px;
    }
}

.video-slider-section .me-gallery-slider--grid .module--product-slider--container {
    position: relative;
    width: 243px;
    margin: 40px 0 0 0;
}

@media only screen and (min-width: 768px) {
    .video-slider-section .me-gallery-slider--grid .module--product-slider--container {
        width: 50%;
        margin: 0;
    }
}

.video-slider-section .me-gallery-slider--grid .module--product-slider--container:before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background-color: #f9f5ed;
}

@media only screen and (min-width: 768px) {
    .video-slider-section .me-gallery-slider--grid .module--product-slider--container:before {
        display: none;
    }
}

@media only screen and (min-width: 768px) {
    .video-slider-section .me-gallery-slider--grid .module--product-slider--container:after {
        content: '';
        position: absolute;
        z-index: 1;
        top: 0;
        bottom: 0;
        right: -100%;
        width: 100%;
        background-color: #f9f5ed;
    }
}

/* --- Slide spacing for videos --- */
.video-slider-section .me-gallery-slider--grid .slick-slide {
    margin: 0 10px; /* gap between videos */
}

.video-slider-section .me-gallery-slider--grid .module--product-slider .slick-list {
    margin: 0 -10px;
}

/* Mobile: tighter spacing */
@media (max-width: 767px) {
    .video-slider-section .me-gallery-slider--grid .slick-slide {
        margin: 0 6px;
    }

    .video-slider-section .me-gallery-slider--grid .module--product-slider .slick-list {
        margin: 0 -6px;
        padding: 0 6px;
    }
}

/* --- Video wrapper sizes --- */
.video-slider-section .video-wrapper {
    margin: 0 auto;
    position: relative;
}

/* Vertical */
.video-slider-section.vertical-mode .video-wrapper {
    width: 320px !important;
    height: 560px;
}

/* Wide */
.video-slider-section.wide-mode .video-wrapper {
    width: 560px !important;
    height: 315px;
}

/* Vertical mode text column */
.video-slider-section.vertical-mode .me-gallery-slider--grid .copy-plus-controls {
    width: 50%;
}

/* Wide mode text column */
.video-slider-section.wide-mode .me-gallery-slider--grid .copy-plus-controls {
    width: 40%;
    padding-left: 40px;
}

@media screen and (min-width: 1200px) {
    .video-slider-section.wide-mode .me-gallery-slider--grid .copy-plus-controls {
        padding-left: 80px;
    }
}

.video-slider-section.wide-mode .me-gallery-slider--grid .module--product-slider--container {
    width: 60%;
}

/* Make video elements fill wrapper */
.video-slider-section .video-wrapper iframe,
.video-slider-section .video-wrapper video,
.video-slider-section .video-wrapper blockquote.instagram-media,
.video-slider-section .video-wrapper .instagram-embed iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* Force slick slide width for consistency */
.video-slider-section.vertical-mode .slick-slide,
.video-slider-section.vertical-mode .slick-slide.slick-cloned {
    width: 320px !important;
}

.video-slider-section.wide-mode .slick-slide,
.video-slider-section.wide-mode .slick-slide.slick-cloned {
    width: 560px !important;
}
