﻿/* =========================================================
   INTERIORS360
   YOUTUBE TUTORIAL SLIDER
========================================================= */

.yt-tutorial-slider {
    width: 100%;
    max-width: 1400px;
    margin: 70px auto;
    padding: 0 30px;
    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.yt-slider-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}


.yt-slider-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #a65f78;
}


.yt-slider-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -1px;
    color: #252025;
}


/* =========================================================
   NAVIGATION
========================================================= */

.yt-slider-navigation {
    display: flex;
    gap: 9px;
}


.yt-slider-nav {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2dde0;
    border-radius: 50%;
    background: #fff;
    color: #252025;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}


    .yt-slider-nav svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }


    .yt-slider-nav:hover {
        background: #252025;
        color: #fff;
        transform: translateY(-2px);
    }


/* =========================================================
   VIEWPORT
========================================================= */

.yt-slider-viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}


/* =========================================================
   TRACK
========================================================= */

.yt-slider-track {
    display: flex;
    gap: 28px;
    will-change: transform;
    transition: transform 0.65s cubic-bezier(.22,.61,.36,1);
}


/* =========================================================
   CARD
========================================================= */

.yt-slider-card {
    flex: 0 0 calc( (100% - 56px) / 3 );
    min-width: 0;
    overflow: hidden;
   /* border: 1px solid #ebe7e9;
    border-radius: 18px;*/
    background: #fff;
    box-shadow: 0 5px 20px rgba(30,20,25,.04);
    transition: transform .35s ease, box-shadow .35s ease;
}


    .yt-slider-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 45px rgba(30,20,25,.11);
    }


/* =========================================================
   THUMBNAIL
========================================================= */

.yt-slider-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #191719;
}


    .yt-slider-thumbnail img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .6s cubic-bezier(.2,.7,.2,1);
    }


.yt-slider-card:hover
.yt-slider-thumbnail img {
    transform: scale(1.06);
}


.yt-slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,.02), rgba(0,0,0,.45) );
}


/* =========================================================
   DURATION
========================================================= */

.yt-slider-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(0,0,0,.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   PLAY
========================================================= */

.yt-slider-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    text-decoration: none;
}


.yt-slider-play-circle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transition: transform .3s ease;
}


    .yt-slider-play-circle svg {
        width: 22px;
        height: 22px;
        margin-left: 3px;
        fill: #252025;
    }


.yt-slider-card:hover
.yt-slider-play-circle {
    transform: scale(1.1);
}


/* =========================================================
   CONTENT
========================================================= */

.yt-slider-content {
    padding: 21px;
}


.yt-slider-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 11px;
}


.yt-slider-category {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 100px;
    background: #f8eef2;
    color: #a65f78;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}


.yt-slider-title {
    margin: 0;
    min-height: 54px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
}


    .yt-slider-title a {
        color: #252025;
        text-decoration: none;
    }


        .yt-slider-title a:hover {
            color: #a65f78;
        }


/* =========================================================
   TOPIC
========================================================= */

.yt-slider-topic {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: #777;
    font-size: 11px;
}


    .yt-slider-topic span {
        width: 5px;
        height: 5px;
        flex-shrink: 0;
        border-radius: 50%;
        background: #c98ca0;
    }


/* =========================================================
   DESCRIPTION
========================================================= */

.yt-slider-description {
    display: -webkit-box;
    margin: 13px 0 18px;
    overflow: hidden;
    color: #777;
    font-size: 12px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   FOOTER
========================================================= */

.yt-slider-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #eee;
}


.yt-slider-date {
    color: #999;
    font-size: 10px;
}


.yt-slider-watch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #252025;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: gap .25s ease, color .25s ease;
}


    .yt-slider-watch:hover {
        gap: 9px;
        color: #a65f78;
    }


    .yt-slider-watch svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }


/* =========================================================
   DOTS
========================================================= */

.yt-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
}


.yt-slider-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d9d4d7;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}


    .yt-slider-dot.active {
        width: 20px;
        border-radius: 100px;
        background: #252025;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .yt-slider-card {
        flex-basis: calc((100% - 28px) / 2);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .yt-tutorial-slider {
        margin: 50px auto;
        padding: 0 18px;
    }


    .yt-slider-header {
        align-items: center;
        margin-bottom: 20px;
    }


    .yt-slider-heading h2 {
        font-size: 28px;
    }


    .yt-slider-navigation {
        flex-shrink: 0;
    }


    .yt-slider-nav {
        width: 38px;
        height: 38px;
    }


    .yt-slider-track {
        gap: 14px;
    }


    /*
       One complete card + peek
       of the next card.
    */

    .yt-slider-card {
        flex-basis: calc(100% - 34px);
    }


    .yt-slider-content {
        padding: 18px;
    }


    .yt-slider-title {
        min-height: auto;
        font-size: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .yt-slider-card {
        flex-basis: calc(100% - 30px);
    }


    .yt-slider-heading h2 {
        font-size: 25px;
    }
}


.yt-slider-viewport.is-dragging {
    cursor: grabbing;
}

.yt-slider-viewport {
    cursor: grab;
}