/* Snøsnute — hand-written stylesheet replacing the Elementor stack.
 *
 * The design is the original's, byte for byte where it could be measured:
 * every size, colour and offset here was read from the live build's computed
 * styles at 1366px (see tools/rebuild/README.md). ~20 render-blocking
 * plugin stylesheets and 17 scripts became this file plus assets/js/site.js.
 *
 * Structure: base → chrome (header, popup menu, rails, footer) → shared
 * components (buttons, kickers, display type) → per-page sections → popups →
 * breakpoints. Elementor's breakpoints are kept: 1024 (tablet), 767 (mobile).
 */

/* --------------------------------------------------------------- base */

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.35px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin: 0; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--cyan); color: #000; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Body text on dark ground */
.prose p { color: var(--ink-soft); }

/* ------------------------------------------------------------- display */

/* Kit primary typography: Saira Condensed 800, uppercase, lh 0.8.
 * 160 desktop / 110 tablet / 56 mobile — stepped at the breakpoints below,
 * not fluid, because the original steps. */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-display);
  line-height: var(--t-display-lh);
  text-transform: uppercase;
  color: var(--ink);
}

.h-mid {         /* "WHO WE ARE?", "OUR VISION", "OUR VALUES" */
  font-family: var(--font-display);
  font-weight: 800; font-size: var(--t-h-mid); line-height: 0.8;
  text-transform: uppercase; letter-spacing: 1px;
}

.h-poppins {     /* "2026 RACES", "NEXT EVENT IN", "STANDARD PLANS", "WHAT WE DO" */
  font-family: var(--font-body);
  font-weight: 400; font-size: var(--t-h-poppins); line-height: 1;
  text-transform: uppercase; letter-spacing: 1px;
}

.kicker {        /* uppercase Poppins label — "THE ATHLETES", "ALL PHOTOS · ONE PLACE" */
  font-family: var(--font-body);
  font-size: var(--t-kicker); font-weight: 400; line-height: 24px;
  letter-spacing: 2.15px; text-transform: uppercase;
  color: var(--ink);
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 400; line-height: 1;
  letter-spacing: 1.15px; text-transform: uppercase;
  padding: 20px 45px;
  border: 1px solid #fff;
  color: #fff; background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn:hover, .btn:focus-visible { background: #fff; color: #000; }
.btn--cyan { background: var(--cyan); border-color: var(--cyan); color: #000; }
.btn--cyan:hover, .btn--cyan:focus-visible { background: transparent; color: var(--cyan); }
/* On white ground the hover-inverted cyan is 1.67:1 — #038480 is the minimum
 * darkening of the same hue that reaches AA (4.55:1); see the old
 * site-fixes.css rationale this carries forward. */
.partner-band .btn--cyan:hover, .partner-band .btn--cyan:focus-visible { color: var(--cyan-deep); border-color: var(--cyan-deep); }
.btn--dark { border-color: #000; color: #000; }        /* on white ground */
.btn--dark:hover, .btn--dark:focus-visible { background: #000; color: #fff; }

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.site-header__logo img { width: 97px; height: 97px; object-fit: contain; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 31px; }
.site-header__cta { min-width: 201px; }

.burger {
  width: 50px; height: 42px; padding: 0;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; width: 50px; height: 2px; background: var(--cyan); }

/* ---------------------------------------------------------- popup menu */

.menu-popup {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: none;
  overflow-y: auto;
}
.menu-popup.is-open { display: block; }
.menu-popup__inner {
  min-height: 100%;
  display: flex; gap: 24px;
  padding: 100px var(--gutter);
  max-width: var(--container); margin-inline: auto;
}
.menu-popup__nav { flex: 1; align-self: center; }

/* The nav region markup is Elementor's (ul.elementor-nav-menu) and is managed
 * by RasoCMS — style the classes it ships, do not rename them. */
.menu-popup .elementor-nav-menu { list-style: none; margin: 0; padding: 0; }
.menu-popup .elementor-nav-menu li + li { margin-top: 25px; }
.menu-popup .elementor-nav-menu a {
  font-family: var(--font-display);
  font-weight: 800; font-size: var(--t-display); line-height: 0.8;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .15s;
}
.menu-popup .elementor-nav-menu a:hover,
.menu-popup .elementor-nav-menu a:focus-visible { color: var(--ink); }
.menu-popup .elementor-nav-menu a[aria-current="page"] { color: var(--cyan); }

.menu-popup__side {
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end;
}
.menu-popup__close {
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--cyan); width: 50px; height: 50px;
}
.menu-popup__close svg { width: 50px; height: 50px; display: block; }
.menu-popup__social { display: flex; flex-direction: column; gap: 27px; }
.menu-popup__social a { color: var(--ink-soft); }
.menu-popup__social a:hover { color: var(--ink); }
.menu-popup__social svg { width: 24px; height: 24px; fill: currentColor; display: block; }

/* ----------------------------------------------------------- side rail */

/* Fixed social rail, right 1%, vertically centred. The original inverts
 * against light imagery (black squares read white over the hero snow);
 * mix-blend difference reproduces that exactly. */
.rail {
  position: fixed; right: 1%; top: 50%; transform: translateY(-50%);
  z-index: 40;
  display: flex; flex-direction: column; gap: 13px;
  mix-blend-mode: difference;
}
.rail a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: #000; color: var(--ink-soft);
}
.rail a:hover { color: #fff; }
.rail svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* -------------------------------------------------------------- footer */

.site-footer { background: var(--paper); }
.site-footer__row {
  display: flex; align-items: center; gap: 24px;
  border-top: 1px solid var(--hairline);
}
.site-footer .elementor-nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 40px;
}
.site-footer .elementor-nav-menu a {
  display: inline-block;
  font-size: 14px; font-weight: 500; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 65px 0;
}
.site-footer .elementor-nav-menu a:hover { color: #fff; }
.site-footer .elementor-nav-menu a[aria-current="page"] { color: var(--cyan); }
.site-footer__cta { margin-left: auto; }
.site-footer__legal { padding-bottom: 30px; }
.site-footer__legal p { font-size: 12px; letter-spacing: 0.38px; line-height: 17px; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------ sections */

.section { position: relative; }
.section--pad { padding-block: 90px; }

/* Contour-line background textures, absolutely placed exactly like the
 * original's decorative image widgets. Pointer-events off: decoration only. */
.tex {
  position: absolute; pointer-events: none; user-select: none; z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* ---------------------------------------------------------- home: hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  overflow: clip;
}
.hero::before {                    /* the white 0.25 veil over the photo */
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.25);
}
.hero__content { position: relative; padding-bottom: 62px; width: 100%; }
.hero__eyebrow {
  font-size: 17.6px; font-weight: 600; letter-spacing: 2.15px;
  text-transform: uppercase; color: #000; margin: 0 0 14px;
}
.hero__title { color: rgba(0, 0, 0, 0.66); }
.hero__where {
  list-style: none; display: flex; align-items: center; gap: 17px;
  margin: 16px 0 0; padding: 0;
  font-size: 28.8px; letter-spacing: 2.15px; text-transform: uppercase; color: #000;
  line-height: 24px;
}
.hero__where .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.hero__down {
  margin-top: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(5, 223, 215, 0.42);
  color: #000;
}
.hero__down svg { width: 30px; height: 30px; }

/* ------------------------------------------------- home: where trails */

.trails { padding-block: 280px 0; }
.trails .container { position: relative; z-index: 1; }
.trails__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.trails__title { max-width: 642px; }
.trails__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 40px; max-width: 668px;
}
.fact { display: flex; gap: 15px; align-items: center; }
.fact svg { width: 30px; height: 30px; fill: var(--cyan); flex: none; }
.fact h3 {
  font-size: 28px; font-weight: 800; letter-spacing: 0.7px;
  text-transform: uppercase; line-height: 1;
}
.fact-body { margin-top: 6px; color: var(--ink-soft); }
.trails__story { max-width: 498px; justify-self: end; }
.trails__story p { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------------------------------------------------- home: carousel */

.carousel { position: relative; margin-top: 120px; padding-block: 100px 60px; }
.carousel__track {
  display: flex; gap: 2px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track img {
  flex: 0 0 auto; width: 414px; aspect-ratio: 413 / 312; object-fit: cover;
  scroll-snap-align: start;
}
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: #fff;
  padding: 10px; z-index: 2;
}
.carousel__arrow svg { width: 28px; height: 28px; }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__dots { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.carousel__dots button {
  width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0;
  background: #fff; opacity: 0.2; cursor: pointer;
}
.carousel__dots button[aria-current="true"] { opacity: 1; background: var(--cyan); }

/* ------------------------------------------------------- home: races */

.races { text-align: center; padding-block: 210px 205px; }
.races h2 { margin-bottom: 50px; }
.races__month {
  font-size: 18px; letter-spacing: 3.5px; color: var(--ink-soft);
  margin: 34px 0 14px;
}
.races__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  column-gap: 22px; row-gap: 10px; align-items: center;
}
.races__list li {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--font-display);
  font-size: var(--t-name); font-weight: 600; letter-spacing: 3.7px;
  text-transform: uppercase; line-height: 40px;
}
.races__list li + li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); flex: none;
}
.races__cta { margin-top: 60px; }

/* ------------------------------------------------ home: partner band */

.partner-band { background: var(--panel); color: #000; padding-block: 200px 180px; }
.partner-band__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px; align-items: center;
}
.partner-band h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 76.8px; line-height: 0.8; text-transform: uppercase; color: #000;
}
.partner-band p { color: #000; margin: 28px 0 24px; }
.partner-band ul { list-style: none; margin: 0 0 36px; padding: 0; }
.partner-band li {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; color: var(--cyan-deep); padding: 6px 0;
}
.partner-band li svg { width: 18px; height: 18px; fill: var(--cyan-deep); flex: none; }

/* -------------------------------------------------- home: next event */

.next-event { text-align: center; padding-block: 210px 190px; }
.next-event h2 { margin-bottom: 40px; }
.countdown { display: flex; justify-content: center; gap: 10px; }
.countdown div { width: 130px; padding: 20px 0; }
.countdown b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 100px; line-height: 1; letter-spacing: 2.5px;
}
.countdown span {
  display: block; margin-top: 0;
  font-size: 16px; letter-spacing: 1.15px; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1;
}
.next-event__note {
  font-size: 19px; letter-spacing: 2.15px; text-transform: uppercase;
  color: var(--ink-soft); margin: 60px 0 40px;
}

/* ------------------------------------------------ home: our partners */

.partner-logos { padding-block: 210px; }
.partner-logos__grid { display: flex; align-items: center; gap: 20px; }
.partner-logos__grid img { width: 124px; height: 124px; object-fit: contain; }
.partner-logos h2 { margin-left: auto; text-align: right; }

/* --------------------------------------------------------- dogs page */

.dogs-hero {
  padding-inline: var(--gutter);
  padding-top: 0;
}
.dogs-hero__frame { position: relative; }
.dogs-hero__frame img { width: 100%; height: 822px; object-fit: cover; }
.dogs-hero__title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center;
  color: var(--steel);
}

.dog-group { padding-inline: var(--gutter); padding-top: 30px; }
.dog-group__label { margin: 0 0 10px; padding-left: 0; }
.dog-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 24px;
}
.dog-card { display: block; cursor: pointer; background: none; border: 0; padding: 0; text-align: center; color: inherit; }
.dog-card__photo { display: block; aspect-ratio: 813 / 1084; background-size: cover; background-position: center; }
.dog-card__name {
  font-family: var(--font-display);
  font-size: var(--t-name); font-weight: 600; letter-spacing: 3.7px;
  text-transform: uppercase; line-height: 40px; margin-top: 14px;
}

/* Dog popup: white sheet below the header, photo left, bio right. */
.dog-modal {
  position: fixed; inset: 0; z-index: 80;
  display: none;
  background: rgba(0, 0, 0, 0.8);
}
.dog-modal.is-open { display: block; }
/* The original: a white band 154px below the top, sized by its content — the
 * dimmed page stays visible above AND below — sliding in from the left. */
.dog-modal__sheet {
  position: absolute; top: 154px; left: 0; right: 0;
  max-height: calc(100vh - 154px);
  background: var(--panel) url('/assets/wp-content/uploads/2022/10/popup-bg-1.png') right bottom / 300px no-repeat;
  color: #000;
  overflow-y: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .dog-modal.is-open .dog-modal__sheet { animation: dog-slide-in .55s ease both; }
  @keyframes dog-slide-in {
    from { transform: translateX(-100%); }
    to { transform: none; }
  }
}
.dog-modal__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 66px var(--gutter) 40px;
  display: grid; grid-template-columns: 412px minmax(0, 1fr); gap: 44px;
  position: relative;
}
.dog-modal__photo { width: 100%; aspect-ratio: 412 / 462; object-fit: cover; }
.dog-modal__meta {
  font-size: 19px; letter-spacing: 2.15px; text-transform: uppercase;
  color: #000; margin: 0 0 10px;
}
.dog-modal__meta .sep { color: #d1d1d1; }
.dog-modal__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 110px; line-height: 0.9; text-transform: uppercase; color: #000;
  margin: 0 0 24px;
}
.dog-modal__bio { max-width: 640px; }
.dog-modal__bio p { color: #000; }
.dog-modal__social { display: flex; gap: 26px; margin-top: 34px; }
.dog-modal__social svg { width: 18px; height: 18px; fill: #000; }
.dog-modal__close {
  position: sticky; top: 20px; float: right; margin: 20px 30px 0 0;
  width: 24px; height: 24px; padding: 0;
  background: none; border: 0; cursor: pointer; color: #000; z-index: 2;
}
.dog-modal__close svg { width: 24px; height: 24px; display: block; }
.dog-modal__tex { position: absolute; right: 0; bottom: 0; width: 300px; pointer-events: none; }

/* ------------------------------------------------------ contact page */

.contact { padding-block: 70px 120px; }
.contact__grid { display: grid; grid-template-columns: 498px minmax(0, 1fr); gap: 190px; }
.contact__lede {
  font-size: 19px; letter-spacing: 2.15px; text-transform: uppercase;
  margin: 20px 0 50px;
}
.form-field { margin-bottom: 30px; }
.form-field label {
  display: block;
  font-size: 18px; letter-spacing: 3.5px; color: var(--ink-soft);
  margin-bottom: 0;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: transparent; color: var(--ink-soft);
  border: 0; border-bottom: 1px solid var(--ink-soft);
  font: 16px/1.5 var(--font-body); letter-spacing: 0.35px;
  padding: 6px 16px 6px 0;
}
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: none; border-bottom-color: var(--cyan);
}
.form-field textarea { min-height: 85px; resize: vertical; }
.contact__form .btn { width: 100%; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.form-note.is-error { color: #ff6b6b; }
.hp { position: absolute; left: -9999px; }

.contact__address h2 {
  font-size: 28px; font-weight: 800; letter-spacing: 0.7px;
  text-transform: uppercase; line-height: 1; margin: 10px 0 14px;
}
.contact__address svg { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 2; }
.contact__address p { color: var(--ink-soft); }
.contact__map { margin-top: 40px; }
.contact__map iframe { width: 100%; height: 300px; border: 0; filter: grayscale(1) invert(0.92); }

/* ----------------------------------------------------- partners page */

.page-title { padding-block: 70px; }
.plans {
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 50px 10px 60px;
  margin-inline: 30px;
  position: relative;
}
.plans > h2 { text-align: center; margin-bottom: 80px; }
.plans__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  row-gap: 110px;
}
.plan { text-align: center; padding-inline: 10px; }
.plans__grid > .plan:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.35); }
.plan h3 {
  font-size: 30px; font-weight: 500; letter-spacing: 0.35px;
  text-transform: uppercase; line-height: 1; margin-bottom: 12px;
}
.plan__sub { color: #fff; margin-bottom: 50px; }
.plan__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.price h4 {
  font-size: 19px; font-weight: 400; letter-spacing: 2.15px;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px;
}
.price .amount {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 1.5px;
  font-size: 50px; line-height: 0.8;
}
.price .amount sup { font-size: 33.5px; vertical-align: 6px; }
.price small {
  display: block; margin-top: 16px;
  font-size: 16px; color: #fff; letter-spacing: 0.35px;
}
.plans-note {
  text-align: center; font-size: 19px; letter-spacing: 2.15px;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 90px 0 40px;
}
.plans-cta { text-align: center; padding-bottom: 120px; }

/* -------------------------------------------------------- about page */

.about { overflow: clip; }
.about__story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px; align-items: start;
  padding-block: 40px 90px;
}
.about .eyebrow {
  font-size: 15px; font-weight: 300; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 20px;
}
.about h2.h-mid, .about h3.h-mid { margin-bottom: 40px; }
.about__story img, .about__figure img { width: 100%; object-fit: cover; }
.about__what {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px; align-items: center; padding-block: 90px;
}
/* Desktop: the malli-7 collage is the section background, photo half on the
 * left (its right half is transparent, so the text half stays black). On one
 * column the same background would sit BEHIND the text — the original stacks
 * the photo as a band above the heading instead, so we do too. */
.about__what-band {
  background: #000 url('/assets/wp-content/uploads/2022/08/Nimeton-suunn.malli-7.png') -205px 50% / auto 100% no-repeat;
}
.about__what-photo { min-height: 200px; }
@media (max-width: 1024px) {
  .about__what-band { background-image: none; }
  .about__what-photo {
    background: url('/assets/wp-content/uploads/2022/08/Nimeton-suunn.malli-7.png') center / cover no-repeat;
    min-height: 300px; margin-inline: calc(-1 * var(--gutter));
  }
}
.about__vision {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 120px; padding-block: 90px;
}
.values-list { list-style: none; margin: 0 0 30px; padding: 0; }
.values-list li { display: flex; gap: 16px; padding: 12px 0; }
.values-list svg { width: 28px; height: 28px; fill: var(--cyan); flex: none; margin-top: 4px; }
.values-list .t { font-size: 19.2px; color: var(--cyan); }
.values-list .t strong { display: block; font-weight: 400; }
.about__gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding-block: 60px 120px;
}

/* ------------------------------------------------------ gallery page */

.gallery-hero { position: relative; margin-inline: var(--gutter); margin-top: 33px; height: 838px; }
@media (max-width: 1024px) { .gallery-hero { height: 520px; } .gallery-hero .container { padding-top: 140px; } }
@media (max-width: 767px) { .gallery-hero { height: 340px; } .gallery-hero .container { padding-top: 80px; } .gallery-filter { margin-top: 20px; } }
.gallery-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: right center; z-index: 0;
}
.gallery-hero .container { position: relative; z-index: 1; padding-top: 256px; }
.gallery-filter {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 10px;
  margin: -100px 0 30px;
}
.gallery-filter button {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 800;
  letter-spacing: 1.15px; text-transform: uppercase;
  color: var(--ink-soft); padding: 7px 14px; line-height: 0.8;
}
.gallery-filter button[aria-pressed="true"] {
  color: #fff;
  border-bottom: 3px solid var(--green);
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-inline: var(--gutter);
  padding-bottom: 90px;
}
.gallery-grid a { display: block; }
.gallery-grid a.is-hidden { display: none; }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 415 / 390; object-fit: cover; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, 0.92);
  display: none; place-items: center;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 30px; height: 30px; }

/* -------------------------------------------------------- diary page */

.diary-hero { padding-block: 70px 40px; }
.diary-hero .kicker { margin-top: 26px; display: block; }
.diary-hero { min-height: 375px; }

/* ---------------------------------------------------------- 404 page */

.notfound { padding-block: 130px 160px; }
.notfound p { max-width: 480px; }
.notfound .btn { margin-top: 12px; }

/* --------------------------------------------------------- fade-in */

@media (prefers-reduced-motion: no-preference) {
  .fade { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
  .fade.is-in { opacity: 1; transform: none; }
}

/* ----------------------------------------------------- breakpoints */

@media (max-width: 1024px) {
  :root { --t-display: 110px; --gutter: 40px; --t-h-mid: 48px; }
  .trails { padding-top: 160px; }
  .trails__grid, .partner-band__grid, .about__story, .about__what, .about__vision,
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .dog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dog-modal__inner { grid-template-columns: 1fr; }
  .dog-modal__photo { max-width: 412px; }
  .dog-modal__name { font-size: 72px; }
  .countdown b { font-size: 64px; }
  .countdown div { width: 96px; }
  .site-footer .elementor-nav-menu a { padding: 40px 0; }
  .dogs-hero__frame img { height: 560px; }
}

@media (max-width: 767px) {
  :root { --t-display: 56px; --gutter: 20px; --header-h: 80px; }
  .trails__grid { text-align: center; }
  .trails__facts { grid-template-columns: 1fr; justify-items: center; }
  .fact { justify-content: center; }
  .partner-logos__grid { flex-direction: column; justify-content: center; gap: 30px; }
  .partner-logos h2 { margin-inline: auto; text-align: center; }
  body { font-size: 15px; }
  .site-header__logo img { width: 70px; height: 70px; }
  .site-header__cta { min-width: 0; padding: 14px 20px; }
  .burger { width: 38px; height: 32px; }
  .burger span { width: 38px; }
  .hero__where { font-size: 18px; }
  .hero__eyebrow { font-size: 14px; }
  .races__list li { font-size: 22px; line-height: 1.2; gap: 12px; }
  .races__list { column-gap: 12px; }
  .partner-band h2 { font-size: 44px; }
  .countdown { flex-wrap: wrap; }
  .countdown div { width: 72px; padding: 10px 0; }
  .countdown b { font-size: 44px; letter-spacing: 1px; }
  .countdown span { font-size: 12px; }
  .dog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .dog-card__name { font-size: 22px; letter-spacing: 2px; line-height: 1.2; }
  .gallery-grid { grid-template-columns: 1fr; }
  .dogs-hero { padding-inline: 0; }
  .dogs-hero__frame img { height: 320px; }
  .dog-modal__sheet { top: 0; max-height: 100vh; height: 100%; }
  .dog-modal__photo { aspect-ratio: 320 / 197; }
  .dog-modal__name { font-size: 48px; }
  .plans { margin-inline: 0; }
  .plans__grid { grid-template-columns: 1fr; row-gap: 60px; }
  .plans__grid > .plan:nth-child(odd) { border-right: 0; }
  .plan__cols { gap: 16px; }
  .plan { padding-inline: 0; }
  .plans { padding-inline: 6px; }
  .site-footer .elementor-nav-menu { column-gap: 20px; }
  .site-footer .elementor-nav-menu a { padding: 12px 0; }
  .site-footer__row { flex-direction: column; align-items: flex-start; padding-block: 24px; }
  .site-footer__cta { margin-left: 0; }
  .menu-popup .elementor-nav-menu a { font-size: 56px; }
  .menu-popup .elementor-nav-menu li + li { margin-top: 18px; }
  .rail { display: none; }
  .partner-logos__grid { flex-wrap: wrap; }
  .partner-logos h2 { text-align: left; margin-left: 0; }
  .contact__grid { gap: 60px; }
  .tex { display: none; }
}
