/* ============================================
   The Norwegian Christmas Beer
   Editorial Layer
   Accent: Mead Gold #B8860B
   Unique prefix: beer-
   ============================================ */

:root {
  --art-accent: #B8860B;
  --art-accent-dark: #9A7209;
  --art-accent-glow: rgba(184, 134, 11, 0.35);
  --art-accent-subtle: rgba(184, 134, 11, 0.06);
  --art-link: #2d6a3f;
  --art-link-hover: #B8860B;
  --art-link-underline: #B8860B;
}


/* ── Hero ──────────────────────────────────── */

.art-hero__media img {
  object-position: center 30%;
  animation: beerHeroKB 24s ease-in-out infinite alternate;
}
@keyframes beerHeroKB {
  0%   { transform: scale(1)   translate(0, 0); }
  100% { transform: scale(1.05) translate(-0.5%, -1%); }
}


/* ── Images match prose width ──────────────── */

.art-figure.art-figure--spread {
  max-width: 800px;
}


/* ── Quote breathing room ─────────────────── */

.art-quote {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.art-pullquote {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}


/* ── Beer Label Gallery ──────────────────── */

.beer-gallery {
  position: relative;
  margin: var(--space-2xl) calc(-50vw + 50%);
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #1a1205 0%, #2a1f0a 100%);
  overflow: hidden;
}

.beer-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(107, 144, 128, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.beer-gallery__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-xl);
  position: relative;
}

.beer-gallery__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-lg);
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 100px;
}

.beer-gallery__title {
  font-family: 'Cormorant Garamond', var(--font-display), serif;
  font-size: 1.875rem;
  font-weight: 400;
  color: #f5f0e6;
  margin: 0;
}

.beer-gallery__track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-2xl);
}

.beer-gallery__item {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 1;
  position: relative;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s;
}

.beer-gallery__item:focus-visible {
  outline: 2px solid #B8860B;
  outline-offset: 3px;
}

.beer-gallery__item:hover {
  transform: scale(1.08) translateY(-8px) rotate(-2deg);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 2px #B8860B;
}

.beer-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.beer-gallery__item:hover img {
  transform: scale(1.1);
}

.beer-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.beer-gallery__item:hover::after {
  transform: translateX(100%);
}

/* Tighten transition from label gallery to next prose block */
.beer-gallery + .art-section {
  padding-top: var(--space-xl);
}

.beer-lightbox[hidden] {
  display: none;
}

.beer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.beer-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(4px);
}

.beer-lightbox__dialog {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 860px);
  max-height: min(85vh, 860px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.beer-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(85vh, 860px);
  object-fit: contain;
  background: #1a1205;
}

.beer-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.85);
  color: #f5f0e6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.beer-lightbox__close:hover {
  background: rgba(10, 22, 40, 0.95);
}
/* ── Callout link box ────────────────────── */

.beer-callout {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-xl) var(--space-lg) var(--space-2xl);
  background: rgba(184, 134, 11, 0.06);
  border-left: 4px solid #B8860B;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.beer-callout::before {
  content: '→';
  position: absolute;
  top: var(--space-lg);
  left: var(--space-md);
  font-size: 1.2rem;
  color: #B8860B;
}

.beer-callout p {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

.beer-callout a {
  color: var(--art-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #B8860B;
  text-underline-offset: 3px;
}

.beer-callout a:hover {
  color: #B8860B;
}


/* ── Responsive ─────────────────────────── */

@media (max-width: 768px) {
  .art-hero__media img {
    object-position: center 25%;
  }

  .beer-gallery {
    margin: var(--space-xl) calc(-1 * var(--space-lg));
    padding: var(--space-2xl) 0;
  }

  .beer-gallery__track {
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
  }

  .beer-gallery__item {
    width: 160px;
  }

  .beer-gallery + .art-section {
    padding-top: var(--space-lg);
  }

  .beer-callout {
    padding-left: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .beer-gallery__item {
    width: 140px;
  }
}


/* ── Reduced motion ─────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .art-hero__media img {
    animation: none;
  }

  .beer-gallery__item::after {
    display: none;
  }
}
