.wildlife-page {
  --wild-pale: #e4f2f8;
  --wild-gold: #8b5909;
  padding-bottom: 0;
}
.wildlife-page h2 {font-size: clamp(34px, 4vw, 60px)}
.wild-label {
  color: var(--wild-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.wild-tint {background: var(--wild-pale)}
.wild-photo {position: relative; overflow: hidden}
.wild-photo img {width: 100%; height: 100%; object-fit: cover}
.wild-photo[hidden] {display: none}
.wild-banner {
  display: grid;
  isolation: isolate;
  color: var(--white);
}
.wild-banner > * {grid-area: 1 / 1}
.wild-banner .wild-photo img {height: auto}
.wild-hero-copy, .wild-close-copy {
  z-index: 1;
  justify-self: start;
  margin-left: var(--gutter);
  text-shadow: 0 1px 3px #0b2540, 0 2px 12px #0b2540;
}
.wild-hero-copy {
  align-self: start;
  max-width: calc(100% - 2 * var(--gutter));
  margin-top: clamp(10px, calc(3vw - 16px), 36px);
}
.wild-hero-copy .wild-label {color: var(--sun); margin-bottom: 3px}
.wild-hero-copy h1 {font-size: clamp(34px, 4.5vw, 72px); line-height: 1.03}
.wild-hero-copy h1 + p {margin-top: 6px; line-height: 1.45}
.wild-hero-desktop-break {display: none}
@media (min-width: 701px) {
  .wild-hero-copy {
    position: relative;
    align-self: stretch;
    justify-self: center;
    width: min(calc(100% - 2 * var(--gutter)), var(--max));
    margin: 0;
    padding-top: 9vw;
  }
  .wild-hero-copy h1 em {display: block}
  .wild-hero-copy h1 + p {
    position: absolute;
    top: 56.5%;
    right: -2%;
    width: 32%;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(15.5px, 2.30vw, 27px);
    font-weight: 550;
    font-variation-settings: "opsz" 120, "SOFT" 30, "WONK" 0;
    line-height: 1.12;
    letter-spacing: -.012em;
    text-align: left;
    text-wrap: balance;
  }
}

@media (min-width: 1200px) {
  .wild-hero-copy {padding-top: 9.5vw}
  .wild-hero-copy h1 + p {
    top: 58.8%;
    right: 0;
    width: 36%;
    font-size: clamp(28px, 2.34vw, 37.5px);
  }
}

.wild-close .wild-photo {aspect-ratio: 2.05}
.wild-close .wild-photo img {height: 100%}
.wild-close-copy {
  align-self: start;
  width: 32%;
  margin-top: clamp(26px, 7vw, 110px);
}
.wild-close-copy h2 {
  margin-bottom: clamp(8px, 1.5vw, 22px);
  font-size: clamp(22px, 3.8vw, 56px);
  text-wrap: pretty;
}
.wild-close-copy .btn {
  text-shadow: none;
}

.wild-section {padding-block: clamp(34px, 5.5vw, 82px)}
.wild-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 76px);
}
.wild-reverse .wild-feature {grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr)}
.wild-reverse .wild-art {grid-column: 2; grid-row: 1}
.wild-reverse .wild-feature-copy {grid-column: 1; grid-row: 1}
.wild-feature-copy h2 {margin-block: 8px 13px}
.wild-feature-copy h2 ~ p {line-height: 1.58; color: var(--muted)}
.wild-feature-copy h2 ~ p + p {margin-top: 12px}
.wild-art .wild-photo {aspect-ratio: 3/2; border-radius: 8px}
.listen {
  --listen-width: 342px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: var(--listen-width);
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
}
.wild-feature-copy .listen {margin-top: 18px}
@media (min-width: 761px) {
  /* Use the space beside the copy column to keep both Listen bars the same width. */
  .wild-feature-copy .listen {
    max-width: none;
    margin-inline-start: clamp(-34px, calc((100% - var(--listen-width)) / 2), 0px);
  }
}
/* Keep the player on the left of the Spinner photo at narrow tablet widths. */
#spinner-dolphins .listen {max-width: 100%; margin-inline-start: 0}
.listen-toggle {
  flex: 0 0 42px;
  min-height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
.listen-toggle:hover {background: var(--ocean)}
.listen-copy {flex: 1; display: grid; min-width: 0; line-height: 1.25}
.listen-copy span {
  color: var(--wild-gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.listen-copy p {font-size: 15px; font-weight: 700; margin-top: 2px; text-wrap: balance}
.listen-progress {width: 100%; min-width: 0; height: 12px; margin: 4px 0 0; accent-color: var(--ink); cursor: pointer}

.wild-slides {touch-action: pan-y}
.wild-carousel-controls {display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 4px}
.wild-dots {display: flex; align-items: center}
.wild-carousel-controls button {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ocean);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.wild-carousel-controls .wild-prev, .wild-carousel-controls .wild-next {min-width: 44px; font-size: 28px}
/* Keep the larger controls inside narrow photo columns. */
.wild-section .wild-carousel-controls {margin-top: 12px}
:is(.wild-section,.wild-viewer) .wild-carousel-controls :is(.wild-prev,.wild-next) {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}
:is(.wild-section,.wild-viewer) .wild-carousel-controls :is(.wild-prev,.wild-next):hover {background: var(--ocean)}
:is(.wild-section,.wild-viewer) .wild-carousel-controls :is(.wild-prev,.wild-next) svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wild-section .wild-dots button {min-width: clamp(24px,7vw,32px)}
.wild-carousel-hint {margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; text-align: center}
.wild-hint-phone {display: none}
@media (max-width: 700px) {
  .wild-hint-wide {display: none}
  .wild-hint-phone {display: block}
}
.wild-dots button::before {content: ""; width: 8px; height: 8px; border: 1px solid var(--ocean); border-radius: 50%}
.wild-dots button[aria-pressed="true"]::before {background: var(--sun); border-color: var(--wild-gold)}
.wild-id a {
  color: var(--ocean);
  font: 700 16px/1.5 var(--body);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wild-sometimes {padding-block: clamp(32px, 4vw, 56px)}
.wild-sometimes h2 {margin-bottom: 18px}
.wild-cards {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 20px)}
.wild-card {border: 1px solid var(--rule); border-radius: 8px; padding: clamp(12px, 1.7vw, 24px)}
.wild-icon {display: grid; place-items: center; background: var(--wild-pale); border-radius: 50%; width: 52px; height: 52px; color: var(--wild-gold)}
.wild-icon svg {width: 32px; height: 32px}
.wild-card h3 {font-size: clamp(20px, 2vw, 28px); margin: 10px 0 6px}
.wild-card p {font-size: 16px; line-height: 1.42; color: var(--muted)}

.wild-id {padding-block: 24px}
.wild-id .wrap {display: flex; align-items: center; gap: clamp(14px, 4vw, 60px)}
.wild-id .wild-photo {flex: 0 0 clamp(110px, 16vw, 220px); border-radius: 8px}
.wild-id .wild-photo img {height: auto}
.wild-id p {margin-bottom: 3px}

@media (max-width: 760px) {
  .wild-feature, .wild-reverse .wild-feature {grid-template-columns: minmax(0, 1fr); gap: 16px}
  .wild-reverse .wild-art, .wild-reverse .wild-feature-copy {grid-column: auto; grid-row: auto}
  .wild-feature-copy {grid-row: 1}
  .wild-reverse .wild-feature-copy {grid-row: 1}
  .wild-cards {grid-template-columns: repeat(2, minmax(0, 1fr))}
}

@media (max-width: 700px) {
  .wild-hero-copy {margin-top: clamp(22px, 7vw, 48px)}
  .wild-hero-copy h1 {font-size: clamp(35px, 8.8vw, 60px)}
  .wild-hero-copy h1 em {display: block}
  .wild-hero-copy h1 + p {max-width: 34ch; margin-top: 9px}
  .wild-close .wild-photo {aspect-ratio: auto; height: clamp(390px, 92vw, 650px)}
  .wild-close-copy {width: 67%; margin: 20px 0 0 var(--gutter)}
  .wild-close-copy h2 {font-size: clamp(18px, 4.5vw, 32px)}
  .wild-close-copy .btn {min-height: 44px; padding: 7px; gap: 5px; font-size: clamp(11px, 3vw, 15px)}
  .wild-close-copy .btn span {font-size: 1.1em}
}
@media (max-width: 700px) {
  .wild-hero {
    --photo-height: calc(100vw * 940 / 1673);
    --photo-top: max(156px, calc((100% - var(--photo-height)) / 2));
    --photo-bottom: calc(var(--photo-top) + var(--photo-height));
    height: 65svh;
    min-height: calc(174px + var(--photo-height));
  }
  .wild-hero .wild-photo {height: 100%; isolation: isolate}
  .wild-hero .wild-photo img {position: absolute; inset: var(--photo-top) 0 auto}
  /* Continue the same photo's sky and water above and below the uncropped breach. */
  .wild-hero .wild-photo::before, .wild-hero .wild-photo::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset-inline: 0;
    background-image: url("../images/responsive-v1/humpback-kona-hero-640w.ea1f5c2860a4.jpg");
    background-image: image-set(url("../images/responsive-v1/humpback-kona-hero-640w.67c7b217699d.avif") type("image/avif") 1x, url("../images/responsive-v1/humpback-kona-hero-640w.ea1f5c2860a4.jpg") type("image/jpeg") 1x, url("../images/responsive-v1/humpback-kona-hero-1280w.cbb811fff36c.avif") type("image/avif") 2x, url("../images/responsive-v1/humpback-kona-hero-1280w.6e7b370d5495.jpg") type("image/jpeg") 2x, url("../images/responsive-v1/humpback-kona-hero-1673w.5eea7d67808d.avif") type("image/avif") 3x, url("../images/responsive-v1/humpback-kona-hero-1673w.eca5e67b422a.jpg") type("image/jpeg") 3x);
    background-size: auto 650%;
    background-repeat: no-repeat;
    pointer-events: none;
  }
  .wild-hero .wild-photo::before {
    top: 0;
    height: calc(var(--photo-top) + 28px);
    background-position: center top;
    mask-image: linear-gradient(#000 calc(100% - 28px), transparent);
  }
  .wild-hero .wild-photo::after {
    top: calc(var(--photo-bottom) - 28px);
    bottom: 0;
    background-position: center bottom;
    background-size: auto 530%;
    mask-image: linear-gradient(transparent, #000 28px);
  }
  .wild-hero-copy {margin-top: clamp(14px, 4vw, 26px)}
}

@media (max-width:430px) {
  .wild-hero .wild-photo::before, .wild-hero .wild-photo::after {
    background-image: url("../images/responsive-v1/humpback-kona-hero-400w.108a9509b5c6.jpg");
    background-image: image-set(url("../images/responsive-v1/humpback-kona-hero-400w.e7e23c3eb12b.avif") type("image/avif") 1x, url("../images/responsive-v1/humpback-kona-hero-400w.108a9509b5c6.jpg") type("image/jpeg") 1x, url("../images/responsive-v1/humpback-kona-hero-800w.4e9b13f4145d.avif") type("image/avif") 2x, url("../images/responsive-v1/humpback-kona-hero-800w.bd981e90c485.jpg") type("image/jpeg") 2x, url("../images/responsive-v1/humpback-kona-hero-1280w.cbb811fff36c.avif") type("image/avif") 3x, url("../images/responsive-v1/humpback-kona-hero-1280w.6e7b370d5495.jpg") type("image/jpeg") 3x);
  }
}

@media (min-width: 1100px) {
  .wild-cards {grid-template-columns: repeat(8, minmax(0, 1fr))}
  .wild-cards > .wild-card {grid-column: span 2}
  .wild-cards > .wild-card:nth-child(5) {grid-column: 2 / span 2}
}
.wild-card-photos {position: relative; display: flex; flex-direction: column; align-items: flex-start}
@media (641px <= width < 1100px) {
  .wild-cards {grid-template-columns: repeat(6, minmax(0, 1fr))}
  .wild-card {grid-column: span 2}
  .wild-cards > .wild-card:nth-child(7) {grid-column: 3 / span 2}
}
@media (max-width: 640px) {
  .wild-cards {grid-template-columns: minmax(0, 1fr)}
}

.wild-slide[hidden] {display: none}
.wild-slide figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.wild-beaked .wild-slide figcaption {min-height: 2.7em}
@media (max-width: 425px) {
  .wild-beaked .wild-slide figcaption {min-height: 4.05em}
}

body:has(.wild-viewer[open]) {overflow: hidden}
.wild-viewer {
  width: min(920px, calc(100% - 24px), calc(150dvh - 198px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 2.5vw, 20px);
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  overflow: auto;
}
.wild-viewer::backdrop {background: rgb(9 26 43 / .72)}
.wild-viewer-head {display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px}
.wildlife-page .wild-viewer h2 {font-size: clamp(23px, 3vw, 36px)}
.wild-viewer-close {
  flex: 0 0 auto;
  padding: 10px 18px;
  min-height: 52px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--white);
  color: var(--ocean);
  font: 700 16px/1.2 var(--body);
  cursor: pointer;
}
.wild-viewer .wild-photo {aspect-ratio: 3/2; border-radius: 6px}
.wild-viewer:has(.wild-carousel-count) {width: min(920px, calc(100% - 24px), calc(150dvh - 258px))}
.wild-viewer .wild-carousel-controls {gap: clamp(12px, 4vw, 24px); margin-top: 12px}
.wild-carousel-count {
  min-width: 6ch;
  text-align: center;
  font: 700 18px/1.25 var(--body);
  font-variant-numeric: tabular-nums;
}
.wild-viewer .wild-carousel-controls button:focus-visible,
.wild-viewer-close:focus-visible {outline: 2px solid var(--ocean); outline-offset: 2px}

.wild-card-window {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  padding: 0;
  margin: 0 0 14px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--wild-pale);
  cursor: zoom-in;
}
.wild-card-window:focus-visible {outline: 2px solid var(--ocean); outline-offset: 3px}
.wild-card-images > span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 850ms ease;
}
.wild-card-images > span[data-visible] {opacity: 1}
.wild-card-images img {display: block; width: 100%; height: 100%; object-fit: cover}
.wild-card-images .credit {font-size: clamp(9px, .8vw, 11px); inset: auto 6px 5px auto}
.wild-viewer[data-review-context="gallery-whale-sharks"] .wild-photo {aspect-ratio: 1672/941}
@media (prefers-reduced-motion: reduce) {
  .wild-card-images > span {transition: none}
}

/* Keep the old image underneath the incoming photo during the fade. */
.wild-crossfade .wild-slides {position: relative; isolation: isolate}
.wild-crossfade .wild-slides > .wild-outgoing[hidden] {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wild-outgoing figcaption {visibility: hidden}
.wild-crossfade .wild-incoming {position: relative; z-index: 1}
.wild-incoming.wild-photo, .wild-incoming > .wild-photo {
  animation: wild-photo-fade 900ms ease-in-out;
}
@keyframes wild-photo-fade {
  from {opacity: 0}
  to {opacity: 1}
}
@media (prefers-reduced-motion: reduce) {
  .wild-incoming.wild-photo, .wild-incoming > .wild-photo {animation: none}
}
.wild-photo-caption {margin-top: 6px; color: var(--muted); font-size: 14px; text-align: center}
.wild-card-window[data-gallery="whale-sharks"] img {object-position: left center}

.wild-catch {padding-top: 0}
.wild-catch > .wrap {
  border-top: 1px solid var(--rule);
  padding-top: clamp(28px, 4vw, 52px);
}
.wild-catch h2 + p {margin-top: 10px; color: var(--muted)}
.wild-catch-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.wild-catch-strip button {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: 700 16px/1.3 var(--body);
  cursor: pointer;
}
.wild-catch-strip button:focus-visible {outline: 2px solid var(--ocean); outline-offset: 3px}
.wild-catch-strip picture {
  display: block;
  aspect-ratio: 640 / 426;
  border-radius: 6px;
  overflow: hidden;
}
.wild-catch-strip img {display: block; width: 100%; height: auto}
.wild-catch-credit {margin-top: 12px; color: var(--muted); font-size: 13px}
.wild-viewer[data-review-context="gallery-mahi-catch"] {width: min(680px, calc(100% - 24px), calc(150dvh - 258px))}
.wild-viewer[data-review-context="gallery-mahi-catch"] .wild-photo {aspect-ratio: 640 / 426}
@media (max-width: 760px) {
  .wild-catch-strip {grid-template-columns: repeat(3, minmax(0, 1fr))}
}
