:root {
  --malu-ink: #111715;
  --malu-forest: #1f302a;
  --malu-stone: #eee9df;
  --malu-paper: #f8f5ef;
  --malu-copper: #a9653f;
  --malu-line: rgba(17, 23, 21, 0.18);
}

html[data-static-transition="true"] { font-size: 62.5%; }

html { scroll-behavior: smooth; }

body.malu-independent-site {
  background: var(--malu-paper);
  color: var(--malu-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.malu-independent-site h1,
body.malu-independent-site h2,
body.malu-independent-site h3,
body.malu-independent-site h4,
body.malu-independent-site .h0,
body.malu-independent-site .h1,
body.malu-independent-site .h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

body.malu-independent-site .button,
body.malu-independent-site button:not(.malu-header__menu-toggle) { border-radius: 0; }

.malu-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(238, 233, 223, 0.16);
  background: rgba(17, 23, 21, 0.97);
  color: var(--malu-stone);
  backdrop-filter: blur(16px);
}

.malu-header__inner {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) auto minmax(8rem, 0.75fr);
  align-items: center;
  width: min(100% - 4rem, 148rem);
  min-height: 9.2rem;
  margin: 0 auto;
  gap: 2.4rem;
}

.malu-brand {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.malu-brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  letter-spacing: 0.16em;
}

.malu-brand__sub {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.malu-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 2vw, 3.4rem);
}

.malu-nav > a,
.malu-nav summary,
.malu-header__actions a {
  color: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.malu-nav > a,
.malu-nav summary { position: relative; padding: 1rem 0; }

.malu-nav > a::after,
.malu-nav summary::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: var(--malu-copper);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 160ms ease, transform 160ms ease;
}

.malu-nav > a:hover::after,
.malu-nav > a:focus-visible::after,
.malu-nav > a[aria-current="page"]::after,
.malu-nav details[open] summary::after { opacity: 1; transform: scaleX(1); }

.malu-nav details { position: relative; }
.malu-nav summary { cursor: pointer; list-style: none; }
.malu-nav summary::-webkit-details-marker { display: none; }

.malu-nav__submenu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  display: grid;
  min-width: 22rem;
  padding: 1.2rem;
  background: var(--malu-stone);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.24);
  color: var(--malu-ink);
  transform: translateX(-50%);
}

.malu-nav__submenu a {
  padding: 1.2rem 1.4rem;
  color: inherit;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.malu-nav__submenu a:hover,
.malu-nav__submenu a:focus-visible { background: rgba(17, 23, 21, 0.08); }

.malu-nav__mobile-search { display: none; }
.malu-header__actions { justify-self: end; }

.malu-header__actions a {
  display: inline-block;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(238, 233, 223, 0.45);
}

.malu-header__actions a:hover,
.malu-header__actions a:focus-visible {
  border-color: var(--malu-stone);
  background: var(--malu-stone);
  color: var(--malu-ink);
}

.malu-header__menu-toggle { display: none; }
.malu-header__brand-placeholder { display: block; width: 12rem; }
.malu-home { background: var(--malu-paper); }

.malu-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(34rem, 0.82fr);
  min-height: min(76rem, calc(100svh - 9.2rem));
  background: var(--malu-stone);
}

.malu-home-hero__media { min-height: 56rem; overflow: hidden; }

.malu-home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}

.malu-home-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4rem, 6vw, 9rem) clamp(3rem, 5vw, 7rem);
}

.malu-hero-brand {
  position: absolute;
  z-index: 2;
  top: clamp(9rem, 10vw, 13rem);
  left: max(2rem, calc((100% - 132rem) / 2));
  margin: 0;
  color: #fff;
}

.malu-hero-brand .malu-brand__name {
  font-size: clamp(5.6rem, 7vw, 9.6rem);
  letter-spacing: 0.18em;
}

.malu-hero-brand .malu-brand__sub {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1vw, 1.35rem);
  letter-spacing: 0.46em;
}

.malu-eyebrow {
  margin: 0 0 2.2rem;
  color: var(--malu-copper);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.malu-home-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(5.2rem, 5.2vw, 8.4rem);
  line-height: 0.94;
}

.malu-home-hero__strapline {
  max-width: 34rem;
  margin: 3rem 0 0;
  color: rgba(17, 23, 21, 0.72);
  font-size: 1.45rem;
  letter-spacing: 0.11em;
  line-height: 1.65;
  text-transform: uppercase;
}

.malu-home-hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 4.5rem; }

.malu-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 0 2.2rem;
  border: 1px solid var(--malu-ink);
  color: var(--malu-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.malu-text-link--solid,
.malu-text-link:hover,
.malu-text-link:focus-visible { background: var(--malu-ink); color: var(--malu-stone); }

.malu-text-link--solid:hover,
.malu-text-link--solid:focus-visible { background: var(--malu-copper); border-color: var(--malu-copper); }

.malu-home-intro {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 2fr);
  width: min(100% - 4rem, 132rem);
  margin: 0 auto;
  padding: clamp(8rem, 12vw, 16rem) 0;
  gap: 5rem;
  border-bottom: 1px solid var(--malu-line);
}

.malu-home-intro__number {
  padding-top: 1rem;
  color: var(--malu-copper);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.malu-home-intro p:last-child {
  max-width: 27ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 4.5vw, 6.4rem);
  letter-spacing: -0.035em;
  line-height: 1.09;
}

.malu-home-services {
  width: min(100% - 4rem, 132rem);
  margin: 0 auto;
  padding: clamp(8rem, 10vw, 14rem) 0;
}

.malu-home-services__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 3rem;
}

.malu-home-services__heading h2 { margin: 0; font-size: clamp(4rem, 5.4vw, 7.2rem); line-height: 1; }

.malu-home-services__heading p {
  max-width: 42rem;
  margin: 0;
  color: rgba(17, 23, 21, 0.66);
  font-size: 1.4rem;
  line-height: 1.65;
}

.malu-section-list {
  display: grid;
  border-top: 1px solid var(--malu-line);
}

.malu-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(32rem, 0.85fr);
  min-height: 48rem;
  border-right: 1px solid var(--malu-line);
  border-bottom: 1px solid var(--malu-line);
  border-left: 1px solid var(--malu-line);
  background: var(--malu-stone);
}

.malu-home-panel:nth-child(even) {
  grid-template-columns: minmax(32rem, 0.85fr) minmax(0, 1.15fr);
  background: #f4f0e8;
}

.malu-home-panel:nth-child(even) .malu-home-panel__media { order: 2; }

.malu-home-panel__media { min-height: 48rem; overflow: hidden; }

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

.malu-home-panel__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 7vw, 9rem);
}

.malu-home-panel__label {
  margin-bottom: 2.4rem;
  color: var(--malu-copper);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.malu-home-panel__content h3 {
  max-width: 11ch;
  margin: 0 0 2.2rem;
  font-size: clamp(4rem, 5vw, 7rem);
  line-height: 0.98;
}

.malu-home-panel__content p {
  max-width: 43rem;
  margin: 0 0 3.2rem;
  color: rgba(17, 23, 21, 0.72);
  font-size: 1.45rem;
  line-height: 1.7;
}

.malu-events { background: var(--malu-paper); }

.malu-events-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(34rem, 0.7fr);
  min-height: min(72rem, calc(100svh - 7.8rem));
  background: var(--malu-ink);
  color: var(--malu-stone);
}

.malu-events-hero__media { min-height: min(54rem, calc(100svh - 7.8rem)); overflow: hidden; }

.malu-events-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.malu-events-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4rem, 6vw, 8rem);
}

.malu-events-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: inherit;
  font-size: clamp(5.2rem, 6vw, 8.6rem);
  line-height: 0.95;
}

.malu-events-hero__meta {
  margin: 3rem 0 0;
  color: rgba(238, 233, 223, 0.7);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.malu-events-copy {
  display: grid;
  grid-template-columns: minmax(16rem, 0.55fr) minmax(0, 1.7fr);
  width: min(100% - 4rem, 118rem);
  margin: 0 auto;
  padding: clamp(8rem, 11vw, 15rem) 0;
  gap: clamp(4rem, 8vw, 11rem);
}

.malu-events-copy__heading span {
  display: block;
  margin-bottom: 2.2rem;
  color: var(--malu-copper);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.malu-events-copy h2 {
  margin: 0;
  font-size: clamp(4.2rem, 5vw, 7rem);
  line-height: 1;
}

.malu-events-copy__body p {
  margin: 0 0 2.4rem;
  font-size: clamp(1.5rem, 1.5vw, 1.8rem);
  line-height: 1.78;
}

.malu-events-gallery {
  width: min(100% - 4rem, 132rem);
  margin: 0 auto;
}

.malu-events-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.malu-events-hill {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(34rem, 0.7fr);
  width: min(100% - 4rem, 118rem);
  margin: 0 auto;
  padding: clamp(8rem, 11vw, 15rem) 0;
  gap: clamp(5rem, 8vw, 11rem);
}

.malu-events-hill h2 {
  margin: 0 0 3rem;
  font-size: clamp(4.2rem, 5vw, 7rem);
  line-height: 1;
}

.malu-events-hill p {
  margin: 0 0 2.4rem;
  font-size: 1.55rem;
  line-height: 1.75;
}

.malu-events-hill__included {
  padding: 3.5rem;
  background: var(--malu-stone);
}

.malu-events-hill__included h3 {
  margin: 0 0 2rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.malu-events-hill__included ul { margin: 0; padding-left: 1.8rem; }
.malu-events-hill__included li { margin: 0 0 1rem; font-size: 1.35rem; line-height: 1.5; }

.malu-events-closing {
  position: relative;
  display: grid;
  min-height: 64rem;
  place-items: end start;
  overflow: hidden;
}

.malu-events-closing img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.malu-events-closing::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 11, 0.82), rgba(8, 13, 11, 0.05) 72%);
  content: "";
}

.malu-events-closing__content {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: clamp(3rem, 7vw, 9rem);
  padding: clamp(3rem, 5vw, 6rem);
  background: rgba(17, 23, 21, 0.92);
  color: var(--malu-stone);
}

.malu-events-closing__content h2 {
  margin: 0 0 2rem;
  color: inherit;
  font-size: clamp(3.8rem, 5vw, 6.4rem);
  line-height: 1;
}

.malu-events-closing__content p { margin: 0 0 3rem; font-size: 1.45rem; line-height: 1.65; }
.malu-events-closing__content .malu-text-link { border-color: var(--malu-stone); background: var(--malu-stone); color: var(--malu-ink); }

.malu-site-footer { background: var(--malu-ink); color: var(--malu-stone); }

.malu-footer__newsletter {
  display: grid;
  grid-template-columns: minmax(22rem, 0.8fr) minmax(32rem, 1.2fr);
  width: min(100% - 4rem, 132rem);
  margin: 0 auto;
  padding: clamp(6rem, 8vw, 10rem) 0;
  gap: 7rem;
  border-bottom: 1px solid rgba(238, 233, 223, 0.18);
}

.malu-footer__newsletter h2 {
  max-width: 12ch;
  margin: 0;
  color: inherit;
  font-size: clamp(3.8rem, 5vw, 6.8rem);
  line-height: 1;
}

.malu-footer__newsletter-copy p {
  max-width: 50rem;
  margin: 0 0 3rem;
  color: rgba(238, 233, 223, 0.72);
  font-size: 1.4rem;
  line-height: 1.6;
}

.malu-newsletter-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid rgba(238, 233, 223, 0.65);
}

.malu-newsletter-form input[type="email"] {
  min-width: 0;
  min-height: 6rem;
  padding: 0 1rem 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 1.6rem;
}

.malu-newsletter-form input[type="email"]::placeholder { color: rgba(238, 233, 223, 0.5); }

.malu-newsletter-form button {
  padding: 0 1.4rem;
  border: 0;
  background: transparent;
  color: var(--malu-stone);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.malu-footer__main {
  display: grid;
  grid-template-columns: minmax(22rem, 1.2fr) repeat(3, minmax(15rem, 0.7fr));
  width: min(100% - 4rem, 132rem);
  margin: 0 auto;
  padding: 7rem 0;
  gap: 5rem;
}

.malu-footer__intro p {
  max-width: 35rem;
  margin: 2.5rem 0 0;
  color: rgba(238, 233, 223, 0.65);
  font-size: 1.3rem;
  line-height: 1.7;
}

.malu-footer__group h3 {
  margin: 0 0 2rem;
  color: var(--malu-copper);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.malu-footer__group a,
.malu-footer__group span {
  display: block;
  width: fit-content;
  margin: 0 0 1.2rem;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1.5;
  text-decoration: none;
}

.malu-footer__group a:hover,
.malu-footer__group a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 0.35em; }

.malu-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 4rem, 132rem);
  margin: 0 auto;
  padding: 2.4rem 0 3rem;
  gap: 2rem;
  border-top: 1px solid rgba(238, 233, 223, 0.18);
  color: rgba(238, 233, 223, 0.55);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.malu-message-page {
  display: grid;
  min-height: 62vh;
  place-items: center;
  padding: 8rem 2rem;
  background: var(--malu-stone);
  text-align: center;
}

.malu-message-page h1 { margin: 0 0 1.5rem; font-size: clamp(4.5rem, 7vw, 8rem); }
.malu-message-page p { max-width: 54rem; margin: 0 auto 3rem; font-size: 1.5rem; line-height: 1.6; }

@media screen and (max-width: 1180px) {
  .malu-header__inner { grid-template-columns: auto 1fr auto; }
  .malu-nav { gap: 1.5rem; }
  .malu-nav > a, .malu-nav summary, .malu-header__actions a { font-size: 0.98rem; }
  .malu-home-hero { grid-template-columns: minmax(0, 1.45fr) minmax(31rem, 0.75fr); }
}

@media screen and (max-width: 1320px) {
  .malu-header__inner { position: relative; grid-template-columns: auto 1fr auto; width: min(100% - 3rem, 148rem); min-height: 7.8rem; }
  .malu-brand__name { font-size: 2.6rem; }
  .malu-brand__sub { font-size: 0.75rem; }
  .malu-header__menu-toggle {
    display: inline-flex;
    min-height: 4.2rem;
    align-items: center;
    justify-self: end;
    padding: 0 1.4rem;
    border: 1px solid rgba(238, 233, 223, 0.45);
    background: transparent;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .malu-nav {
    position: absolute;
    top: 100%;
    right: -1.5rem;
    left: -1.5rem;
    display: none;
    max-height: calc(100vh - 7.8rem);
    align-items: stretch;
    padding: 2rem;
    overflow-y: auto;
    background: var(--malu-ink);
  }
  .malu-site-header[data-menu-open="true"] .malu-nav { display: grid; }
  .malu-nav > a, .malu-nav summary { display: block; padding: 1.3rem 0; font-size: 1.2rem; }
  .malu-nav__mobile-search { display: block; }
  .malu-nav__submenu { position: static; min-width: 0; margin: 0.5rem 0 1rem; background: rgba(238, 233, 223, 0.08); box-shadow: none; color: inherit; transform: none; }
  .malu-nav__submenu a { color: inherit; }
  .malu-header__actions { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 7.2rem; }
  .malu-header__actions a { padding: 0.9rem 1.1rem; font-size: 0.92rem; }
}

@media screen and (max-width: 920px) {
  .malu-header__inner { position: relative; grid-template-columns: auto 1fr auto; width: min(100% - 3rem, 148rem); min-height: 7.8rem; }
  .malu-brand__name { font-size: 2.6rem; }
  .malu-brand__sub { font-size: 0.75rem; }
  .malu-header__menu-toggle {
    display: inline-flex;
    min-height: 4.2rem;
    align-items: center;
    justify-self: end;
    padding: 0 1.4rem;
    border: 1px solid rgba(238, 233, 223, 0.45);
    background: transparent;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .malu-nav {
    position: absolute;
    top: 100%;
    right: -1.5rem;
    left: -1.5rem;
    display: none;
    max-height: calc(100vh - 7.8rem);
    align-items: stretch;
    padding: 2rem;
    overflow-y: auto;
    background: var(--malu-ink);
  }
  .malu-site-header[data-menu-open="true"] .malu-nav { display: grid; }
  .malu-nav > a, .malu-nav summary { display: block; padding: 1.3rem 0; font-size: 1.2rem; }
  .malu-nav__mobile-search { display: block; }
  .malu-nav__submenu { position: static; min-width: 0; margin: 0.5rem 0 1rem; background: rgba(238, 233, 223, 0.08); box-shadow: none; color: inherit; transform: none; }
  .malu-nav__submenu a { color: inherit; }
  .malu-header__actions { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 7.2rem; }
  .malu-header__actions a { padding: 0.9rem 1.1rem; font-size: 0.92rem; }
  .malu-home-hero { grid-template-columns: 1fr; }
  .malu-home-hero__media { min-height: 58svh; }
  .malu-home-hero__content { padding: 5rem 2rem 6rem; }
  .malu-home-hero h1 { max-width: 12ch; }
  .malu-events-hero { grid-template-columns: 1fr; }
  .malu-events-hero__media { min-height: 54svh; }
  .malu-events-hero__content { padding: 5rem 2rem 6rem; }
  .malu-events-copy, .malu-events-hill { grid-template-columns: 1fr; gap: 3rem; }
  .malu-home-intro { grid-template-columns: 1fr; gap: 2rem; }
  .malu-home-services__heading { align-items: flex-start; flex-direction: column; }
  .malu-home-panel,
  .malu-home-panel:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .malu-home-panel:nth-child(even) .malu-home-panel__media { order: 0; }
  .malu-home-panel__media { min-height: 50svh; }
  .malu-footer__newsletter, .malu-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .malu-footer__intro { grid-column: 1 / -1; }
}

@media screen and (max-width: 620px) {
  .malu-header__inner { width: calc(100% - 2rem); gap: 1rem; }
  .malu-brand__name { font-size: 2.2rem; }
  .malu-header__menu-toggle { min-height: 3.8rem; padding: 0 1rem; font-size: 0.9rem; }
  .malu-header__actions { display: none; }
  .malu-header__menu-toggle { grid-column: 3; }
  .malu-home-hero__media { min-height: 48svh; }
  .malu-home-hero__media img { object-position: 48% 50%; }
  .malu-home-hero h1 { font-size: clamp(4.4rem, 15vw, 6.3rem); }
  .malu-events-hero h1 { font-size: clamp(4.4rem, 15vw, 6.3rem); }
  .malu-home-intro, .malu-home-services, .malu-events-copy, .malu-events-gallery, .malu-events-hill, .malu-footer__newsletter, .malu-footer__main, .malu-footer__bottom { width: min(100% - 3rem, 132rem); }
  .malu-events-closing { min-height: 58rem; }
  .malu-events-closing__content { margin: 1.5rem; padding: 3rem 2rem; }
  .malu-home-intro { padding: 7rem 0; }
  .malu-home-intro p:last-child { font-size: 3.6rem; }
  .malu-home-services { padding: 7rem 0; }
  .malu-home-panel__media { min-height: 35rem; }
  .malu-home-panel__content { padding: 4.5rem 2.5rem 5rem; }
  .malu-footer__newsletter, .malu-footer__main { grid-template-columns: 1fr; gap: 4rem; }
  .malu-newsletter-form__row { grid-template-columns: 1fr; border: 0; }
  .malu-newsletter-form input[type="email"] { border-bottom: 1px solid rgba(238, 233, 223, 0.65); }
  .malu-newsletter-form button { min-height: 5rem; margin-top: 1.2rem; border: 1px solid rgba(238, 233, 223, 0.65); }
  .malu-footer__bottom { align-items: flex-start; flex-direction: column; }
}

/* Full-width homepage imagery with readable copy overlays. */
.malu-home {
  --malu-feature-height: min(86rem, calc(100svh - 9.2rem));
}

.malu-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: var(--malu-feature-height);
  place-items: end start;
  overflow: hidden;
  background: var(--malu-ink);
  color: var(--malu-stone);
}

.malu-home-hero__media {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.malu-home-hero__media img { object-position: center 58%; }

.malu-home-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 10, 0.88) 0%, rgba(7, 12, 10, 0.55) 43%, rgba(7, 12, 10, 0.08) 78%),
    linear-gradient(0deg, rgba(7, 12, 10, 0.62) 0%, transparent 48%);
  content: "";
}

.malu-home-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 4rem, 132rem);
  margin: 0 auto;
  padding: clamp(3rem, 4vw, 5rem) 0;
}

.malu-home-hero h1 { color: inherit; font-size: clamp(4rem, 4.4vw, 6.2rem); }

.malu-home-hero__strapline { color: rgba(238, 233, 223, 0.76); }
.malu-home-hero__actions { margin-top: 2.5rem; }

.malu-home-hero .malu-text-link {
  min-height: 4rem;
  padding: 0 1.6rem;
  border-color: rgba(238, 233, 223, 0.8);
  background: rgba(17, 23, 21, 0.18);
  color: var(--malu-stone);
}

.malu-home-hero .malu-text-link--solid {
  border-color: var(--malu-stone);
  background: var(--malu-stone);
  color: var(--malu-ink);
}

.malu-home-hero .malu-text-link:hover,
.malu-home-hero .malu-text-link:focus-visible {
  border-color: var(--malu-copper);
  background: var(--malu-copper);
  color: #fff;
}

.malu-home-services {
  width: 100%;
  padding: 0;
}

.malu-home-services__heading {
  align-items: center;
  width: min(100% - 4rem, 132rem);
  margin: 0 auto clamp(1.5rem, 2vw, 2rem);
  gap: 1.5rem;
}

.malu-home-services__heading p { font-size: 1.2rem; line-height: 1.45; }

.malu-section-list { border: 0; }

.malu-home-panel,
.malu-home-panel:nth-child(even) {
  position: relative;
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 1fr;
  min-height: var(--malu-feature-height);
  overflow: hidden;
  border: 0;
  border-top: 0.4rem solid var(--malu-paper);
  background: var(--malu-forest);
  color: #fff;
}

.malu-home-panel:nth-child(even) .malu-home-panel__media { order: 0; }

.malu-home-panel__media {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.malu-home-panel::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 11, 9, 0.9) 0%, rgba(6, 11, 9, 0.58) 42%, rgba(6, 11, 9, 0.08) 76%),
    linear-gradient(0deg, rgba(6, 11, 9, 0.55) 0%, transparent 52%);
  content: "";
}

.malu-home-panel:nth-child(even)::after {
  background:
    linear-gradient(270deg, rgba(6, 11, 9, 0.9) 0%, rgba(6, 11, 9, 0.58) 42%, rgba(6, 11, 9, 0.08) 76%),
    linear-gradient(0deg, rgba(6, 11, 9, 0.55) 0%, transparent 52%);
}

.malu-home-panel__content {
  position: relative;
  z-index: 1;
  width: min(100% - 4rem, 132rem);
  min-height: 0;
  height: 100%;
  margin: 0 auto;
  padding: clamp(6rem, 9vw, 12rem) 0;
  box-sizing: border-box;
  color: #fff;
}

.malu-home-panel:nth-child(even) .malu-home-panel__content {
  align-items: flex-end;
  text-align: right;
}

.malu-home-panel__label { color: #d79772; }
.malu-home-panel__content h3 { color: inherit; font-size: clamp(3.2rem, 4.2vw, 5.4rem); }
.malu-home-panel__content p { color: rgba(255, 255, 255, 0.82); }
.malu-home-panel__content .malu-text-link {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(6, 11, 9, 0.16);
  color: #fff;
}

.malu-home-panel__content .malu-text-link:hover,
.malu-home-panel__content .malu-text-link:focus-visible {
  border-color: var(--malu-copper);
  background: var(--malu-copper);
}

@media screen and (max-width: 920px) {
  .malu-home { --malu-feature-height: calc(100svh - 7.8rem); }
  .malu-home-hero { min-height: var(--malu-feature-height); }
  .malu-home-hero__media { min-height: 0; }
  .malu-home-hero__content { width: min(100% - 3rem, 132rem); min-height: inherit; margin: 0 auto; padding: 3rem 0 4rem; }
  .malu-home-panel,
  .malu-home-panel:nth-child(even) { min-height: var(--malu-feature-height); }
  .malu-home-panel__media { min-height: 0; }
}

@media screen and (max-width: 620px) {
  .malu-home-hero__media { min-height: 0; }
  .malu-home-hero::after,
  .malu-home-panel::after,
  .malu-home-panel:nth-child(even)::after {
    background: linear-gradient(0deg, rgba(6, 11, 9, 0.94) 0%, rgba(6, 11, 9, 0.52) 56%, rgba(6, 11, 9, 0.1) 100%);
  }
  .malu-home-hero__content { display: flex; min-height: inherit; flex-direction: column; justify-content: flex-end; }
  .malu-home-panel,
  .malu-home-panel:nth-child(even) { min-height: var(--malu-feature-height); }
  .malu-home-panel__media { min-height: 0; }
  .malu-home-panel__content,
  .malu-home-panel:nth-child(even) .malu-home-panel__content {
    width: min(100% - 3rem, 132rem);
    align-items: flex-start;
    justify-content: flex-end;
    padding: 5rem 0;
    text-align: left;
  }
  .malu-home-panel__content h3 { font-size: clamp(3.8rem, 14vw, 5.8rem); }
  .malu-home-services__heading { gap: 0.4rem; margin-bottom: 1.5rem; }
}

.malu-home-intro p:last-child { font-size: clamp(2.8rem, 3.4vw, 4.8rem); }
.malu-home-services__heading h2 { font-size: clamp(2.6rem, 2.8vw, 3.6rem); }
.malu-events-hero h1 { font-size: clamp(4rem, 4.8vw, 6.8rem); }
.malu-events-copy h2,
.malu-events-hill h2 { font-size: clamp(3.6rem, 4.2vw, 5.8rem); }
.malu-events-closing__content h2 { font-size: clamp(3.4rem, 4vw, 5.4rem); }
.malu-footer__newsletter h2 { font-size: clamp(3.2rem, 4vw, 5.4rem); }

.malu-home-panel:first-child .malu-home-panel__media img {
  object-fit: cover;
  object-position: center 42%;
}

/* Full-bleed, uncropped Membership photographs. */
#Banner-template--19040015548704__1659964502254939cb {
  display: grid;
  grid-template-columns: 602fr 732fr;
  align-items: center;
  width: min(100%, 133.4rem);
  min-height: 0;
  margin: clamp(2.5rem, 4vw, 5rem) auto 0;
  background: var(--malu-ink);
}

#Banner-template--19040015548704__1659964502254939cb .banner__media,
#Banner-template--19040015548704__1659964502254939cb .banner__media-half,
#Banner-template--19040015548704__1659964502254939cb .banner__media-half + .banner__media-half {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  background: var(--malu-ink);
}

#Banner-template--19040015548704__1659964502254939cb .banner__media:first-child {
  aspect-ratio: 1 / 1;
}

#Banner-template--19040015548704__1659964502254939cb .banner__media:nth-child(2) {
  aspect-ratio: 732 / 596;
}

#Banner-template--19040015548704__1659964502254939cb .banner__media img {
  object-fit: contain;
  object-position: center;
}

#Banner-template--19040015548704__1659964502254939cb .banner__content {
  display: none;
}

.malu-independent-site .section-featured-product .static-checkout {
  display: inline-flex;
  width: auto;
  min-width: 12rem;
  min-height: 4rem;
  padding: 0 2rem;
  font-size: 1.1rem;
}

/* Events page hero: white wording over one full-width image. */
.malu-events-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(72rem, calc(100svh - 7.8rem));
  place-items: end start;
  overflow: hidden;
  background: var(--malu-ink);
  color: #fff;
}

.malu-events-hero__media {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.malu-events-hero__media img { object-position: center 58%; }

.malu-events-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 4rem, 132rem);
  margin: 0 auto;
  padding: clamp(4rem, 6vw, 8rem) 0 clamp(10rem, 14vh, 15rem);
  color: #fff;
  text-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.48);
}

.malu-events-hero__meta { color: rgba(255, 255, 255, 0.82); }

/* Legal pages restored from the current live page records. */
.malu-legal-main { background: var(--malu-paper); }

.malu-legal {
  width: min(100% - 4rem, 104rem);
  margin: 0 auto;
  padding: clamp(6rem, 9vw, 11rem) 0 clamp(8rem, 11vw, 14rem);
  color: var(--malu-ink);
}

.malu-legal__header {
  margin-bottom: clamp(4rem, 6vw, 7rem);
  padding-bottom: clamp(3rem, 4vw, 5rem);
  border-bottom: 1px solid rgba(17, 23, 21, 0.2);
}

.malu-legal__header h1 {
  max-width: 14ch;
  margin: 1.2rem 0 0;
  font-size: clamp(4rem, 6.5vw, 8rem);
  line-height: 0.98;
}

.malu-legal__body {
  max-width: 86rem;
  font-size: clamp(1.55rem, 1.3vw, 1.75rem);
  line-height: 1.78;
}

.malu-legal__body p,
.malu-legal__body ul,
.malu-legal__body ol { margin: 0 0 1.8rem; }

.malu-legal__body ul,
.malu-legal__body ol { padding-left: 2.4rem; }

.malu-legal__body li { margin-bottom: 0.8rem; }

.malu-legal__body h2,
.malu-legal__body h3,
.malu-legal__body p > strong:only-child {
  display: block;
  margin: 4rem 0 1.4rem;
  color: var(--malu-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 2.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
}

.malu-legal__body a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Car Storage: give the opening photograph a stronger, full-width presence. */
#Banner-template--20122099155232__1659964502254939cb {
  margin-top: clamp(2.4rem, 3vw, 4.8rem);
  min-height: clamp(48rem, 58vw, 72rem);
}

#Banner-template--20122099155232__1659964502254939cb .banner__media,
#Banner-template--20122099155232__1659964502254939cb .banner__media img {
  width: 100%;
  height: 100%;
}

#Banner-template--20122099155232__1659964502254939cb .banner__media img {
  object-fit: cover;
  object-position: center;
}

#shopify-section-template--20122099155232__ac3b2054-48a9-44f3-b956-a4f1efe23cf8 .contact__button {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  text-align: right;
}

#shopify-section-template--20122099155232__ac3b2054-48a9-44f3-b956-a4f1efe23cf8 .contact__button .button {
  display: block;
  min-width: 15rem;
  min-height: 5.4rem;
  margin-right: 0;
  margin-left: auto;
  padding: 1.4rem 2.8rem;
  font-size: 1.3rem;
}

#shopify-section-template--19040015614240__form .contact__button .button {
  min-width: 15rem;
  min-height: 5.4rem;
  padding: 1.4rem 2.8rem;
  font-size: 1.3rem;
}

@media screen and (min-width: 768px) {
  #shopify-section-template--20122099155232__ac3b2054-48a9-44f3-b956-a4f1efe23cf8 #ContactForm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(2rem, 3vw, 4rem);
  }

  #shopify-section-template--20122099155232__ac3b2054-48a9-44f3-b956-a4f1efe23cf8 #ContactForm > .contact__fields,
  #shopify-section-template--20122099155232__ac3b2054-48a9-44f3-b956-a4f1efe23cf8 #ContactForm > .field {
    grid-column: 1;
  }

  #shopify-section-template--20122099155232__ac3b2054-48a9-44f3-b956-a4f1efe23cf8 .contact__button {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    display: block;
    width: auto;
  }

  #shopify-section-template--20122099155232__ac3b2054-48a9-44f3-b956-a4f1efe23cf8 .contact__button .button {
    min-width: 17rem;
    min-height: 6rem;
    margin: 0;
    padding: 1.6rem 3.2rem;
    font-size: 1.4rem;
  }

  #shopify-section-template--19040015614240__form .contact__button .button {
    min-width: 17rem;
    min-height: 6rem;
    padding: 1.6rem 3.2rem;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 620px) {
  .malu-hero-brand { top: 8.5rem; left: 1.5rem; }
  .malu-events-hero { min-height: calc(100svh - 7.8rem); }
  .malu-events-hero__content {
    width: min(100% - 3rem, 132rem);
    padding: 4rem 0 10rem;
  }
  #Banner-template--20122099155232__1659964502254939cb {
    margin-top: 2.4rem;
    min-height: clamp(38rem, 62svh, 52rem);
  }
  .malu-legal { width: min(100% - 3rem, 104rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   GRID CARD FIXES — ratio-based heights (v3, Sep 2026)
   Old fixed-height approach removed; now handled below via
   .card__inner (bags) and :not(.card__inner) (caps) selectors.
   ============================================================ */

/* ============================================================
   NAV — always visible on wide screens; hamburger on portrait mobile
   Above 750px (landscape tablet / desktop): show full nav, hide toggle
   Below 750px (portrait phones): use hamburger menu
   ============================================================ */
@media screen and (min-width: 751px) and (max-width: 920px) {
  .malu-header__menu-toggle { display: none !important; }
  .malu-nav {
    position: static !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Portrait phones (≤750px): let the hamburger take over */
@media screen and (max-width: 750px) {
  .malu-header__menu-toggle { display: inline-flex !important; }
  .malu-nav {
    position: absolute !important;
    top: 100% !important;
    display: none !important;
  }
  .malu-site-header[data-menu-open="true"] .malu-nav {
    display: grid !important;
  }
}

/* Remove underline from HOME in nav */
.malu-nav__link[href="/"] { text-decoration: none !important; }

/* ============================================================
   PRODUCT PAGE — single column on tablet/mobile
   ============================================================ */
@media screen and (max-width: 900px) {
  .product.grid.grid--2-col-tablet {
    grid-template-columns: 1fr !important;
  }
}

/* Prevent horizontal overflow */
.template-product body,
.template-product .page-width {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Thumbnail strip */
.product__media-list--thumbnail {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  gap: 0.8rem !important;
}
.product__media-list--thumbnail .product__media-item {
  flex: 0 0 7.2rem !important;
  width: 7.2rem !important;
  height: 7.2rem !important;
}
.product__media-list--thumbnail .product__media-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Hide quick view and in-stock text */
.quick-add,
.card__badge,
.inventory-status { display: none !important; }

/* Price format — no prefix label */
.price__regular .price-item::before { content: ''; }

/* ============================================================
   CLASSIFIEDS HERO
   ============================================================ */
.malu-classified-hero {
  position: relative;
  min-height: 50rem;
  display: flex;
  align-items: center;
}
.malu-classified-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.malu-classified-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.malu-classified-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.55) 100%
  );
}
.malu-classified-hero__inner {
  position: relative;
  z-index: 1;
  padding: 6rem 3.2rem;
  color: #fff;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

/* ============================================================
   VENDOR DOT FIX — remove leading dot
   ============================================================ */
.card__vendor::before { content: none !important; }
.card__vendor:first-child::before { content: none !important; }


/* ============================================================
   PRODUCT PAGE — Nav dropdown fix
   The baked-in details open="" has been removed from HTML files.
   No CSS override needed here.
   ============================================================ */

/* ============================================================
   PRODUCT PAGE — Main image (height handled by ratio method below)
   ============================================================ */

/* Make the inner img/picture fill the container properly */
.product__media-gallery .product__media img,
.product__media-gallery .product__media picture,
.product__media-gallery .product__media .product-image-placeholder {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* NOTE: .product__media.media already handles position via the absolute block below.
   Do NOT add position:relative here — it would override the absolute fill. */

/* Wrapper that holds the slider */
.product__media-wrapper .product__media-list {
  height: auto !important;
}

/* ============================================================
   PRODUCT PAGE — Gallery layout: main image above, thumbnails below
   DOM order is already correct: GalleryViewer first, GalleryThumbnails second.
   Dawn sets media-gallery { display: block } — block children stack top-to-bottom
   in DOM order naturally. slider-component is a custom element (inline by default)
   so we just make it block. No flex ordering battles needed.
   ============================================================ */

/* media-gallery: block layout, no sticky, no stacking context interference */
media-gallery.product__media-gallery,
body.malu-independent-site media-gallery.product__media-gallery,
body.malu-independent-site .product__media-gallery {
  display: block !important;
  width: 100% !important;
  position: static !important;
}

/* slider-component: custom element defaults to inline — make block so GalleryViewer
   and GalleryThumbnails stack top-to-bottom in natural DOM order. No z-index, no
   position tricks — pure block flow. */
media-gallery.product__media-gallery > slider-component,
body.malu-independent-site media-gallery.product__media-gallery > slider-component {
  display: block !important;
  position: static !important;
}

/* GalleryThumbnails: small top gap below the main image */
media-gallery.product__media-gallery > [id^="GalleryThumbnails-"],
body.malu-independent-site media-gallery.product__media-gallery > [id^="GalleryThumbnails-"] {
  margin-top: 0.8rem !important;
}

/* Thumbnail list: mobile default = horizontal row */
.thumbnail-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 0.8rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  scrollbar-width: thin !important;
}

.thumbnail-list__item {
  flex: 0 0 8rem !important;
  width: 8rem !important;
  height: 8rem !important;
  max-width: 8rem !important;
}

/* Thumbnail buttons and images — square, no grey */
.thumbnail-list__item .thumbnail {
  width: 8rem !important;
  height: 8rem !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  display: block !important;
}

.thumbnail-list__item .thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Remove grey background from thumbnail picture/image areas */
.thumbnail-list__item,
.thumbnail-list__item .thumbnail,
.thumbnail-list__item .thumbnail img,
.thumbnail-list__item picture {
  background: transparent !important;
  background-color: transparent !important;
}

/* The thumbnail "global-media-settings" wrapper adds padding-top ratio — kill it */
.thumbnail-list__item .thumbnail > div[style*="padding-top"],
.thumbnail-list__item [style*="padding-top"] {
  padding-top: 0 !important;
  height: 8rem !important;
  width: 8rem !important;
  position: relative !important;
}

/* ============================================================
   PRODUCT PAGE — Description breathing room
   Was pressed hard against the product title / media top
   ============================================================ */
.product__info-container {
  padding-top: 4rem !important;
}

.product__info-container .product__title {
  margin-bottom: 1.2rem !important;
}

.product__description {
  margin-top: 1.6rem !important;
  line-height: 1.7 !important;
}

/* Give the whole product grid some top breathing room */
.product.grid.grid--2-col-tablet {
  padding-top: 1.6rem !important;
  gap: 3.2rem !important;
}

/* On mobile: thumbnail sizes */
@media (max-width: 749px) {
  .thumbnail-list__item,
  .thumbnail-list__item .thumbnail,
  .thumbnail-list__item .thumbnail > div[style*="padding-top"] {
    flex: 0 0 6rem !important;
    width: 6rem !important;
    height: 6rem !important;
    max-width: 6rem !important;
  }
}

/* ============================================================
   GRID — Slightly more centered bag images
   Move object-position to true center
   ============================================================ */
.grid__item .card__media img {
  object-position: center 35% !important;
}


/* ============================================================
   PRODUCT PAGE — Minimal overrides; let Dawn's native grid do the work.
   Dawn's .grid--2-col-tablet creates: [media col] [info col] on desktop.
   Dawn's media-gallery with data-desktop-layout="thumbnail-left" puts
   thumbs on LEFT, main image on RIGHT — exactly what we want.
   We only need to: (a) fix direction:rtl on odd rows, (b) fix modal-opener,
   (c) ensure the image fills its ratio box correctly.
   ============================================================ */

/* Fix Dawn's .row:nth-child(odd) { direction:rtl } which mirrors the layout */
.product.grid--2-col-tablet {
  direction: ltr !important;
}

/* modal-opener is a custom element (inline by default).
   It wraps .product__media.media which Dawn's component-card CSS sets to
   position:absolute; top:0; bottom:0. So modal-opener must be:
   - block (not inline)
   - position:relative (so the absolutely-positioned .media has a containing block)
   - height defined via padding-top trick so the absolute child has something to fill.
   We use padding-top:100% as a safe default; images will show at square ratio.
   The exact per-image ratio from inline style="padding-top:X%" on .product__media
   is ignored because we're putting the ratio on the parent instead. */
/* modal-opener is a custom element — block wrapper only.
   The ratio box is .focus-inset.product__media.media (has inline padding-top:100%).
   Do NOT add padding-top here — that would create a double-ratio problem. */
modal-opener.product__modal-opener,
.product__modal-opener {
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
  background: transparent !important;
}

/* .focus-inset.product__media.media is the ratio box (inline padding-top sets ratio).
   It uses position:relative by default from the inline style; the img inside is absolute. */
.focus-inset.product__media.media {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #1a1a1a !important;
}

/* The image inside the ratio box: fill it absolutely */
.focus-inset.product__media.media img,
.product__media-gallery .product__media.media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* ============================================================
   THUMBNAILS — ensure they display and work correctly
   ============================================================ */

/* Always show the thumbnail slider */
.thumbnail-slider {
  display: flex !important;
}

/* Thumbnail list base styles */
.thumbnail-slider .thumbnail-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.6rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Each thumbnail item: square, fixed size */
.thumbnail-list__item {
  flex: 0 0 7.5rem !important;
  width: 7.5rem !important;
  height: 7.5rem !important;
  min-width: 7.5rem !important;
}

/* Kill the padding-bottom:100% pseudo-element that creates grey space */
.thumbnail-list__item::before {
  display: none !important;
  content: none !important;
  padding-bottom: 0 !important;
}

/* Thumbnail button: fill the item */
.thumbnail-list__item .thumbnail {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  overflow: hidden !important;
  background: transparent !important;
}

/* Thumbnail image: cover fill */
.thumbnail-list__item .thumbnail img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent !important;
}

/* ============================================================
   DESKTOP (≥750px) — thumbnail strip BELOW main image, horizontal row
   James confirmed: thumbnails at the bottom, main picture above.
   Same layout as mobile — horizontal scrolling row.
   ============================================================ */
@media (min-width: 750px) {
  /* Thumbnail strip: horizontal row (same as mobile) */
  .thumbnail-slider .thumbnail-list {
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    max-height: none !important;
    gap: 0.8rem !important;
    padding: 0.8rem 0 !important;
  }

  /* Each thumbnail item on desktop */
  .thumbnail-list__item {
    flex: 0 0 18rem !important;
    width: 18rem !important;
    height: 18rem !important;
    min-width: 18rem !important;
    max-width: 18rem !important;
  }

  .thumbnail-list__item .thumbnail {
    width: 18rem !important;
    height: 18rem !important;
  }

  .thumbnail-list__item .thumbnail > div[style*="padding-top"],
  .thumbnail-list__item [style*="padding-top"] {
    height: 18rem !important;
    width: 18rem !important;
  }
}

/* ============================================================
   DESKTOP (≥750px) — constrain gallery width, keep block stacking
   ============================================================ */
@media (min-width: 750px) {
  media-gallery.product__media-gallery,
  body.malu-independent-site media-gallery.product__media-gallery,
  body.malu-independent-site .product__media-gallery {
    display: block !important;
    max-width: 55% !important;
  }
}

/* ============================================================
   MOBILE (≤749px) — thumbnails horizontal row below main image
   ============================================================ */
@media (max-width: 749px) {
  .thumbnail-slider .thumbnail-list {
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 0.8rem 0 !important;
  }

  .thumbnail-list__item {
    flex: 0 0 6rem !important;
    width: 6rem !important;
    height: 6rem !important;
    min-width: 6rem !important;
  }
}

/* ============================================================
   PRODUCT PAGE — Hide media toggle button (white square artifact)
   ============================================================ */
.product__media-toggle,
button.product__media-toggle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   PRODUCT CARD IMAGES — work WITH Dawn's .ratio flex spacer trick
   Dawn sets: .ratio { display:flex; align-items:stretch }
              .ratio::before { padding-bottom:var(--ratio-percent) }
   The ::before creates the intrinsic height; card__media is absolute.
   We must NOT override flex-direction or padding-top on .ratio.
   ============================================================ */

/* Zero out card-image-padding so card__media fills the full box */
.grid__item .wbproduct-container .wbimgblock.ratio {
  --card-image-padding: 0px;
  overflow: hidden !important;
}

/* Ensure card__media fills the ratio box (Dawn uses top:0;bottom:0 already) */
.grid__item .wbproduct-container .wbimgblock .card__media {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

/* Images fill the box via card__media (bag cards) */
.grid__item .wbproduct-container .wbimgblock .card__media img,
.grid__item .wbproduct-container .wbimgblock .card__media .media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* ============================================================
   CAP CARDS in /collections/all — different HTML structure:
   .wbimgblock.ratio > <a> > .media > <img>   (no .card__media)
   The .ratio::before creates intrinsic height; make the <a>,
   .media and <img> all fill that space absolutely.
   ============================================================ */
.grid__item .wbproduct-container .wbimgblock.ratio > a {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.grid__item .wbproduct-container .wbimgblock.ratio > a .media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.grid__item .wbproduct-container .wbimgblock.ratio > a .media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* CAP CARDS — taller ratio (square 100% instead of landscape 66.66%)
   Bag cards: .card__inner.wbimgblock.ratio  (has BOTH classes)
   Cap cards: .wbimgblock.ratio  (does NOT have .card__inner)
   So target .wbimgblock.ratio that is NOT also .card__inner */
.grid__item .wbproduct-container .wbimgblock.ratio:not(.card__inner) {
  --ratio-percent: 100% !important;
}

/* DESKTOP-ONLY SPACER — keeps cap cards on a clean new row in the 3-col desktop
   grid without breaking the 2-col mobile grid (hidden on mobile, visible on desktop) */
.grid__item--desktop-spacer {
  display: none !important;
}
@media (min-width: 750px) {
  .grid__item--desktop-spacer {
    display: block !important;
  }
}

/* ============================================================
   PRICE LABEL — Hide "Regular price" / "Sale price" visually-hidden
   spans that are showing in static export context
   ============================================================ */
.price .visually-hidden,
.price .visually-hidden--inline {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: block !important;
}

/* ============================================================
   GRID CARDS — Portrait alignment: equal-height card image boxes
   so all card titles/prices sit at the same vertical position
   Only target collection grid cards, not product page grid items
   ============================================================ */
.template-collection .grid__item .wbproduct-container,
.template-list-collections .grid__item .wbproduct-container {
  display: flex !important;
  flex-direction: column !important;
}

.template-collection .grid__item .wbproductdes.card__content,
.template-list-collections .grid__item .wbproductdes.card__content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* ============================================================
   PRODUCT PAGE — Image bleed: remove padding inside media container
   ============================================================ */
.product__media.media,
.product__media-gallery .product__media.media,
.focus-inset.product__media.media {
  --card-image-padding: 0px;
}

/* ============================================================
   PRODUCT PAGE — Kill the modal icon (white square) and border/frame
   ============================================================ */

/* Hide the expand/modal icon that shows as a white square */
.product__media-icon,
.product__modal-opener .product__media-icon {
  display: none !important;
}

/* Remove border, background, border-radius from the image container */
.product__media.media,
.product__media-gallery .product__media.media,
.focus-inset.product__media.media,
.gradient.global-media-settings.product__media {
  border: none !important;
  border-radius: 0 !important;
  background: #111 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* The modal-opener wrapper — remove any border/padding it adds */
.product__modal-opener {
  display: block !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Ensure the toggle button doesn't show */
.product__media-toggle {
  display: none !important;
}

/* ============================================================
   PRODUCT PAGE — Thumbnail button styling
   ============================================================ */

/* Top padding so image isn't flush with the nav */
.product__media-wrapper {
  padding-top: 2rem !important;
}

/* Remove frame/border from thumbnail buttons */
.thumbnail.global-media-settings,
button.thumbnail,
.thumbnail {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Active thumbnail — subtle indicator without a heavy frame */
.thumbnail[aria-current="true"] {
  outline: 2px solid rgba(255,255,255,0.5) !important;
  outline-offset: 2px !important;
}

