/* ==========================================================================
   linus.fi — Inspired by Paul Carter Photography (photodesign.co.uk)
   Dual Theme (Warm Gallery Light & Deep Charcoal Dark) · Viewfinder Mark · 60/40 Split Strips
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTES: Dual Theme Parity (Light vs Dark)
   -------------------------------------------------------------------------- */

/* MÖRKT TEMA: Äkta neutral grafit (R=G=B, noll blåstick) */
:root,
html[data-theme="dark"],
body[data-theme="dark"],
.dark-mode {
  --fm4-bg-color: #0a0a0a;
  --fm4-background-color: #0a0a0a;
  --fm4-surface-color: #121212;
  --fm4-card-bg: #161616;
  --fm4-card-bg-elevated: #1e1e1e;
  --fm4-strip-card-bg: #141414;
  --fm4-strip-card-alt-bg: #171717;
  
  --fm4-text-color: #ededed;
  --fm4-text-muted: #8e8e8e;
  --fm4-text-subtle: #585858;
  --fm4-heading-color: #ffffff;
  
  --fm4-primary-color: #ffffff;
  --fm4-btn-primary-bg: #ffffff;
  --fm4-btn-primary-text: #0a0a0a;
  
  --fm4-accent-color: #cda35b;       /* Varm champagne/guld */
  --fm4-accent-hover: #dfba75;
  --fm4-accent-subtle: rgba(205, 163, 91, 0.12);
  --editorial-kicker-color: #d1b47c;
  --editorial-kicker-marks: #cda35b;
  
  --fm4-border-color: rgba(255, 255, 255, 0.08);
  --fm4-border-subtle: rgba(255, 255, 255, 0.04);
  --fm4-shadow-subtle: 0 16px 40px rgba(0, 0, 0, 0.85);
  
  --header-bg: rgba(10, 10, 10, 0.94);
  --mosaic-overlay: rgba(0, 0, 0, 0.65);

  --logo-contour: rgba(255, 255, 255, 0.75);
  --logo-contour-hover: #ffffff;
  --logo-shadow: rgba(0, 0, 0, 0.85);
}

/* LJUST TEMA: Gallerivitt med varm stenton (Inspirerat av Paul Carter) */
:root.light-mode,
html.light-mode,
html[data-theme="light"],
body.light-mode,
body[data-theme="light"],
[data-theme="light"],
.light-mode {
  --fm4-bg-color: #ffffff;
  --fm4-background-color: #ffffff;
  --fm4-surface-color: #fafafb;
  --fm4-card-bg: #ffffff;
  --fm4-card-bg-elevated: #f0f0f2;
  --fm4-strip-card-bg: #f5f3ee;       /* Varm kalk/linne-ton som Paul Carter */
  --fm4-strip-card-alt-bg: #edebe4;   /* Mjuk kontrast-ton */
  
  --fm4-text-color: #1a1a1c;
  --fm4-text-muted: #595961;
  --fm4-text-subtle: #8e8e96;
  --fm4-heading-color: #0c0c0e;
  
  --fm4-primary-color: #1a1a1c;
  --fm4-btn-primary-bg: #1a1a1c;
  --fm4-btn-primary-text: #ffffff;
  
  --fm4-accent-color: #8c6530;       /* Varm antik brons med perfekt kontrast */
  --fm4-accent-hover: #755220;
  --fm4-accent-subtle: rgba(140, 101, 48, 0.12);
  --editorial-kicker-color: #8c6530;
  --editorial-kicker-marks: #755220;
  
  --fm4-border-color: rgba(0, 0, 0, 0.08);
  --fm4-border-subtle: rgba(0, 0, 0, 0.04);
  --fm4-shadow-subtle: 0 12px 32px rgba(0, 0, 0, 0.06);
  
  --header-bg: rgba(255, 255, 255, 0.95);
  --mosaic-overlay: rgba(12, 12, 14, 0.55);

  --logo-contour: rgba(12, 12, 14, 0.65);
  --logo-contour-hover: #0c0c0e;
  --logo-shadow: rgba(0, 0, 0, 0.20);
}

/* --------------------------------------------------------------------------
   2. TYPOGRAPHY & RESET
   -------------------------------------------------------------------------- */
:root {
  --fm4-body-font: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fm4-heading-font: "Libre Baskerville", "Playfair Display", Didot, Georgia, serif;
  --fm4-mono-font: "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Global Radius Token (Rule 1) */
  --fm4-global-radius: 6px;

  /* Schematic Vertical Rhythm Grid (Rule 1) */
  --fm4-page-title-top-gap: 3.25rem;
  --fm4-heading-gap: 1.15rem;
  --fm4-content-gap: 2.25rem;
  --fm4-section-gap: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--fm4-bg-color);
  color: var(--fm4-text-color);
  font-family: var(--fm4-body-font);
  font-size: 15px;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Containers */
.fm4-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
}

.fm4-container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. CORNER BRAND LOGO (linus.fi Viewfinder Crop-Mark)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: var(--fm4-la-bar-h, 0px) !important;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--fm4-border-subtle);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, background-color 0.3s ease, border-color 0.3s ease, top 0.2s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
}

/* Frontpage Full-Screen Cover Mode: Header overlays the 100dvh hero and glides in on upward scroll or top-hover */
body.has-cover-hero {
  padding-top: 0 !important;
}

body:has(.monumental-hero) .site-header,
body.has-cover-hero .site-header {
  position: fixed;
  top: var(--fm4-la-bar-h, 0px) !important;
  left: 0;
  right: 0;
  background: var(--header-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--fm4-text-color) 12%, transparent);
}

body.fm4-live-editing .site-header,
body.fm4-la-docked .site-header {
  top: var(--fm4-la-bar-h, 46px) !important;
}

body:not(.header-hover-reveal) .site-header.site-header-hidden:not(:hover),
body:has(.monumental-hero).hero-cover-unscrolled:not(.header-hover-reveal) .site-header:not(:hover),
body.has-cover-hero.hero-cover-unscrolled:not(.header-hover-reveal) .site-header:not(:hover) {
  transform: translateY(calc(-100% - var(--fm4-la-bar-h, 0px) - 12px)) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

.site-header.site-header-scrolled {
  background: var(--header-bg) !important;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

/* Corner Viewfinder Brand Block */
.corner-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding: 0.35rem 0.25rem;
}

.viewfinder-box {
  position: relative;
  padding: 0.35rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

/* 4 Camera Focal Crop-Marks around logo */
.viewfinder-box::before,
.viewfinder-box::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: var(--fm4-heading-color);
  transition: border-color 0.2s, transform 0.2s;
}

.viewfinder-box::before {
  top: 0;
  left: 0;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.viewfinder-box::after {
  bottom: 0;
  right: 0;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

.corner-brand-mark:hover .viewfinder-box::before {
  transform: translate(-1.5px, -1.5px);
  border-color: var(--fm4-accent-color);
}

.corner-brand-mark:hover .viewfinder-box::after {
  transform: translate(1.5px, 1.5px);
  border-color: var(--fm4-accent-color);
}

.brand-text-main {
  font-family: var(--fm4-body-font);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: var(--fm4-heading-color);
  line-height: 1;
}

/* ── Photographic Text Masking with Precision Contour ── */
.brand-text-main.linus-photo-logo {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.10em;
  background-color: transparent !important;
  background-blend-mode: normal;
  background-size: 165% auto;
  background-position: center 44%;
  background-repeat: no-repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  -webkit-text-stroke: 0.75px var(--logo-contour);
  filter: brightness(0.96) contrast(1.04) saturate(0.35) drop-shadow(0 2px 4px var(--logo-shadow));
  transition: transform 0.25s ease, filter 0.25s ease, -webkit-text-stroke 0.25s ease;
  user-select: none;
}

.brand-text-main.linus-photo-logo .brand-text-dot {
  font-weight: 900;
  -webkit-text-stroke: 1.2px var(--fm4-accent-color);
  color: transparent !important;
  transition: -webkit-text-stroke 0.25s ease;
}

.corner-brand-mark:hover .brand-text-main.linus-photo-logo {
  -webkit-text-stroke: 1px var(--logo-contour-hover);
  filter: brightness(1.00) contrast(1.04) saturate(0.42) drop-shadow(0 2px 8px var(--fm4-accent-subtle)) drop-shadow(0 1px 3px var(--logo-shadow));
  transform: scale(1.02);
}

.corner-brand-mark:hover .brand-text-main.linus-photo-logo .brand-text-dot {
  -webkit-text-stroke: 1.2px var(--fm4-accent-hover);
}

.brand-text-dot {
  color: var(--fm4-accent-color);
  font-weight: 800;
}

.brand-text-sub {
  font-family: var(--fm4-mono-font);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fm4-text-muted);
  margin-top: 0.25rem;
  line-height: 1;
}

/* Header Navigation & Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 860px) {
  .header-nav {
    display: none;
  }
}

.header-nav li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 2.25rem;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  line-height: 2.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--fm4-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  vertical-align: middle;
  padding: 0 0.25rem;
}

.header-nav-link:hover {
  color: var(--fm4-heading-color);
}

.gallery-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fm4-heading-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}

.gallery-nav-pill:hover {
  border-color: var(--fm4-accent-color);
  background: var(--fm4-card-bg-elevated);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-family: var(--fm4-mono-font);
  text-transform: uppercase;
}

.lang-link {
  color: var(--fm4-text-muted);
  transition: color 0.2s;
}

.lang-link.active {
  color: var(--fm4-heading-color);
  font-weight: 700;
}

.theme-toggle-btn {
  position: relative;
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  color: var(--fm4-text-muted);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  padding: 0;
  vertical-align: middle;
}

.theme-toggle-btn:hover {
  color: var(--fm4-heading-color);
  border-color: var(--fm4-accent-color);
  background: var(--fm4-card-bg-elevated);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn:active {
  transform: scale(0.94);
}

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* In Dark Mode: Show Sun icon, Hide Moon icon */
:root:not(.light-mode) .theme-icon-sun,
html:not(.light-mode) .theme-icon-sun,
html[data-theme="dark"] .theme-icon-sun,
body:not(.light-mode) .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}

:root:not(.light-mode) .theme-icon-moon,
html:not(.light-mode) .theme-icon-moon,
html[data-theme="dark"] .theme-icon-moon,
body:not(.light-mode) .theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
  pointer-events: none;
}

/* In Light Mode: Show Moon icon, Hide Sun icon */
:root.light-mode .theme-icon-sun,
html.light-mode .theme-icon-sun,
html[data-theme="light"] .theme-icon-sun,
body.light-mode .theme-icon-sun,
body[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
  pointer-events: none;
}

:root.light-mode .theme-icon-moon,
html.light-mode .theme-icon-moon,
html[data-theme="light"] .theme-icon-moon,
body.light-mode .theme-icon-moon,
body[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   3.5 MONUMENTAL CINEMATIC HERO (Instant "Wow" Effect)
   -------------------------------------------------------------------------- */
.monumental-hero,
.uv-content > .fm4-block-wrap.monumental-hero {
  position: relative !important;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--fm4-bg-color, #0a0a0a);
}

@media (max-width: 768px) {
  .monumental-hero {
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
  }
  .monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
  }
}

.monumental-hero.valign-top,
.monumental-hero:has(.valign-top) {
  justify-content: flex-start !important;
}

.monumental-hero.valign-center,
.monumental-hero:has(.valign-center) {
  justify-content: center !important;
}

.monumental-hero.valign-bottom,
.monumental-hero:has(.valign-bottom) {
  justify-content: flex-end !important;
}

.hero-slides-wrapper,
.monumental-hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #08080a !important; /* Neutral dark base — zero white flash */
}

.hero-slide,
.hero-slides-wrapper .hero-slide,
.monumental-hero .hero-slide.fm4-block-wrap {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
}

.monumental-hero:not(.hero-js-ready) .hero-slide {
  transition: none !important;
}

.monumental-hero.hero-js-ready .hero-slide.active,
.monumental-hero.hero-js-ready .hero-slide.prev-active {
  will-change: opacity;
}

/* Hidden/disabled slides in carousel: completely excluded from visual stack (no gap/lucka), managed via Bildspel group modal */
.hero-slide.fm4-block-disabled,
.hero-slide[data-fm4-visibility-status="disabled"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero-dot.fm4-dot-disabled,
.hero-dot[data-slide-disabled="1"] {
  display: none !important;
}

/* Stacking: previous slide stays 100% opaque anchor underneath the incoming slide during autoplay */
.hero-slide.prev-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  transition: none !important; /* Do not fade out: stay solid until incoming slide covers it */
}

.hero-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

/* Zero zoom/scale distortion: lock photographs strictly to 100% framing */
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  display: block;
  transform: none !important;
}

.hero-slide.active .hero-slide-img,
.hero-slide.prev-active .hero-slide-img {
  transform: none !important;
}

/* Fast navigation & instant cut (arrow clicks, dots, keyboard, swipe) — 0ms instant switch */
.hero-fast-nav .hero-slide,
.monumental-hero.hero-fast-nav .hero-slide,
.hero-instant-switch .hero-slide,
.monumental-hero.hero-instant-switch .hero-slide,
.hero-fast-nav .hero-slide.active,
.monumental-hero.hero-fast-nav .hero-slide.active,
.hero-instant-switch .hero-slide.active,
.monumental-hero.hero-instant-switch .hero-slide.active,
.hero-fast-nav .hero-slide.prev-active,
.monumental-hero.hero-fast-nav .hero-slide.prev-active,
.hero-instant-switch .hero-slide.prev-active,
.monumental-hero.hero-instant-switch .hero-slide.prev-active {
  transition: none !important;
  animation: none !important;
}

.hero-fast-nav .hero-slide .hero-slide-img,
.monumental-hero.hero-fast-nav .hero-slide .hero-slide-img,
.hero-instant-switch .hero-slide .hero-slide-img,
.monumental-hero.hero-instant-switch .hero-slide .hero-slide-img {
  transform: none !important;
  transition: none !important;
}

.monumental-hero-scrim,
.hero-slide-scrim,
.light-mode .monumental-hero-scrim,
[data-theme="light"] .monumental-hero-scrim,
body[data-theme="light"] .monumental-hero-scrim {
  display: none !important;
  background: none !important;
}

.monumental-hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 0;
}

.monumental-hero.valign-top .monumental-hero-content,
.monumental-hero-content.valign-top {
  padding-top: 4.5rem;
  padding-bottom: 0;
}

.monumental-hero.valign-center .monumental-hero-content,
.monumental-hero-content.valign-center {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.monumental-hero-inner {
  max-width: 960px;
}

.monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin-left: clamp(1rem, 3.5vw, 4rem);
  margin-right: auto;
  width: 100%;
  max-width: min(650px, 86vw);
  text-align: left;
  isolation: isolate;
}

.monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner > * {
  position: relative;
  z-index: 1;
}

/* Zero tint layer over the photo: completely disable full-surface background smudges/ovals */
.monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner::before {
  display: none !important;
}

/* Clean editorial hero typography: pure, crisp typography with soft text-shadow without fragmented pill capsules */
.monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: fit-content;
  max-width: max-content;
  margin-bottom: 0.75rem;
}

.monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-title {
  position: relative;
  display: block;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
  color: #ffffff !important;
  text-wrap: balance;
  text-align: left;
}

.monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-tagline {
  position: relative;
  display: block;
  line-height: 1.55;
  margin: 0 0 1.75rem 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.94) !important;
  max-width: 620px;
  text-wrap: pretty;
  text-align: left;
}

[data-theme="light"] .monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner,
.light-mode .monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner,
body[data-theme="light"] .monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner .monumental-hero-title,
.light-mode .monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner .monumental-hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner .monumental-hero-tagline,
.light-mode .monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-inner .monumental-hero-tagline {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.monumental-hero:not(.fm4-variant-split-cinematic) .monumental-hero-actions {
  justify-content: flex-start;
}


.monumental-hero-kicker,
.fm4-block-hero_banner_block .monumental-hero-kicker,
.fm4-block-portfolio_hero_block .monumental-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--fm4-body-font), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f4f5 !important;
  font-weight: 700;
  margin-bottom: 0.45rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.monumental-hero-kicker span,
.monumental-hero-kicker [data-fm4-field="kicker"] {
  color: inherit !important;
  text-shadow: inherit;
}

[data-theme="light"] .monumental-hero-kicker,
.light-mode .monumental-hero-kicker,
[data-theme="light"] .monumental-hero-kicker span,
.light-mode .monumental-hero-kicker span,
[data-theme="light"] .monumental-hero-kicker [data-fm4-field="kicker"],
.light-mode .monumental-hero-kicker [data-fm4-field="kicker"] {
  color: #f4f4f5 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95) !important;
}

.monumental-hero-kicker-marks {
  color: inherit !important;
  opacity: 0.75;
  font-size: 0.85em;
  line-height: 1;
}

[data-theme="light"] .monumental-hero-kicker-marks,
.light-mode .monumental-hero-kicker-marks {
  color: #f4f4f5 !important;
  opacity: 0.85;
}

.monumental-hero-title,
.fm4-block-hero_banner_block .monumental-hero-title,
.fm4-block-portfolio_hero_block .monumental-hero-title {
  font-family: var(--fm4-heading-font);
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff !important;
  margin: 0 0 1.1rem 0;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
}

.monumental-hero-tagline,
.fm4-block-hero_banner_block .monumental-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 300;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 0 2rem 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.monumental-hero-actions,
#fm4-page .monumental-hero-inner[data-bld-grid="1"] > .monumental-hero-actions[data-bld-slot="actions"] {
  display: flex !important;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-cta-btn,
.fm4-block-hero_banner_block .hero-cta-btn,
.fm4-block-portfolio_hero_block .hero-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem;
  width: auto !important;
  justify-self: start !important;
  min-height: 0 !important;
  padding: 0.85rem 1.85rem !important;
  background: #ffffff !important;
  color: #0a0a0a !important;
  border-radius: var(--fm4-global-radius, 6px) !important;
  font-family: var(--fm4-body-font) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.3 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #ffffff !important;
  text-decoration: none !important;
}

.hero-cta-btn:hover,
.fm4-block-hero_banner_block .hero-cta-btn:hover,
.fm4-block-portfolio_hero_block .hero-cta-btn:hover {
  background: transparent !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  filter: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .hero-cta-btn,
.light-mode .hero-cta-btn,
body[data-theme="light"] .hero-cta-btn {
  background: #09090b !important;
  color: #ffffff !important;
  border: 1px solid #09090b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .hero-cta-btn:hover,
.light-mode .hero-cta-btn:hover,
body[data-theme="light"] .hero-cta-btn:hover {
  background: var(--fm4-accent-color, #8c6530) !important;
  border-color: var(--fm4-accent-color, #8c6530) !important;
  color: #ffffff !important;
  filter: none !important;
  box-shadow: 0 8px 24px rgba(140, 101, 48, 0.25) !important;
  transform: translateY(-2px);
}

.hero-secondary-btn,
.fm4-block-hero_banner_block .hero-secondary-btn,
.fm4-block-portfolio_hero_block .hero-secondary-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
  width: auto !important;
  justify-self: start !important;
  min-height: 0 !important;
  padding: 0.85rem 1.65rem !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  border-radius: var(--fm4-global-radius, 6px) !important;
  font-family: var(--fm4-body-font) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.3 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
}

.hero-secondary-btn:hover,
.fm4-block-hero_banner_block .hero-secondary-btn:hover,
.fm4-block-portfolio_hero_block .hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  filter: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px);
}

[data-theme="light"] .hero-secondary-btn,
.light-mode .hero-secondary-btn,
body[data-theme="light"] .hero-secondary-btn {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  color: #09090b !important;
  box-shadow: none !important;
}

[data-theme="light"] .hero-secondary-btn:hover,
.light-mode .hero-secondary-btn:hover,
body[data-theme="light"] .hero-secondary-btn:hover {
  background: #ffffff !important;
  border-color: #09090b !important;
  color: #09090b !important;
  filter: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

/* ── Split-Cinematic Hero Variant ────────────────────────────────────────── */
.fm4-variant-split-cinematic .monumental-hero-inner {
  max-width: 1320px;
  width: 100%;
}

.monumental-hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: flex-end;
  width: 100%;
}

.hero-split-col-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  padding: 0;
  overflow: visible;
  isolation: isolate;
}

.hero-split-col-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: fit-content;
  max-width: 440px;
  justify-self: end;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  padding: 0;
  overflow: visible;
  isolation: isolate;
}

.hero-split-col-left > *,
.hero-split-col-right > * {
  position: relative;
  z-index: 1;
}

/* Per-line text backgrounds (raderna skilt) so image visibility is maximized */
.hero-title-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1.25rem;
  background: transparent !important;
}

.hero-title-group::before,
.hero-split-col-right::before {
  display: none !important;
}

.hero-title-group .monumental-hero-kicker,
.hero-split-col-left .monumental-hero-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: max-content;
  margin-bottom: 0.5rem;
  z-index: 1;
}

.hero-title-group .monumental-hero-title,
.hero-split-col-left .monumental-hero-title {
  position: relative;
  display: block;
  z-index: 1;
  margin: 0 0 0.85rem 0;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
  color: #ffffff !important;
  text-wrap: balance;
}

.hero-title-group .monumental-hero-tagline,
.hero-split-col-left .monumental-hero-tagline {
  position: relative;
  display: block;
  z-index: 1;
  margin: 0;
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.94) !important;
  text-wrap: balance;
}

[data-theme="light"] .hero-title-group .monumental-hero-title,
.light-mode .hero-title-group .monumental-hero-title,
[data-theme="light"] .hero-split-col-left .monumental-hero-title,
.light-mode .hero-split-col-left .monumental-hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .hero-title-group .monumental-hero-tagline,
.light-mode .hero-title-group .monumental-hero-tagline,
[data-theme="light"] .hero-split-col-left .monumental-hero-tagline,
.light-mode .hero-split-col-left .monumental-hero-tagline {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-split-col-right .monumental-hero-lead {
  position: relative;
  display: block;
  line-height: 1.75;
  z-index: 1;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: rgba(255, 255, 255, 0.96) !important;
  margin: 0 0 1.25rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  font-weight: 450;
  text-wrap: balance;
}

[data-theme="light"] .hero-split-col-right .monumental-hero-lead,
.light-mode .hero-split-col-right .monumental-hero-lead,
body[data-theme="light"] .hero-split-col-right .monumental-hero-lead {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  font-weight: 450;
}

[data-theme="light"] .hero-split-col-left,
.light-mode .hero-split-col-left,
body[data-theme="light"] .hero-split-col-left,
[data-theme="light"] .hero-split-col-right,
.light-mode .hero-split-col-right,
body[data-theme="light"] .hero-split-col-right {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.monumental-hero-lead {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.96) !important;
  margin: 0 0 1.25rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  font-weight: 400;
}

.hero-split-col-right .monumental-hero-specs,
.monumental-hero-specs,
.mosaic-grid.is-diptych-editorial .exhibition-gear-pill,
.mosaic-grid.is-diptych-editorial .exhibition-gear-line {
  display: none !important;
}

@media (max-width: 900px) {
  .monumental-hero-split-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Slideshow UI controls — Sleek Minimal Glass Capsule */
.hero-slideshow-ui {
  position: absolute;
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  right: clamp(1.25rem, 3.5vw, 3rem);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(12, 12, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.35rem 0.55rem 0.35rem 0.85rem;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--fm4-body-font);
}

@media (max-width: 680px) {
  .hero-slideshow-ui {
    bottom: 0.85rem;
    right: 0.85rem;
    padding: 0.3rem 0.45rem 0.3rem 0.7rem;
    gap: 0.55rem;
  }
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.hero-dot.active {
  background: #ffffff;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.hero-slide-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-nav-arrow {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.hero-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero-nav-arrow:active {
  background: rgba(255, 255, 255, 0.28);
}

/* --------------------------------------------------------------------------
   Hero Slide Location & Title Badge — Translucent Glass Capsule
   -------------------------------------------------------------------------- */
.hero-slide-badge {
  position: absolute;
  bottom: calc(clamp(1.25rem, 3vw, 2.5rem) + 48px);
  right: clamp(1.25rem, 3.5vw, 3rem);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(10, 10, 14, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-family: var(--fm4-body-font, Inter, system-ui, sans-serif);
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  max-width: min(440px, calc(100vw - 2.5rem));
  line-height: 1.35;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.hero-slide-badge-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fm4-accent-color, #cda35b);
  flex-shrink: 0;
  opacity: 0.95;
}

.hero-slide-location {
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-slide-badge-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  flex-shrink: 0;
  margin: 0 1px;
}

.hero-slide-title {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 450;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .hero-slide-badge {
    bottom: calc(0.85rem + 44px);
    right: 0.85rem;
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
    gap: 0.35rem;
  }
}

/* Visibility rules compliant with Rule 9 */
body:not(.fm4-live-editing) .hero-slide-badge[data-has-caption="0"][data-has-title="0"],
body:not(.fm4-live-editing) .hero-slide-badge:has(.hero-slide-location:empty):has(.hero-slide-title:empty) {
  display: none !important;
}

body:not(.fm4-live-editing) .hero-slide-badge[data-has-caption="0"] .hero-slide-badge-pin,
body:not(.fm4-live-editing) .hero-slide-badge[data-has-caption="0"] .hero-slide-location,
body:not(.fm4-live-editing) .hero-slide-badge:has(.hero-slide-location:empty) .hero-slide-badge-pin,
body:not(.fm4-live-editing) .hero-slide-badge:has(.hero-slide-location:empty) .hero-slide-location {
  display: none !important;
}

body:not(.fm4-live-editing) .hero-slide-badge[data-has-title="0"] .hero-slide-title,
body:not(.fm4-live-editing) .hero-slide-badge:has(.hero-slide-title:empty) .hero-slide-title {
  display: none !important;
}

body:not(.fm4-live-editing) .hero-slide-badge[data-has-caption="0"] .hero-slide-badge-sep,
body:not(.fm4-live-editing) .hero-slide-badge[data-has-title="0"] .hero-slide-badge-sep,
body:not(.fm4-live-editing) .hero-slide-badge:has(.hero-slide-location:empty) .hero-slide-badge-sep,
body:not(.fm4-live-editing) .hero-slide-badge:has(.hero-slide-title:empty) .hero-slide-badge-sep {
  display: none !important;
}

/* In live editing mode, show clickable subtle empty placeholders & delicate focus outlines */
body.fm4-live-editing .hero-slide-badge {
  display: inline-flex !important;
  opacity: 1 !important;
}

body.fm4-live-editing .hero-slide-badge [data-fm4-field][contenteditable="true"] {
  outline: 1px dashed rgba(255, 255, 255, 0.22) !important;
  outline-offset: 1px !important;
  border-radius: 4px !important;
  padding: 0 3px !important;
  background: transparent !important;
}

body.fm4-live-editing .hero-slide-badge [data-fm4-field][contenteditable="true"]:focus {
  outline: 1.5px solid var(--fm4-primary-color, #ea580c) !important;
  outline-offset: 1px !important;
  background: rgba(0, 0, 0, 0.35) !important;
}

body.fm4-live-editing .hero-slide-badge [data-fm4-field]:empty::before {
  content: attr(placeholder);
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   Hero Top Brand: Sculptural Photo-Knockout LINUS Logo (Top-Left)
   & Hero Top Controls: Pause & Fullscreen Cluster (Top-Right)
   -------------------------------------------------------------------------- */
.hero-top-brand {
  position: absolute;
  top: calc(clamp(1.25rem, 3vw, 2.25rem) + var(--fm4-la-bar-h, 0px));
  left: clamp(1.25rem, 3.5vw, 3rem);
  z-index: 6;
  pointer-events: auto;
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hero-top-brand .hero-cover-viewfinder {
  padding: 0.35rem 0.65rem;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.hero-top-brand .hero-cover-viewfinder::before,
.hero-top-brand .hero-cover-viewfinder::after {
  border-color: rgba(255, 255, 255, 0.85);
  width: 11px;
  height: 11px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.75));
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.hero-top-brand:hover .hero-cover-viewfinder::before,
.hero-top-brand:hover .hero-cover-viewfinder::after {
  width: 15px;
  height: 15px;
  border-color: var(--fm4-primary-color);
}

.hero-top-brand .linus-photo-logo {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  letter-spacing: 0.16em;
  font-weight: 800;
  line-height: 0.96;
  background-color: transparent !important;
  background-size: 165% auto;
  background-position: center 44%;
  background-repeat: no-repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  -webkit-text-stroke: 0.65px rgba(255, 255, 255, 0.52);
  filter: brightness(0.96) contrast(1.04) saturate(0.35) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 14px rgba(0, 0, 0, 0.42));
}

.hero-top-brand .brand-text-sub {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55);
  margin-top: 0.28rem;
}

/* Remove distracting Live Edit rounded pill outline inside .hero-top-brand, .corner-brand-mark, and unfocused hero cover story fields without erasing .linus-photo-logo background-image */
body.fm4-live-editing .hero-top-brand [data-fm4-field]:not(:focus),
body.fm4-live-editing .corner-brand-mark [data-fm4-field]:not(:focus),
body.fm4-live-editing .monumental-hero-inner [data-fm4-field]:not(:focus) {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

body.fm4-live-editing .hero-top-brand [data-fm4-field]:not(.linus-photo-logo):not(:focus),
body.fm4-live-editing .corner-brand-mark [data-fm4-field]:not(.linus-photo-logo):not(:focus),
body.fm4-live-editing .monumental-hero-inner [data-fm4-field]:not(.hero-cta-btn):not(.hero-secondary-btn):not(:focus) {
  background-color: transparent !important;
}

body.fm4-live-editing .linus-photo-logo {
  background-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Per-Slide Editorial Cover Story panels */
.monumental-hero-inner[data-slide-story-index]:not(.active) {
  display: none !important;
}

.monumental-hero-inner[data-slide-story-index].active {
  display: block;
  animation: heroStoryFadeIn 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroStoryFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smoothly fade out hero-top-brand whenever the page leaves full cover mode (scrolling down or menu revealed) */
body:not(.hero-cover-unscrolled) .hero-top-brand,
body.header-hover-reveal .hero-top-brand,
body:has(.site-header:not(.site-header-hidden)) .hero-top-brand,
body:has(.site-header:hover) .hero-top-brand {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
}

.hero-top-controls {
  position: absolute;
  top: calc(clamp(1.25rem, 3vw, 2.25rem) + var(--fm4-la-bar-h, 0px));
  right: clamp(1.25rem, 3.5vw, 3rem);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

body.header-hover-reveal .hero-top-controls,
body:has(.site-header:hover) .hero-top-controls,
body:not(.hero-cover-unscrolled):has(.site-header:not(.site-header-hidden)) .hero-top-controls {
  transform: translateY(4.25rem);
}

.hero-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 14, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.hero-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-control-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.28);
}

/* Pause Button State */
.hero-pause-btn .hero-pause-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-pause-btn .hero-play-icon {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 1px;
}

.hero-pause-btn.is-paused .hero-pause-icon {
  display: none;
}

.hero-pause-btn.is-paused .hero-play-icon {
  display: inline-flex;
}

.hero-pause-btn.is-paused {
  border-color: var(--fm4-accent-color, #cda35b);
  background: color-mix(in srgb, var(--fm4-accent-color, #cda35b) 25%, rgba(10, 10, 14, 0.65));
}

/* Fullscreen Button State */
.hero-fullscreen-btn .hero-fs-icon-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-fullscreen-btn .hero-fs-icon-exit {
  display: none;
  align-items: center;
  justify-content: center;
}

/* Fullscreen Active Mode (Native or CSS fallback) */
.monumental-hero:fullscreen,
.monumental-hero:-webkit-full-screen,
.monumental-hero.is-hero-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100svh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 99999 !important;
  background: #000000 !important;
}

.monumental-hero:fullscreen .hero-top-controls,
.monumental-hero:-webkit-full-screen .hero-top-controls,
.monumental-hero.is-hero-fullscreen .hero-top-controls {
  top: clamp(1.25rem, 3vw, 2.5rem);
  right: clamp(1.25rem, 3.5vw, 3rem);
}

.monumental-hero:fullscreen .hero-fs-icon-enter,
.monumental-hero:-webkit-full-screen .hero-fs-icon-enter,
.monumental-hero.is-hero-fullscreen .hero-fs-icon-enter {
  display: none !important;
}

.monumental-hero:fullscreen .hero-fs-icon-exit,
.monumental-hero:-webkit-full-screen .hero-fs-icon-exit,
.monumental-hero.is-hero-fullscreen .hero-fs-icon-exit {
  display: inline-flex !important;
}

body.hero-fullscreen-active {
  overflow: hidden !important;
}

@media (max-width: 680px) {
  .hero-top-brand {
    top: calc(0.85rem + var(--fm4-la-bar-h, 0px));
    left: 0.85rem;
  }
  .hero-top-brand .linus-photo-logo {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }
  .hero-top-controls {
    top: calc(0.85rem + var(--fm4-la-bar-h, 0px));
    right: 0.85rem;
    gap: 0.35rem;
  }
  .hero-control-btn {
    width: 36px;
    height: 36px;
  }
}

/* --------------------------------------------------------------------------
   4. INTRO SECTION (Like Paul Carter's Opening Title & Subtitle)
   -------------------------------------------------------------------------- */
.intro-section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}

.intro-title {
  font-family: var(--fm4-heading-font);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 400;
  color: var(--fm4-heading-color);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.intro-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm4-text-muted);
  margin-bottom: 1.35rem;
}

.intro-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fm4-text-muted);
  max-width: 780px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   5. PHOTO MOSAIC / COLLAGE (12 Curated Images Grid)
   -------------------------------------------------------------------------- */
.mosaic-section,
.fm4-block-photo_gallery_block,
.fm4-block-gallery_media_block {
  padding: clamp(4.25rem, 6.5vw, 5.75rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.gallery-header,
.mosaic-header {
  text-align: center;
  margin-bottom: var(--fm4-content-gap, 2.25rem);
}

/* Portfolio Filter Bar */
.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: var(--fm4-content-gap, 2.25rem);
}

.series-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  border-radius: var(--fm4-global-radius, 12px);
  font-family: var(--fm4-body-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
}

.series-count-dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--fm4-global-radius, 12px);
  background: var(--fm4-accent-color);
}

.portfolio-filter-btn {
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-subtle);
  border-radius: 999px;
  padding: 0.42rem 1.1rem;
  font-family: var(--fm4-body-font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm4-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.portfolio-filter-btn:hover {
  color: var(--fm4-heading-color);
  border-color: var(--fm4-border-color);
  transform: translateY(-1px);
}

.portfolio-filter-btn.active {
  background: var(--fm4-heading-color);
  color: var(--fm4-bg-color, #ffffff) !important;
  border-color: var(--fm4-heading-color);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1024px) {
  .mosaic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

.mosaic-card,
.mosaic-section .mosaic-card,
.fm4-block-photo_gallery_block .mosaic-card.fm4-block-wrap {
  position: relative !important;
  aspect-ratio: 4/5;
  border-radius: var(--fm4-global-radius, 6px);
  overflow: hidden;
  background: var(--fm4-card-bg);
  cursor: pointer;
}

.mosaic-card.is-hidden {
  display: none !important;
}

.mosaic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  display: block;
}

.mosaic-card:hover .mosaic-img {
  transform: scale(1.04);
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--mosaic-overlay), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mosaic-card:hover .mosaic-overlay {
  opacity: 1;
}

.mosaic-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.mosaic-genre {
  color: var(--fm4-accent-color);
  font-family: var(--fm4-body-font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* =============================================================================
   EDITORIAL EXHIBITION WALKTHROUGH (diptych_editorial)
   Curated fine art monograph layout with scientific visual pacing:
   Opus Lead Anchor -> Diptych Dialogues -> Detail Centerpieces.
   ============================================================================= */

.mosaic-grid.is-diptych-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(3.5rem, 7vw, 6.5rem);
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.mosaic-grid.is-diptych-editorial .mosaic-card {
  position: relative;
  aspect-ratio: auto !important;
  border-radius: 0;
  overflow: visible !important;
  background: transparent !important;
  cursor: default;
  display: flex;
  flex-direction: column;
}

/* ── The Artwork Frame & Passepartout (100% Uncropped Precision) ───────────── */
.mosaic-grid.is-diptych-editorial .exhibition-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--fm4-global-radius, 8px);
  overflow: hidden;
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  box-shadow: 0 16px 44px -8px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

[data-theme="light"] .mosaic-grid.is-diptych-editorial .exhibition-frame,
.light-mode .mosaic-grid.is-diptych-editorial .exhibition-frame,
body[data-theme="light"] .mosaic-grid.is-diptych-editorial .exhibition-frame {
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.10);
  border-color: color-mix(in srgb, var(--fm4-border-color) 80%, #000);
}

.mosaic-grid.is-diptych-editorial .mosaic-card:hover .exhibition-frame {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--fm4-accent-color);
  border-color: var(--fm4-accent-color);
}

[data-theme="light"] .mosaic-grid.is-diptych-editorial .mosaic-card:hover .exhibition-frame,
.light-mode .mosaic-grid.is-diptych-editorial .mosaic-card:hover .exhibition-frame,
body[data-theme="light"] .mosaic-grid.is-diptych-editorial .mosaic-card:hover .exhibition-frame {
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--fm4-accent-color);
}

.mosaic-grid.is-diptych-editorial .mosaic-img,
.mosaic-grid.is-diptych-editorial .exhibition-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: none;
}

/* Zero crop on hover: lift frame with shadow, never scale image edges */
.mosaic-grid.is-diptych-editorial .mosaic-card:hover .mosaic-img,
.mosaic-grid.is-diptych-editorial .mosaic-card:hover .exhibition-img {
  transform: none !important;
}

/* ── Interactive Zoom Badge ─────────────────────────────────────────────────── */
.mosaic-grid.is-diptych-editorial .exhibition-glass-badge {
  position: absolute;
  bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  right: clamp(0.75rem, 1.5vw, 1.25rem);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(10, 10, 14, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: #ffffff;
  font-family: var(--fm4-body-font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.mosaic-grid.is-diptych-editorial .mosaic-card:hover .exhibition-glass-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ── Museum Plaque & Typography ─────────────────────────────────────────────── */
.mosaic-grid.is-diptych-editorial .exhibition-plaque {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
}

.mosaic-grid.is-diptych-editorial .exhibition-kicker {
  color: var(--fm4-accent-color);
  font-family: var(--fm4-body-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mosaic-grid.is-diptych-editorial .exhibition-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.mosaic-grid.is-diptych-editorial .exhibition-artwork-title {
  color: var(--fm4-heading-color);
  font-family: var(--fm4-heading-font);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}

.mosaic-grid.is-diptych-editorial .exhibition-gear-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--fm4-surface-color) 82%, #000);
  border: 1px solid var(--fm4-border-color);
  border-radius: 12px;
  font-size: 0.74rem;
  color: var(--fm4-text-muted);
  font-family: monospace;
  letter-spacing: 0.02em;
}

[data-theme="light"] .mosaic-grid.is-diptych-editorial .exhibition-gear-pill,
.light-mode .mosaic-grid.is-diptych-editorial .exhibition-gear-pill,
body[data-theme="light"] .mosaic-grid.is-diptych-editorial .exhibition-gear-pill {
  background: color-mix(in srgb, var(--fm4-surface-color) 92%, #000);
}

.mosaic-grid.is-diptych-editorial .exhibition-genre {
  color: var(--fm4-accent-color);
  font-family: var(--fm4-body-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.mosaic-grid.is-diptych-editorial .exhibition-gear-line {
  color: var(--fm4-text-muted);
  font-size: 0.75rem;
  font-family: monospace;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
}

.mosaic-grid.is-diptych-editorial .exhibition-caption-text {
  font-family: var(--fm4-body-font);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fm4-text-muted);
  margin-top: 0.45rem;
  max-width: 680px;
}

/* ── 1. OPUS / LEAD ANCHOR (Item 0) ─────────────────────────────────────────── */
.mosaic-grid.is-diptych-editorial .exhibition-card-opus {
  grid-column: 1 / -1 !important;
  max-width: 1040px !important;
  margin-inline: auto !important;
  justify-self: center !important;
  width: 100% !important;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-opus.is-portrait {
  max-width: 660px !important;
  margin-inline: auto !important;
  justify-self: center !important;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-opus.is-landscape {
  max-width: 1040px !important;
  margin-inline: auto !important;
  justify-self: center !important;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-opus .exhibition-frame {
  aspect-ratio: auto !important;
  height: auto;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-opus .exhibition-artwork-title {
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
}

.mosaic-grid.is-diptych-editorial .exhibition-card-opus .exhibition-caption-text {
  font-size: 0.98rem;
  max-width: 780px;
}

/* ── 2. DIPTYCH DIALOGUE PAIR (Items 1 & 2, 4 & 5, etc.) ────────────────────── */
.mosaic-grid.is-diptych-editorial .exhibition-card-diptych-left {
  grid-column: 1 !important;
  width: 100% !important;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-diptych-right {
  grid-column: 2 !important;
  width: 100% !important;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-diptych-left .exhibition-frame,
.mosaic-grid.is-diptych-editorial .exhibition-card-diptych-right .exhibition-frame {
  aspect-ratio: auto !important;
  height: auto;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-diptych-left .exhibition-artwork-title,
.mosaic-grid.is-diptych-editorial .exhibition-card-diptych-right .exhibition-artwork-title {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

/* ── 3. CENTERPIECE SOLO FEATURE (Items 3, 6, 9, etc.) ──────────────────────── */
.mosaic-grid.is-diptych-editorial .exhibition-card-centerpiece {
  grid-column: 1 / -1 !important;
  max-width: 920px !important;
  margin-inline: auto !important;
  justify-self: center !important;
  width: 100% !important;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-centerpiece.is-portrait {
  max-width: 600px !important;
  margin-inline: auto !important;
  justify-self: center !important;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-centerpiece.is-landscape {
  max-width: 920px !important;
  margin-inline: auto !important;
  justify-self: center !important;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-centerpiece .exhibition-frame {
  aspect-ratio: auto !important;
  height: auto;
}

.mosaic-grid.is-diptych-editorial .exhibition-card-centerpiece .exhibition-artwork-title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

/* ── Responsive Mobile Reflow ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mosaic-grid.is-diptych-editorial {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 3rem;
  }

  .mosaic-grid.is-diptych-editorial .exhibition-card-opus,
  .mosaic-grid.is-diptych-editorial .exhibition-card-diptych-left,
  .mosaic-grid.is-diptych-editorial .exhibition-card-diptych-right,
  .mosaic-grid.is-diptych-editorial .exhibition-card-centerpiece {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
  }

  .mosaic-grid.is-diptych-editorial .exhibition-card-opus .exhibition-frame,
  .mosaic-grid.is-diptych-editorial .exhibition-card-centerpiece .exhibition-frame {
    aspect-ratio: auto !important;
    height: auto;
  }

  .mosaic-grid.is-diptych-editorial .exhibition-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* FM4 Live Editing Mosaic Scoping & Badges */
body.fm4-live-editing .mosaic-overlay {
  pointer-events: none;
}
body.fm4-live-editing .mosaic-overlay > * {
  pointer-events: auto;
}
body.fm4-live-editing .fm4-image-seq-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: color-mix(in srgb, var(--fm4-surface-color, #18181b) 88%, #000);
  border: 1px solid color-mix(in srgb, var(--fm4-border-color, #3f3f46) 75%, transparent);
  color: #fff;
  font-family: var(--fm4-heading-font, Oswald, sans-serif);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--fm4-global-radius, 6px);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   6. SECTION TITLE (My Photography Services / Områden)
   -------------------------------------------------------------------------- */
.services-heading-wrap {
  text-align: center;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.services-title {
  font-family: var(--fm4-heading-font);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--fm4-heading-color);
  margin: 0 0 0.5rem 0;
}

.services-sub {
  font-family: var(--fm4-mono-font);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm4-text-muted);
}

/* --------------------------------------------------------------------------
   7. FULL-BLEED EDGE-TO-EDGE SERVICE STRIPS (100% Viewport Width)
   -------------------------------------------------------------------------- */
.edge-strips-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

#fm4-page .uv-content-main_content {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

#fm4-page .uv-content-main_content > .fm4-block-wrap.edge-strip-section,
#fm4-page .uv-content-main_content > .fm4-block-wrap.fm4-block-media_text_block,
#fm4-page .uv-content-main_content > .fm4-block-wrap.fm4-block-portfolio_strip_block,
.edge-strip-section {
  width: 100% !important;
  margin: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--fm4-border-subtle);
  border-bottom: 1px solid var(--fm4-border-subtle);
  transition: background-color 0.25s ease;
  overflow: hidden;
}

/* Background Color Tones across Themes */
.edge-strip-section.bg-warm-linen,
.edge-strip-section.bg-warm_linen {
  background-color: var(--fm4-strip-card-bg);
}

.edge-strip-section.bg-gallery-surface,
.edge-strip-section.bg-gallery_surface {
  background-color: var(--fm4-surface-color);
}

.edge-strip-section.bg-darkroom {
  background-color: #0c0c0e;
  color: #ededed;
}

.edge-strip-section.bg-darkroom .strip-title {
  color: #ffffff;
}

.edge-strip-section.bg-darkroom .strip-text {
  color: #a4a4af;
}

.edge-strip-section.bg-darkroom .strip-kicker {
  color: #cda35b;
}

.edge-strip-section.bg-darkroom .strip-btn,
#fm4-page .edge-strip-section.bg-darkroom .strip-btn {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid color-mix(in srgb, #ffffff 42%, transparent) !important;
  box-shadow: none !important;
}

.edge-strip-section.bg-darkroom .strip-btn:focus,
.edge-strip-section.bg-darkroom .strip-btn[contenteditable="true"] {
  background: transparent !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  box-shadow: none !important;
}

.edge-strip-section.bg-darkroom .strip-btn:hover,
#fm4-page .edge-strip-section.bg-darkroom .strip-btn:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  box-shadow: none !important;
  filter: none !important;
}

.edge-strip-inner {
  display: flex;
  width: 100%;
  height: clamp(440px, 58vh, 620px);
  max-height: calc(100vh - 120px);
  min-height: 400px;
  align-items: stretch;
}

.edge-strip-inner.reverse {
  flex-direction: row-reverse;
}

.edge-strip-media {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  background: var(--fm4-background-color);
  height: 100%;
  min-height: 0;
}

body:not(.fm4-live-editing) .strip-image-box {
  cursor: zoom-in;
}

.edge-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
  display: block;
}

.edge-strip-inner:hover .edge-strip-img {
  transform: scale(1.025);
}

/* Mini-Slideshow inside .strip-image-box */
.strip-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  overflow: hidden;
}

.strip-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

.strip-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.strip-slide .edge-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Discreet Gallery Controls on .strip-image-box */
.strip-slide-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.15rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--fm4-global-radius, 12px);
  background: color-mix(in srgb, var(--fm4-surface-color) 76%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--fm4-border-color) 65%, transparent);
  pointer-events: auto;
}

.strip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: color-mix(in srgb, var(--fm4-text-color) 38%, transparent);
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.strip-dot:hover {
  background: color-mix(in srgb, var(--fm4-text-color) 72%, transparent);
  transform: scale(1.15);
}

.strip-dot.active {
  background: var(--fm4-primary-color);
  transform: scale(1.22);
}

/* Guard: hide navigation arrows and dots if single image or no multi-slideshow */
.strip-image-box:not(.has-strip-slideshow) .strip-slide-nav,
.strip-image-box:not(.has-strip-slideshow) .strip-slide-dots,
.strip-slide-dots:empty,
.strip-slide-dots:has(> .strip-dot:only-child),
.strip-slide-dots:not(:has(.strip-dot:not([style*="display: none"]):not([style*="display:none"]):nth-child(2))) {
  display: none !important;
}

.strip-slide-nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
}

.strip-nav-arrow {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fm4-border-color) 65%, transparent);
  background: color-mix(in srgb, var(--fm4-surface-color) 78%, transparent);
  color: var(--fm4-text-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.strip-image-box:hover .strip-nav-arrow,
body.fm4-live-editing .strip-image-box .strip-nav-arrow {
  opacity: 0.92;
}

.strip-nav-arrow:hover {
  opacity: 1 !important;
  background: var(--fm4-surface-color);
  border-color: var(--fm4-primary-color);
  color: var(--fm4-primary-color);
  transform: scale(1.06);
}

.edge-strip-card {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 3.5vw, 4.5rem) clamp(2rem, 4vw, 5rem);
  height: 100%;
  box-sizing: border-box;
}

.edge-strip-card-content {
  max-width: 520px;
  width: 100%;
}

@media (max-width: 960px) {
  .edge-strip-inner,
  .edge-strip-inner.reverse {
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: auto;
  }
  .edge-strip-media {
    flex: none;
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 400px;
    min-height: 260px;
  }
  .strip-slideshow {
    min-height: 260px;
  }
  .strip-nav-arrow {
    opacity: 0.85;
  }
  .edge-strip-card {
    flex: none;
    width: 100%;
    padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
    height: auto;
  }
}

/* Backwards compatibility for boxed strip-item */
.split-strips-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.strip-item {
  display: flex;
  min-height: 520px;
  border-radius: var(--fm4-global-radius, 6px);
  overflow: hidden;
  border: 1px solid var(--fm4-border-color);
  box-shadow: var(--fm4-shadow-subtle);
  background: var(--fm4-surface-color);
}

.strip-item.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .strip-item,
  .strip-item.reverse {
    flex-direction: column;
    min-height: auto;
  }
}

.strip-media {
  flex: 0 0 62%;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: #000000;
}

@media (max-width: 900px) {
  .strip-media {
    flex: none;
    aspect-ratio: 16/10;
    min-height: 280px;
  }
}

.strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transition: transform 0.5s ease;
  display: block;
}

.strip-item:hover .strip-img {
  transform: scale(1.02);
}

.strip-content {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--fm4-strip-card-bg);
  transition: background 0.25s ease;
}

@media (max-width: 900px) {
  .strip-content {
    flex: none;
    padding: 2rem 1.5rem;
  }
}

.strip-kicker {
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.strip-title {
  font-family: var(--fm4-heading-font);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fm4-heading-color);
  margin: 0 0 1.15rem 0;
}

.strip-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--fm4-text-muted);
  margin: 0 0 1.85rem 0;
}

.strip-btn,
.cta-strip-section .strip-btn,
.contact-section .strip-btn,
.fm4-cta-action-row .strip-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
  width: auto !important;
  justify-self: start !important;
  min-height: 0 !important;
  padding: 0.75rem 1.65rem !important;
  background: var(--fm4-btn-primary-bg) !important;
  color: var(--fm4-btn-primary-text) !important;
  border-radius: var(--fm4-global-radius, 6px) !important;
  font-family: var(--fm4-body-font) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.3 !important;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.2s, border-color 0.25s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

#inquirySubmitBtn.strip-btn {
  width: 100% !important;
}

.strip-btn:focus,
.strip-btn[contenteditable="true"] {
  background: var(--fm4-btn-primary-bg) !important;
  color: var(--fm4-btn-primary-text) !important;
  caret-color: var(--fm4-btn-primary-text) !important;
  box-shadow: none !important;
}

.strip-btn:hover,
.cta-strip-section .strip-btn:hover,
.contact-section .strip-btn:hover,
.fm4-cta-action-row .strip-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  filter: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
  color: var(--fm4-btn-primary-text) !important;
}

[data-theme="light"] .strip-btn,
.light-mode .strip-btn,
body[data-theme="light"] .strip-btn,
[data-theme="light"] .cta-strip-section .strip-btn,
.light-mode .cta-strip-section .strip-btn,
[data-theme="light"] .contact-section .strip-btn,
.light-mode .contact-section .strip-btn {
  background: #1a1a1c !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

[data-theme="light"] .strip-btn:hover,
.light-mode .strip-btn:hover,
body[data-theme="light"] .strip-btn:hover,
[data-theme="light"] .cta-strip-section .strip-btn:hover,
.light-mode .cta-strip-section .strip-btn:hover,
[data-theme="light"] .contact-section .strip-btn:hover,
.light-mode .contact-section .strip-btn:hover {
  background: #1a1a1c !important;
  color: #ffffff !important;
  filter: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .strip-btn:focus,
.light-mode .strip-btn:focus,
body[data-theme="light"] .strip-btn:focus {
  background: #1a1a1c !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  box-shadow: none !important;
}

/* Editorial Gallery Link inside .edge-strip-section (Artistic Monograph Style) */
#fm4-page .edge-strip-section .fm4-media-text-cta[data-bld-slot="cta"] {
  width: fit-content !important;
  justify-self: start !important;
}

.edge-strip-section .strip-btn,
#fm4-page .edge-strip-section .edge-strip-card-content > .strip-btn[data-bld-slot="cta"],
#fm4-page .edge-strip-section .edge-strip-card-content > [data-bld-slot="cta"] .strip-btn,
[data-theme="light"] .edge-strip-section .strip-btn,
.light-mode .edge-strip-section .strip-btn,
body[data-theme="light"] .edge-strip-section .strip-btn,
[data-theme="light"] #fm4-page .edge-strip-section .edge-strip-card-content > [data-bld-slot="cta"] .strip-btn,
.light-mode #fm4-page .edge-strip-section .edge-strip-card-content > [data-bld-slot="cta"] .strip-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: fit-content !important;
  max-width: 100% !important;
  justify-self: start !important;
  align-self: flex-start !important;
  min-height: 0 !important;
  background: transparent !important;
  color: var(--fm4-heading-color) !important;
  padding: 0.4rem 0 !important;
  border: none !important;
  border-bottom: 1px solid color-mix(in srgb, currentColor 42%, transparent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--fm4-mono-font) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  gap: 0 !important;
}

.edge-strip-section .strip-btn:focus,
.edge-strip-section .strip-btn[contenteditable="true"],
[data-theme="light"] .edge-strip-section .strip-btn:focus,
.light-mode .edge-strip-section .strip-btn:focus,
body[data-theme="light"] .edge-strip-section .strip-btn:focus {
  background: transparent !important;
  color: var(--fm4-heading-color) !important;
  caret-color: var(--fm4-heading-color) !important;
  box-shadow: none !important;
}

.edge-strip-section .strip-btn::after {
  content: "→";
  display: inline-block;
  margin-left: 0.55rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.edge-strip-section .strip-btn:hover,
#fm4-page .edge-strip-section .edge-strip-card-content > [data-bld-slot="cta"] .strip-btn:hover,
[data-theme="light"] .edge-strip-section .strip-btn:hover,
.light-mode .edge-strip-section .strip-btn:hover,
body[data-theme="light"] .edge-strip-section .strip-btn:hover {
  opacity: 1;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--fm4-heading-color) !important;
  border-bottom-color: currentColor !important;
}

.edge-strip-section .strip-btn:hover::after {
  transform: translateX(5px);
}

.edge-strip-section.bg-darkroom .strip-btn,
#fm4-page .edge-strip-section.bg-darkroom .edge-strip-card-content > [data-bld-slot="cta"] .strip-btn,
[data-theme="light"] .edge-strip-section.bg-darkroom .strip-btn,
.light-mode .edge-strip-section.bg-darkroom .strip-btn,
body[data-theme="light"] .edge-strip-section.bg-darkroom .strip-btn {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid color-mix(in srgb, #ffffff 42%, transparent) !important;
  box-shadow: none !important;
}

.edge-strip-section.bg-darkroom .strip-btn:focus,
.edge-strip-section.bg-darkroom .strip-btn[contenteditable="true"],
[data-theme="light"] .edge-strip-section.bg-darkroom .strip-btn:focus,
.light-mode .edge-strip-section.bg-darkroom .strip-btn:focus,
body[data-theme="light"] .edge-strip-section.bg-darkroom .strip-btn:focus {
  background: transparent !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  box-shadow: none !important;
}

.edge-strip-section.bg-darkroom .strip-btn:hover,
#fm4-page .edge-strip-section.bg-darkroom .edge-strip-card-content > [data-bld-slot="cta"] .strip-btn:hover,
[data-theme="light"] .edge-strip-section.bg-darkroom .strip-btn:hover,
.light-mode .edge-strip-section.bg-darkroom .strip-btn:hover,
body[data-theme="light"] .edge-strip-section.bg-darkroom .strip-btn:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   8. PHOTOGRAPHER BIO & SIGNATURE CAPTION
   -------------------------------------------------------------------------- */
.bio-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--fm4-border-subtle);
  background: var(--fm4-surface-color);
  text-align: center;
}

.bio-wrap,
.fm4-profile-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.fm4-profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

body:not(.fm4-live-editing) .fm4-profile-avatar-wrap:has(.fm4-profile-avatar[src=""]),
body:not(.fm4-live-editing) .fm4-profile-avatar[src=""] {
  display: none;
}

.fm4-profile-avatar {
  display: block;
  margin: 0 auto;
  max-width: 280px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.bio-title {
  font-family: var(--fm4-heading-font);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  color: var(--fm4-heading-color);
  margin-bottom: 0.85rem;
}

.bio-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fm4-text-muted);
  margin-bottom: 2rem;
}

.bio-gear {
  font-family: var(--fm4-body-font);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--fm4-accent-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

.signature-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.signature-svg {
  color: var(--fm4-heading-color);
  opacity: 0.85;
}

.signature-img {
  display: block;
  margin: 0 auto;
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  opacity: 0.88;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.signature-img:hover {
  opacity: 1;
}

[data-theme="dark"] .signature-img,
body.dark-mode .signature-img,
.dark-theme .signature-img,
[data-theme="dark"] .fm4-profile-avatar[src*=".svg"],
body.dark-mode .fm4-profile-avatar[src*=".svg"],
.dark-theme .fm4-profile-avatar[src*=".svg"] {
  filter: invert(1) brightness(1.25);
}

/* --------------------------------------------------------------------------
   9. CONTACT SECTION & MODAL
   -------------------------------------------------------------------------- */
.contact-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--fm4-border-subtle);
  background: var(--fm4-bg-color);
  text-align: center;
}

.contact-action-row,
#fm4-page .fm4-cta-strip-wrap[data-bld-grid="1"] > .contact-action-row[data-bld-slot="actions"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.65rem;
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  border-radius: 999px;
  font-family: var(--fm4-mono-font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fm4-heading-color);
  transition: border-color 0.2s, background 0.2s;
}

.contact-pill-link:hover {
  border-color: var(--fm4-accent-color);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  border-radius: 8px;
  width: 100%;
  max-width: 540px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--fm4-text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--fm4-heading-color);
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fm4-text-muted);
  margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--fm4-card-bg-elevated);
  border: 1px solid var(--fm4-border-color);
  border-radius: 4px;
  color: var(--fm4-text-color);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--fm4-accent-color);
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.open,
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  position: relative;
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: min(92vw, 2200px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  transition: opacity 0.18s ease;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ededed;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--fm4-body-font);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-series-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-family: var(--fm4-body-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 30;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  pointer-events: auto;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 3.25rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  pointer-events: auto !important;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.lightbox-next {
  right: 1.5rem;
  border-radius: 4px 0 0 4px;
}

/* --------------------------------------------------------------------------
   Personal Work & Fine Art (Fria serier & konsttryck)
   -------------------------------------------------------------------------- */
.personal-work-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: var(--fm4-surface-color);
  border-top: 1px solid var(--fm4-border-subtle);
  border-bottom: 1px solid var(--fm4-border-subtle);
}

.personal-work-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.personal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 880px) {
  .personal-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.personal-card {
  background: var(--fm4-background-color);
  border: 1px solid var(--fm4-border-subtle);
  border-radius: var(--fm4-global-radius, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.personal-card:hover {
  transform: translateY(-4px);
  border-color: var(--fm4-border-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.personal-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0d0f;
}

.personal-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.personal-card:hover .personal-card-img {
  transform: scale(1.05);
}

.personal-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.personal-card-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
  margin-bottom: 0.4rem;
}

.personal-card-title {
  font-family: var(--fm4-heading-font);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--fm4-heading-color);
}

.personal-card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fm4-text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.personal-card-action {
  margin-top: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--fm4-border-subtle);
  padding: 2.5rem 0;
  background: var(--fm4-surface-color);
  text-align: center;
  font-size: 0.8rem;
  color: var(--fm4-text-subtle);
}

/* --------------------------------------------------------------------------
   3.9 EDITORIAL TYPOGRAPHY: Quotes, Pull-Quotes & Notes (Theme Harmonized)
   -------------------------------------------------------------------------- */
blockquote,
.fm4-editorial-quote {
  position: relative;
  margin: var(--fm4-section-gap, 3.5rem) auto;
  max-width: 820px;
  padding: 2.25rem 2rem;
  text-align: center;
  border: none;
  background: transparent;
}

blockquote::before,
.fm4-editorial-quote::before {
  content: "“";
  display: block;
  font-family: var(--fm4-heading-font);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--fm4-accent-color);
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

blockquote p,
.fm4-editorial-quote p {
  font-family: var(--fm4-heading-font);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fm4-heading-color);
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem 0;
  text-wrap: balance;
}

blockquote cite,
.fm4-editorial-quote cite {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
  opacity: 0.85;
}

blockquote cite::before,
blockquote cite::after,
.fm4-editorial-quote cite::before,
.fm4-editorial-quote cite::after {
  content: "—";
  opacity: 0.5;
}

/* Callout & Editorial Notes (No garish IT blues, harmonized with canvas) */
.fm4-callout-note {
  margin: 2.5rem auto;
  max-width: 820px;
  padding: 1.5rem 1.85rem;
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-subtle);
  border-left: 3px solid var(--fm4-accent-color);
  border-radius: var(--fm4-global-radius, 4px);
  color: var(--fm4-text-color);
}

.fm4-callout-title {
  font-family: var(--fm4-mono-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
  margin-bottom: 0.5rem;
}

.fm4-callout-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fm4-text-muted);
}

/* Gracefully harmonize legacy inline callout elements (e.g. blue alert boxes) */
div[style*="#3b82f6"] {
  background: var(--fm4-surface-color) !important;
  border-left: 3px solid var(--fm4-accent-color) !important;
  border-top: 1px solid var(--fm4-border-subtle) !important;
  border-right: 1px solid var(--fm4-border-subtle) !important;
  border-bottom: 1px solid var(--fm4-border-subtle) !important;
  border-radius: var(--fm4-global-radius, 4px) !important;
  box-shadow: none !important;
}

div[style*="#3b82f6"] div,
div[style*="#3b82f6"] span {
  color: var(--fm4-accent-color) !important;
  font-family: var(--fm4-mono-font) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
}

div[style*="#3b82f6"] p {
  color: var(--fm4-text-muted) !important;
}

/* --------------------------------------------------------------------------
   EDITORIAL DEDICATED SERIES PAGES (Boudoir & Fine Art Collections)
   -------------------------------------------------------------------------- */
.site-header-series {
  background: var(--header-bg);
  border-bottom: 1px solid var(--fm4-border-color);
}

.series-nav-divider {
  width: 1px;
  height: 24px;
  background: var(--fm4-border-color);
}

.series-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.series-nav-badge-pill {
  display: inline-block;
  padding: 2px 8px;
  background: var(--fm4-accent-subtle);
  border: 1px solid var(--fm4-accent-color);
  border-radius: 12px;
  font-family: var(--fm4-mono-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
}

.series-nav-badge-title {
  font-family: var(--fm4-mono-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fm4-heading-color);
  opacity: 0.9;
}

.series-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  line-height: 2.25rem;
  font-weight: 600;
  color: var(--fm4-text-color) !important;
  transition: color 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
}

.series-back-link svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.series-back-link:hover {
  color: var(--fm4-accent-color) !important;
  transform: translateX(-2px);
}

.series-cta-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  line-height: 2.25rem;
  border: 1px solid var(--fm4-accent-color);
  background: var(--fm4-accent-subtle);
  border-radius: var(--fm4-global-radius, 6px);
  padding: 0 1.1rem !important;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.series-cta-highlight:hover {
  background: var(--fm4-accent-color) !important;
  color: #ffffff !important;
}

.fm4-series-main {
  position: relative;
  min-height: 80vh;
}

.hero-spec-pill,
.light-mode .hero-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(18, 18, 22, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 20px;
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3f3f5 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-spec-pill:first-child,
.hero-spec-pill:nth-child(2),
.light-mode .hero-spec-pill:first-child,
.light-mode .hero-spec-pill:nth-child(2) {
  color: var(--fm4-accent-color) !important;
  border-color: var(--fm4-accent-subtle) !important;
  background: rgba(28, 24, 16, 0.88) !important;
}

.hero-spec-pill:hover {
  border-color: var(--fm4-accent-color) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.series-return-btn,
.fm4-btn.series-return-btn,
.strip-btn-secondary.fm4-btn.series-return-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  width: auto !important;
  justify-self: start !important;
  min-height: 0 !important;
  padding: 0.75rem 1.45rem !important;
  border-radius: var(--fm4-global-radius, 6px) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--fm4-border-color) !important;
  color: var(--fm4-text-muted) !important;
  box-shadow: none !important;
  font-family: var(--fm4-body-font) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.series-return-btn:hover,
.fm4-btn.series-return-btn:hover,
.strip-btn-secondary.fm4-btn.series-return-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--fm4-accent-color) !important;
  color: var(--fm4-heading-color) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: translateY(-1px);
}

[data-theme="light"] .series-return-btn,
.light-mode .series-return-btn,
body[data-theme="light"] .series-return-btn,
[data-theme="light"] .fm4-btn.series-return-btn,
.light-mode .fm4-btn.series-return-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: var(--fm4-border-color) !important;
  color: var(--fm4-text-muted) !important;
  box-shadow: none !important;
}

[data-theme="light"] .series-return-btn:hover,
.light-mode .series-return-btn:hover,
body[data-theme="light"] .series-return-btn:hover,
[data-theme="light"] .fm4-btn.series-return-btn:hover,
.light-mode .fm4-btn.series-return-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: var(--fm4-accent-color) !important;
  color: var(--fm4-heading-color) !important;
  box-shadow: none !important;
  filter: none !important;
}

@media (max-width: 768px) {
  .series-nav-badge-title {
    display: none;
  }
  .series-nav-divider {
    display: none;
  }
}

.signature-text-caption {
  font-size: 0.85rem;
  color: var(--fm4-text-muted);
  text-align: center;
  margin-top: 0.35rem;
}
body:not(.fm4-live-editing) .signature-text-caption {
  display: none;
}
body.fm4-live-editing .signature-text-caption {
  display: block;
}

/* ── FM4 Generic Block Visibility & Conditions ────────────────────────────── */
body:not(.fm4-live-editing) .fm4-block-disabled,
body:not(.fm4-live-editing) [data-fm4-visibility-status="disabled"],
body:not(.fm4-live-editing) [data-fm4-visibility-status="paused"],
body:not(.fm4-live-editing) [data-fm4-visibility-status="hidden"],
body:not(.fm4-live-editing) .hero-dot.fm4-dot-disabled,
body:not(.fm4-live-editing) .hero-dot[data-slide-disabled="1"] {
  display: none !important;
}

body.fm4-live-editing .fm4-block-disabled:not(.hero-slide) {
  opacity: 0.55;
  filter: grayscale(45%);
  outline: 2px dashed rgba(234, 179, 8, 0.45) !important;
  outline-offset: -2px;
  position: relative;
  transition: opacity 0.2s, filter 0.2s;
}

body.fm4-live-editing .fm4-block-disabled:not(.hero-slide):hover {
  opacity: 0.88;
  filter: grayscale(10%);
}

body.fm4-live-editing .hero-slide.fm4-block-disabled,
body.fm4-live-editing .hero-slide[data-fm4-visibility-status="disabled"],
body.fm4-live-editing .hero-slide[data-fm4-visibility-status="paused"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  outline: 2px dashed rgba(250, 204, 21, 0.65) !important;
  outline-offset: -4px !important;
}

body.fm4-live-editing .hero-slide.fm4-block-disabled:not(.active),
body.fm4-live-editing .hero-slide[data-fm4-visibility-status="disabled"]:not(.active),
body.fm4-live-editing .hero-slide[data-fm4-visibility-status="paused"]:not(.active) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.fm4-live-editing .hero-slide.fm4-block-disabled.active,
body.fm4-live-editing .hero-slide[data-fm4-visibility-status="disabled"].active,
body.fm4-live-editing .hero-slide[data-fm4-visibility-status="paused"].active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  z-index: 3 !important;
}

body:not(.fm4-live-editing) .strip-slide.fm4-slide-hidden {
  display: none !important;
}

body.fm4-live-editing .strip-slide.active:not(.fm4-slide-hidden):not(.fm4-block-disabled) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

body.fm4-live-editing .hero-slide.fm4-block-disabled.active .hero-slide-img,
body.fm4-live-editing .hero-slide[data-fm4-visibility-status="disabled"].active .hero-slide-img,
body.fm4-live-editing .hero-slide[data-fm4-visibility-status="paused"].active .hero-slide-img {
  filter: grayscale(85%) brightness(0.45) contrast(0.9) !important;
  opacity: 0.72 !important;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

body.fm4-live-editing .hero-slides-wrapper:has(.hero-slide.active.fm4-block-disabled),
body.fm4-live-editing .hero-slides-wrapper:has(.hero-slide.active[data-fm4-visibility-status="disabled"]),
body.fm4-live-editing .hero-slides-wrapper:has(.hero-slide.active[data-fm4-visibility-status="paused"]),
body.fm4-live-editing .monumental-hero-slides:has(.hero-slide.active.fm4-block-disabled) {
  z-index: 6 !important;
}

body.fm4-live-editing .monumental-hero-content {
  pointer-events: none;
}

body.fm4-live-editing .monumental-hero-content .monumental-hero-inner {
  pointer-events: auto;
}

body.fm4-live-editing .hero-dot.fm4-dot-disabled,
body.fm4-live-editing .hero-dot[data-slide-disabled="1"] {
  border: 1.5px dashed rgba(250, 204, 21, 0.85) !important;
  background: rgba(250, 204, 21, 0.2) !important;
  opacity: 0.75;
}

body.fm4-live-editing .hero-dot.fm4-dot-disabled.active,
body.fm4-live-editing .hero-dot[data-slide-disabled="1"].active {
  background: rgba(250, 204, 21, 0.85) !important;
  opacity: 1;
}

.hero-slide .fm4-la-disabled-banner {
  position: absolute !important;
  top: 108px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 95 !important;
  margin: 0 !important;
  width: max-content;
  max-width: calc(100% - 32px);
  gap: 12px;
  pointer-events: auto !important;
}

.fm4-la-disabled-banner {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  margin: 8px auto;
  max-width: calc(100% - 24px);
  background: rgba(24, 24, 27, 0.94);
  border: 1px solid rgba(234, 179, 8, 0.55);
  border-radius: var(--fm4-global-radius, 8px);
  backdrop-filter: blur(8px);
  color: #facc15;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

/* ── Hero Slideshow Natural Scrolling (Snap Disabled) ─────────────────────── */

.fm4-la-disabled-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fm4-la-disabled-info svg {
  flex-shrink: 0;
}

.fm4-la-enable-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--fm4-global-radius, 6px);
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto !important;
  transition: all 0.15s ease;
}

.fm4-la-enable-btn:hover {
  background: #facc15;
  color: #18181b;
  border-color: #facc15;
}

/* Device visibility rules for regular visitors */
@media (max-width: 768px) {
  body:not(.fm4-live-editing) .fm4-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  body:not(.fm4-live-editing) .fm4-hide-desktop {
    display: none !important;
  }
}

/* ── Rule 9: Hide empty editable text fields for regular visitors (never hide void/media elements) ── */
body:not(.fm4-live-editing) [data-fm4-field]:not(img):not(input):not(textarea):not(select):not(hr):not(br):not(video):not(audio):not(iframe):not(canvas):not(svg):not(picture):empty {
  display: none;
}

/* ── Discreet Lightbox Commission / Artwork Inquiry Link ──────────────────── */
.lightbox-inquire-link {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.15rem 0;
  margin-left: 0.35rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lightbox-inquire-link:hover {
  color: var(--fm4-accent-color);
  border-bottom-color: var(--fm4-accent-color);
}

/* ── Photo Story / Diptych / Visual Essay Block (photo_story_block) ───────── */
.fm4-photo-story-section {
  width: 100%;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background: var(--fm4-surface-color);
  border-top: 1px solid var(--fm4-border-subtle);
  border-bottom: 1px solid var(--fm4-border-subtle);
  color: var(--fm4-text-color);
}

.fm4-photo-story-header {
  max-width: 760px;
  margin: 0 auto clamp(2.75rem, 5vw, 4.25rem) auto;
  text-align: center;
}

.fm4-photo-story-kicker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
  margin-bottom: 0.75rem;
}

.fm4-photo-story-title {
  font-family: var(--fm4-heading-font);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fm4-heading-color);
  margin: 0 0 1.15rem 0;
  text-wrap: balance;
}

.fm4-photo-story-narrative {
  font-family: var(--fm4-body-font);
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--fm4-text-muted);
  max-width: 660px;
  margin: 0 auto;
}

.fm4-photo-story-narrative p {
  margin: 0 0 1rem 0;
}

.fm4-photo-story-narrative p:last-child {
  margin-bottom: 0;
}

.fm4-photo-story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  align-items: start;
}

/* Default / Asymmetric Diptych (7 + 5 columns with subtle gallery offset) */
.fm4-photo-story-section.layout-diptych_asym .fm4-photo-story-figure.is-primary {
  grid-column: 1 / 8;
}

.fm4-photo-story-section.layout-diptych_asym .fm4-photo-story-figure.is-secondary {
  grid-column: 8 / 13;
  margin-top: clamp(1.5rem, 4vw, 3.75rem);
}

/* Balanced 50/50 Diptych */
.fm4-photo-story-section.layout-diptych_50_50 .fm4-photo-story-figure.is-primary {
  grid-column: 1 / 7;
}

.fm4-photo-story-section.layout-diptych_50_50 .fm4-photo-story-figure.is-secondary {
  grid-column: 7 / 13;
}

/* Triptych (3 equal columns) */
.fm4-photo-story-section.layout-triptych .fm4-photo-story-figure.is-primary {
  grid-column: 1 / 5;
}

.fm4-photo-story-section.layout-triptych .fm4-photo-story-figure.is-secondary {
  grid-column: 5 / 9;
}

.fm4-photo-story-section.layout-triptych .fm4-photo-story-figure.is-tertiary {
  grid-column: 9 / 13;
}

/* Editorial Reportage (Left-aligned header + wide asymmetric plates) */
.fm4-photo-story-section.layout-editorial_reportage .fm4-photo-story-header {
  text-align: left;
  margin-left: 0;
}

.fm4-photo-story-section.layout-editorial_reportage .fm4-photo-story-narrative {
  margin-left: 0;
}

.fm4-photo-story-section.layout-editorial_reportage .fm4-photo-story-figure.is-primary {
  grid-column: 1 / 8;
}

.fm4-photo-story-section.layout-editorial_reportage .fm4-photo-story-figure.is-secondary {
  grid-column: 8 / 13;
}

/* Hide conditional secondary/tertiary image for visitors; keep in DOM for Rule 9 Live Edit */
body:not(.fm4-live-editing) .fm4-photo-story-section .fm4-photo-story-figure.is-tertiary-conditional,
body:not(.fm4-live-editing) .fm4-photo-story-section .fm4-photo-story-figure.is-secondary-conditional {
  display: none;
}

body.fm4-live-editing .fm4-photo-story-section .fm4-photo-story-figure.is-tertiary-conditional,
body.fm4-live-editing .fm4-photo-story-section .fm4-photo-story-figure.is-secondary-conditional {
  grid-column: span 4;
  opacity: 0.72;
  outline: 1px dashed var(--fm4-border-color);
  outline-offset: 6px;
}

.fm4-photo-story-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.fm4-photo-story-passepartout {
  position: relative;
  padding: clamp(0.85rem, 1.8vw, 1.5rem);
  background: var(--fm4-background-color);
  border: 1px solid var(--fm4-border-subtle);
  box-shadow: var(--fm4-shadow-subtle);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fm4-photo-story-passepartout:hover {
  border-color: var(--fm4-border-color);
}

.fm4-photo-story-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0, 0.2, 1);
}

.fm4-photo-story-passepartout:hover .fm4-photo-story-img {
  transform: scale(1.02);
}

.fm4-photo-story-caption {
  margin-top: 0.85rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--fm4-text-muted);
}

@media (max-width: 900px) {
  .fm4-photo-story-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .fm4-photo-story-section .fm4-photo-story-figure.is-primary,
  .fm4-photo-story-section .fm4-photo-story-figure.is-secondary,
  .fm4-photo-story-section .fm4-photo-story-figure.is-tertiary {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
  }
}

/* ── Tegelstenar / Interlocking Brick Strips Layout (bricks_strips) ──────────
   Applies to both Series Galleries (.mosaic-grid.is-bricks-strips) and
   Photo Stories / Bildreportage (.fm4-photo-story-section.layout-bricks_strips).
   Matches the frontpage #serier alternating 55/45 full-bleed edge strips.
   ─────────────────────────────────────────────────────────────────────────── */

/* 1. Series Galleries in Tegelstenar mode (.mosaic-grid.is-bricks-strips) */
.mosaic-grid.is-bricks-strips,
.mosaic-section.fm4-variant-bricks_strips .mosaic-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  border-top: 1px solid var(--fm4-border-subtle);
}

.mosaic-grid.is-bricks-strips .mosaic-card,
.mosaic-card.layout-bricks_strips {
  position: relative;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--fm4-border-subtle) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  cursor: default;
}

.mosaic-grid.is-bricks-strips .mosaic-card.bg-warm-linen,
.mosaic-card.layout-bricks_strips.bg-warm-linen {
  background: var(--fm4-surface-warm, var(--fm4-surface-color)) !important;
}

.mosaic-grid.is-bricks-strips .mosaic-card.bg-gallery-surface,
.mosaic-card.layout-bricks_strips.bg-gallery-surface {
  background: var(--fm4-surface-color) !important;
}

.mosaic-grid.is-bricks-strips .mosaic-card.bg-darkroom,
.mosaic-card.layout-bricks_strips.bg-darkroom {
  background: var(--fm4-darkroom-bg, #0d0d10) !important;
  color: #f4f4f6;
}

.mosaic-grid.is-bricks-strips .mosaic-card .edge-strip-media,
.mosaic-card.layout-bricks_strips .edge-strip-media {
  cursor: pointer;
}

.mosaic-grid.is-bricks-strips .mosaic-card .edge-strip-img,
.mosaic-card.layout-bricks_strips .edge-strip-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 540px;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  display: block;
}

@media (max-width: 900px) {
  .mosaic-grid.is-bricks-strips .mosaic-card .edge-strip-img,
  .mosaic-card.layout-bricks_strips .edge-strip-img {
    min-height: 340px;
    aspect-ratio: 16 / 10 !important;
  }
}

body:not(.fm4-live-editing) .mosaic-card.layout-bricks_strips .strip-text[data-fm4-field]:empty {
  display: none;
}

/* 2. Photo Stories / Bildreportage in Non-Brick vs Brick mode */
.fm4-photo-story-section:not(.layout-bricks_strips) .fm4-photo-story-brick-kicker,
.fm4-photo-story-section:not(.layout-bricks_strips) .fm4-photo-story-brick-btn {
  display: none !important;
}

.fm4-photo-story-section.layout-bricks_strips,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-section {
  padding-bottom: 0 !important;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-grid,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  border-top: 1px solid var(--fm4-border-subtle);
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure {
  display: grid !important;
  grid-template-columns: 55% 45% !important;
  min-height: 540px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--fm4-border-subtle);
  align-items: stretch;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.is-reverse,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.is-reverse {
  grid-template-columns: 45% 55% !important;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.is-reverse .fm4-photo-story-passepartout,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.is-reverse .fm4-photo-story-passepartout {
  order: 2;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.is-reverse .fm4-photo-story-caption-card,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.is-reverse .fm4-photo-story-caption-card {
  order: 1;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.bg-warm-linen,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.bg-warm-linen {
  background: var(--fm4-surface-warm, var(--fm4-surface-color));
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.bg-gallery-surface,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.bg-gallery-surface {
  background: var(--fm4-surface-color);
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.bg-darkroom,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.bg-darkroom {
  background: var(--fm4-darkroom-bg, #0d0d10);
  color: #f4f4f6;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-passepartout,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-passepartout {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #000000 !important;
  height: 100%;
  min-height: 540px;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-img,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 540px;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-caption-card,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-caption-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem);
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-brick-inner,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-brick-inner {
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-caption,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-caption {
  font-family: var(--fm4-heading-font);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fm4-heading-color);
  margin: 0.5rem 0 1.75rem 0;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.bg-darkroom .fm4-photo-story-caption,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.bg-darkroom .fm4-photo-story-caption {
  color: #ffffff;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-brick-btn,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-brick-btn {
  background: transparent !important;
  color: var(--fm4-heading-color) !important;
  padding: 0.4rem 0 !important;
  border: none !important;
  border-bottom: 1px solid color-mix(in srgb, currentColor 42%, transparent) !important;
  border-radius: 0 !important;
  font-family: var(--fm4-mono-font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-brick-btn::after,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-brick-btn::after {
  content: "→";
  display: inline-block;
  margin-left: 0.55rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-brick-btn:hover::after,
.photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-brick-btn:hover::after {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure,
  .fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.is-reverse,
  .photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure,
  .photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.is-reverse {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }
  .fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.is-reverse .fm4-photo-story-passepartout,
  .photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.is-reverse .fm4-photo-story-passepartout {
    order: 1;
  }
  .fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-figure.is-reverse .fm4-photo-story-caption-card,
  .photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-figure.is-reverse .fm4-photo-story-caption-card {
    order: 2;
  }
  .fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-passepartout,
  .fm4-photo-story-section.layout-bricks_strips .fm4-photo-story-img,
  .photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-passepartout,
  .photo-story-wrap.fm4-variant-bricks_strips .fm4-photo-story-img {
    min-height: 320px;
    aspect-ratio: 16 / 10 !important;
  }
}

/* ── Compact Card & Journal Entry Layouts ("Vanliga bildreportage") ──────────
   Clean, unpretentious photo-journal entries for everyday moments, travel
   notes, and smaller stories that do not need monumental exhibition walls.
   ─────────────────────────────────────────────────────────────────────────── */
.fm4-photo-story-section.layout-compact_card,
.fm4-photo-story-section.layout-journal_entry,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-section,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-section {
  padding: clamp(2rem, 4.5vw, 3.5rem) 0;
  border-bottom: none;
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-container,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-container,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-container,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: color-mix(in srgb, var(--fm4-surface-color) 76%, var(--fm4-background-color));
  border: 1px solid var(--fm4-border-subtle);
  border-radius: var(--fm4-global-radius, 12px);
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-header,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-header,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-header,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-header {
  text-align: left;
  max-width: 68ch;
  margin: 0 0 1.85rem 0;
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-title,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-title,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-title,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-title {
  font-size: clamp(1.4rem, 2.3vw, 2.05rem);
  margin: 0 0 0.75rem 0;
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-narrative,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-narrative,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-narrative,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-narrative {
  margin-left: 0;
  font-size: 0.98rem;
  line-height: 1.72;
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-grid,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-grid,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-grid,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-grid {
  gap: 1.5rem;
  align-items: start;
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-figure.is-primary,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-figure.is-primary,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-figure.is-primary,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-figure.is-primary {
  grid-column: 1 / 7;
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-figure.is-secondary,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-figure.is-secondary,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-figure.is-secondary,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-figure.is-secondary {
  grid-column: 7 / 13;
  margin-top: 0;
}

.fm4-photo-story-section.layout-journal_entry.is-single-photo .fm4-photo-story-figure.is-primary,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-section.is-single-photo .fm4-photo-story-figure.is-primary {
  grid-column: 1 / 10;
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-figure.is-tertiary:not(.is-tertiary-conditional),
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-figure.is-tertiary:not(.is-tertiary-conditional),
.fm4-photo-story-section.layout-editorial_reportage .fm4-photo-story-figure.is-tertiary:not(.is-tertiary-conditional) {
  grid-column: 1 / 13;
  margin-top: 0.5rem;
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-passepartout,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-passepartout,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-passepartout,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-passepartout {
  padding: 0.5rem;
  border-radius: calc(var(--fm4-global-radius, 12px) * 0.5);
}

.fm4-photo-story-section.layout-compact_card .fm4-photo-story-img,
.fm4-photo-story-section.layout-journal_entry .fm4-photo-story-img,
.photo-story-wrap.fm4-variant-compact_card .fm4-photo-story-img,
.photo-story-wrap.fm4-variant-journal_entry .fm4-photo-story-img {
  aspect-ratio: 4 / 3;
}

/* Extra images grid (images 4–6 in a photo story) */
.fm4-photo-story-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

/* Live Edit Hero Carousel Status & 1-Click Promotion Bar */
.fm4-story-hero-live-bar {
  display: none;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  background: color-mix(in srgb, var(--fm4-surface-color) 90%, var(--fm4-background-color));
  border: 1px solid var(--fm4-border-color);
  border-radius: 999px;
  width: fit-content;
}

.fm4-photo-story-header:not([style*="text-align: left"]) .fm4-story-hero-live-bar {
  margin-left: auto;
  margin-right: auto;
}

.fm4-photo-story-section.layout-compact_card .fm4-story-hero-live-bar,
.fm4-photo-story-section.layout-journal_entry .fm4-story-hero-live-bar,
.fm4-photo-story-section.layout-editorial_reportage .fm4-story-hero-live-bar {
  margin-left: 0;
  margin-right: 0;
}

body.fm4-live-editing .fm4-story-hero-live-bar {
  display: inline-flex;
}

.fm4-story-hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm4-text-muted);
}

.fm4-story-hero-status-pill.is-active {
  color: var(--fm4-accent-color);
  font-weight: 600;
}

.fm4-story-hero-toggle-btn {
  appearance: none;
  background: color-mix(in srgb, var(--fm4-accent-color) 14%, transparent);
  color: var(--fm4-text-color);
  border: 1px solid color-mix(in srgb, var(--fm4-accent-color) 40%, var(--fm4-border-color));
  border-radius: 999px;
  padding: 0.22rem 0.68rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fm4-story-hero-toggle-btn:hover {
  background: color-mix(in srgb, var(--fm4-accent-color) 26%, transparent);
  border-color: var(--fm4-accent-color);
}

.fm4-story-manage-btn,
.fm4-story-add-after-btn {
  appearance: none;
  background: color-mix(in srgb, var(--fm4-surface-color) 85%, var(--fm4-background-color));
  color: var(--fm4-text-color);
  border: 1px solid var(--fm4-border-color);
  border-radius: 999px;
  padding: 0.22rem 0.72rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fm4-story-manage-btn:hover,
.fm4-story-add-after-btn:hover {
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
}

/* Unified 2-Column Passepartout Pair Rhythm for Photo Stories */
.fm4-photo-story-section:not(.layout-bricks_strips) .fm4-photo-story-grid.is-passepartout-pair {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.fm4-photo-story-section:not(.layout-bricks_strips) .fm4-photo-story-grid.is-passepartout-pair .fm4-photo-story-figure {
  grid-column: span 6 !important;
  margin-top: 0 !important;
}

.fm4-photo-story-section:not(.layout-bricks_strips).is-single-photo .fm4-photo-story-grid.is-passepartout-pair .fm4-photo-story-figure {
  grid-column: 1 / 9 !important;
}

.fm4-photo-story-section:not(.layout-bricks_strips) .fm4-photo-story-grid.is-passepartout-pair .fm4-photo-story-passepartout {
  padding: clamp(0.65rem, 1.3vw, 1.05rem);
  background: var(--fm4-matte-paper-bg, var(--fm4-surface-color));
  border: 1px solid var(--fm4-matte-paper-border, var(--fm4-border-subtle));
  border-radius: calc(var(--fm4-global-radius, 12px) * 0.45);
  box-shadow: var(--fm4-shadow-subtle);
}

.fm4-photo-story-section:not(.layout-bricks_strips) .fm4-photo-story-grid.is-passepartout-pair .fm4-photo-story-img {
  aspect-ratio: 4 / 3 !important;
  object-fit: cover;
}

@media (max-width: 900px) {
  .fm4-photo-story-section:not(.layout-bricks_strips) .fm4-photo-story-grid.is-passepartout-pair .fm4-photo-story-figure {
    grid-column: 1 / -1 !important;
  }
}

/* Per-Image Hero Carousel Promotion Pill in Live Edit (.fm4-story-img-hero-btn) */
.fm4-story-img-hero-btn {
  display: none;
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 9;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fm4-background-color) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--fm4-border-color) 80%, transparent);
  color: var(--fm4-text-color);
  font-family: var(--fm4-mono-font);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.fm4-live-editing .fm4-story-img-hero-btn {
  display: inline-flex;
}

.fm4-story-img-hero-btn:hover {
  transform: translateY(-1px);
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
}

.fm4-story-img-hero-btn.is-active {
  background: color-mix(in srgb, var(--fm4-accent-color) 24%, var(--fm4-surface-color));
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
  font-weight: 600;
}

/* Expand Bar ("Visa hela serien (N bilder) →") & Collapsible Extra Passepartout Grid */
.fm4-photo-story-expand-bar {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--fm4-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.fm4-photo-story-expand-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 1.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fm4-surface-color) 85%, var(--fm4-background-color));
  border: 1px solid color-mix(in srgb, var(--fm4-accent-color) 42%, var(--fm4-border-color));
  color: var(--fm4-heading-color);
  font-family: var(--fm4-mono-font);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, transform 0.2s ease;
}

.fm4-photo-story-expand-btn:hover {
  border-color: var(--fm4-accent-color);
  background: color-mix(in srgb, var(--fm4-accent-color) 14%, var(--fm4-surface-color));
  transform: translateY(-1px);
}

.fm4-photo-story-expand-icon {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.fm4-photo-story-expand-btn[aria-expanded="true"] .fm4-photo-story-expand-icon {
  transform: rotate(180deg);
}

.fm4-photo-story-Slideshow-btn {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fm4-text-muted) 42%, transparent);
  padding: 0.2rem 0;
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fm4-text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fm4-photo-story-Slideshow-btn:hover {
  color: var(--fm4-accent-color);
  border-bottom-color: var(--fm4-accent-color);
}

.fm4-photo-story-more-wrap {
  margin-top: 1.5rem;
}

.fm4-photo-story-more-wrap[hidden] {
  display: none !important;
}

/* Reportage-översikt (Index Strip at Top of ?serie=reportage) */
.fm4-story-catalog-strip {
  width: 100%;
  background: color-mix(in srgb, var(--fm4-surface-color) 88%, var(--fm4-background-color));
  border-top: 1px solid var(--fm4-border-subtle);
  border-bottom: 1px solid var(--fm4-border-subtle);
  padding: clamp(1.75rem, 3.2vw, 2.65rem) 0;
}

.fm4-story-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin-bottom: 1.25rem;
}

.fm4-story-catalog-label {
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
}

.fm4-story-catalog-add-btn {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fm4-accent-color) 18%, var(--fm4-surface-color));
  border: 1px solid var(--fm4-accent-color);
  color: var(--fm4-heading-color);
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.fm4-live-editing .fm4-story-catalog-add-btn {
  display: inline-flex;
}

.fm4-story-catalog-add-btn:hover {
  background: color-mix(in srgb, var(--fm4-accent-color) 28%, var(--fm4-surface-color));
  transform: translateY(-1px);
}

.fm4-story-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.fm4-story-catalog-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--fm4-global-radius, 12px);
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-subtle);
  text-decoration: none;
  color: var(--fm4-text-color);
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.fm4-story-catalog-card:hover {
  border-color: var(--fm4-accent-color);
  transform: translateY(-2px);
}

.fm4-story-catalog-thumb {
  width: 64px;
  height: 52px;
  border-radius: calc(var(--fm4-global-radius, 12px) * 0.5);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--fm4-border-subtle);
}

.fm4-story-catalog-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fm4-story-catalog-kicker {
  font-family: var(--fm4-mono-font);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm4-story-catalog-title {
  font-family: var(--fm4-heading-font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fm4-heading-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm4-story-catalog-badge {
  align-self: flex-start;
  font-family: var(--fm4-mono-font);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--fm4-text-muted);
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fm4-border-color) 35%, transparent);
}

/* Photo Story Manager Modal (Live Edit Reportage & Images Builder) */
.fm4-story-manager-box {
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
}

.fm4-story-mgr-images-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem 0;
}

.fm4-story-mgr-img-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: var(--fm4-global-radius, 12px);
  background: color-mix(in srgb, var(--fm4-surface-color) 70%, var(--fm4-background-color));
  border: 1px solid var(--fm4-border-color);
}

.fm4-story-mgr-thumb {
  width: 78px;
  height: 60px;
  object-fit: cover;
  border-radius: calc(var(--fm4-global-radius, 12px) * 0.45);
  border: 1px solid var(--fm4-border-subtle);
  flex-shrink: 0;
}

.fm4-story-mgr-img-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fm4-story-mgr-img-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fm4-story-mgr-filename {
  font-family: var(--fm4-mono-font);
  font-size: 0.7rem;
  color: var(--fm4-text-muted);
}

.fm4-story-mgr-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fm4-story-mgr-icon-btn {
  appearance: none;
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  color: var(--fm4-text-color);
  border-radius: calc(var(--fm4-global-radius, 12px) * 0.45);
  padding: 0.24rem 0.52rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.7rem;
  cursor: pointer;
}

.fm4-story-mgr-icon-btn:hover {
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
}

.fm4-story-mgr-hero-pill {
  appearance: none;
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  color: var(--fm4-text-muted);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.66rem;
  cursor: pointer;
}

.fm4-story-mgr-hero-pill.is-active {
  background: color-mix(in srgb, var(--fm4-accent-color) 24%, var(--fm4-surface-color));
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
  font-weight: 600;
}

.fm4-story-mgr-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.6rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.65rem;
  margin-top: 0.6rem;
  border-radius: var(--fm4-global-radius, 12px);
  background: var(--fm4-background-color);
  border: 1px solid var(--fm4-border-color);
}

.fm4-story-mgr-picker-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: calc(var(--fm4-global-radius, 12px) * 0.45);
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-subtle);
  cursor: pointer;
  text-align: center;
}

.fm4-story-mgr-picker-item:hover {
  border-color: var(--fm4-accent-color);
}

.fm4-story-mgr-picker-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--fm4-global-radius, 12px) * 0.3);
}

.fm4-story-mgr-picker-item span {
  font-family: var(--fm4-mono-font);
  font-size: 0.6rem;
  color: var(--fm4-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   EXHIBITION ROOM LIGHTBOX (Mörkrum vs. Passepartout / Tavla + Quiet Mode)
   ========================================================================== */
:root {
  --fm4-darkroom-css-loaded: 1;
  --fm4-matte-paper-bg: #f6f3ec;
  --fm4-matte-paper-border: #dcd6c8;
  --fm4-matte-bevel-light: #ffffff;
  --fm4-matte-bevel-shadow: rgba(20, 18, 15, 0.22);
  --fm4-matte-plaque-ink: #57524a;
  --fm4-lightbox-wall-passepartout: #171614;
}

[data-theme="light"],
body.light-mode,
.light-theme {
  --fm4-matte-paper-bg: #faf8f3;
  --fm4-matte-paper-border: #d8d1c2;
  --fm4-lightbox-wall-passepartout: #22201d;
}

.lightbox-top-bar {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 5.25rem;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-view-switch,
.lightbox-top-actions,
.lightbox-share-btn,
.lightbox-fav-btn {
  pointer-events: auto;
}

.lightbox-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-view-switch {
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--fm4-surface-color) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--fm4-border-color) 85%, transparent);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.lightbox-mode-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fm4-text-muted);
  font-family: var(--fm4-mono-font);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.lightbox-mode-btn:hover {
  color: var(--fm4-heading-color);
}

.lightbox-mode-btn.active {
  background: color-mix(in srgb, var(--fm4-accent-color) 22%, var(--fm4-surface-color));
  color: var(--fm4-heading-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lightbox-fav-btn,
.lightbox-share-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: color-mix(in srgb, var(--fm4-surface-color) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--fm4-border-color) 85%, transparent);
  color: var(--fm4-text-color);
  font-family: var(--fm4-mono-font);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, transform 0.2s ease;
}

.lightbox-fav-btn:hover,
.lightbox-share-btn:hover,
.lightbox-share-btn:focus-visible {
  border-color: var(--fm4-accent-color);
  transform: translateY(-1px);
  outline: none;
}

.lightbox-fav-btn.is-active,
.lightbox-share-btn.is-copied {
  background: color-mix(in srgb, var(--fm4-accent-color) 24%, var(--fm4-surface-color));
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
}

.lightbox-fav-btn.is-active svg {
  fill: currentColor;
}

/* Passepartout / Framed Art Mount inside Lightbox */
.lightbox-art-mount {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transition: padding 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease;
}

.lightbox-art-bevel {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: padding 0.35s ease, box-shadow 0.35s ease;
}

.lightbox-art-plaque {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-top: 0.85rem;
  padding: 0 0.15rem;
  font-family: var(--fm4-heading-font);
  font-size: 0.76rem;
  font-style: italic;
  color: var(--fm4-matte-plaque-ink);
  letter-spacing: 0.03em;
}

.lightbox-matte-artist {
  font-family: var(--fm4-mono-font);
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

#lightboxOverlay.is-passepartout-mode {
  background: var(--fm4-lightbox-wall-passepartout);
}

#lightboxOverlay.is-passepartout-mode .lightbox-art-mount {
  background: var(--fm4-matte-paper-bg);
  padding: clamp(1.35rem, 3.6vw, 3.1rem) clamp(1.5rem, 4.2vw, 3.6rem) clamp(1.1rem, 2.6vw, 2.2rem);
  border: 1px solid var(--fm4-matte-paper-border);
  border-radius: 2px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.78),
    0 6px 20px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px var(--fm4-matte-bevel-light);
}

#lightboxOverlay.is-passepartout-mode .lightbox-art-bevel {
  box-shadow:
    inset 0 2px 5px var(--fm4-matte-bevel-shadow),
    0 0 0 1px var(--fm4-matte-paper-border);
}

#lightboxOverlay.is-passepartout-mode .lightbox-img {
  max-width: min(84vw, 1560px);
  max-height: 75vh;
  box-shadow: none;
  border-radius: 0;
}

#lightboxOverlay.is-passepartout-mode .lightbox-art-plaque {
  display: flex;
}

/* Lightbox Caption & Story Caption */
.lightbox-caption {
  flex-direction: column;
  gap: 0.45rem;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-caption-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lightbox-title-text {
  font-weight: 600;
  color: #f4f4f6;
}

.lightbox-genre-text {
  color: var(--fm4-accent-color);
  font-weight: 500;
}

.lightbox-pagination-text {
  opacity: 0.72;
}

.lightbox-meta-sep {
  opacity: 0.4;
}

.lightbox-story-caption {
  margin: 0.15rem auto 0;
  max-width: 60ch;
  text-align: center;
  font-family: var(--fm4-body-font);
  font-size: 0.85rem;
  line-height: 1.55;
  color: color-mix(in srgb, #f4f4f6 76%, transparent);
  font-weight: 400;
}

/* Quiet Mode: Auto-fade UI chrome after 2500ms of stillness */
.lightbox-close,
.lightbox-nav {
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

#lightboxOverlay.is-quiet-mode .lightbox-close,
#lightboxOverlay.is-quiet-mode .lightbox-nav,
#lightboxOverlay.is-quiet-mode .lightbox-top-bar,
#lightboxOverlay.is-quiet-mode .lightbox-caption {
  opacity: 0.14;
}

#lightboxOverlay.is-quiet-mode .lightbox-close:hover,
#lightboxOverlay.is-quiet-mode .lightbox-nav:hover,
#lightboxOverlay.is-quiet-mode .lightbox-top-bar:hover,
#lightboxOverlay.is-quiet-mode .lightbox-caption:hover {
  opacity: 1;
}

/* ==========================================================================
   MOODBOARD / FAVORITE SELECTION (.fm4-fav-toggle & #moodboardFloatingPill)
   ========================================================================== */
.fm4-fav-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 8;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fm4-border-color) 70%, transparent);
  background: color-mix(in srgb, var(--fm4-surface-color) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fm4-text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.24s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.mosaic-card:hover .fm4-fav-toggle,
.fm4-photo-story-figure:hover .fm4-fav-toggle,
.fm4-fav-toggle:focus-visible,
.fm4-fav-toggle.is-active {
  opacity: 1;
  transform: translateY(0);
}

.fm4-fav-toggle:hover {
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
  transform: scale(1.06);
}

.fm4-fav-toggle.is-active {
  background: color-mix(in srgb, var(--fm4-accent-color) 24%, var(--fm4-surface-color));
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
}

.fm4-fav-toggle.is-active svg {
  fill: currentColor;
}

@media (hover: none) {
  .fm4-fav-toggle {
    opacity: 0.86;
    transform: none;
  }
}

/* Strictly hide visitor moodboard controls in Live Edit mode */
body.fm4-live-editing .fm4-fav-toggle,
body.fm4-live-editing #moodboardFloatingPill {
  display: none !important;
}

.moodboard-floating-pill {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fm4-surface-color) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--fm4-accent-color) 45%, var(--fm4-border-color));
  color: var(--fm4-heading-color);
  font-family: var(--fm4-mono-font);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--fm4-shadow-subtle);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.moodboard-floating-pill:hover {
  transform: translateY(-2px);
  border-color: var(--fm4-accent-color);
  background: var(--fm4-surface-color);
}

.moodboard-pill-icon {
  display: inline-flex;
  color: var(--fm4-accent-color);
}

.moodboard-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fm4-accent-color) 22%, transparent);
  color: var(--fm4-accent-color);
  font-size: 0.7rem;
  font-weight: 600;
}

/* Modal Moodboard Section inside #inquiryModal */
.modal-moodboard-section {
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--fm4-global-radius, 8px);
  background: color-mix(in srgb, var(--fm4-surface-color) 65%, var(--fm4-bg-color));
  border: 1px solid var(--fm4-border-color);
  text-align: left;
}

.modal-moodboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.modal-moodboard-label {
  font-family: var(--fm4-mono-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm4-accent-color);
}

.modal-moodboard-clear {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--fm4-mono-font);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fm4-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-moodboard-clear:hover {
  color: var(--fm4-heading-color);
}

.modal-moodboard-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-moodboard-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.55rem 0.28rem 0.3rem;
  border-radius: var(--fm4-global-radius, 6px);
  background: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  max-width: 100%;
}

.modal-moodboard-thumb {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.modal-moodboard-meta {
  min-width: 0;
  overflow: hidden;
}

.modal-moodboard-title {
  display: block;
  font-size: 0.78rem;
  color: var(--fm4-heading-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.modal-moodboard-remove {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--fm4-text-muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-moodboard-remove:hover {
  color: var(--fm4-heading-color);
}

.inquiry-async-success {
  text-align: center;
  padding: 2rem 1rem;
}

.inquiry-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fm4-accent-color) 16%, transparent);
  color: var(--fm4-accent-color);
  margin-bottom: 1rem;
}

.inquiry-success-title {
  font-family: var(--fm4-heading-font);
  font-size: 1.35rem;
  color: var(--fm4-heading-color);
  margin-bottom: 0.5rem;
}

.inquiry-form-error {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--fm4-global-radius, 6px);
  background: color-mix(in srgb, var(--fm4-accent-color) 14%, var(--fm4-surface-color));
  border: 1px solid var(--fm4-accent-color);
  color: var(--fm4-heading-color);
  font-size: 0.84rem;
}

/* ==========================================================================
   SERIES ROOM NAVIGATION (.series-room-nav in cta_strip_block.php)
   ========================================================================== */
.series-room-nav {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fm4-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  font-family: var(--fm4-mono-font);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.series-room-link,
.series-room-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fm4-text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.series-room-link strong,
.series-room-nav-link strong {
  color: var(--fm4-heading-color);
  font-weight: 600;
}

.series-room-link:hover,
.series-room-nav-link:hover {
  color: var(--fm4-accent-color);
}

.series-room-link-home,
.series-room-nav-home {
  color: var(--fm4-accent-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.series-room-link-home:hover,
.series-room-nav-home:hover {
  opacity: 0.8;
}

.series-room-sep,
.series-room-nav-sep {
  color: var(--fm4-border-color);
  opacity: 0.65;
}

@media (max-width: 640px) {
  .lightbox-top-bar {
    top: 1rem;
    left: 1rem;
    right: 4.25rem;
  }
  .lightbox-mode-btn {
    padding: 0.32rem 0.6rem;
    font-size: 0.64rem;
  }
  #lightboxFavBtnLabel,
  #lightboxShareBtnLabel {
    display: none;
  }
  .lightbox-fav-btn,
  .lightbox-share-btn {
    padding: 0.44rem 0.6rem;
  }
}

/* ── Section Anchor Targets, Heading Direct Link Button & Copy Toast ────────── */
.fm4-section-anchor-target {
  scroll-margin-top: calc(5.25rem + var(--fm4-la-bar-h, 0px));
}

.fm4-section-anchored > .strip-kicker.fm4-section-kicker-block {
  display: block;
}

.fm4-section-anchored > .fm4-photo-story-kicker-wrap.fm4-section-kicker-block,
.fm4-section-anchored > .monumental-hero-kicker.fm4-section-kicker-block {
  display: flex;
  justify-content: center;
}

.fm4-has-section-link {
  display: inline-block !important;
  max-width: calc(100% - 2.5rem);
  vertical-align: middle;
}

.fm4-section-link-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 28px;
  height: 28px;
  margin-left: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fm4-border-color) 90%, transparent);
  background: color-mix(in srgb, var(--fm4-surface-color) 65%, transparent);
  color: var(--fm4-text-muted);
  cursor: pointer;
  opacity: 0.44;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.fm4-block-wrap:hover .fm4-section-link-btn,
.fm4-section-anchored:hover .fm4-section-link-btn,
.fm4-section-link-btn:hover,
.fm4-section-link-btn:focus-visible,
.fm4-section-link-btn.is-copied {
  opacity: 1;
}

.fm4-section-link-btn:hover,
.fm4-section-link-btn:focus-visible {
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
  background: color-mix(in srgb, var(--fm4-accent-color) 12%, var(--fm4-surface-color));
  transform: translateY(-1px);
  outline: none;
}

.fm4-section-link-btn.is-copied {
  border-color: var(--fm4-accent-color);
  color: var(--fm4-accent-color);
  background: color-mix(in srgb, var(--fm4-accent-color) 16%, var(--fm4-surface-color));
}

.fm4-section-link-btn.is-overlay-corner {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
}

.edge-strip-section.bg-darkroom .fm4-section-link-btn {
  color: rgba(244, 244, 246, 0.72);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.edge-strip-section.bg-darkroom .fm4-section-link-btn:hover,
.edge-strip-section.bg-darkroom .fm4-section-link-btn:focus-visible,
.edge-strip-section.bg-darkroom .fm4-section-link-btn.is-copied {
  color: #cda35b;
  border-color: #cda35b;
  background: rgba(205, 163, 91, 0.14);
}

@media (hover: none) {
  .fm4-section-link-btn {
    opacity: 0.72;
  }
}

body.fm4-live-editing .fm4-section-link-btn {
  display: none !important;
}

body.fm4-live-editing .fm4-has-section-link {
  display: block !important;
  max-width: none !important;
}

.fm4-darkroom-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fm4-surface-color) 92%, #000000);
  color: var(--fm4-heading-color);
  border: 1px solid color-mix(in srgb, var(--fm4-accent-color) 55%, var(--fm4-border-color));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--fm4-mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.fm4-darkroom-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
