/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background-color: var(--nav-bg);
  box-shadow: 0 2px 16px var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Nav över mörk hero – alltid ljus text oavsett tema */
.nav:not(.scrolled) .nav__logo {
  color: var(--color-mist);
}

.nav:not(.scrolled) .nav__logo span {
  color: rgba(240, 236, 228, 0.6);
}

.nav:not(.scrolled) .nav__links a:not(.btn) {
  color: rgba(240, 236, 228, 0.85);
}

.nav:not(.scrolled) .nav__links a:not(.btn):hover {
  color: var(--color-mist);
}

.nav:not(.scrolled) .nav__theme-btn {
  color: rgba(240, 236, 228, 0.85);
  border-color: rgba(240, 236, 228, 0.3);
}

.nav:not(.scrolled) .nav__theme-btn:hover {
  color: var(--color-mist);
  border-color: rgba(240, 236, 228, 0.7);
  background-color: rgba(240, 236, 228, 0.1);
}


.nav:not(.scrolled) .nav__hamburger {
  border-color: rgba(240, 236, 228, 0.4);
}

.nav:not(.scrolled) .nav__hamburger span {
  background-color: var(--color-mist);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1.5rem;
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.2;
  transition: color 0.25s ease;
}

.nav__logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  font-family: 'Source Serif 4', serif;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  color: var(--text-body);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--accent-primary);
}

.nav__links a.btn {
  color: var(--bg-primary);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.nav__links a.btn:hover {
  color: var(--bg-primary);
}

/* Theme toggle */
.nav__theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__theme-btn:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-secondary);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-body);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  background-color: var(--nav-bg);
  backdrop-filter: blur(8px);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: var(--text-body);
  text-decoration: none;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.nav__mobile a:last-child {
  border-bottom: none;
}

.nav__mobile a:hover {
  color: var(--accent-primary);
}

.nav__mobile a.btn {
  margin-top: 0.75rem;
  text-align: center;
  border-bottom: none;
  color: var(--bg-primary);
}

.nav__mobile .nav__theme-btn {
  margin-top: 0.75rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nav__mobile {
    padding: 0.75rem 1rem 1.25rem;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(58,107,122,0.30) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(45,74,45,0.35) 0%, transparent 55%),
    linear-gradient(170deg, rgba(14,26,14,0.80) 0%, rgba(26,46,26,0.75) 40%, rgba(30,60,60,0.72) 80%, rgba(14,26,30,0.82) 100%),
    url('../img/gallery/gigerydsbron-solnedgang-stamning.webp') center / cover no-repeat;
}

/* Animerat vatten-SVG-mönster i hero */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cellipse cx='60' cy='30' rx='55' ry='8' fill='none' stroke='rgba(143,173,122,0.07)' stroke-width='1'/%3E%3Cellipse cx='60' cy='30' rx='35' ry='5' fill='none' stroke='rgba(58,107,122,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 60px;
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: 1.5rem;
  max-width: 900px;
}

.hero__eyebrow {
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-reed);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero h1 {
  color: var(--color-mist);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.hero__sub {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--color-sand);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero__slogan {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(240,236,228,0.7);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta .btn--primary {
  background-color: var(--color-reed);
  border-color: var(--color-reed);
  color: var(--color-deep);
}

.hero__cta .btn--primary:hover {
  background-color: #a8cc90;
  border-color: #a8cc90;
  color: var(--color-deep);
}

.hero__cta .btn--secondary {
  color: var(--color-mist);
  border-color: rgba(240,236,228,0.5);
}

.hero__cta .btn--secondary:hover {
  border-color: var(--color-mist);
  color: var(--color-mist);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  color: rgba(240,236,228,0.5);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   Bildteaser (startsidan)
   ============================================================ */
.photo-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.photo-teaser__item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}

.photo-teaser__thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  transition: transform 0.3s ease;
}

.photo-teaser__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-teaser__item:hover .photo-teaser__thumb,
.photo-teaser__item:hover .photo-teaser__thumb img {
  transform: scale(1.03);
}

.photo-teaser__item:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.photo-teaser__cta {
  text-align: center;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .photo-teaser__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Priser – teaser på index (fullständig lista på fiskekort.html)
   ============================================================ */
.price-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.price-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  min-width: 110px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background-color 0.25s ease;
}

.price-highlight__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.price-highlight__value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.price-highlight--free .price-highlight__value {
  color: var(--accent-water);
  font-size: 1.1rem;
}

/* ============================================================
   Fakta-kort (om fiskeområdet)
   ============================================================ */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.fact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}

.fact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow);
}

.fact-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.fact-card__value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.fact-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ============================================================
   Fiskart-kort
   ============================================================ */
.fish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.fish-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}

.fish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}

.fish-card__illustration {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  /* TODO: byt ut mot foto av respektive fiskart */
}

.fish-card__illustration svg {
  width: 100px;
  height: 60px;
  opacity: 0.7;
}

.fish-card__body {
  padding: 1.25rem;
}

.fish-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.fish-card__latin {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.fish-card__desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .fish-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fish-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .fish-card {
    min-width: 280px;
    scroll-snap-align: start;
  }
}

/* ============================================================
   Priskort
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.price-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background-color 0.25s ease;
}

.price-card__header {
  background-color: var(--accent-primary);
  padding: 1.25rem 1.5rem;
}

.price-card__header h3 {
  color: var(--bg-primary);
  font-size: 1.2rem;
  margin-bottom: 0;
}

.price-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* ============================================================
   Regler-sammanfattning (index)
   ============================================================ */
.rules-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background-color: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: background-color 0.25s ease;
}

.rule-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.rule-item__text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.rule-item__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: none;
}

/* ============================================================
   Hitta hit / stationer
   ============================================================ */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.station-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background-color 0.25s ease;
}

.station-card__photo {
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.station-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.station-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-water);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.station-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.station-card__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.station-card__detail span:first-child {
  flex-shrink: 0;
}

.station-card__links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.station-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--accent-water);
  text-decoration: none;
  transition: color 0.2s ease;
}

.station-card__link:hover {
  color: var(--accent-primary);
}

/* ============================================================
   Kontakt
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-info__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-info__item p {
  margin-bottom: 0;
  font-size: 0.95rem;
  max-width: none;
}

.contact-info__item a {
  word-break: break-all;
}

/* Kontaktformulär */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: var(--text-body);
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(45,74,45,0.1);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: var(--color-deep);
  color: rgba(240,236,228,0.7);
  padding-block: 3rem 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__brand h3 {
  font-family: 'Playfair Display', serif;
  color: var(--color-mist);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.footer__brand p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  max-width: 30ch;
}

.footer__brand .org-nr {
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer h4 {
  color: var(--color-mist);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(240,236,228,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-reed);
}

.footer__bottom {
  border-top: 1px solid rgba(240,236,228,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   Sub-page hero banner
   ============================================================ */
.page-hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, var(--color-deep) 0%, #1e3c3c 100%);
  text-align: center;
}

.page-hero--fiskekort {
  background:
    linear-gradient(135deg, rgba(14,26,14,0.72) 0%, rgba(30,60,60,0.68) 100%),
    url('../img/gallery/norra-stationen-batar.webp') center / cover no-repeat;
}

.page-hero--regler {
  background:
    linear-gradient(135deg, rgba(14,26,14,0.72) 0%, rgba(30,60,60,0.68) 100%),
    url('../img/gallery/gigerydsbron-utsikt.webp') center / cover no-repeat;
}

.page-hero--gallery {
  background:
    linear-gradient(135deg, rgba(14,26,14,0.72) 0%, rgba(30,60,60,0.68) 100%),
    url('../img/gallery/gigerydsbron-solnedgang-2.webp') center / cover no-repeat;
}

.page-hero h1 {
  color: var(--color-mist);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(240,236,228,0.7);
  font-style: italic;
  margin-inline: auto;
  max-width: 55ch;
  margin-bottom: 0;
}

/* ============================================================
   Content section (undersidor)
   ============================================================ */
.content-section {
  padding-block: 3rem;
}

.content-section + .content-section {
  padding-top: 0;
}

.content-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background-color 0.25s ease;
}

.content-card h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.content-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.content-card p {
  max-width: none;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

/* ============================================================
   Bildgalleri
   ============================================================ */
.gallery-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery__item {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}

.gallery__item:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.gallery__thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: block;
}

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

.gallery__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.6rem 0.85rem 0.75rem;
  font-style: italic;
  background-color: var(--bg-card);
  transition: background-color 0.25s ease;
  display: block;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(14, 26, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__visual {
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.lightbox__visual:not(:has(img)) {
  aspect-ratio: 4 / 3;
  width: min(92vw, 1400px);
}

.lightbox__visual img {
  max-width: 92vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
}

.lightbox__caption {
  display: block;
  text-align: center;
  color: rgba(240, 236, 228, 0.8);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  font-family: 'Source Serif 4', serif;
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(240, 236, 228, 0.12);
  border: 1px solid rgba(240, 236, 228, 0.25);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-mist);
  transition: background-color 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(240, 236, 228, 0.22);
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(240, 236, 228, 0.12);
  border: 1px solid rgba(240, 236, 228, 0.25);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-mist);
  transition: background-color 0.2s ease;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(240, 236, 228, 0.22);
}

@media (max-width: 480px) {
  .lightbox__prev { left: 0.35rem; }
  .lightbox__next { right: 0.35rem; }
}

/* ============================================================
   YouTube facade (click-to-load)
   ============================================================ */
.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 860px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #0e1a0e 0%, #1e3c3c 50%, #1a2e4a 100%);
}

.yt-facade:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.yt-facade__bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cellipse cx='60' cy='30' rx='55' ry='8' fill='none' stroke='rgba(143,173,122,0.07)' stroke-width='1'/%3E%3Cellipse cx='60' cy='30' rx='35' ry='5' fill='none' stroke='rgba(58,107,122,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 60px;
}

.yt-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background-color: rgba(200, 0, 0, 0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.yt-facade:hover .yt-facade__play,
.yt-facade:focus-visible .yt-facade__play {
  background-color: #ff0000;
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-facade__play svg {
  margin-left: 4px;
}

.yt-facade__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(14, 26, 14, 0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.yt-facade__title {
  color: var(--color-mist);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.yt-facade__sub {
  color: rgba(240, 236, 228, 0.65);
  font-size: 0.85rem;
  font-style: italic;
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-facade__footer {
  max-width: 860px;
  margin-inline: auto;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.yt-facade__playlist-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.yt-facade__playlist-link:hover {
  color: #cc0000;
}

.yt-facade__notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: none;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .yt-facade__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .yt-facade__play {
    width: 56px;
    height: 56px;
  }

  .yt-facade__play svg {
    width: 22px;
    height: 22px;
  }
}

/* ============================================================
   YouTube-länk
   ============================================================ */
.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.youtube-link:hover {
  color: #c00;
}

.youtube-link svg {
  flex-shrink: 0;
}
