/* The editorial gallery uses native Image and Video blocks so staff can replace media in WordPress. */
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-intro {
  padding-block: clamp(56px, 7vw, 104px) 46px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-intro h1 {
  max-width: 850px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-intro > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-intro > p.mf-gallery-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 25px;
  margin-top: 36px;
  max-width: none;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-jumps a:hover {
  border-bottom-width: 2px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-hero {
  margin-bottom: 44px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-hero figure {
  margin: 0;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: 50% 62%;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-hero figcaption,
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-grid figcaption,
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-videos figcaption {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-hero figcaption {
  margin-top: 12px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section {
  padding-block: 72px 78px;
  border-top: 1px solid var(--line);
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section-head .eyebrow {
  margin-bottom: 14px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section-head h2 {
  margin: 0;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section-head > p {
  max-width: 480px;
  font-size: 14px;
  line-height: 1.75;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 22px;
  align-items: start;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-grid > figure {
  width: 100%;
  min-width: 0;
  margin: 0;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-grid .mf-gallery-portrait img {
  object-position: 50% 42%;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-grid figcaption {
  margin-top: 11px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-videos {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  align-items: start;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-videos > figure {
  min-width: 0;
  margin: 0;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-videos video {
  display: block;
  width: 100%;
  height: 420px;
  background: var(--ink);
  object-fit: contain;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-videos figcaption {
  margin-top: 13px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-final {
  padding-block: 68px 82px;
  background: var(--mist);
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-final .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-final h2 {
  max-width: 700px;
  margin: 0;
}
:is(.mf-editable,.editor-styles-wrapper) .mf-gallery-final .wp-block-buttons {
  flex-shrink: 0;
}
@media (max-width: 900px) {
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-videos video {
    height: 320px;
  }
}
@media (max-width: 600px) {
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-intro {
    padding-block: 48px 25px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-intro > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 15px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-intro > p.mf-gallery-jumps {
    margin-top: 26px;
    gap: 2px 20px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-hero {
    margin-bottom: 15px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-hero img {
    aspect-ratio: 4 / 3;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section {
    padding-block: 46px 52px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section-head {
    margin-bottom: 23px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-section-head > p {
    font-size: 13px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-grid,
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-videos {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-videos video {
    height: auto;
    max-height: 520px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-final {
    padding-block: 45px 54px;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-final .wrap {
    display: block;
  }
  :is(.mf-editable,.editor-styles-wrapper) .mf-gallery-final .wp-block-buttons {
    margin-top: 27px;
  }
}
