.gallery-section {
  position: relative;
  z-index: 8;
  padding: 0;
  background: #f6ffd7;
  isolation: isolate;
}
.gallery-heading,
.gallery-mosaic {
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}
.gallery-heading {
  padding: clamp(88px, 9vw, 132px) 0 clamp(42px, 5vw, 68px);
  color: var(--color-ink);
}
.gallery-eyebrow {
  margin: 0 0 18px;
  color: rgba(27, 21, 0, 0.62);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}
.gallery-title {
  margin: 0;
  font-size: 5.6rem;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
  .gallery-title { font-size: 4.2rem; }
}
.gallery-mosaic {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gallery-tile {
  position: relative;
  display: block;
  flex: 1 1 240px;
  aspect-ratio: var(--gallery-ratio, 1.7778);
  overflow: hidden;
  background: #1b1500;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
}
.gallery-mosaic.is-laid-out { display: block; }
.gallery-mosaic.is-laid-out .gallery-tile { position: absolute; }
.gallery-tile > img,
.gallery-tile > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.gallery-tile:focus-visible { outline: 3px solid #ff5a00; outline-offset: -3px; }
.gallery-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.gallery-play img {
  width: 44px;
  height: 44px;
  padding: 10px;
  box-sizing: content-box;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}
.gallery-modal[hidden] { display: none; }
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 76px 68px 70px;
  color: #fff;
}
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.96);
}
.gallery-modal-content { position: relative; width: 100%; height: 100%; min-height: 0; pointer-events: none; }
.gallery-modal-content img,
.gallery-modal-content video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-modal-content video { pointer-events: auto; }
.gallery-modal-toolbar {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font-size: 13px;
}
.gallery-modal button:not(.gallery-modal-backdrop) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.gallery-modal button img { width: 24px; height: 24px; filter: invert(1); }
.gallery-modal button:focus-visible { outline: 2px solid #c6ff00; outline-offset: 2px; }
.gallery-modal button:disabled { opacity: 0.3; cursor: default; }
.gallery-modal-prev,
.gallery-modal-next { position: absolute; top: calc(50% - 22px); }
.gallery-modal-prev { left: max(8px, env(safe-area-inset-left)); }
.gallery-modal-next { right: max(8px, env(safe-area-inset-right)); }
.gallery-modal-caption {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 60px;
  right: 60px;
  margin: 0;
  max-height: 42px;
  overflow: auto;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
body.gallery-modal-open { overflow: hidden; }
.gallery-under-header .lse-header > .main-nav a::after { background: #1b1500; }
@media (min-width: 641px) {
  .gallery-under-header .lse-header:not(.nav-open)::before { background: #f6ffd7; opacity: 1; }
}
@media (max-width: 640px) {
  .gallery-title { font-size: 3rem; }
  .gallery-mosaic { gap: 4px; }
  .gallery-tile { flex-basis: 140px; }
  .gallery-modal { padding: 66px 46px 66px; }
  .gallery-play img { width: 24px; height: 24px; padding: 10px; }
  .gallery-under-header .lse-header:not(.nav-open) > .brand-link,
  .gallery-under-header .lse-header:not(.nav-open) > .header-actions,
  .gallery-under-header .lse-header:not(.nav-open) > .header-actions .nav-toggle { color: #1b1500; filter: none; }
  .gallery-media-under-header .lse-header:not(.nav-open) > .brand-link,
  .gallery-media-under-header .lse-header:not(.nav-open) > .header-actions,
  .gallery-media-under-header .lse-header:not(.nav-open) > .header-actions .nav-toggle { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)); }
  .gallery-under-header .lse-header:not(.nav-open) > .header-wipe-layer { display: none; }
}
