/* ==========================================================================
   HIS MASTER'S NOISE - Modern FM4 Design System
   Ekumenisk Finlandssvensk Gospelkör Helsingfors (Sedan 1988)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* FM4 Design Tokens */
  --fm4-primary-color: #c2410c; /* Warm gospel burnt amber */
  --fm4-accent-color: #d97706;  /* Brass / gold accent */
  --fm4-accent-hover: #b45309;
  --fm4-background-color: #fafaf9; /* Warm stone canvas */
  --fm4-surface-color: #ffffff;    /* Card & header surface */
  --fm4-surface-secondary: #f5f5f4;
  --fm4-surface-highlight: #fffbeb;
  --fm4-text-color: #1c1917;       /* Deep slate ink */
  --fm4-text-muted: #57534e;       /* Readable neutral */
  --fm4-border-color: #e7e5e4;
  --fm4-global-radius: 14px;
  --fm4-button-radius: 9999px;     /* Pill buttons */
  --fm4-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --fm4-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --fm4-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --fm4-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --fm4-heading-font: 'Playfair Display', Georgia, serif;
  --fm4-body-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Vertical Rhythm Grid */
  --fm4-page-title-top-gap: 3.25rem;
  --fm4-eyebrow-gap: 0.65rem;
  --fm4-heading-gap: 1.15rem;
  --fm4-content-gap: 2.25rem;
  --fm4-section-gap: 3.5rem;
  
  --max-width: 1140px;
  --header-height: 80px;
}

[data-theme="dark"] {
  --fm4-primary-color: #f97316;
  --fm4-accent-color: #f59e0b;
  --fm4-accent-hover: #d97706;
  --fm4-background-color: #0c0a09;
  --fm4-surface-color: #1c1917;
  --fm4-surface-secondary: #292524;
  --fm4-surface-highlight: #1f1b18;
  --fm4-text-color: #f5f5f4;
  --fm4-text-muted: #a8a29e;
  --fm4-border-color: #383533;
  --fm4-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --fm4-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --fm4-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --fm4-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--fm4-body-font);
  font-size: 16px;
  color: var(--fm4-text-color);
  background-color: var(--fm4-background-color);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--fm4-background-color);
  color: var(--fm4-text-color);
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: var(--fm4-primary-color);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--fm4-accent-color);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--fm4-surface-color);
  border-bottom: 1px solid var(--fm4-border-color);
  box-shadow: var(--fm4-shadow-sm);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--fm4-global-radius);
  overflow: hidden;
  box-shadow: var(--fm4-shadow-sm);
  border: 1px solid var(--fm4-border-color);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--fm4-heading-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fm4-text-color);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fm4-accent-color);
  font-weight: 600;
  white-space: nowrap;
}

/* Nav Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fm4-text-color);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--fm4-primary-color);
  background-color: var(--fm4-surface-secondary);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  border-radius: var(--fm4-global-radius);
  box-shadow: var(--fm4-shadow-lg);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fm4-text-color);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.dropdown-link:hover {
  background-color: var(--fm4-surface-secondary);
  color: var(--fm4-primary-color);
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-book {
  background: linear-gradient(135deg, var(--fm4-primary-color), var(--fm4-accent-color));
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--fm4-button-radius);
  box-shadow: var(--fm4-shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-book:hover {
  transform: translateY(-1px);
  box-shadow: var(--fm4-shadow-md);
  color: #ffffff;
}

.theme-toggle-btn {
  background: var(--fm4-surface-secondary);
  border: 1px solid var(--fm4-border-color);
  color: var(--fm4-text-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  background-color: var(--fm4-border-color);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--fm4-text-color);
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 26px;
  height: 26px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--fm4-surface-color);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--fm4-border-color);
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--fm4-border-color);
  color: var(--fm4-text-color);
}

.mobile-drawer a:hover {
  color: var(--fm4-primary-color);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--fm4-accent-color) 15%, transparent), transparent 70%),
              var(--fm4-surface-color);
  border-bottom: 1px solid var(--fm4-border-color);
  padding-top: var(--fm4-page-title-top-gap);
  padding-bottom: var(--fm4-section-gap);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fm4-accent-color);
  margin-bottom: var(--fm4-eyebrow-gap);
  background: var(--fm4-surface-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--fm4-button-radius);
  border: 1px solid var(--fm4-border-color);
}

.hero-title {
  font-family: var(--fm4-heading-font);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fm4-text-color);
  margin-bottom: var(--fm4-heading-gap);
  text-wrap: balance;
}

.hero-title span {
  color: var(--fm4-primary-color);
  font-style: italic;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--fm4-text-muted);
  margin-bottom: var(--fm4-content-gap);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-secondary {
  background-color: var(--fm4-surface-secondary);
  color: var(--fm4-text-color);
  border: 1px solid var(--fm4-border-color);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--fm4-button-radius);
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--fm4-border-color);
  color: var(--fm4-text-color);
}

.hero-visual {
  position: relative;
}

.hero-img-card {
  position: relative;
  border-radius: calc(var(--fm4-global-radius) * 1.5);
  overflow: hidden;
  box-shadow: var(--fm4-shadow-xl);
  border: 2px solid var(--fm4-border-color);
  aspect-ratio: 4/3;
  background: var(--fm4-surface-secondary);
}

.hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s ease;
}

.hero-img-card:hover img {
  transform: scale(1.03);
}

.hero-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: color-mix(in srgb, var(--fm4-surface-color) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--fm4-border-color);
  border-radius: var(--fm4-global-radius);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-badge-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fm4-text-color);
}

.hero-badge-sub {
  font-size: 0.78rem;
  color: var(--fm4-text-muted);
}

/* ==========================================================================
   PAGE HEADER (SUBPAGES)
   ========================================================================== */
.page-header-band {
  padding-top: var(--fm4-page-title-top-gap);
  padding-bottom: 2.25rem;
  background-color: var(--fm4-surface-color);
  border-bottom: 1px solid var(--fm4-border-color);
  margin-bottom: var(--fm4-section-gap);
}

.page-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fm4-accent-color);
  margin-bottom: var(--fm4-eyebrow-gap);
}

.page-title {
  font-family: var(--fm4-heading-font);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--fm4-text-color);
  line-height: 1.2;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--fm4-text-muted);
  margin-top: var(--fm4-heading-gap);
  max-width: 680px;
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */
.section {
  padding-top: var(--fm4-section-gap);
  padding-bottom: var(--fm4-section-gap);
}

.section-header {
  margin-bottom: var(--fm4-content-gap);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fm4-accent-color);
  margin-bottom: var(--fm4-eyebrow-gap);
}

.section-title {
  font-family: var(--fm4-heading-font);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--fm4-text-color);
  line-height: 1.25;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fm4-shadow-md);
  border-color: color-mix(in srgb, var(--fm4-primary-color) 40%, var(--fm4-border-color));
}

.card-media {
  position: relative;
  aspect-ratio: 1/1;
  background-color: var(--fm4-surface-secondary);
  overflow: hidden;
}

.card-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.card-media-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center center;
  filter: blur(24px) brightness(0.88) saturate(1.2);
  opacity: 0.42;
  transform: scale(1.15);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

[data-theme="dark"] .card-media-bg {
  filter: blur(24px) brightness(0.48) saturate(1.2);
  opacity: 0.35;
}

.card-media img {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), filter 0.35s ease;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.12));
  border-radius: calc(var(--fm4-global-radius, 12px) - 4px);
}

[data-theme="dark"] .card-media img {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.card:hover .card-media-bg {
  opacity: 0.58;
  transform: scale(1.22);
}

.card:hover .card-media img {
  transform: scale(1.035);
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--fm4-text-muted);
  margin-bottom: 0.65rem;
}

.card-category {
  font-weight: 600;
  color: var(--fm4-primary-color);
}

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

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--fm4-primary-color);
}

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

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fm4-primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more:hover {
  color: var(--fm4-accent-color);
}

/* ==========================================================================
   EDITORIAL & CONTENT LAYOUT
   ========================================================================== */
.editorial-wrap {
  background-color: var(--fm4-surface-color);
  border: 1px solid var(--fm4-border-color);
  border-radius: var(--fm4-global-radius);
  padding: 2.5rem;
  box-shadow: var(--fm4-shadow-sm);
  margin-bottom: var(--fm4-section-gap);
}

.content-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fm4-text-color);
}

.content-prose p {
  margin-bottom: 1.35rem;
}

.content-prose h2 {
  font-family: var(--fm4-heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fm4-text-color);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.content-prose h3 {
  font-family: var(--fm4-heading-font);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fm4-text-color);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.content-prose h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fm4-text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-prose ul, .content-prose ol {
  margin-bottom: 1.35rem;
  padding-left: 1.5rem;
}

.content-prose li {
  margin-bottom: 0.4rem;
}

.content-prose img {
  border-radius: var(--fm4-global-radius);
  border: 1px solid var(--fm4-border-color);
  box-shadow: var(--fm4-shadow-sm);
  margin: 1.75rem 0;
  max-width: 100%;
  height: auto;
}

/* Image alignment & float support (WordPress & History posters) */
.content-prose a.gallery-link {
  display: inline-block;
  text-decoration: none;
}

.content-prose .alignleft,
.content-prose a:has(.alignleft),
.content-prose a.gallery-link:has(.alignleft) {
  float: left;
  clear: left;
  margin: 0.5rem 2rem 1.5rem 0;
}

.content-prose .alignright,
.content-prose a:has(.alignright),
.content-prose a.gallery-link:has(.alignright) {
  float: right;
  clear: right;
  margin: 0.5rem 0 1.5rem 2rem;
}

.content-prose .aligncenter,
.content-prose a:has(.aligncenter) {
  display: block;
  margin: 1.5rem auto;
  clear: both;
}

.content-prose h2,
.content-prose h3,
.content-prose h4 {
  clear: both;
}

/* Large, high-quality history posters */
.history-poster {
  width: 280px !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--fm4-global-radius) !important;
  border: 1px solid var(--fm4-border-color) !important;
  box-shadow: var(--fm4-shadow-md) !important;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  margin: 0 !important;
  display: block !important;
}

.history-poster:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--fm4-shadow-lg) !important;
}

@media (max-width: 768px) {
  .content-prose .alignleft,
  .content-prose .alignright,
  .content-prose a:has(.alignleft),
  .content-prose a:has(.alignright),
  .content-prose a.gallery-link:has(.alignleft),
  .content-prose a.gallery-link:has(.alignright) {
    float: none !important;
    display: block !important;
    margin: 1.5rem auto !important;
    text-align: center;
  }
  .history-poster {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
}

.content-prose figure {
  margin: 1.75rem 0;
  text-align: center;
}

.content-prose .wp-block-image {
  margin: 2rem auto;
  text-align: center;
}

.content-prose .wp-block-image img,
.content-prose figure img {
  display: inline-block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.content-prose .content-img-link {
  display: inline-block;
  cursor: zoom-in;
}

.content-prose .content-img-link img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-prose .content-img-link:hover img {
  transform: translateY(-2px);
  box-shadow: var(--fm4-shadow-md);
}

.content-prose figcaption {
  font-size: 0.85rem;
  color: var(--fm4-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Blockquote - Clean symmetric box without AI half-brackets */
.content-prose blockquote {
  border: 1px solid var(--fm4-border-color);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  background-color: var(--fm4-surface-secondary);
  border-radius: var(--fm4-global-radius);
  font-style: italic;
  color: var(--fm4-text-muted);
}

/* ==========================================================================
   PHOTO GALLERY & THUMBNAILS (FM4 GRID)
   ========================================================================== */
.gallery-section {
  margin-bottom: 3.5rem;
}

.noise-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 1.75rem !important;
  margin: 1.5rem 0 !important;
  list-style: none !important;
  padding: 0 !important;
  width: 100% !important;
  clear: both;
}

.gallery-item {
  position: relative !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: var(--fm4-global-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--fm4-shadow-sm) !important;
  border: 1px solid var(--fm4-border-color) !important;
  background-color: var(--fm4-surface-secondary) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: var(--fm4-shadow-lg) !important;
  border-color: color-mix(in srgb, var(--fm4-primary-color) 40%, var(--fm4-border-color)) !important;
}

.gallery-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  text-decoration: none !important;
}

.gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.4s ease !important;
}

.gallery-item:hover img {
  transform: scale(1.06) !important;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--fm4-button-radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Fallbacks for any legacy WordPress classes */
.wp-block-gallery, .gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 1.75rem !important;
  margin: 1.5rem 0 !important;
  list-style: none !important;
  padding: 0 !important;
}

.wp-block-gallery .wp-block-image, .gallery .gallery-item {
  aspect-ratio: 4 / 3 !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: var(--fm4-global-radius) !important;
  overflow: hidden !important;
  border: 1px solid var(--fm4-border-color) !important;
}

.wp-block-gallery img, .gallery img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ==========================================================================
   FULLSCREEN SLIDESHOW LIGHTBOX
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.25s ease;
  user-select: none;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

/* Top bar */
.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  color: #f5f5f4;
  z-index: 10002;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}

.lightbox-counter {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #d6d3d1;
  min-width: 90px;
}

.lightbox-caption {
  font-family: var(--fm4-heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: #f5f5f4;
  text-align: center;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 90px;
  justify-content: flex-end;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f5f5f4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--fm4-primary-color);
  border-color: var(--fm4-primary-color);
  color: #ffffff;
  transform: scale(1.08);
}

.lightbox-btn.active {
  background: var(--fm4-accent-color);
  border-color: var(--fm4-accent-color);
  color: #ffffff;
}

.lightbox-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Stage & Navigation */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 5rem;
  overflow: hidden;
}

.lightbox-image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.lightbox-img.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.lightbox-img.fade-in {
  opacity: 1;
  transform: scale(1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10003;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-nav-btn:hover {
  background: var(--fm4-primary-color);
  border-color: var(--fm4-primary-color);
  transform: translateY(-50%) scale(1.12);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-nav-btn svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

/* Bottom Bar */
.lightbox-bottombar {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a29e;
  font-size: 0.85rem;
  gap: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  z-index: 10002;
}

.lightbox-key-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lightbox-key-hint kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.78rem;
  color: #f5f5f4;
  font-family: inherit;
}

/* ==========================================================================
   CONTACT CARDS & PACKAGES
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background-color: var(--fm4-surface-secondary);
  border: 1px solid var(--fm4-border-color);
  border-radius: var(--fm4-global-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: color-mix(in srgb, var(--fm4-accent-color) 15%, transparent);
  color: var(--fm4-accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.contact-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fm4-text-color);
}

.contact-value {
  font-size: 0.95rem;
  color: var(--fm4-text-muted);
}

/* Order Form (DVD / Booking) */
.order-form-card {
  background-color: var(--fm4-surface-secondary);
  border: 1px solid var(--fm4-border-color);
  border-radius: var(--fm4-global-radius);
  padding: 2rem;
  margin-top: 2rem;
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fm4-text-color);
}

.form-input, .form-textarea, .form-select {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--fm4-border-color);
  background-color: var(--fm4-surface-color);
  color: var(--fm4-text-color);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--fm4-primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fm4-primary-color) 20%, transparent);
}

/* ==========================================================================
   CALL TO ACTION BAND
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, color-mix(in srgb, var(--fm4-primary-color) 12%, var(--fm4-surface-color)), var(--fm4-surface-color));
  border: 1px solid var(--fm4-border-color);
  border-radius: calc(var(--fm4-global-radius) * 1.5);
  padding: 3rem 2rem;
  text-align: center;
  margin: var(--fm4-section-gap) 0;
  box-shadow: var(--fm4-shadow-md);
}

.cta-band h2 {
  font-family: var(--fm4-heading-font);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--fm4-text-color);
  margin-bottom: 0.75rem;
}

.cta-band p {
  font-size: 1.1rem;
  color: var(--fm4-text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--fm4-surface-color);
  border-top: 1px solid var(--fm4-border-color);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-about {
  font-size: 0.92rem;
  color: var(--fm4-text-muted);
  line-height: 1.6;
  max-width: 360px;
}

.footer-col-title {
  font-family: var(--fm4-heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fm4-text-color);
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--fm4-text-muted);
}

.footer-links a:hover {
  color: var(--fm4-primary-color);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--fm4-global-radius, 12px);
  background-color: color-mix(in srgb, var(--fm4-text-color) 7%, transparent);
  color: var(--fm4-text-color);
  border: 1px solid var(--fm4-border-color);
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social-btn:hover {
  background-color: var(--fm4-primary-color);
  color: var(--fm4-surface-color);
  border-color: var(--fm4-primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--fm4-border-color);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--fm4-text-muted);
}

.footer-bottom-info {
  display: flex;
  align-items: center;
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--fm4-global-radius, 12px);
  background-color: color-mix(in srgb, var(--fm4-text-color) 7%, transparent);
  border: 1px solid var(--fm4-border-color);
  color: var(--fm4-text-color);
  font-family: var(--fm4-body-font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-theme-toggle-btn:hover {
  background-color: var(--fm4-primary-color);
  color: var(--fm4-surface-color);
  border-color: var(--fm4-primary-color);
}

.footer-theme-toggle-btn svg {
  stroke: currentColor;
}

.drawer-theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--fm4-surface-secondary);
  border: 1px solid var(--fm4-border-color);
  border-radius: var(--fm4-global-radius, 12px);
  color: var(--fm4-text-color);
  font-family: var(--fm4-body-font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-theme-toggle-btn:hover {
  background-color: var(--fm4-border-color);
  color: var(--fm4-primary-color);
}

.drawer-theme-toggle-btn svg {
  stroke: currentColor;
}

/* Editorial split grid for Gemenskap & Sångarglädje */
.editorial-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.editorial-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Section Header Compact Button */
.section-header .btn-secondary {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--fm4-border-color);
  background-color: var(--fm4-surface-color);
  color: var(--fm4-text-color);
  font-size: 0.88rem;
  font-weight: 600;
}

.page-btn.active, .page-btn:hover {
  background-color: var(--fm4-primary-color);
  color: var(--fm4-surface-color);
  border-color: var(--fm4-primary-color);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  /* Hide theme toggle in header on mobile to prevent title wrapping */
  .nav-controls .theme-toggle-btn {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .editorial-wrap {
    padding: 1.5rem;
  }

  .editorial-split-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .noise-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Responsive Lightbox */
  .lightbox-stage {
    padding: 0.5rem 1rem;
  }

  .lightbox-prev {
    left: 0.5rem;
    width: 44px;
    height: 44px;
  }

  .lightbox-next {
    right: 0.5rem;
    width: 44px;
    height: 44px;
  }

  .lightbox-prev svg, .lightbox-next svg {
    width: 22px;
    height: 22px;
  }

  .lightbox-topbar {
    padding: 0.75rem 1rem;
  }

  .lightbox-caption {
    font-size: 0.95rem;
    max-width: 50%;
  }

  .lightbox-bottombar {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 0;
  }

  .brand-logo-wrap {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .nav-controls {
    gap: 0.4rem;
  }

  .editorial-wrap {
    padding: 1.15rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-header {
    align-items: center;
    gap: 0.75rem;
  }

  .section-header .btn-secondary {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
}
