/* ============================================
   JERRY PARK | PHOTOGRAPHY PORTFOLIO
   style.css — Full Responsive Enhanced Version
   ============================================ */

/* ---------- 0. CSS CUSTOM PROPERTIES ---------- */
:root {
    --color-bg:       #000;
    --color-surface:  #0a0a0a;
    --color-border:   #1a1a1a;
    --color-text:     #fff;
    --color-muted:    #888;
    --color-accent:   #2ecc71;
    --color-accent2:  #07ff1c;

    --font-display:   'Bebas Neue', sans-serif;
    --font-body:      'Montserrat', sans-serif;

    --nav-height:     68px;

    --transition-fast:  0.3s ease;
    --transition-med:   0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow:  1.2s cubic-bezier(0.16, 1, 0.3, 1);
    --easing-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Fluid type scale — adapts between 320px and 1440px */
    --title-scale:    clamp(22px, 4vw, 40px);
    --title-spacing:  clamp(6px, 2vw, 15px);
    --title-stretch:  1.8;
}

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
}

img, video {
    max-width: 100%;
    display: block;
}

/* ---------- 2. PAGE TRANSITION ---------- */
.page-transition {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    z-index: 9999;
    transition: opacity 0.7s ease-in-out, visibility 0.7s;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.page-transition.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-transition.fade-out {
    opacity: 0;
}

/* ---------- 3. NAVBAR ---------- */
.custom-navbar {
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    transition: padding var(--transition-fast), background-color var(--transition-fast);
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

.custom-navbar.scrolled {
    padding: 8px 0;
    background-color: rgba(0, 0, 0, 0.98);
    border-bottom-color: #222;
}

/* Hamburger — custom icon */
.navbar-toggler {
    border: none !important;
    padding: 4px 8px;
    outline: none !important;
    box-shadow: none !important;
    /* Min tap target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 22px;
    height: 22px;
}

/* Mobile collapse menu */
@media (max-width: 991px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background-color: rgba(0, 0, 0, 0.97);
        padding: 8px 0 16px;
        border-top: 1px solid #1a1a1a;
        margin-top: 8px;
    }
    .navbar-nav .nav-item {
        text-align: center;
    }
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-muted) !important;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 16px !important;
    position: relative;
    transition: color var(--transition-fast);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

@media (min-width: 992px) {
    .nav-link {
        padding: 6px 14px !important;
        min-height: auto;
    }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 80%;
        height: 1px;
        background: var(--color-text);
        transition: transform var(--transition-fast);
    }
    .nav-link:hover::after {
        transform: translateX(-50%) scaleX(1);
    }
}

.nav-link:hover {
    color: var(--color-text) !important;
}

/* ---------- 4. LOGO ---------- */
.logo {
    width: clamp(100px, 18vw, 220px);
    height: auto;
    transition: transform 0.4s var(--easing-bounce), opacity var(--transition-fast);
}

.logo:hover {
    transform: rotate(3deg) scale(1.04);
    opacity: 0.9;
}

/* ---------- 5. VIDEO HERO ---------- */
.video-hero {
    position: relative;
    /* svh handles the iOS Safari bar correctly */
    height: 100svh;
    height: 100vh; /* fallback */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 50%;
    min-width: 100%;
    min-height: 120%;
    width: auto;
    height: auto;
    transform: translateX(-50%);
    z-index: 0;
    object-fit: cover;
    will-change: transform;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.45) 50%,
        rgba(0,0,0,0.85) 100%
    );
    z-index: 1;
}

.video-hero .container {
    z-index: 2;
    position: relative;
    padding: 0 clamp(16px, 4vw, 40px);
}

/* ---------- 6. EDITORIAL SECTION ---------- */
.editorial {
    background: var(--color-bg);
    padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
}

/* ---------- 7. FLUID TITLE ---------- */
.editorial-title {
    font-family: var(--font-display);
    font-size: var(--title-scale);
    letter-spacing: var(--title-spacing);
    text-align: center;
    margin-bottom: 12px;
    transform: scaleX(var(--title-stretch)) scaleY(1);
    display: inline-block;
    width: 100%;
    text-transform: uppercase;
    animation: titleReveal 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: scaleX(var(--title-stretch)) scaleY(1) translateY(24px);
    }
    to {
        opacity: 1;
        transform: scaleX(var(--title-stretch)) scaleY(1) translateY(0);
    }
}

.editorial-subtitle {
    text-align: center;
    color: var(--color-muted);
    margin: 0 auto clamp(28px, 5vw, 60px);
    max-width: min(800px, 90vw);
    line-height: 1.8;
    font-size: clamp(12px, 1.3vw, 15px);
    animation: fadeUp 1s 0.4s ease both;
    padding: 0 16px;
}

/* ---------- 8. EDITORIAL GRID ---------- */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
    gap: 6px;
    width: 92%;
    max-width: 1440px;
    margin: 40px auto;
    padding: 0;
}

.editorial-item {
    overflow: hidden;
    position: relative;
    background-color: #0d0d0d;
    will-change: transform;
}

.editorial-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0);
    transition: border-color 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.editorial-item:hover::after {
    border-color: rgba(255,255,255,0.12);
}

.editorial-item img,
.editorial-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.78);
    transition:
        transform 0.9s cubic-bezier(0.2, 1, 0.3, 1),
        filter 0.6s ease;
    display: block;
}

.editorial-item:hover img,
.editorial-item:hover video {
    transform: scale(1.07);
    filter: brightness(1);
}

/* Disable scale on touch (prevents stuck hover) */
@media (hover: none) {
    .editorial-item:hover img,
    .editorial-item:hover video {
        transform: scale(1);
        filter: brightness(0.85);
    }
    .editorial-item:hover::after {
        border-color: transparent;
    }
}

/* Size variants */
.editorial-item.tall  { grid-row: span 2; }
.editorial-item.wide  { grid-column: span 2; }
.editorial-item.big   { grid-row: span 3; }

/* ---------- 9. REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0 !important;
    transform: translateY(36px) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.06s; }
.reveal:nth-child(5) { transition-delay: 0.12s; }
.reveal:nth-child(6) { transition-delay: 0.20s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .editorial-title, .editorial-subtitle { animation: none; }
}

/* ---------- 10. CLIENT ARCHIVE / CTA ---------- */
.client-archive {
    background-color: var(--color-bg);
    position: relative;
    z-index: 5;
    padding: clamp(36px, 7vw, 90px) 0;
    overflow: hidden;
}

.client-archive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    pointer-events: none;
}

.archive-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(15px, 2.2vw, 28px);
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
    line-height: 1.4;
    padding: 0 16px;
}

.archive-subtitle {
    color: var(--color-muted);
    font-size: clamp(11px, 1.2vw, 13px);
    font-style: italic;
    letter-spacing: 2px;
}

/* ---------- 11. BUTTONS ---------- */
.custom-btn {
    border-radius: 2px;
    padding: clamp(10px, 1.5vw, 12px) clamp(18px, 3vw, 28px);
    font-size: clamp(10px, 1.1vw, 11px);
    font-weight: 600;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--color-text);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.custom-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-text);
    transform: translateX(-101%);
    transition: transform 0.35s ease;
    z-index: -1;
}

.custom-btn:hover {
    color: var(--color-bg);
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.custom-btn:hover::before {
    transform: translateX(0);
}

/* ---------- 12. HERO CAROUSEL ---------- */
#heroCarousel {
    height: clamp(40vh, 60vh, 70vh);
    background-color: var(--color-bg);
}

.hero-img {
    height: clamp(42vh, 65vh, 75vh);
    object-fit: cover;
    filter: brightness(0.6);
    width: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.carousel-caption {
    bottom: clamp(15%, 28%, 32%);
    z-index: 2;
    padding: 0 clamp(16px, 4vw, 40px);
}

.hero-main-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 8rem);
    letter-spacing: clamp(3px, 1vw, 10px);
    margin-bottom: 0;
    animation: titleReveal 1s ease both;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(11px, 1.5vw, 18px);
    letter-spacing: clamp(1px, 0.5vw, 2px);
    font-weight: 300;
    text-transform: uppercase;
}

.carousel-indicators [data-bs-target] {
    width: 32px;
    height: 2px;
}

/* ---------- 13. AGOTADO BANNER ---------- */
.agotado-banner-alt {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    margin: 20px auto;
    max-width: min(960px, 94vw);
    border-radius: 4px;
    color: var(--color-text);
    animation: fadeUp 0.8s ease both;
    padding: clamp(18px, 3vw, 32px);
}

.agotado-banner-alt h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 1px;
    color: #ffd1d1;
}

.agotado-banner-alt p {
    margin: 0;
    color: #ddd;
    font-size: clamp(12px, 1.3vw, 14px);
}

.emoji-no-glow { text-shadow: none !important; }
.agotado-content { flex: 1 1 60%; }

.agotado-pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 12px 20px;
    margin-top: 10px;
    font-weight: 600;
    color: #e6e6e6;
}

.agotado-pill span { display: inline-flex; align-items: center; gap: 8px; }

.agotado-banner h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #ffe5e5;
}

.agotado-banner p {
    margin-bottom: 10px;
    color: #f0e0e0;
    font-size: clamp(12px, 1.3vw, 14px);
}

.icon-row {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    letter-spacing: 0.4rem;
}

/* ---------- 14. WHATSAPP FLOAT ---------- */
.whatsapp-float {
    position: fixed;
    width: clamp(44px, 6vw, 58px);
    height: clamp(44px, 6vw, 58px);
    bottom: clamp(14px, 3vw, 32px);
    right: clamp(14px, 3vw, 32px);
    background-color: var(--color-bg);
    border: 1px solid #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.4s var(--easing-bounce), box-shadow 0.4s ease;
    box-shadow: 0 8px 28px rgba(0,0,0,0.6);
    touch-action: manipulation;
}

.whatsapp-icon {
    width: clamp(22px, 3.5vw, 30px);
    height: clamp(22px, 3.5vw, 30px);
    fill: var(--color-text);
    transition: transform var(--transition-fast);
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    z-index: -1;
    animation: pulse-bw 2.5s infinite;
}

@keyframes pulse-bw {
    0%   { transform: scale(1);   opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0;   }
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.8);
}

.whatsapp-float:hover .whatsapp-icon { transform: scale(1.1); }

/* ---------- 15. SOCIAL ICONS ---------- */
.iconos-sociales {
    width: clamp(30px, 4.5vw, 42px);
    height: auto;
    min-width: 44px; /* tap target */
    padding: 4px;
    margin: 0 clamp(6px, 1.5vw, 14px);
    transition: transform 0.35s var(--easing-bounce), opacity var(--transition-fast), filter var(--transition-fast);
    opacity: 0.6;
    filter: grayscale(1);
}

.iconos-sociales:hover {
    transform: translateY(-4px) scale(1.15);
    opacity: 1;
    filter: grayscale(0);
}

/* ---------- 16. FOOTER ---------- */
footer {
    border-top: 1px solid var(--color-border);
}

footer h3 {
    font-family: var(--font-display);
    letter-spacing: 6px;
    font-size: clamp(15px, 2vw, 22px);
    color: var(--color-muted);
}

.small-text {
    font-size: 12px;
    color: #444;
    letter-spacing: 1px;
}

/* ---------- 17. PRICING ---------- */
.precio { color: var(--color-accent) !important; font-weight: 600; }
.precio-verde { color: var(--color-accent); }
#lista-carrito td:nth-child(2) { color: var(--color-accent); font-weight: 600; }
.btn-light:hover { background-color: var(--color-accent); border-color: var(--color-accent); color: #000; }

/* ---------- 18. SERVICIOS LINKS ---------- */
.editorial a {
    color: var(--color-text);
    text-decoration: none;
    display: inline-block;
    transition: color var(--transition-fast), transform var(--transition-fast);
    position: relative;
}

.editorial a:hover {
    color: rgba(255,255,255,0.7);
    transform: scale(1.02);
}

/* ---------- 19. VIDEO HERO TITLE OVERRIDE ---------- */
.video-hero .editorial-title {
    font-size: clamp(26px, 5vw, 52px);
    letter-spacing: clamp(6px, 2vw, 20px);
    transform: scaleX(clamp(1.1, 0.9 + 0.8vw, 1.5)) scaleY(1);
    color: var(--color-text);
    text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}

/* ---------- 20. UTILITY ANIMATIONS ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- 21. CARRITO ---------- */
.cart-badge {
    background: var(--color-accent2);
    color: #000;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: top;
    margin-left: -5px;
}

/* ---------- 22. MODAL ---------- */
.modal-content { border: none; overflow: hidden; }
.modal-backdrop.show { opacity: 0.88; }

/* ---------- 23. RESPONSIVE SYSTEM ----------

   Breakpoints:
   xs  : ≤380px  — teléfonos muy pequeños (iPhone SE 1st gen)
   sm  : ≤480px  — teléfonos pequeños
   md  : ≤576px  — teléfonos medianos
   lg  : ≤768px  — teléfonos grandes / tablets vertical
   xl  : ≤992px  — tablets horizontal / laptop pequeña
   xxl : ≥1440px — desktops grandes
   landscape     — teléfonos en horizontal
----------------------------------------- */

/* ---- TABLET HORIZONTAL / LAPTOP (≤992px) ---- */
@media (max-width: 992px) {
    :root {
        --title-scale:   clamp(20px, 3.5vw, 34px);
        --title-spacing: clamp(5px, 1.5vw, 10px);
        --title-stretch: 1.5;
    }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
        width: 96%;
        gap: 5px;
    }

    /* Big collapses to 2-row tall */
    .editorial-item.big {
        grid-row: span 2;
        grid-column: span 1;
    }

    .video-hero { height: 80vh; }
}

/* ---- TABLET PORTRAIT / LARGE PHONE (≤768px) ---- */
@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 210px;
        width: 100%;
        gap: 4px;
        margin: 16px auto;
    }

    .editorial-item.wide  { grid-column: span 2; }
    .editorial-item.tall  { grid-row: span 1; }
    .editorial-item.big   { grid-row: span 1; grid-column: span 2; }

    .video-hero { height: 75vh; }

    .client-archive { padding: 44px 0; }

    #heroCarousel { height: 46vh; }
    .hero-img { height: 48vh; }
    .carousel-caption { bottom: 20%; }
}

/* ---- MEDIUM PHONE (≤576px) ---- */
@media (max-width: 576px) {
    :root {
        --title-scale:   clamp(18px, 5.5vw, 28px);
        --title-spacing: clamp(4px, 1.5vw, 9px);
        --title-stretch: 1.3;
    }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 175px;
        width: 100%;
        gap: 3px;
        margin: 10px auto;
    }

    .editorial-item.wide  { grid-column: span 2; }
    .editorial-item.tall  { grid-row: span 1; }
    .editorial-item.big   { grid-row: span 1; grid-column: span 1; }

    .video-hero { height: 65vh; }

    .editorial { padding: 72px 0 36px; }
    .editorial-subtitle { padding: 0 20px; margin-bottom: 28px; }

    .client-archive { padding: 32px 0; }

    #heroCarousel { height: 42vh; }
    .hero-img { height: 44vh; }
    .carousel-caption { bottom: 16%; padding: 0 16px; }

    /* Stack CTA buttons */
    .client-archive .d-flex {
        flex-direction: column;
        align-items: center;
    }
    .custom-btn { width: 100%; max-width: 280px; }

    /* Agotado */
    .agotado-content,
    .agotado-pill { flex: 1 1 100%; text-align: center; }
    .agotado-pill { margin-top: 12px; }
}

/* ---- SMALL PHONE (≤480px) ---- */
@media (max-width: 480px) {
    :root {
        --title-scale:   clamp(16px, 6.5vw, 24px);
        --title-spacing: clamp(3px, 1.2vw, 7px);
        --title-stretch: 1.2;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 4px;
        margin: 8px auto;
    }

    /* All variants collapse to single block */
    .editorial-item.wide,
    .editorial-item.tall,
    .editorial-item.big {
        grid-column: span 1;
        grid-row: span 1;
    }

    .video-hero { height: 60vh; }

    .video-hero .editorial-title {
        font-size: clamp(20px, 7.5vw, 30px);
        letter-spacing: clamp(3px, 1.5vw, 8px);
        transform: scaleX(1.15) scaleY(1);
    }

    .editorial { padding: 68px 0 28px; }

    #heroCarousel { height: 38vh; }
    .hero-img { height: 40vh; }
    .carousel-caption { bottom: 14%; }

    .custom-navbar { padding: 8px 0; }
    .logo { width: clamp(100px, 28vw, 160px); }
}

/* ---- EXTRA SMALL PHONE (≤380px) — iPhone SE, Galaxy A01 ---- */
@media (max-width: 380px) {
    :root {
        --title-scale:   clamp(14px, 6vw, 20px);
        --title-spacing: clamp(2px, 1vw, 5px);
        --title-stretch: 1.1;
    }

    .editorial-grid {
        grid-auto-rows: 185px;
        gap: 3px;
    }

    .video-hero { height: 55vh; }

    .video-hero .editorial-title {
        font-size: clamp(17px, 7vw, 24px);
    }

    .custom-btn { padding: 10px 14px; font-size: 10px; }
}

/* ---- LANDSCAPE PHONES (corto y ancho) ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .video-hero {
        height: 95vw;
        max-height: 90vh;
    }

    .editorial-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 170px;
        gap: 4px;
    }

    .editorial-item.tall { grid-row: span 2; }
    .editorial-item.wide { grid-column: span 2; }
    .editorial-item.big  { grid-row: span 2; }

    .carousel-caption { bottom: 8%; }

    /* Scrollable nav on landscape */
    .navbar-collapse.show {
        max-height: 50vh;
        overflow-y: auto;
    }

    .editorial { padding: 60px 0 20px; }
}

/* ---- LARGE DESKTOPS (≥1440px) ---- */
@media (min-width: 1440px) {
    .editorial-grid {
        grid-auto-rows: 320px;
        gap: 8px;
    }
}

/* ---- ULTRA-WIDE (≥1920px) ---- */
@media (min-width: 1920px) {
    .editorial-grid {
        grid-auto-rows: 380px;
        gap: 10px;
    }
}
