/* ==========================================================
   PROJECTS REELS
   Spaces by MTC
========================================================== */

#projects{
    padding:140px 0;
    background:#F7F2EA;
    overflow:hidden;
}

/* =============================
   HEADER
============================= */

#projects .section-header{
    width:min(1400px,92%);
    margin:0 auto 70px;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:40px;
}

#projects .section-label{
    display:inline-block;
    color:#C2E03A;
    font-size:12px;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:5px;
    margin-bottom:20px;
}

#projects .section-title{
    font-family:'Cormorant Garamond',serif;
    font-size:72px;
    line-height:.95;
    font-weight:300;
    color:#171717;
    margin:0;
}

#projects .section-title em{
    color:#C2E03A;
    font-style:italic;
}

.view-all{
    text-decoration:none;
    color:#171717;
    font-size:13px;
    letter-spacing:3px;
    text-transform:uppercase;
    transition:.35s;
}

.view-all:hover{
    color:#C2E03A;
}

/* =============================
   HORIZONTAL SCROLLER
============================= */

.projects-reels{

    display:flex;
    flex-wrap:nowrap;

    gap:26px;

    overflow-x:auto;
    overflow-y:hidden;

    padding:0 4vw 20px;

    scroll-snap-type:x mandatory;

    scroll-behavior:smooth;

    -webkit-overflow-scrolling:touch;

}

/* Scrollbar */

.projects-reels::-webkit-scrollbar{

    height:8px;

}

.projects-reels::-webkit-scrollbar-track{

    background:#e7e2d8;

    border-radius:20px;

}

.projects-reels::-webkit-scrollbar-thumb{

    background:#C2E03A;

    border-radius:20px;

}

.projects-reels{

    scrollbar-width:thin;

    scrollbar-color:#C2E03A #e7e2d8;

}

/* =============================
   CARD
============================= */

.reel-item{

    flex:0 0 280px;

    width:280px;

    position:relative;

    overflow:hidden;

    border-radius:26px;

    text-decoration:none;

    scroll-snap-align:start;

    box-shadow:

    0 20px 60px rgba(0,0,0,.12);

    transition:.45s;

}

.reel-item:hover{

    transform:translateY(-10px);

    box-shadow:

    0 35px 90px rgba(0,0,0,.18);

}

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

.reel-item video{

    width:100%;

    height:520px;

    display:block;

    object-fit:cover;

    transition:.55s;

}

.reel-item:hover video{

    transform:scale(1.06);

}

/* =============================
   OVERLAY
============================= */

.reel-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:28px;

    color:white;

    background:linear-gradient(

        rgba(0,0,0,0),

        rgba(0,0,0,.15),

        rgba(0,0,0,.75)

    );

    opacity:0;

    transition:.4s;

}

.reel-item:hover .reel-overlay{

    opacity:1;

}

.reel-overlay span{

    font-size:11px;

    letter-spacing:3px;

    text-transform:uppercase;

    color:#C2E03A;

    margin-bottom:12px;

}

.reel-overlay h3{

    margin:0;

    font-family:'Cormorant Garamond',serif;

    font-size:34px;

    font-weight:400;

    line-height:1.1;

}

/* =============================
   PLAY ICON
============================= */

.reel-item::before{

    content:"▶";

    position:absolute;

    top:20px;

    right:20px;

    width:52px;

    height:52px;

    border-radius:50%;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(12px);

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:18px;

    z-index:5;

    transition:.35s;

}

.reel-item:hover::before{

    transform:scale(1.1);

    background:#C2E03A;

    color:#111;

}

/* =============================
   FADE EDGES
============================= */

/* #projects{

    position:relative;

}

#projects::before,

#projects::after{

    content:"";

    position:absolute;

    top:0;

    bottom:0;

    width:120px;

    pointer-events:none;

    z-index:10;

}

#projects::before{

    left:0;

    background:linear-gradient(

        to right,

        #F7F2EA,

        transparent

    );

}

#projects::after{

    right:0;

    background:linear-gradient(

        to left,

        #F7F2EA,

        transparent

    );

} */

/* =============================
   MOBILE
============================= */

@media(max-width:992px){

#projects{

    padding:100px 0;

}

#projects .section-header{

    flex-direction:column;

    align-items:flex-start;

    gap:25px;

}

#projects .section-title{

    font-size:54px;

}

.reel-item{

    flex:0 0 240px;

    width:240px;

}

.reel-item video{

    height:430px;

}

}

@media(max-width:768px){

.projects-reels{

    gap:18px;

    padding-left:20px;

    padding-right:20px;

}

.reel-item{

    flex:0 0 210px;

    width:210px;

}

.reel-item video{

    height:375px;

}

#projects .section-title{

    font-size:42px;

}

.reel-overlay h3{

    font-size:26px;

}

}