/* ===== PREMIUM HORIZONTAL SLIDER ===== */

.magnav-premium-slider {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* TRACK */
.magnav-slider-track {
    display: flex;
    will-change: transform;
}

/* SLIDE */
.magnav-slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative; /* 🔥 REQUIRED for overlay */
}

/* IMAGE RATIO LOCK (1280 × 750) */
.magnav-slide-image {
    display: block;
    width: 100%;
    height: 750px;
    max-height: 750px;
    aspect-ratio: 1280 / 750;
    overflow: hidden;
    position: relative;
}

.magnav-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* DARK GRADIENT OVERLAY */
.magnav-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.65) 85%
    );
    z-index: 1;
    pointer-events: none;
}

/* TITLE OVER IMAGE */


.magnav-slide-title {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    z-index: 2;
    margin: 0;
}

.magnav-slide-title h2 {
    font-size: clamp(1.3rem, 2.3vw, 2.3rem);
    line-height: 1.25;
    margin: 0;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    max-width: 95%;
    word-wrap: break-word;
}

/* LINKS */
.magnav-premium-slider a {
    text-decoration: none !important;
    color: inherit;
}

/* HOVER */
.magnav-slide:hover h2 {
    text-decoration: underline 1px;
    text-underline-offset: 6px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .magnav-slide-title {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .magnav-slide-title h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .magnav-slide-title h2 {
        font-size: 18px;
    }
    
    .magnav-slide-image {
        aspect-ratio: auto;
        height: 500px; /* 👈 ideal mobile hero height */
    }
}



/**********************************************************************************************************************************************/



/* ===============================
   MAGNAV EDITORIAL GRID (FINAL)
================================ */

/* ===== WRAPPER ===== */
.magnav-editorial-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ===== TOP GRID ===== */
.magnav-editorial-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    margin-bottom: 26px;
}

/* LEFT BIG POST */
.magnav-hero {
    display: grid;
    grid-template-rows: auto 1fr;
}

.magnav-hero img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.magnav-hero h3 {
    margin-top: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

/* RIGHT STACK (LOCKED IMAGE HEIGHTS) */
.magnav-side-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 22px;
}

.magnav-side {
    display: grid;
    grid-template-rows: auto 1fr;
}

.magnav-side img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.magnav-side h4 {
    margin-top: 8px;
    font-size: 0.95rem;
}

/* ===== BOTTOM GRID ===== */
.magnav-editorial-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.magnav-bottom {
    display: grid;
    grid-template-rows: auto 1fr;
}

.magnav-bottom img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.magnav-bottom h4 {
    margin-top: 8px;
    font-size: 0.95rem;
}

/* ===== LINKS ===== */
.magnav-editorial-wrapper a {
    text-decoration: none;
    color: inherit;
}

.magnav-editorial-wrapper a:hover h3,
.magnav-editorial-wrapper a:hover h4 {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ===============================
   TABLET (2 COLUMNS)
================================ */
@media (max-width: 1024px) {

    .magnav-editorial-top {
        grid-template-columns: 1fr 1fr;
    }

    .magnav-editorial-bottom {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===============================
   MOBILE (1 COLUMN, CLEAN)
================================ */
@media (max-width: 768px) {

    .magnav-editorial-wrapper {
        padding: 0 16px;
    }

    .magnav-editorial-top,
    .magnav-editorial-bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .magnav-editorial-wrapper img {
        aspect-ratio: 4 / 3;
        border-radius: 6px;
    }
}

