/*
Theme Name: Gateavisa
Author: Ingvild Østby
Version: 0.3.1
Text Domain: gateavisa
*/


@font-face {
  font-family: 'ImpactLabel';
  src: url('fonts/woff2/Impact Label Reversed.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AmericanTypewriter';
  src: url('fonts/woff2/ITC American Typewriter Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* =========================
   ANT
   ========================= */
#ga-ant {
  position: fixed;
  width: 20px;
  height: 12px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 9999;
  transform-origin: center center;
  transition: opacity 0.4s ease;
}

@keyframes ga-ant-step-a {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-3px); }
}
@keyframes ga-ant-step-b {
  0%, 100% { transform: translateY(-3px); }
  50%       { transform: translateY(0px); }
}
.ga-ant-a {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ga-ant-step-a 0.28s ease-in-out infinite;
}
.ga-ant-b {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ga-ant-step-b 0.28s ease-in-out infinite;
}

/* =========================
   VARIABLES
   ========================= */
:root {
  --ga-max: 1400px;
  --ga-gutter: 32px;
  --ga-bg:   #0a0a0a;
  --ga-text: #ffffff;
  --ga-teal: #05a48d;
  --ga-gap:  3px;     /* gap between mosaic cells */
}

/* =========================
   BASE
   ========================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: #0a0a0a url('darkmode.jpg') center top / cover no-repeat !important;
  color: #ffffff !important;
}
body {
  margin: 0;
  padding-top: 0;
  font-family: var(--wp--preset--font-family--system-sans);
}

/* texture overlay */
#ga-texture {
  position: fixed;
  inset: 0;
  background: url('/wp-content/themes/gateavisa/Untitled.png') repeat;
  background-size: 400px auto;
  filter: invert(1);
  opacity: 0.07;
  pointer-events: none;
  z-index: 9998;
}

/* prevent scroll when overlay is open */
body.ga-nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.ga-wrap {
  max-width: var(--ga-max);
  margin: 0 auto;
  padding-left: var(--ga-gutter);
  padding-right: var(--ga-gutter);
}

/* =========================
   DARK MODE TOGGLE — fixed top right
   ========================= */
.ga-theme-toggle {
  display: none !important;
}

/* =========================
   LANGUAGE TOGGLE
   ========================= */
.ga-lang-toggle {
  position: fixed;
  top: 24px;
  left: 20px;
  z-index: 300;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ga-text);
}

.ga-lang-no,
.ga-lang-en {
  transition: opacity 0.2s ease;
}

.ga-lang-sep {
  opacity: 0.3;
}

/* =====================§====
   HEADER — fixed row: [social icons] [black block]
   ========================= */

/* wrapper — in page flow, scrolls away, gives social icons their position */
.ga-header-fixed {
  display: flex;
  align-items: center;
  padding: 20px var(--ga-gutter);
  height: 148px; /* 20px top + 128px block */
}

/* social icons — scroll away with the page, far left */
.ga-header-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ga-social-link {
  display: flex;
  align-items: center;
  color: var(--ga-text);
  opacity: 0.5;
  transition: opacity 0.15s;
  text-decoration: none;
}

.ga-social-link:hover {
  opacity: 1;
}

/* header block — fixed, centered, black */
.ga-header-block {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: 760px;
  border: none;
  background: #0a0a0a;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 14px 40px;
}

.ga-header-block .ga-menu-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: none; /* hidden on desktop */
}

.ga-header-title {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-decoration: none;
  margin: 0;
  line-height: 1.0;
  text-transform: uppercase;
  text-shadow: none;
}

.ga-header-sub {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.0;
  text-decoration: none;
}

.ga-header-sub-link:hover {
  opacity: 0.7;
}

.ga-header-title .ga-letter {
  display: inline-block;
  line-height: inherit;
}

/* inline nav — below logo */
.ga-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 5.5px;
}

.ga-header-nav a,
.ga-header-nav a.ga-nav-current {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  background: none;
  padding: 0;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.15s;
}

.ga-header-nav a:hover,
.ga-header-nav a.ga-nav-current {
  color: #ffffff !important;
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: #ffffff;
}

.ga-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.15s;
  text-decoration: none;
}

.ga-menu-text {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.ga-menu-btn:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .ga-header-block { width: 100%; top: 0; left: 0; transform: none; padding: 10px 16px; height: 80px; }
  .ga-header-nav { display: none; }
  .ga-header-block .ga-menu-btn { display: flex; }
}

/* =========================
   NAV OVERLAY — fullscreen
   ========================= */
.ga-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ga-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ga-nav-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.ga-nav-close:hover {
  opacity: 1;
}

.ga-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ga-nav-links a {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: normal;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.0;
  transition: opacity 0.2s;
}

.ga-nav-links a:hover {
  opacity: 0.5;
}

/* =========================
   MASTHEAD — full-width logo, The Face style
   ========================= */
.ga-masthead {
  background: #ffffff;
  padding: 0;
  border-bottom: 3px solid #0a0a0a;
  line-height: 0;
}

.ga-masthead-logo {
  margin: 0;
  display: block;
}

.ga-masthead-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   SNAP HERO — full-viewport splash overlay
   ========================= */

/* hero covers entire viewport, sitting above all content */
.ga-snap-hero {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ga-snap-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fade out when dismissed */
.ga-snap-hero.ga-hero-dismissing {
  opacity: 0;
  visibility: hidden;
}

/* hide header chrome while hero overlay is present (not while dismissing) */
html:has(.ga-snap-hero:not(.ga-hero-dismissing)) .ga-header-block,
html:has(.ga-snap-hero:not(.ga-hero-dismissing)) .ga-theme-toggle,
html:has(.ga-snap-hero:not(.ga-hero-dismissing)) .ga-header-social {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@keyframes ga-barrel-spin {
  0%   { transform: perspective(500px) rotateX(0deg)   rotate(15deg); }
  100% { transform: perspective(50px)  rotateX(360deg) rotate(5deg); }
}

.ga-snap-title {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: clamp(22px, 3vw, 48px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ga-text);
  display: block;
  height: 1em;
  transform-origin: center center;
  will-change: transform, opacity;
}

.ga-barrel {
  transform-style: preserve-3d;
  animation: ga-barrel-spin 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  position: relative;
  height: 1em;
  width: 100%;
}

.ga-barrel span {
  position: absolute;
  top: 0;
  left: 50%;
  white-space: nowrap;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: 0em;
  text-transform: inherit;
  color: inherit;
  transform-style: preserve-3d;
  transform: translate(-50%, 0) rotateX(calc(var(--i) * 50deg)) translateZ(1.2em);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  user-select: none;
}


/* =========================
   MOSAIC GRID — Editions NY style
   ========================= */
.ga-mosaic {
  background: var(--ga-bg);
  padding: 24px var(--ga-gutter) 64px;
  max-width: var(--ga-max);
  margin: 0 auto;
}

.ga-mosaic .wp-block-query {
  max-width: none !important;
}

.ga-mosaic .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* default cell — flex column: image on top, text below */
.ga-mosaic .wp-block-post-template > li {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* asymmetric column widths — 6-item repeating pattern, every row sums to 12 */
.ga-mosaic .wp-block-post-template > li:nth-child(6n+1) { grid-column: span 8; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+2) { grid-column: span 4; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+3) { grid-column: span 4; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+4) { grid-column: span 8; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+5) { grid-column: span 6; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+6) { grid-column: span 6; }

/* last image-post always full width — text cards follow their nth-child slot */
.ga-mosaic .wp-block-post-template > li:last-child:has(.wp-block-post-featured-image img) { grid-column: span 12 !important; }

/* explicit image heights per slot */
.ga-mosaic .wp-block-post-template > li:nth-child(6n+1) .wp-block-post-featured-image { height: 480px; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+2) .wp-block-post-featured-image { height: 480px; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+3) .wp-block-post-featured-image { height: 320px; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+4) .wp-block-post-featured-image { height: 320px; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+5) .wp-block-post-featured-image { height: 400px; }
.ga-mosaic .wp-block-post-template > li:nth-child(6n+6) .wp-block-post-featured-image { height: 400px; }

/* image — fills width */
.ga-mosaic .wp-block-post-featured-image {
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
}

.ga-mosaic .wp-block-post-featured-image a,
.ga-mosaic .wp-block-post-featured-image figure {
  display: block;
  width: 100%;
  height: 100%;
}

.ga-mosaic .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
}

.ga-mosaic .wp-block-post-template > li:hover figure:not([data-hover-src]) img {
  filter: invert(1);
}

/* Hover image crossfade — the figure itself is .wp-block-post-featured-image */
.ga-mosaic .wp-block-post-featured-image {
  position: relative;
}

.ga-mosaic figure[data-hover-src] .ga-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.ga-mosaic .wp-block-post-template > li:hover figure[data-hover-src] .ga-hover-img {
  opacity: 1;
}

/* suppress sepia on primary img when hover img takes over */
.ga-mosaic .wp-block-post-template > li:hover figure[data-hover-src] img:not(.ga-hover-img) {
  filter: none;
}

/* text block below image */
.ga-card-body {
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  align-items: flex-start;
}

.ga-card-body .wp-block-post-title,
.ga-card-body .wp-block-post-title a,
.ga-card-body .wp-block-post-excerpt,
.ga-card-body .wp-block-post-excerpt p,
.ga-mosaic .wp-block-post-title,
.ga-mosaic .wp-block-post-title a,
.ga-mosaic .wp-block-post-title *,
.ga-mosaic .wp-block-post-excerpt,
.ga-mosaic .wp-block-post-excerpt p,
.ga-mosaic .is-layout-constrained,
.ga-mosaic .is-layout-constrained > * {
  text-align: left !important;
  width: 100%;
}

.ga-mosaic .is-layout-constrained > .wp-block-post-title,
.ga-mosaic .is-layout-constrained > .wp-block-post-excerpt,
.ga-mosaic .is-layout-constrained > h1,
.ga-mosaic .is-layout-constrained > h2,
.ga-mosaic .is-layout-constrained > h3 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

/* date */
.ga-mosaic .ga-card-date {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 9px;
  letter-spacing: 0em;
  text-transform: lowercase;
  color: var(--ga-text);
  opacity: 0.3;
  margin: 0;
  text-decoration: none;
}

.ga-mosaic .ga-card-date a {
  color: inherit;
  text-decoration: none;
}

/* category tag */
.ga-mosaic .ga-card-category {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ga-text);
  opacity: 0.45;
  line-height: 1;
  margin: 0;
}

.ga-mosaic .ga-card-category a {
  color: var(--ga-text);
  text-decoration: none;
}

/* title below image */
.ga-mosaic .wp-block-post-title {
  margin: 0;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(15px, 1.3vw, 20px);
  letter-spacing: 0em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--ga-text);
  text-align: left !important;
}

.ga-mosaic .wp-block-post-title a {
  color: var(--ga-text);
  text-decoration: none;
}

.ga-mosaic .wp-block-post-title a:hover {
  opacity: 0.6;
}

/* clamp excerpt to 2 lines on small cards */
.ga-mosaic .wp-block-post-template > li:nth-child(6n+2) .wp-block-post-excerpt__excerpt,
.ga-mosaic .wp-block-post-template > li:nth-child(6n+3) .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* allow up to 4 lines on large cards */
.ga-mosaic .wp-block-post-template > li:nth-child(6n+1) .wp-block-post-excerpt__excerpt,
.ga-mosaic .wp-block-post-template > li:nth-child(6n+4) .wp-block-post-excerpt__excerpt,
.ga-mosaic .wp-block-post-template > li:last-child .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* excerpt */
.ga-mosaic .wp-block-post-excerpt {
  font-family: var(--wp--preset--font-family--system-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ga-text);
  opacity: 0.55;
  margin: 0;
}

.ga-mosaic .wp-block-post-excerpt p {
  margin: 0;
}

/* mobile: varied 2-column fallback */
@media (max-width: 640px) {
  .ga-mosaic .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .ga-mosaic .wp-block-post-template > li,
  .ga-mosaic .wp-block-post-template > li:nth-child(n) {
    grid-column: span 1;
  }

  /* every 3rd card goes full width for rhythm */
  .ga-mosaic .wp-block-post-template > li:nth-child(3n) {
    grid-column: span 2;
  }

  /* disable barrel animation on mobile — show first face static */
  .ga-barrel {
    animation: none;
    transform: none;
  }

  .ga-barrel span {
    display: none;
    position: static;
    transform: none;
  }

  .ga-barrel span:first-child {
    display: block;
    text-align: center;
  }
}

/* =========================
   SINGLE POST
   ========================= */

/* back link */
.ga-back-link {
  display: inline-block;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ga-text);
  opacity: 0.4;
  margin-top: 32px;
  transition: opacity 0.15s;
}
.ga-back-link:hover { opacity: 1; }

/* =========================
   PUBLISHPRESS AUTHOR BOX
   ========================= */
.author-box-widget,
.ppma-author-box-wrapper {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border: none;
  background: none !important;
}

/* Strip all card/box borders the plugin might add */
.author-box-widget *,
.ppma-author-box-wrapper * {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

h2.author-box-title,
h2.ppma-author-box-title,
h3.author-box-title,
h3.ppma-author-box-title,
.author-box-title,
.ppma-author-box-title {
  font-family: var(--wp--preset--font-family--mono) !important;
  font-size: 10px !important;
  font-weight: normal !important;
  letter-spacing: 0.18em !important;
  text-transform: lowercase !important;
  opacity: 0.35 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

.author-box,
.ppma-author-box {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 !important;
}

.author-box .author-avatar img,
.ppma-author-box .author-avatar img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  filter: grayscale(1) !important;
  opacity: 0.55 !important;
}

.author-box .author-name a,
.ppma-author-box .author-name a {
  font-family: var(--wp--preset--font-family--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: lowercase !important;
  text-decoration: none !important;
  color: rgba(255,255,255,0.55) !important;
}

.author-box .author-name a:hover,
.ppma-author-box .author-name a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

.author-box .author-links,
.author-box .author-social-links,
.author-box .author-social,
.ppma-author-box .author-links,
.ppma-author-box .author-social-links,
.ppma-author-box .author-social,
[class*="author"] [class*="social"],
[class*="author"] [class*="links"],
[class*="author"] a[href^="mailto"],
[class*="author"] a[href^="mailto"] * {
  display: none !important;
}

/* drop cap on first paragraph */
.single .wp-block-post-content > p:first-of-type::first-letter {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: 3.8em;
  float: left;
  line-height: 0.75;
  margin: 0.06em 0.1em 0 0;
  color: var(--ga-text);
}
.single {
  color: #ffffff;
}

/* =========================
   SINGLE POST — two-column hero layout
   ========================= */

.ga-article-hero {
  display: grid;
  grid-template-columns: 1fr 55%;
  gap: 0;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 0 0 0;
  width: 100%;
  box-sizing: border-box;
}

.ga-article-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 72px 32px 48px calc(var(--ga-gutter) + 8px);
  box-sizing: border-box;
  flex-shrink: 0;
}

.ga-article-right {
  overflow: hidden;
  max-width: none !important;
}

/* Override WordPress is-layout-flow max-width so image fills the grid column */
.ga-article-hero > .wp-block-group,
.ga-article-hero .is-layout-flow > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
}

.ga-article-right .wp-block-post-featured-image,
.ga-article-right .wp-block-post-featured-image figure,
.ga-article-right .wp-block-post-featured-image a {
  width: 100% !important;
  max-width: none !important;
  display: block;
  margin: 0;
}

.ga-article-right .wp-block-post-featured-image img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  display: block;
}

.single .wp-block-post-title {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: 0em;
  text-transform: uppercase !important;
  line-height: 1.0;
  color: var(--ga-text);
  margin: 0 0 20px;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.ga-article-right .wp-block-post-featured-image figcaption {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0em;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  text-align: right;
}

.single .wp-block-post-date {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ga-text);
  opacity: 0.4;
}

/* Credits block */
.ga-article-credits {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ga-credit-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ga-credit-label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.4;
}
.ga-credit-value {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ga-text);
}

@media (max-width: 680px) {
  .ga-article-hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    gap: 28px;
  }
  .ga-article-right { order: -1; }
}

/* =========================
   GALLERY POSTS — slider in right column
   ========================= */
body.ga-has-gallery .ga-article-hero {
  min-height: 0;
}
body.ga-has-gallery .ga-article-left {
  min-height: 0;
}
body.ga-has-gallery .ga-article-right {
  min-height: 400px;
  overflow: visible;
}
body.ga-has-gallery .ga-article-right [class*="kb-gallery"],
body.ga-has-gallery .ga-article-right .splide {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: 400px;
}
body.ga-has-gallery .wp-block-post-content {
  padding-top: 0;
}
/* Hide next-slide peek; restore vertical scroll on trackpad */
body.ga-has-gallery .splide__track {
  overflow: hidden !important;
  touch-action: pan-y !important;
}
/* Slider arrows — faint white */
.ga-slide-prev,
.ga-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: #ffffff;
  opacity: 0.25;
  transition: opacity 0.2s;
  padding: 20px 16px;
  line-height: 1;
}
.ga-slide-prev { left: 0; }
.ga-slide-next { right: 0; }
.ga-slide-prev:hover,
.ga-slide-next:hover { opacity: 0.6; }


/* Date, terms, back-link sit under the slider at text-column width */
.ga-slider-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 0 40px;
}
.ga-slider-meta .wp-block-post-date,
.ga-slider-meta .wp-block-post-terms {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  opacity: 0.4;
  margin: 0;
}
.ga-slider-meta .ga-back-link {
  margin: 0;
  padding: 0;
}

.single .wp-block-post-content {
  font-family: var(--wp--preset--font-family--system-sans);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.85;
  color: var(--ga-text);
  max-width: 64ch;
  margin: 0 auto;
  padding: 64px var(--ga-gutter) 96px;
}

.single .wp-block-post-content .wp-block-image {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.single .wp-block-post-content .wp-block-image img {
  width: 100% !important;
  max-width: none !important;
  height: auto;
  display: block;
}

/* Kadence slider — hide Splide's own arrows; style dots faintly */
.single .splide__arrow { display: none !important; }

.splide__pagination {
  display: none !important;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 0;
  margin: 0;
  list-style: none;
}
.splide__pagination__page {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.18;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.splide__pagination__page.is-active {
  opacity: 0.5;
}



.single .wp-block-post-author-name {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: capitalize !important;
  opacity: 0.4;
  margin: 0;
}

.single .wp-block-post-author-name::before {
  content: 'av';
  text-transform: lowercase;
  opacity: 0.6;
  margin-right: 0.4em;
}

.single .wp-block-post-terms {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0em;
  text-transform: lowercase;
  opacity: 0.35;
}

/* image fade-in on load */
@keyframes ga-img-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ga-mosaic .wp-block-post-featured-image img:not(.ga-hover-img) {
  animation: ga-img-fade 0.5s ease forwards;
}

/* nav current page indicator */
.ga-nav-links a.ga-nav-current {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: #ffffff;
  opacity: 1;
}

/* =========================
   ARCHIVE / INDEX
   ========================= */
.ga-archive,
.ga-index {
  padding-top: 32px;
  padding-bottom: 64px;
}

.ga-archive .wp-block-query-title {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: clamp(22px, 3vw, 48px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 1;
  margin-bottom: 40px;
}

.ga-archive .wp-block-post-template,
.ga-index  .wp-block-post-template {
  gap: 40px 28px;
}

.ga-archive .wp-block-post-featured-image,
.ga-index  .wp-block-post-featured-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 10px;
}

.ga-archive .wp-block-post-featured-image img,
.ga-index  .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ga-archive .wp-block-post-featured-image:hover img,
.ga-index  .wp-block-post-featured-image:hover img {
  transform: scale(1.03);
}

.ga-archive .wp-block-post-title,
.ga-archive .wp-block-post-title a,
.ga-index  .wp-block-post-title,
.ga-index  .wp-block-post-title a {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: clamp(14px, 1.2vw, 19px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: none;
  color: var(--ga-text);
  text-decoration: none;
}

/* =========================
   EVENTS LIST
   ========================= */
.ga-event-row {
  display: flex !important;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: flex-start;
}

.ga-event-row .wp-block-post-featured-image {
  flex: 0 0 160px;
  width: 160px;
  height: 107px;
  overflow: hidden;
}

.ga-event-row .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ga-event-info {
  flex: 1;
}

.ga-event-info .wp-block-post-date {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  opacity: 0.4;
  margin-bottom: 6px;
}

.ga-event-info .wp-block-post-title,
.ga-event-info .wp-block-post-title a {
  font-family: var(--wp--preset--font-family--system-serif);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--ga-text);
  text-decoration: none;
  line-height: 1.2;
}

.ga-event-info .wp-block-post-excerpt {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 6px;
}

.ga-pagination {
  display: flex;
  gap: 16px;
  padding: 48px 0;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

/* =========================
   PAGE
   ========================= */
.ga-page-content {
  padding-top: 48px;
  padding-bottom: 64px;
}

.page .wp-block-post-title {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: clamp(22px, 3vw, 48px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ga-text);
  margin-bottom: 32px;
}

/* =========================
   ABOUT PAGE
   ========================= */
.ga-about {
  padding-top: 24px;
  padding-bottom: 48px;
  max-width: 900px;
}

.ga-about-title {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: clamp(22px, 3vw, 48px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ga-text);
  margin: 0 0 20px;
}

.ga-about-subtitle {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: clamp(14px, 1.8vw, 24px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ga-text);
  margin: 28px 0 10px;
}

.ga-about-body p {
  font-family: var(--wp--preset--font-family--system-sans);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.75;
  color: var(--ga-text);
  margin: 0 0 12px;
}

/* =========================
   MAGASIN PAGE
   ========================= */
.ga-magasin {
  padding-top: 24px;
  padding-bottom: 64px;
}

.ga-issues {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}

.ga-issue {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.ga-issue:nth-child(even) {
  flex-direction: row-reverse;
}

.ga-issue-cover {
  flex: 0 0 420px;
  width: 420px;
}

.ga-issue-cover img {
  cursor: zoom-in;
}

.ga-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.ga-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  cursor: zoom-out;
}

.ga-issue-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,0.1);
}

.ga-issue-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.ga-issue-number {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: normal;
  color: var(--ga-text);
  margin-bottom: 12px;
  line-height: 1;
}

.ga-issue-text {
  font-family: var(--wp--preset--font-family--system-sans);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--ga-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  transition: none;
}

.ga-issue-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.ga-issue-toggle {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--wp--preset--font-family--system-sans);
  font-size: 13px;
  color: var(--ga-text);
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ga-issue-toggle:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .ga-issue,
  .ga-issue:nth-child(even) {
    flex-direction: column;
  }

  .ga-issue-cover {
    flex: none;
    width: 100%;
    max-width: 260px;
  }
}

/* =========================
   DATES — hidden temporarily
   ========================= */
.wp-block-post-date,
.ga-card-date {
  display: none !important;
}

/* =========================
   UTELIV — fullscreen flash
   ========================= */
.ga-uteliv {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #000;
  overflow: hidden;
}

.ga-uteliv img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.ga-uteliv img.ga-uteliv-active {
  opacity: 1;
}

/* =========================
   FOOTER
   ========================= */
.ga-footer {
  padding: 48px var(--ga-gutter) 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: var(--ga-max);
  margin: 0 auto;
}

.ga-footer p,
.ga-footer a {
  font-family: 'AmericanTypewriter', 'Courier New', monospace;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ga-text);
  opacity: 0.4;
  margin: 0;
  text-decoration: none;
  transition: opacity 0.15s;
}

.ga-footer a:hover { opacity: 1; }

.ga-footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.ga-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* =========================
   DARK MODE
   ========================= */
body.ga-dark {
  --ga-bg:   #0a0a0a;
  --ga-text: #ffffff;
}

body.ga-dark .ga-header-fixed {
  background: transparent !important;
}

body.ga-dark .ga-header-block {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08);
}

body.ga-dark .ga-header-title { color: #ffffff; }
body.ga-dark .ga-header-sub { color: #ffffff; }
body.ga-dark .ga-header-nav a,
body.ga-dark .ga-header-nav a.ga-nav-current { color: #ffffff; }
body.ga-dark .ga-menu-btn { color: #ffffff; }


body.ga-dark .ga-social-link {
  color: #ffffff;
}


body.ga-dark .wp-site-blocks,
body.ga-dark .wp-block-group,
body.ga-dark .wp-block-query,
body.ga-dark .wp-block-post-template,
body.ga-dark .wp-block-post-content,
body.ga-dark .wp-block-template-part,
body.ga-dark .wp-block-post,
body.ga-dark main,
body.ga-dark .is-layout-constrained,
body.ga-dark .is-layout-flow {
  background: transparent !important;
}

body.ga-dark .ga-mosaic .wp-block-post-title,
body.ga-dark .ga-mosaic .wp-block-post-title a {
  color: #ffffff;
}

body.ga-dark .ga-mosaic .wp-block-post-excerpt {
  color: #ffffff;
}

body.ga-dark .ga-theme-toggle {
  background: linear-gradient(to right, #ffffff 50%, #0a0a0a 50%);
  border-color: rgba(255, 255, 255, 0.25);
}

body.ga-dark.single,
body.ga-dark .ga-archive,
body.ga-dark .ga-page-content {
  background: transparent !important;
  color: #ffffff;
}

body.ga-dark.single .wp-block-post-title,
body.ga-dark.single .wp-block-post-title a,
body.ga-dark.single .wp-block-post-date,
body.ga-dark.single .wp-block-post-content,
body.ga-dark.single .wp-block-post-terms,
body.ga-dark.single .wp-block-post-author-name {
  color: #000000;
}
body.ga-dark .ga-credit-value {
  color: #ffffff;
}

body.ga-dark.single .wp-block-post-content,
body.ga-dark.single .wp-block-post-content *,
body.ga-dark .ga-page-content,
body.ga-dark .ga-page-content * {
  background: transparent !important;
  color: #ffffff !important;
}

body.ga-dark .ga-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.ga-dark #ga-ant {
  filter: invert(1) brightness(0.35);
}

#ga-ant.ga-ant-dead {
  filter: none !important;
  overflow: visible;
}

/* =========================
   DARK MODE FOUC PREVENTION
   ========================= */
html.ga-dark-pre body {
  color: #ffffff;
}


/* =========================
   TEXT CARDS (no featured image)
   ========================= */
.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) {
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 360px;
}

/* light mode: make card visible against white mosaic background */
body:not(.ga-dark) .ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) {
  background: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.12);
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .wp-block-post-featured-image {
  display: none;
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .ga-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  text-align: left;
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .wp-block-post-excerpt {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  margin: 12px 0 24px;
  order: 1;
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .wp-block-post-excerpt p {
  color: rgba(255, 255, 255, 0.85);
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .wp-block-post-excerpt::before {
  content: '\201C';
  display: block;
  font-family: Georgia, serif;
  font-size: 5em;
  line-height: 0.75;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 8px;
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .wp-block-post-title a {
  font-size: 11px;
  font-family: var(--wp--preset--font-family--mono);
  letter-spacing: 0em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .ga-card-category {
  order: 0;
  color: rgba(255, 255, 255, 0.35);
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .ga-card-category a {
  color: rgba(255, 255, 255, 0.35);
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .wp-block-post-title {
  order: 2;
}

.ga-mosaic .wp-block-post-template > li:not(:has(.wp-block-post-featured-image img)) .wp-block-post-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* =========================
   PAGINATION
   ========================= */
.ga-mosaic .wp-block-query-pagination {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  padding: 0;
}

.ga-mosaic .wp-block-query-pagination-numbers .page-numbers,
.ga-mosaic .wp-block-query-pagination-previous a,
.ga-mosaic .wp-block-query-pagination-next a {
  color: var(--ga-text);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.15s;
  padding: 6px 10px;
  display: inline-block;
}

.ga-mosaic .wp-block-query-pagination-numbers .page-numbers:hover,
.ga-mosaic .wp-block-query-pagination-previous a:hover,
.ga-mosaic .wp-block-query-pagination-next a:hover { opacity: 1; }

.ga-mosaic .wp-block-query-pagination-numbers .page-numbers.current {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

/* =========================
   RESPONSIVE HEADER
   ========================= */
@media (max-width: 640px) {
  .ga-header-social {
    display: none;
  }

  .ga-header-block {
    width: calc(100vw - 32px);
  }

}

