/* VL Timeline Cards Widget
   -------------------------------------------------------
   Renders a parallax photo-card grid per meal period.
   Structure:
     .vl-timeline-cards-widget
       section.vl-tc-section  (300vh, one per meal period)
         .vl-tc-content       (absolute, fills section)
           .vl-tc-row-spacer  (100vh empty row)
           .vl-tc-row-center  (100vh, 2 cards)
           .vl-tc-row-bottom  (100vh, 2 cards)
   ------------------------------------------------------- */

/* Outer wrapper — absolute positioning so it layers behind sticky sidebar */
.vl-timeline-cards-widget {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Each meal section */
.vl-tc-section {
    height: 300vh;
    position: relative;
    overflow: visible;
}

/* Content grid inside each section */
.vl-tc-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 3 rows per section, each 100vh */
.vl-tc-row {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 15vw 0 10vw;
}

.vl-tc-row-spacer {
    /* Empty — just takes 100vh of scroll space */
}

/* Left column: card aligned top-left */
.vl-tc-col-left {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Right column: card pushed to bottom-right */
.vl-tc-col-right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

/* Z-index layers — "front" cards appear in front of the sticky title (z:1),
   "back" cards go behind it */
.vl-tc-z-front {
    position: relative;
    z-index: 2;
}

.vl-tc-z-back {
    position: relative;
    z-index: 0;
}

/* Card box */
.vl-tc-image-box {
    width: 70%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 2vh;
}

.vl-tc-image-box img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
}

.vl-tc-image-box h2 {
    font-size: 1vw;
    font-family: 'TanPearl', sans-serif;
    margin: 0;
    font-weight: 400;
    color: #222;
}

/* Elementor widget wrapper — needs absolute positioning and full-size */
.elementor-widget-vl-timeline-cards {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.elementor-widget-vl-timeline-cards > .elementor-widget-container {
    width: 100%;
    height: 100%;
}

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
    .vl-tc-row {
        padding: 0 8vw 0 6vw;
    }
    .vl-tc-image-box h2 {
        font-size: 1.5vw;
    }
}

/* ---- Mobile (≤767px) ---- */
@media (max-width: 767px) {
    .vl-tc-row {
        padding: 0 5vw;
    }
    .vl-tc-image-box {
        width: 85%;
    }
    .vl-tc-image-box h2 {
        font-size: 2.5vw;
    }
}
