/* ==========================================================================
   Lubianski Grain Company — core stylesheet
   Country-modern theme: cream + charcoal + rust/red, serif display type
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #f7f1e5;
  --cream-alt: #efe4cd;
  --paper: #fffdf8;
  --ink: #2a2118;
  --ink-soft: #55493c;
  --charcoal: #201a15;
  --charcoal-alt: #2b241d;
  --tan: #d8c6a1;
  --tan-soft: #e9dcc0;
  --rust: #a8562e;
  --rust-dark: #7f3e20;
  --red: #c0202a;
  --red-dark: #921a22;
  --line: rgba(42, 33, 24, 0.12);
  --line-dark: rgba(216, 198, 161, 0.18);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px rgba(20, 15, 10, 0.16);
  --shadow-sm: 0 6px 18px rgba(20, 15, 10, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.6em;
}

.section {
  padding: 36px 0;
}
.section--alt { background: var(--cream-alt); }
.section--charcoal {
  background: var(--charcoal);
  color: var(--tan-soft);
}
.section--charcoal h2, .section--charcoal h3 { color: #fff; }
.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.history-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .history-layout { grid-template-columns: 1fr; }
}

.lede {
  font-size: 1.15rem;
  color: #625b56;
}

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--rust { background: var(--rust); color: #fff; box-shadow: var(--shadow-sm); }
.btn--rust:hover { background: var(--rust-dark); }
.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 40px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tan-soft);
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--tan-soft);
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: rgba(216,198,161,0.12); color: #fff; }
.nav a[aria-current="page"] {
  background: var(--rust);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tan-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.header-call:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--tan-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; }
  .header-call { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero--page { min-height: 46vh; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,19,14,0.55) 0%, rgba(24,19,14,0.72) 55%, rgba(24,19,14,0.92) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}
.hero__logo {
  max-width: 460px;
  width: 70%;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.45));
}
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lede { color: var(--tan-soft); max-width: 620px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
  color: var(--tan-soft);
}
.not-found .hero__inner { max-width: 900px; text-align: center; }
.not-found h1, .not-found p.lede { margin-left: auto; margin-right: auto; }
.not-found .hero__actions { justify-content: center; }

/* ==========================================================================
   Cards / grid
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--tan-soft);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 0.4em; }
.card__body p { color: var(--ink-soft); flex: 1; }
.card__link {
  margin-top: 14px;
  font-weight: 700;
  color: var(--rust);
  text-decoration: none;
  font-size: 0.92rem;
}
.card__link:hover { color: var(--rust-dark); }

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tan-soft);
  color: var(--rust-dark);
}

/* ==========================================================================
   Slideshow
   ========================================================================== */
.slideshow {
  position: relative;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slideshow__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #000;
}
.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
}
.slideshow__slide.is-active { opacity: 1; visibility: visible; }
.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.slideshow__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 90px 18px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
  color: #fdf8ef;
}
.slideshow__caption p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 640px;
}
.slideshow__counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tan);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: block;
}
.slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(20,16,12,0.55);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 2;
}
.slideshow__nav:hover { background: var(--rust); }
.slideshow__nav--prev { left: 14px; }
.slideshow__nav--next { right: 14px; }
.slideshow__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 14px;
  background: var(--charcoal-alt);
}
.slideshow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line-dark);
  cursor: pointer;
  padding: 0;
}
.slideshow__dot.is-active { background: var(--rust); width: 24px; border-radius: 6px; }

@media (max-width: 640px) {
  .slideshow__caption { padding: 16px 16px 14px; }
  .slideshow__nav { width: 36px; height: 36px; font-size: 1.05rem; }
}

/* ==========================================================================
   History timeline sections
   ========================================================================== */
.history-part {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history-part:last-of-type { border-bottom: none; }
.history-part__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}
.history-part__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--tan);
  -webkit-text-stroke: 1.5px var(--rust);
  color: transparent;
  line-height: 1;
}
.history-part__text {
  columns: 1;
  color: var(--ink-soft);
}
.history-page .history-layout {
  display: flow-root;
}
.history-page .history-layout .slideshow {
  float: right;
  width: min(42%, 470px);
  margin: 0 0 22px 36px;
}
.history-page .history-layout.reverse .slideshow {
  float: left;
  margin: 0 36px 22px 0;
}
@media (max-width: 900px) {
  .history-page .history-layout .slideshow,
  .history-page .history-layout.reverse .slideshow {
    float: none;
    width: min(100%, 760px);
    margin: 0 auto 24px;
  }
}
.history-part__text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.08em 0 0;
  color: var(--rust);
  font-weight: 700;
}
.pull-quote {
  border-left: 4px solid var(--rust);
  padding: 4px 0 4px 20px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  margin: 24px 0;
}
.source-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.8;
  margin-top: 18px;
}

/* ==========================================================================
   Contact / forms
   ========================================================================== */
.info-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-list .ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rust);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-list strong { display: block; }
.info-list a { color: var(--rust-dark); text-decoration: none; font-weight: 600; }
.info-list a:hover { text-decoration: underline; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 0;
}
.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--rust-dark); }

.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rust);
  background: var(--paper);
}
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .form-row--split { grid-template-columns: 1fr; } }
.form-hidden { position: absolute; left: -9999px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.form-success {
  display: none;
  background: #eaf4ea;
  border: 1px solid #b9dab9;
  color: #24572a;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-weight: 600;
}

/* ==========================================================================
   Map block
   ========================================================================== */
.map-block {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.map-block__frame { position: relative; width: 100%; aspect-ratio: 21/9; background: var(--tan-soft); }
.map-block__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-block--tall .map-block__frame { aspect-ratio: 16/9; }
.map-block__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
}
.map-block__bar h3 { margin: 0 0 4px; }
.map-block__bar p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ==========================================================================
   Inventory
   ========================================================================== */
.inventory-toolbar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 34px;
  position: sticky;
  top: 76px;
  z-index: 20;
}
@media (max-width: 800px) {
  .inventory-toolbar { grid-template-columns: 1fr; position: static; }
}
.inventory-toolbar input,
.inventory-toolbar select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
}
.inventory-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex-wrap: wrap;
  gap: 10px;
}
.inventory-meta button {
  background: none;
  border: none;
  color: var(--rust-dark);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.category-chip {
  border: 1.5px solid var(--line);
  background: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
}
.category-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .item-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .item-grid { grid-template-columns: 1fr; } }

.item-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--rust);
}
.item-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.item-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.item-card .brand { font-size: 0.8rem; font-weight: 700; color: var(--rust-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.item-card p.desc { color: var(--ink-soft); font-size: 0.92rem; margin: 8px 0 10px; }
.item-card .sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.item-card .size-tag {
  font-size: 0.76rem;
  background: var(--tan-soft);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.notice-banner {
  background: var(--tan-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 34px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice-banner strong { color: var(--ink); }
.inventory-services { margin: 10px 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--tan-soft);
  padding: 40px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-brand img { height: 46px; margin-bottom: 16px; }
.footer-brand p { color: var(--tan); max-width: 320px; font-size: 0.92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--tan-soft); text-decoration: none; font-size: 0.94rem; }
.footer-links a:hover { color: #fff; }
.footer-contact p, .footer-contact li { font-size: 0.92rem; color: var(--tan-soft); }
.footer-contact a { color: var(--tan-soft); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: #fff; }
.footer-map {
  padding: 24px 0 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--tan);
  flex-wrap: wrap;
}
.footer-map .map-block__bar { padding: 16px 20px; }

/* Home page event announcement */
.event-popup {
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}
.event-popup::backdrop {
  background: rgba(24, 19, 14, 0.78);
  backdrop-filter: blur(3px);
}
.event-popup__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}
.event-popup__media {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: var(--tan-soft);
}
.event-popup__media img { width: 100%; height: 100%; object-fit: contain; }
.event-popup__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 52px 42px;
}
.event-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.event-popup__close:hover { background: var(--cream-alt); }
.event-popup__title { margin-bottom: 16px; }
.event-popup__content > p { color: var(--ink-soft); }
.event-popup__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.event-popup__close:focus-visible,
.event-popup__actions .btn:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
@media (max-width: 640px), (max-height: 520px) {
  .event-popup {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .event-popup__layout { grid-template-columns: 1fr; min-height: 0; }
  .event-popup__media {
    height: clamp(100px, 34vh, 260px);
    height: clamp(100px, 34dvh, 260px);
    min-height: 0;
  }
  .event-popup__media img {
    place-self: center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(100px, 34vh, 260px);
    max-height: clamp(100px, 34dvh, 260px);
  }
  .event-popup__content { padding: 30px 24px 26px; }
  .event-popup__actions { flex-direction: column; width: 100%; }
  .event-popup__actions .btn { justify-content: center; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
