/* ==========================================================
   JT MAISON — Projects List (Carousel) Widget
   ========================================================== */

.jtm-project-list {
    width: 100%;
    overflow: hidden;
}

.jtm-project-list__track {
    display: flex;
    flex-direction: column;
}

.jtm-project-list__item {
    position: relative;
    width: 100%;
    min-height: var(--desktop-height, 500px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    box-sizing: border-box;
    text-decoration: none !important;
    overflow: hidden;
}

/* Hover effect on link */
a.jtm-project-list__item {
    transition: transform 0.3s ease;
}

/* Dark gradient from bottom */
.jtm-project-list__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.jtm-project-list__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
}

.jtm-project-list__tag {
    font-family: var(--jtm-font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* Tag Styles */
.jtm-project-list__tag--light {
    background: var(--jtm-white);
    color: var(--jtm-dark);
}

.jtm-project-list__tag--dark {
    background: rgba(30,30,30,0.8);
    color: var(--jtm-white);
}

.jtm-project-list__title {
    font-family: var(--jtm-font-ui);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: bold;
    color: var(--jtm-white);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.jtm-project-list__desc {
    font-family: var(--jtm-font-ui);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--jtm-white);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

.jtm-project-list__btn {
    font-family: var(--jtm-font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--jtm-white);
    text-transform: uppercase;
    margin-top: 24px;
    display: inline-block;
}

/* Responsive Mobile Carousel */
@media (max-width: 768px) {
    .jtm-project-list {
        padding: 40px 0; /* Some top/bottom padding to breathe */
    }

    .jtm-project-list__track {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0 24px;
    }
    
    .jtm-project-list__track::-webkit-scrollbar {
        display: none;
    }
    
    .jtm-project-list__item {
        flex: 0 0 85%; /* Let the next item peek */
        min-height: 450px !important; /* Standard height on mobile */
        scroll-snap-align: center;
        padding: 40px 24px;
        margin-right: 15px; /* Gap between cards */
    }
    
    .jtm-project-list__item:last-child {
        margin-right: 24px; /* Space at end of scroll */
    }
    
    .jtm-project-list__overlay {
        height: 80%;
    }
    
    .jtm-project-list__title {
        font-size: 24px;
    }
    
    .jtm-project-list__desc {
        font-size: 11px;
    }
}
