/* GM Artikler — Editorial inspiration overview
   Cinematic edition: scroll-reveals, ken burns, gradient blobs,
   magnetic tilt, grain texture, category-tinted accents.
   Scoped under .gma-explorer to survive the Foodica theme.            */

/* ============================================================
   Forside layout — skjul tema-sidebar, gør indhold full-width
   Aktiveres via body class .has-gma-forside (sat af PHP)
   ============================================================ */
body.has-gma-forside #secondary,
body.has-gma-forside #sidebar,
body.has-gma-forside .sidebar,
body.has-gma-forside .widget-area,
body.has-gma-forside aside[id*="sidebar"],
body.has-gma-forside aside.widget,
body.has-gma-forside .content-sidebar-wrap > aside,
body.has-gma-forside .site-content > aside,
body.has-gma-forside .secondary-sidebar { display: none !important; }

/* Skjul tema'ets duplikerede side-titel — vores hero har sin egen h1.
   Daekker Foodica, Twenty*-themes, GeneratePress, Astra, Kadence, m.fl. */
body.has-gma-forside .entry-header,
body.has-gma-forside .page-header,
body.has-gma-forside .post-header,
body.has-gma-forside .article-header,
body.has-gma-forside .entry-title,
body.has-gma-forside .page-title,
body.has-gma-forside .post-title,
body.has-gma-forside .single-title,
body.has-gma-forside .article-title,
body.has-gma-forside h1.entry-title,
body.has-gma-forside h1.page-title,
body.has-gma-forside h1.post-title,
body.has-gma-forside header.entry-header,
body.has-gma-forside header.page-header,
body.has-gma-forside header.post-header,
body.has-gma-forside article > header,
body.has-gma-forside article > .entry-header,
body.has-gma-forside .site-content > header,
body.has-gma-forside main > header,
body.has-gma-forside #main > header,
body.has-gma-forside #primary > header { display: none !important; }

/* Tving fuld bredde — temaets .wrap/.container kan klemme indholdet */
body.has-gma-forside .wrap,
body.has-gma-forside .container,
body.has-gma-forside .site-content .container,
body.has-gma-forside article.page,
body.has-gma-forside article.type-page,
body.has-gma-forside .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Full-width main content */
body.has-gma-forside .site-content,
body.has-gma-forside .content-sidebar-wrap,
body.has-gma-forside .site-main,
body.has-gma-forside #primary,
body.has-gma-forside .content-area,
body.has-gma-forside #content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Foodica-specifikke: wrap-container kan begraense width — bryd ud */
body.has-gma-forside .wrap,
body.has-gma-forside main.site-main {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Vores forside skal selv kontrollere maks-bredde for laesbarhed */
body.has-gma-forside .gma-explorer,
body.has-gma-forside .gma-forside {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 700px) {
    body.has-gma-forside .gma-explorer,
    body.has-gma-forside .gma-forside {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* SEO/A11y helper: image visible to crawlers + screen readers but not visually */
.gma-explorer .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.gma-explorer {
    --gma-fg:        #14110f;
    --gma-muted:     #6b6b6b;
    --gma-bg:        #faf8f3;
    --gma-card-bg:   #fff;
    --gma-line:      #e7e3da;
    --gma-accent:    #b08755;
    --gma-accent-2:  #1a1a1a;

    /* Category accent tokens — applied via [data-slug] on .gma-tag */
    --gma-cat-rejser:        #2b7a78;  /* deep teal */
    --gma-cat-restauranter:  #b13a3a;  /* warm red */
    --gma-cat-hoteller:      #c08b3f;  /* gold */

    --gma-radius:    20px;
    --gma-shadow:    0 12px 32px -18px rgba(20,17,15,.28), 0 2px 6px rgba(20,17,15,.05);
    --gma-shadow-h:  0 30px 70px -25px rgba(20,17,15,.45), 0 6px 14px rgba(20,17,15,.08);
    --gma-font:      'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gma-serif:     'Playfair Display', 'Georgia', serif;

    position: relative;
    margin: 0 auto;
    padding: 0;
    font-family: var(--gma-font);
    color: var(--gma-fg);
    line-height: 1.5;
    box-sizing: border-box;
    overflow: visible;
}
.gma-explorer *, .gma-explorer *::before, .gma-explorer *::after { box-sizing: inherit; }
.gma-explorer svg { width: 1em; height: 1em; flex-shrink: 0; }

/* ============================================================
   FILM-GRAIN TEXTURE — subtle editorial finish
   ============================================================ */
.gma-explorer::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .06;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   REVEAL ANIMATIONS (driven by IntersectionObserver in JS)
   ============================================================ */
.gma-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--gma-i, 0) * 70ms);
    will-change: transform, opacity;
}
.gma-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes gma-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   HERO
   ============================================================ */
.gma-hero {
    position: relative;
    margin: 0 0 56px;
    isolation: isolate;
}

/* Floating gradient blobs behind the hero */
.gma-hero-blobs {
    position: absolute;
    inset: -40px -20px auto -20px;
    height: 580px;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    filter: blur(70px);
    opacity: .35;
}
.gma-hero-blobs span {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}
.gma-hero-blobs span:nth-child(1) {
    width: 320px; height: 320px;
    background: radial-gradient(circle, #c08b3f 0%, transparent 70%);
    top: -60px; left: 10%;
    animation: gma-blob-1 36s ease-in-out infinite;
}
.gma-hero-blobs span:nth-child(2) {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #2b7a78 0%, transparent 70%);
    top: 100px; right: 8%;
    animation: gma-blob-2 44s ease-in-out infinite;
}
.gma-hero-blobs span:nth-child(3) {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #b13a3a 0%, transparent 70%);
    bottom: -40px; left: 38%;
    animation: gma-blob-3 52s ease-in-out infinite;
}
/* Mindre bevaegelse for et roligere visuelt udtryk */
@keyframes gma-blob-1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(15px,-12px) scale(1.05); } }
@keyframes gma-blob-2 { 0%,100% { transform: translate(0,0) scale(1.02); } 50% { transform: translate(-18px,15px) scale(.98); } }
@keyframes gma-blob-3 { 0%,100% { transform: translate(0,0) scale(.98); } 50% { transform: translate(12px,12px) scale(1.04); } }

.gma-hero-intro {
    position: relative;
    text-align: center;
    margin: 0 auto 36px;
    max-width: 820px;
    padding: 32px 16px 0;
}
.gma-hero-intro h2 {
    font-family: var(--gma-serif);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.025em;
    color: var(--gma-fg);
    line-height: 1.04;
}
.gma-hero-intro h2 .gma-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    white-space: nowrap;
}
.gma-hero-intro h2 .gma-word > span {
    display: inline-block;
    transform: translateY(110%);
    animation: gma-word-rise .9s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: calc(var(--gma-i, 0) * 90ms + 200ms);
}
@keyframes gma-word-rise { to { transform: translateY(0); } }

.gma-hero-intro h2 em {
    font-style: italic;
    color: var(--gma-accent);
    position: relative;
}
.gma-hero-intro h2 em::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 3px;
    background: var(--gma-accent);
    transform-origin: left;
    transform: scaleX(0);
    animation: gma-underline 1s cubic-bezier(.2,.7,.2,1) forwards 1.1s;
}
@keyframes gma-underline { to { transform: scaleX(1); } }

.gma-hero-intro p {
    margin: 0;
    color: var(--gma-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    animation: gma-fade-up .8s ease-out backwards 1.3s;
}

.gma-hero-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 22px;
    min-height: 540px;
    position: relative;
}
.gma-hero-main,
.gma-hero-card {
    position: relative;
    border-radius: var(--gma-radius);
    overflow: hidden;
    background-color: #1a1a1a;
    color: #fff;
    isolation: isolate;
    box-shadow: var(--gma-shadow);
    transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease;
    cursor: pointer;
}
.gma-hero-main { grid-row: span 2; min-height: 540px; }
.gma-hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 22px;
}
.gma-hero-card { min-height: 260px; }

/* Hero uden featured image — warmer gradient fallback i stedet for sort.
   Har ingen <img> der definerer hoejde, saa giv den en aspect-ratio. */
.gma-mag-hero-img--noimg {
    background-image: linear-gradient(135deg, #efe5cf 0%, #c08b3f 50%, #8e6c40 100%) !important;
    aspect-ratio: 4 / 5;
}
.gma-mag-hero-img--noimg::after { display: none; }   /* drop ken-burns paa gradient */

/* Ken Burns background image — slowly zooms + pans */
.gma-hero-main,
.gma-hero-card {
    background-size: cover;
    background-position: center;
}
.gma-hero-main::after,
.gma-hero-card::after {
    /* the ken burns layer */
    content: '';
    position: absolute; inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    animation: gma-ken-burns 26s ease-in-out infinite alternate;
    z-index: 0;
}
.gma-hero-card::after { animation-duration: 32s; animation-delay: -3s; }
@keyframes gma-ken-burns {
    0%   { transform: scale(1.0) translate(0,0); }
    100% { transform: scale(1.05) translate(-0.8%,-0.8%); }
}

.gma-hero-main:hover,
.gma-hero-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gma-shadow-h);
}

.gma-hero-main::before,
.gma-hero-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.45) 65%, rgba(0,0,0,.9) 100%);
    z-index: 2;
}
.gma-hero-link {
    position: absolute; inset: 0;
    z-index: 5;
    text-indent: -9999px;
    overflow: hidden;
}
.gma-hero-content {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding: 36px 36px 32px;
    display: flex; flex-direction: column; gap: 12px;
    height: 100%;
    justify-content: flex-end;
}
.gma-hero-main h3 {
    font-family: var(--gma-serif);
    font-size: clamp(1.75rem, 3.4vw, 2.8rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.gma-hero-card h4 {
    font-family: var(--gma-serif);
    font-size: clamp(1.15rem, 1.9vw, 1.55rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.gma-hero-excerpt {
    font-size: 1rem;
    opacity: .92;
    margin: 0;
    max-width: 58ch;
    line-height: 1.55;
}

/* CTA on hero */
.gma-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 0;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    width: max-content;
}
.gma-hero-cta svg {
    transition: transform .35s ease;
}
.gma-hero-main:hover .gma-hero-cta svg { transform: translateX(6px); }

/* Hero background video — covers the still image */
.gma-hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.gma-hero-video iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}
.gma-hero-main.has-video-bg::after {
    /* Disable ken burns when video is playing */
    animation: none;
    background: rgba(0,0,0,.22);
}

/* ============================================================
   STAT BAR
   ============================================================ */
.gma-statbar {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    margin: 0 0 40px;
    padding: 24px 20px;
    position: relative;
}
.gma-statbar::before,
.gma-statbar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--gma-line);
}
.gma-statbar::before { left: max(20px, calc(50% - 280px)); }
.gma-statbar::after  { right: max(20px, calc(50% - 280px)); }
.gma-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    position: relative;
}
.gma-stat strong {
    font-family: var(--gma-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gma-fg);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.gma-stat span {
    font-size: .78rem;
    color: var(--gma-muted);
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-top: 8px;
    font-weight: 600;
}

/* ============================================================
   FILTER BAR — glassmorphism with sliding indicator
   ============================================================ */
.gma-filterbar-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 -8px 32px;
    padding: 14px 8px;
    background: linear-gradient(180deg, rgba(250,248,243,.96) 0%, rgba(250,248,243,.86) 100%);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(231,227,218,.6);
    transition: padding .3s ease, box-shadow .3s ease;
}
.gma-filterbar-wrap.is-stuck {
    padding: 10px 8px;
    box-shadow: 0 6px 22px -12px rgba(20,17,15,.18);
}

.gma-filterbar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}
.gma-filterbar::-webkit-scrollbar { display: none; }

.gma-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--gma-line);
    color: var(--gma-fg);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color .35s ease, border-color .35s ease, transform .25s ease, background .35s ease;
}
.gma-chip em {
    font-style: normal;
    font-size: .78rem;
    color: var(--gma-muted);
    background: var(--gma-bg);
    padding: 2px 8px;
    border-radius: 999px;
    transition: background .35s ease, color .35s ease;
}
.gma-chip:hover {
    border-color: var(--gma-accent);
    color: var(--gma-accent);
    transform: translateY(-1px);
}
.gma-chip.is-active {
    color: #fff;
    background: var(--gma-accent-2);
    border-color: var(--gma-accent-2);
    box-shadow: 0 8px 18px -10px rgba(20,17,15,.55);
}
.gma-chip.is-active em { background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }

/* Chip staggered entry */
.gma-chip {
    opacity: 0;
    transform: translateY(8px);
    animation: gma-fade-up .55s ease-out forwards;
    animation-delay: calc(var(--gma-i, 0) * 60ms + 100ms);
}

/* ============================================================
   MAGASIN — editorial forside (ELLE/Vogue inspired)
   ============================================================ */
.gma-mag {
    --mag-ink: #14110f;
    --mag-cream: #faf6ef;
    --mag-line: #2a221c;
    --mag-accent: var(--gma-accent, #b08755);
}

/* MAG HERO — two-column editorial spread.
   *** DEN ÆGTE FIX ***: Foodica-temaet saetter `header { max-height: 420px }`
   paa ALLE <header>. Vores hero er et <header>, saa den blev capped til 420px
   og indholdet fl‌oed ud og overlappede alt nedenunder. max-height:none loeser
   det endeligt — DET var aarsagen hele tiden (ligegyldigt om grid/flex/table). */
.gma-mag-hero {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 0 120px !important;
    position: relative;
    display: flow-root !important;
    isolation: isolate;
}
/* DEFENSIVT — sørg for at vores root + sektioner altid er block-flow,
   uafhængigt af om Elementor/page-builder wrapper i flex/grid container */
.gma-explorer.gma-forside,
.gma-explorer.gma-forside > .gma-section,
.gma-explorer.gma-forside > section {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    position: relative;
}
/* Hero specifikt: flow-root (BFC) saa floats indeholdes — IKKE block,
   ellers overlapper indhold. Hoejere specificitet end reglen ovenfor. */
.gma-explorer.gma-forside > .gma-mag-hero {
    display: flow-root !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    position: relative;
}

.gma-mag-hero-grid {
    /* SIDE-OM-SIDE: nu hvor Foodicas max-height:420px er overruled, virker
       flexbox to-spalte-layoutet. Container-hoejde = hoejeste kolonne. */
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 64px;
    width: 100% !important;
    max-width: none;
}
@media (max-width: 900px) {
    .gma-mag-hero-grid { flex-direction: column !important; gap: 32px; }
}

.gma-mag-hero-img {
    display: block !important;
    flex: 0 0 42% !important;
    width: 42% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    background-color: transparent;
    float: none !important;
    align-self: flex-start !important;
}
@media (max-width: 900px) {
    .gma-mag-hero-img { flex: 0 0 auto !important; width: 100% !important; }
}
/* Billede fylder spalten i portraet-format. Daekker Imagify <picture> + indre <img>. */
.gma-mag-hero-img-el,
.gma-mag-hero-img picture,
.gma-mag-hero-img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover;
    float: none !important;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.45);
}
@media (max-width: 900px) {
    .gma-mag-hero-img-el,
    .gma-mag-hero-img picture,
    .gma-mag-hero-img img { max-height: 460px; object-fit: cover; }
}
/* Overlays skjult (billedet staar rent). №01 badge tilbage i toppen. */
.gma-mag-hero-img::after,
.gma-mag-hero-img::before { display: none !important; }
.gma-mag-hero-img .gma-play { z-index: 3; }

.gma-mag-hero-num {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 4;
    font-family: var(--gma-serif);
    font-style: italic;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: .02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* RIGHT PANEL — editorial text. flex:1 = resten af bredden. */
.gma-mag-hero-panel {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.gma-mag-hero-panel-mid {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Intro i hero-panelet — clamp'et til max 7 linjer saa panelet aldrig
   bliver hoejere end billedet. Lang intro hører ikke til i hero.
   px (ikke rem) saa tema-root-font-size ikke kan skrumpe den. */
.gma-mag-hero-intro {
    font-family: var(--gma-serif);
    font-size: 18px;
    line-height: 1.55;
    color: #2f2925;
    max-width: 60ch;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gma-mag-hero-intro p {
    margin: 0 0 14px;
}
.gma-mag-hero-intro p:last-child {
    margin-bottom: 0;
}

.gma-mag-issuestrip {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--mag-ink);
    margin: 0;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(20,17,15,.22);
    text-transform: uppercase;
}
.gma-mag-dash {
    flex: 1;
    height: 1px;
    background: rgba(20,17,15,.22);
}

.gma-mag-eyebrow {
    display: inline-block;
    font-family: var(--gma-font);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--mag-accent);
}
.gma-mag-eyebrow--center {
    display: block;
    text-align: center;
    margin: 0 0 16px;
}

.gma-mag-title {
    font-family: var(--gma-serif);
    font-weight: 800;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--mag-ink);
}
.gma-mag-title em {
    font-style: italic;
    color: var(--mag-accent);
}

.gma-mag-deck {
    font-family: var(--gma-serif);
    font-style: italic;
    font-size: clamp(19px, 1.5vw, 23px);
    line-height: 1.4;
    color: #4d433b;
    margin: 0;
    max-width: 42ch;
}

.gma-mag-tagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
}
.gma-mag-tagchip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(20,17,15,.25);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--mag-ink);
    text-transform: uppercase;
}

.gma-mag-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--mag-ink);
    text-decoration: none;
    font-family: var(--gma-serif);
    font-size: 19px;
    border-bottom: 1px solid var(--mag-ink);
    padding-bottom: 12px;
    padding-top: 4px;
    align-self: flex-start;
    margin-top: 4px;
    transition: color .25s, border-color .25s;
}
.gma-mag-cta:hover { color: var(--mag-accent); border-color: var(--mag-accent); }
.gma-mag-cta em { font-style: italic; }
.gma-mag-cta svg { width: 24px; height: 24px; transition: transform .35s ease; }
.gma-mag-cta:hover svg { transform: translateX(6px); }

.gma-mag-credit {
    font-size: 14px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(20,17,15,.6);
    padding-top: 24px;
    border-top: 1px solid rgba(20,17,15,.12);
    font-weight: 600;
}

/* MAG LETTER (intro) — editor's letter with drop cap */
.gma-mag-letter {
    max-width: 760px;
    margin: 0 auto 100px;
    padding: 40px 24px 0;     /* ekstra padding-top saa intro aldrig overlapper hero */
    text-align: center;
    position: relative;       /* eget stacking context */
    z-index: 5;
    background: var(--mag-bg, transparent);
}
.gma-mag-letter .gma-forside-intro-body {
    font-family: var(--gma-serif);
    font-size: 1.5rem;
    line-height: 1.6;
    color: #2a2522;
    text-align: left;
    column-count: 1;
}
.gma-mag-letter .gma-forside-intro-body p:first-child::first-letter {
    font-size: 5em;
    float: left;
    line-height: 0.82;
    padding: 8px 14px 0 0;
    font-weight: 800;
    color: var(--mag-accent);
    font-family: var(--gma-serif);
}

/* MAG SECTION HEAD (consistent across mag sections) */
.gma-mag-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
    position: relative;
}
.gma-mag-section-head .gma-mag-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
}
.gma-mag-section-head h2 {
    font-family: var(--gma-serif);
    font-weight: 800;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--mag-ink);
}
.gma-mag-section-head h2 em { font-style: italic; color: var(--mag-accent); }
.gma-mag-section-head p {
    font-family: var(--gma-serif);
    font-style: italic;
    color: #6e6760;
    font-size: 18px;
    margin: 0;
}
.gma-mag-section-head::after {
    content: '';
    display: block;
    width: 72px;
    height: 1px;
    background: var(--mag-accent);
    margin: 28px auto 0;
}

/* THE EDIT — 3 editorial cards (1 big + 2 normal) */
.gma-mag-edit { margin: 0 0 96px; }
.gma-mag-edit-grid {
    /* Lige spalter — portrait-billeder ser flottest ud i ens stoerrelse */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    align-items: stretch;  /* alle cards bliver lige hoeje */
}
@media (max-width: 980px) {
    .gma-mag-edit-grid { grid-template-columns: 1fr; }
}

.gma-mag-edit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Stretch saa alle 3 cards bliver lige hoeje (read-link pinnes til bunden) */
    height: 100%;
}
/* is-feature droppes som special-case — alle 3 cards skal staa identisk paa linje */
.gma-mag-edit-card.is-feature {
    grid-row: span 1;
}
.gma-mag-edit-img {
    display: block;
    position: relative;
    /* Samme aspect for alle 3 saa billederne staar paa linje (portrait 4/5) */
    aspect-ratio: 4 / 5;
    width: 100%;
    background-color: #2a221c;
    overflow: hidden;
    margin-bottom: 22px;
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
    box-shadow: 0 18px 40px -20px rgba(20,17,15,.35);
}
@media (max-width: 980px) {
    .gma-mag-edit-img { aspect-ratio: 3 / 4; }
}
.gma-mag-edit-img:hover { transform: translateY(-4px); }

/* Real <img> inde i edit-card — object-fit:cover saa billedet aldrig sprænger containeren.
   Daekker ogsaa <picture>-wrapper (Imagify) + den indre <img>. */
.gma-mag-edit-img-el,
.gma-mag-edit-img picture,
.gma-mag-edit-img img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}
.gma-mag-edit-img-el { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gma-mag-edit-img:hover .gma-mag-edit-img-el { transform: scale(1.04); }

.gma-mag-edit-body {
    padding: 0 4px;
    /* Flex saa "LÆS OPSKRIFTEN" pinnes til bunden uanset excerpt-laengde */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.gma-mag-edit-body .gma-mag-read {
    margin-top: auto;
}
.gma-mag-edit-num {
    font-family: var(--gma-serif);
    font-style: italic;
    color: var(--mag-accent);
    font-size: 1.05rem;
    margin: 0 0 6px;
    display: inline-block;
    letter-spacing: .02em;
}
.gma-mag-edit-eyebrow {
    display: block;
    font-family: var(--gma-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(20,17,15,.65);
    margin: 0 0 14px;
}
.gma-mag-edit-card h3 {
    font-family: var(--gma-serif);
    font-weight: 800;
    font-size: clamp(22px, 1.9vw, 27px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: var(--mag-ink);
}
.gma-mag-edit-card h3 a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .35s ease;
}
.gma-mag-edit-card h3 a:hover { background-size: 100% 1px; }

.gma-mag-edit-body p {
    font-family: var(--gma-serif);
    font-style: italic;
    color: #4d433b;
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.gma-mag-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mag-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mag-ink);
    transition: color .25s, border-color .25s;
}
.gma-mag-read:hover { color: var(--mag-accent); border-color: var(--mag-accent); }
.gma-mag-read svg { width: 18px; height: 18px; transition: transform .35s ease; }
.gma-mag-read:hover svg { transform: translateX(4px); }

/* PULL QUOTE divider */
.gma-mag-quote {
    margin: 0 auto 96px;
    max-width: 880px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(20,17,15,.15);
    border-bottom: 1px solid rgba(20,17,15,.15);
}
.gma-mag-quote-mark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: var(--gma-bg, #faf8f3);
    color: var(--mag-accent);
    font-family: var(--gma-serif);
    font-size: 4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: 800;
}
.gma-mag-quote blockquote {
    font-family: var(--gma-serif);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--mag-ink);
    margin: 0 0 20px;
}
.gma-mag-quote cite {
    display: block;
    font-style: normal;
    font-family: var(--gma-font);
    font-size: .8rem;
    font-weight: 600;
    color: var(--mag-accent);
    text-transform: uppercase;
    letter-spacing: .2em;
}
.gma-mag-quote cite a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.gma-mag-quote cite em { font-style: italic; }

/* MAG LATEST + ARCHIVE + POPULAR — re-uses existing strip/grid but with mag section heads */
.gma-mag-latest, .gma-mag-archive, .gma-mag-popular { margin-bottom: 80px; }
.gma-mag-grid-loadmore-wrap {
    text-align: center;
    margin: 36px 0 0;
}
.gma-mag-section-head--left { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
.gma-mag-section-head--left::after { margin-left: 0; }

/* LIST VIEW — clean editorial list for quick overview */
.gma-mag-list {
    margin: 0 0 96px;
}
.gma-mag-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(20,17,15,.15);
}
.gma-mag-list-item {
    display: grid;
    grid-template-columns: 56px 92px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(20,17,15,.1);
    transition: background .2s ease, padding .2s ease;
}
.gma-mag-list-item:hover {
    background: rgba(176,135,85,.05);
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
}
.gma-mag-list-num {
    font-family: var(--gma-serif);
    font-style: italic;
    font-size: 26px;
    color: var(--mag-accent);
    font-weight: 600;
    letter-spacing: .02em;
}
.gma-mag-list-thumb {
    display: block;
    width: 108px;
    height: 78px;
    background-size: cover;
    background-position: center;
    background-color: #e8dec9;
    border-radius: 4px;
    transition: transform .35s ease;
}
.gma-mag-list-item:hover .gma-mag-list-thumb { transform: scale(1.05); }
.gma-mag-list-body { min-width: 0; }
.gma-mag-list-eyebrow {
    display: block;
    font-family: var(--gma-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mag-accent);
    margin: 0 0 5px;
}
.gma-mag-list-body h3 {
    font-family: var(--gma-serif);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
    color: var(--mag-ink);
    letter-spacing: -0.01em;
}
.gma-mag-list-body h3 a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .35s ease;
}
.gma-mag-list-body h3 a:hover { background-size: 100% 1px; }
.gma-mag-list-meta {
    font-size: 14px;
    color: rgba(20,17,15,.55);
    white-space: nowrap;
    font-weight: 500;
}
.gma-mag-list-dot { opacity: .5; margin: 0 4px; }

@media (max-width: 700px) {
    .gma-mag-list-item {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }
    .gma-mag-list-thumb { display: none; }
    .gma-mag-list-meta {
        grid-column: 2;
        margin-top: 4px;
    }
    .gma-mag-list-body h3 { font-size: 17px; }
    .gma-mag-list-num { font-size: 20px; }
}

/* Search-input + load more */
.gma-mag-list .gma-mag-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.gma-mag-list-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--gma-line);
    border-radius: 999px;
    transition: border-color .2s ease, box-shadow .2s ease;
    min-width: 240px;
}
.gma-mag-list-search:focus-within {
    border-color: var(--gma-accent);
    box-shadow: 0 0 0 3px rgba(176,135,85,.12);
}
.gma-mag-list-search svg {
    width: 16px; height: 16px;
    color: var(--gma-muted);
    flex-shrink: 0;
}
.gma-mag-list-search input {
    border: 0;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: .95rem;
    padding: 0;
    width: 100%;
    color: var(--gma-fg);
}
.gma-mag-list-search input::placeholder { color: var(--gma-muted); }
.gma-mag-list-search input::-webkit-search-cancel-button { cursor: pointer; }

.gma-mag-list-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gma-muted);
    font-size: .95rem;
}
.gma-mag-list-loadmore-wrap {
    text-align: center;
    margin: 28px 0 0;
}
.gma-mag-list .gma-loadmore[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 600px) {
    .gma-mag-list-search { width: 100%; min-width: 0; }
    .gma-mag-list .gma-mag-section-head { gap: 14px; }
}

/* Editorial grid cards — numbered + italic eyebrow when used inside mag */
.gma-mag-archive .gma-card {
    border-radius: 4px;
}
.gma-mag-archive .gma-card-content::before {
    content: '№ ' counter(gma-mag, decimal-leading-zero);
    counter-increment: gma-mag;
    position: absolute;
    top: -28px; left: 0;
    font-family: var(--gma-serif);
    font-style: italic;
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    letter-spacing: .04em;
}
.gma-mag-archive .gma-results { counter-reset: gma-mag; }
.gma-mag-archive .gma-card h3 {
    font-family: var(--gma-serif);
    font-weight: 800;
    letter-spacing: -0.012em;
}

/* Editorial strip cards — bigger images, italic eyebrows */
.gma-mag-latest .gma-stripcard {
    flex-basis: 380px;
    border-radius: 4px;
    box-shadow: 0 12px 32px -16px rgba(20,17,15,.3);
}
.gma-mag-latest .gma-stripcard-img { aspect-ratio: 4 / 5; height: auto; }
.gma-mag-latest .gma-stripcard h4 {
    font-family: var(--gma-serif);
    font-size: 1.5rem;
    line-height: 1.18;
    letter-spacing: -0.01em;
    font-weight: 800;
    margin: 8px 0 6px;
}
@media (max-width: 768px) {
    .gma-mag-latest .gma-stripcard { flex-basis: 76%; }
    .gma-mag-latest .gma-stripcard-img { aspect-ratio: 3 / 4; }
}

/* Mag tags within archive override category tints with single accent */
.gma-mag-archive .gma-tag {
    background: rgba(255,255,255,.92) !important;
    color: var(--mag-ink) !important;
    font-family: var(--gma-font);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
}
.gma-mag-archive .gma-tag::before { background: var(--mag-accent) !important; }
.gma-mag-latest .gma-tag {
    background: transparent !important;
    color: var(--mag-accent) !important;
    border: 1px solid var(--mag-accent);
    padding: 5px 12px;
    font-size: 12px;
    letter-spacing: .14em;
}
.gma-mag-latest .gma-tag::before { display: none; }

/* ============================================================
   FORSIDE (themed landing page) — legacy fallback styles below
   ============================================================ */
.gma-forside .gma-forside-hero {
    margin: 0 0 40px;
    position: relative;
    isolation: isolate;
}
.gma-forside .gma-hero-main {
    grid-row: auto;
    min-height: 560px;
    border-radius: var(--gma-radius);
}
.gma-forside .gma-hero-main h1 {
    font-family: var(--gma-serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 28px rgba(0,0,0,.5);
}

.gma-forside-tagchips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.gma-forside-tagchip {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.gma-forside-intro {
    max-width: 760px;
    margin: 0 auto 56px;
    padding: 0 20px;
}
.gma-forside-intro-body {
    font-family: var(--gma-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    color: #2a2522;
    text-align: center;
}
.gma-forside-intro-body p {
    margin: 0 0 1em;
}
.gma-forside-intro-body p:first-child::first-letter {
    font-size: 3.2em;
    float: left;
    line-height: 0.85;
    padding: 4px 12px 0 0;
    font-weight: 800;
    color: var(--gma-accent);
}

/* ============================================================
   SECTION BLOCKS — break the rhythm
   ============================================================ */
.gma-section {
    margin: 0 0 64px;
    position: relative;
}
.gma-section--alt {
    background: linear-gradient(180deg, rgba(231,227,218,.35) 0%, transparent 100%);
    padding: 36px 0 12px;
    margin-left: -24px; margin-right: -24px;
    padding-left: 24px; padding-right: 24px;
    border-radius: var(--gma-radius);
}
.gma-section--catrow {
    padding: 32px 0;
}
.gma-section--catrow[data-slug*="rejs"]      { background: linear-gradient(180deg, rgba(43,122,120,.06) 0%, transparent 100%); }
.gma-section--catrow[data-slug*="restaurant"] { background: linear-gradient(180deg, rgba(177,58,58,.06) 0%, transparent 100%); }
.gma-section--catrow[data-slug*="hotel"]     { background: linear-gradient(180deg, rgba(192,139,63,.07) 0%, transparent 100%); }
.gma-section--catrow {
    margin-left: -24px; margin-right: -24px;
    padding-left: 24px; padding-right: 24px;
}

.gma-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    padding: 0;
}
.gma-section-head h3 {
    font-family: var(--gma-serif);
    font-weight: 800;
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--gma-fg);
}
.gma-section-head h3 em {
    font-style: italic;
    color: var(--gma-accent);
}
.gma-section--catrow[data-slug*="rejs"]      .gma-section-head h3 em { color: var(--gma-cat-rejser); }
.gma-section--catrow[data-slug*="restaurant"] .gma-section-head h3 em { color: var(--gma-cat-restauranter); }
.gma-section--catrow[data-slug*="hotel"]     .gma-section-head h3 em { color: var(--gma-cat-hoteller); }
.gma-section-head p {
    margin: 0;
    color: var(--gma-muted);
    font-size: .95rem;
    line-height: 1.4;
}
.gma-section-head a.gma-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gma-fg);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--gma-line);
    background: #fff;
    transition: background .25s, color .25s, border-color .25s, transform .2s;
    white-space: nowrap;
}
.gma-section-head a.gma-section-link:hover {
    color: #fff;
    background: var(--gma-accent-2);
    border-color: var(--gma-accent-2);
    transform: translateY(-1px);
}
.gma-section-head a.gma-section-link svg { transition: transform .35s ease; }
.gma-section-head a.gma-section-link:hover svg { transform: translateX(4px); }

/* ============================================================
   HORIZONTAL STRIP CAROUSEL
   ============================================================ */
.gma-strip-wrap {
    position: relative;
    margin: 0 -24px;
    padding: 4px 24px 22px;
}
.gma-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    scroll-padding-left: 24px;
}
.gma-strip::-webkit-scrollbar { display: none; }

.gma-stripcard {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border-radius: var(--gma-radius);
    overflow: hidden;
    background: var(--gma-card-bg);
    box-shadow: var(--gma-shadow);
    position: relative;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.gma-stripcard:hover { transform: translateY(-5px); box-shadow: var(--gma-shadow-h); }

.gma-stripcard-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--gma-fg);
    height: 100%;
}
.gma-stripcard-img {
    position: relative;
    display: block;
    width: 100%;
    /* Portrait aspect — GM-billeder er paa hoejkant, saa cards skal vaere tall */
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
    object-fit: cover;
    object-position: center 30%; /* Top-tilted crop saa subject/glas/hovedmotiv beholdes */
    transition: transform .9s cubic-bezier(.2,.7,.2,1);
    background: linear-gradient(135deg, #efe5cf 0%, #d8c7a8 100%);
}
/* Imagify/WebP-plugin wrapper <img> i <picture> og flytter klassen dertil.
   Sikre at BÅDE picture OG den indre <img> fylder aspect-ratio-boksen. */
.gma-stripcard-img picture,
.gma-stripcard-img img,
picture.gma-stripcard-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
}
.gma-stripcard-img--empty {
    background: linear-gradient(135deg, #d8c7a8 0%, #b08755 100%);
    aspect-ratio: 4 / 5;
    min-height: 0;
}
.gma-stripcard:hover .gma-stripcard-img { transform: scale(1.08); }
.gma-stripcard-play {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.gma-stripcard-play svg {
    width: 22px; height: 22px;
    padding: 14px;
    background: rgba(255,255,255,.92);
    color: var(--gma-fg);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0,0,0,.3);
    fill: currentColor; stroke: none;
    margin-left: 2px;
}
.gma-stripcard-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gma-stripcard h4 {
    font-family: var(--gma-serif);
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gma-fg);
    letter-spacing: -0.005em;
}
.gma-meta--dark {
    color: var(--gma-muted);
    font-size: 14px;
}
.gma-meta--dark .gma-dot { color: var(--gma-muted); }

/* Strip arrow nav */
.gma-strip-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--gma-fg);
    cursor: pointer;
    box-shadow: 0 10px 22px -8px rgba(20,17,15,.25), 0 0 0 1px var(--gma-line);
    display: flex; align-items: center; justify-content: center;
    transition: background .25s, transform .25s, color .25s;
}
.gma-strip-nav svg { width: 20px; height: 20px; }
.gma-strip-nav:hover { background: var(--gma-accent-2); color: #fff; transform: translateY(-50%) scale(1.08); }
.gma-strip-prev { left: 0; }
.gma-strip-next { right: 0; }
@media (max-width: 768px) {
    .gma-strip-nav { display: none; }
    .gma-stripcard { flex-basis: 78%; }
}

/* ============================================================
   GRID — bento masonry with magnetic tilt
   ============================================================ */
.gma-results {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 200px rows × 2 rows pr. default tile = 400px tall portrait tile */
    grid-auto-rows: 200px;
    grid-auto-flow: dense;     /* fylder smaa huller ved siden af large-cards */
    gap: 22px;
}

.gma-card {
    position: relative;
    /* Default tile = portrait (3 cols × 2 rows). 4 tiles pr. raekke. */
    grid-column: span 3;
    grid-row: span 2;
    border-radius: var(--gma-radius);
    overflow: hidden;
    background: var(--gma-card-bg);
    box-shadow: var(--gma-shadow);
    transition: box-shadow .25s ease;
    isolation: isolate;
}
/* Feature tile = half-width × 4-rows. Stort portrait-format der virker som hero i bento.
   6×4 + 4×(3×2) = 24+24 = 48 celler = 12×4 rækker → fitter perfekt. */
.gma-card.is-large { grid-column: span 6; grid-row: span 4; }
/* Vi har droppet "is-wide" som landskab-format siden alle GM-billeder er portrait.
   Beholder klassen som fallback til default tile saa intet brækker hvis brugt. */
.gma-card.is-wide  { grid-column: span 3; grid-row: span 2; }

/* Tile hover — KUN subtil shade-darkening, ingen lift eller zoom */
.gma-card:hover {
    box-shadow: var(--gma-shadow-h);
}
.gma-card:hover .gma-card-shade {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.65) 70%, rgba(0,0,0,.92) 100%);
}
.gma-card-img { transition: none; }   /* INGEN zoom paa hover */

.gma-card-link {
    position: absolute; inset: 0;
    color: #fff;
    text-decoration: none;
    display: block;
    z-index: 1;
}
.gma-card-img,
.gma-card-link picture,
.gma-card-link picture img {
    position: absolute; inset: 0;
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    /* Top-tilted crop saa portrait-billeders motiv (drinks, mad) beholder hovedet/glasset */
    object-position: center 35%;
    z-index: 1;
}
.gma-card-img {
    transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease;
    filter: saturate(.96);
}
.gma-card:hover .gma-card-img { filter: saturate(1.08); }
.gma-card-img--empty {
    background: linear-gradient(135deg, #d8c7a8 0%, #b08755 100%);
}
.gma-card-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.88) 100%);
    opacity: .88;
    transition: opacity .45s ease;
    z-index: 2;
}
.gma-card-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.gma-card h3 {
    font-family: var(--gma-serif);
    margin: 0;
    /* Ens stoerrelse paa alle kort (px saa tema ikke skrumper) — 21px som strip-kort */
    font-size: 21px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
/* Feature-kortet (is-large) lidt stoerre, men ikke voldsomt. */
.gma-card.is-large h3 { font-size: 30px; line-height: 1.1; }
.gma-card.is-wide h3  { font-size: 21px; line-height: 1.18; }
.gma-card.is-tall h3  { font-size: 21px; line-height: 1.18; }

.gma-card-excerpt {
    margin: 0;
    font-size: 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .4s ease .05s, max-height .4s ease;
    line-height: 1.55;
}
.gma-card.is-large .gma-card-excerpt,
.gma-card.is-wide .gma-card-excerpt,
.gma-card.is-tall .gma-card-excerpt {
    opacity: .93;
    max-height: 5em;
}
.gma-card:hover .gma-card-excerpt { opacity: .96; max-height: 6em; }

/* TAGS — category-tinted */
.gma-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--gma-fg);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    position: relative;
}
.gma-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gma-accent);
}
.gma-tag[data-slug*="rejs"],
.gma-tag[data-slug="rejser"] { background: var(--gma-cat-rejser); color: #fff; }
.gma-tag[data-slug*="rejs"]::before,
.gma-tag[data-slug="rejser"]::before { background: #cfe8e6; }

.gma-tag[data-slug*="restaurant"] { background: var(--gma-cat-restauranter); color: #fff; }
.gma-tag[data-slug*="restaurant"]::before { background: #ffd9d3; }

.gma-tag[data-slug*="hotel"] { background: var(--gma-cat-hoteller); color: #fff; }
.gma-tag[data-slug*="hotel"]::before { background: #fce7c4; }

.gma-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: rgba(255,255,255,.9);
    flex-wrap: wrap;
}
.gma-meta svg { opacity: .85; }
.gma-dot { opacity: .55; }

/* ============================================================
   PLAY OVERLAY (video posts)
   ============================================================ */
.gma-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.gma-play span {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--gma-accent-2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease;
    position: relative;
}
.gma-play span::before {
    /* subtil ring — uden konstant puls (mindre distraherende) */
    content: '';
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.4);
}
.gma-play svg {
    width: 26px; height: 26px;
    margin-left: 3px;
    fill: currentColor;
    stroke: none;
}
.gma-card:hover .gma-play span,
.gma-hero-main:hover .gma-play span,
.gma-hero-card:hover .gma-play span {
    transform: scale(1.12);
    background: #fff;
}
.gma-card.has-video.is-large .gma-play span,
.gma-hero-main.has-video .gma-play span { width: 88px; height: 88px; }
.gma-card.has-video.is-large .gma-play svg,
.gma-hero-main.has-video .gma-play svg { width: 34px; height: 34px; }

/* ============================================================
   BOOKMARK
   ============================================================ */
.gma-bookmark {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 4;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.9);
    color: var(--gma-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .3s, transform .3s cubic-bezier(.2,.8,.2,1), color .3s;
    opacity: 0;
    transform: translateY(-6px) scale(.9);
}
.gma-card:hover .gma-bookmark,
.gma-bookmark.is-saved {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.gma-bookmark:hover { background: #fff; transform: scale(1.1); }
.gma-bookmark.is-saved { background: var(--gma-accent); color: #fff; }
.gma-bookmark.is-saved svg { fill: currentColor; }
.gma-bookmark.is-poking { animation: gma-pop .45s cubic-bezier(.2,.8,.2,1); }
@keyframes gma-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ============================================================
   LOAD MORE + EMPTY + SURPRISE + TOAST
   ============================================================ */
.gma-loadmore-wrap {
    text-align: center;
    margin: 48px 0 0;
    position: relative;
}
.gma-loadmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    background: var(--gma-accent-2);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .02em;
    position: relative;
    overflow: hidden;
    transition: background .35s, transform .25s ease, box-shadow .35s;
}
.gma-loadmore::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .8s ease;
}
.gma-loadmore:hover { background: var(--gma-accent); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(176,135,85,.6); }
.gma-loadmore:hover::before { transform: translateX(100%); }
.gma-loadmore[disabled] { opacity: .6; cursor: progress; }

.gma-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gma-muted);
    font-size: 1.1rem;
    animation: gma-fade-up .6s ease-out;
}

/* SURPRISE — floating CTA with pulse glow */
.gma-surprise {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--gma-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 12px 28px -10px rgba(176,135,85,.6), 0 4px 10px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease, background .25s;
}
/* Surprise-knap uden konstant pulse — kun blød skygge */
.gma-surprise:hover { transform: translateY(-4px) rotate(-2deg); background: #c5965d; }
.gma-surprise:active { transform: translateY(-1px); }
.gma-surprise svg { transition: transform .8s ease; }
.gma-surprise:hover svg { transform: rotate(180deg); }

/* TOAST */
.gma-toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    z-index: 100;
    transform: translate(-50%, 30px);
    background: rgba(20,17,15,.95);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.gma-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============================================================
   LOADING SHIMMER
   ============================================================ */
.gma-results.is-loading { opacity: .5; transition: opacity .25s; }

.gma-skeleton {
    border-radius: var(--gma-radius);
    background: linear-gradient(110deg, #efeae0 8%, #f7f3eb 18%, #efeae0 33%);
    background-size: 200% 100%;
    animation: gma-shimmer 1.4s linear infinite;
    grid-column: span 4;
    min-height: 230px;
}
@keyframes gma-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    /* Tablet: 6-col grid, default 3-col portrait, large 6-col tall feature */
    .gma-results { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; }
    .gma-card { grid-column: span 3; grid-row: span 2; }
    .gma-card.is-large { grid-column: span 6; grid-row: span 3; }
    .gma-card.is-wide  { grid-column: span 3; grid-row: span 2; }
}
@media (max-width: 768px) {
    .gma-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 16px; }
    .gma-hero-main { grid-row: auto; min-height: 380px; }
    .gma-hero-side { grid-template-rows: auto auto; gap: 16px; }
    .gma-statbar { gap: 28px; padding: 20px 12px; }

    /* Mobil: 2-col portrait grid */
    .gma-results { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 14px; }
    .gma-card { grid-column: span 1; grid-row: span 2; }
    .gma-card.is-large { grid-column: span 2; grid-row: span 3; }
    .gma-card.is-wide  { grid-column: span 1; grid-row: span 2; }

    .gma-card h3 { font-size: 18px; }
    .gma-card.is-large h3 { font-size: 24px; }
    .gma-card-excerpt { display: none; }
    .gma-card.is-large .gma-card-excerpt { display: block; }

    .gma-bookmark { opacity: 1; transform: translateY(0) scale(1); }
    .gma-surprise span { display: none; }
    .gma-surprise { padding: 16px; right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
    .gma-results { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .gma-card,
    .gma-card.is-large,
    .gma-card.is-wide { grid-column: span 1; grid-row: span 1; }
    .gma-card.is-large { grid-row: span 2; }
}

/* ============================================================
   ARKIV — grid of all forsider
   ============================================================ */
.gma-arkiv-grid {
    display: grid;
    grid-template-columns: repeat(var(--gma-cols, 3), 1fr);
    gap: 32px;
}
.gma-arkiv-card {
    background: #fff;
    border-radius: var(--gma-radius);
    overflow: hidden;
    box-shadow: var(--gma-shadow);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
    display: flex;
    flex-direction: column;
}
.gma-arkiv-card:hover { transform: translateY(-6px); box-shadow: var(--gma-shadow-h); }

.gma-arkiv-img {
    display: block;
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
    background-color: #efe5cf;
    background-image: linear-gradient(135deg, #efe5cf 0%, #d8c7a8 100%);
    text-decoration: none;
}
.gma-arkiv-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(20,17,15,.55) 100%);
}
.gma-arkiv-count {
    position: absolute;
    bottom: 14px; left: 14px;
    z-index: 2;
    background: rgba(255,255,255,.95);
    color: var(--gma-fg);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.gma-arkiv-body {
    padding: 22px 24px 26px;
    flex: 1;
}
.gma-arkiv-body h3 {
    font-family: var(--gma-serif);
    font-weight: 800;
    font-size: 1.45rem;
    line-height: 1.15;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
    color: var(--gma-fg);
}
.gma-arkiv-body h3 a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .35s ease;
}
.gma-arkiv-body h3 a:hover { background-size: 100% 1px; }
.gma-arkiv-body p {
    color: var(--gma-muted);
    font-size: .95rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .gma-arkiv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gma-arkiv-grid { grid-template-columns: 1fr; gap: 22px; }
    .gma-arkiv-img { height: 220px; }
}

/* ============================================================
   MOBILE POLISH — touch targets, hero scaling, mag-section tweaks
   ============================================================ */
@media (max-width: 700px) {
    /* Tighter hero on small screens */
    .gma-mag-hero { margin-bottom: 48px; }
    .gma-mag-hero-img { min-height: 320px; }
    .gma-mag-hero-panel { padding: 20px 16px 24px; gap: 16px; }
    .gma-mag-title { font-size: clamp(1.9rem, 9vw, 2.6rem) !important; line-height: 1.02; }
    .gma-mag-deck { font-size: 1.02rem; }
    .gma-mag-issuestrip { font-size: .65rem; gap: 10px; padding-bottom: 14px; }

    /* The Edit on phones */
    .gma-mag-edit { margin-bottom: 56px; }
    .gma-mag-edit-grid { gap: 32px; }
    .gma-mag-edit-card.is-feature h3,
    .gma-mag-edit-card h3 { font-size: 1.35rem !important; }

    /* Quote section smaller on mobile */
    .gma-mag-quote { padding: 44px 22px; margin-bottom: 56px; }
    .gma-mag-quote-mark { width: 44px; height: 44px; font-size: 2.8rem; }

    /* Letter intro */
    .gma-mag-letter { padding-left: 18px; padding-right: 18px; margin-bottom: 48px; }
    .gma-mag-letter .gma-forside-intro-body { font-size: 1.08rem; line-height: 1.6; }
    .gma-mag-letter .gma-forside-intro-body p:first-child::first-letter {
        font-size: 3.4em;
        padding: 4px 10px 0 0;
    }

    /* Mag section heads */
    .gma-mag-section-head { margin-bottom: 22px; }
    .gma-mag-section-head h2 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
    .gma-mag-section-head p { font-size: .95rem; }

    /* Touch targets — alle interactive elements min 44x44 */
    .gma-chip,
    .gma-loadmore,
    .gma-bookmark,
    .gma-surprise,
    .gma-strip-nav,
    .gma-mag-cta,
    .gma-mag-read,
    .gma-section-head a.gma-section-link {
        min-height: 44px;
    }
    .gma-bookmark { width: 44px; height: 44px; }

    /* Latest section margins */
    .gma-mag-latest, .gma-mag-archive, .gma-mag-popular { margin-bottom: 56px; }
}

@media (max-width: 480px) {
    /* Even tighter on very small phones */
    .gma-mag-title { font-size: 32px !important; }
    .gma-mag-deck { font-size: 18px; }
    .gma-hero-blobs { opacity: .35; }   /* less visual noise */
    .gma-mag-list-num { font-size: 19px; }
    .gma-mag-list-body h3 { font-size: 17px; }

    /* Hero CTA touch-target larger */
    .gma-mag-cta { font-size: 1rem; padding-bottom: 10px; padding-top: 8px; }
}

/* Reduce motion — turn off all the cinematic effects */
@media (prefers-reduced-motion: reduce) {
    .gma-explorer *,
    .gma-explorer *::before,
    .gma-explorer *::after {
        animation: none !important;
        transition: none !important;
    }
    .gma-reveal { opacity: 1; transform: none; }
    .gma-hero-intro h2 .gma-word > span { transform: none; }
    .gma-card:hover { transform: none; }
    .gma-card:hover .gma-card-img { transform: none; }
}

/* ============================================================
   AUTORITATIV LAYOUT-RESET (sidst i filen = vinder cascade)
   Loeser katastrofal sektion-overlap paa arkiv-override hvor
   Foodica/plugins forstyrrer flow. Tvinger ren lodret stabling.
   ============================================================ */
/* 1) Reveal-animationer slaaet HELT fra — alt altid synligt og paa plads.
      Fjerner enhver risiko for at transform/opacity efterlader elementer
      forskudt eller usynlige. */
.gma-explorer .gma-reveal,
.gma-explorer.gma-forside .gma-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
/* 2) Alle direkte sektioner i forsiden stabler lodret som rene blocks.
      Ingen float, ingen absolut/relativ forskydning, ingen transform. */
.gma-explorer.gma-forside > .gma-mag-hero,
.gma-explorer.gma-forside > .gma-section,
.gma-explorer.gma-forside > section,
.gma-explorer.gma-forside > aside {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    transform: none !important;
    inset: auto !important;
    margin-top: 0 !important;
}
/* 3) Selve forside-containeren: ren block, ikke flex/grid item-opfoersel. */
.gma-explorer.gma-forside {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    transform: none !important;
}
