:root {
  --archive-accent: #287f77;
}

[hidden] { display: none !important; }

.banner-thumbnail-wrapper > figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.banner-thumbnail-wrapper > figure > img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.banner-thumbnail-wrapper .color-overlay { pointer-events: none; }
.mobile-nav-toggle { border: 0; padding: 0; background: transparent; }
.mobile-nav-toggle.fixed-nav-toggle { display: none !important; }

.entry-content img,
.photo-grid img,
.photo-slideshow img { max-width: 100%; height: auto; }

.entry-content img { display: block; }
.entry-content > div > img { width: 100%; margin: 0 0 28px; }
.entry-content > div > .sqs-html-content { padding: 16px 0; }

.photo-slideshow {
  position: relative;
  margin: 0 0 26px;
}

.photo-slideshow figure {
  margin: 0;
  background: #f5f5f5;
}

.photo-slideshow figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #0009;
  font: 34px/1 Arial, sans-serif;
  cursor: pointer;
}

.photo-arrow:focus-visible, .photo-arrow:hover { background: #000d; }
.photo-previous { left: 8px; }
.photo-next { right: 8px; }

.photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  color: white;
  background: #000a;
  font: 13px Arial, sans-serif;
}

.photo-grid, .summary-item-list.sqs-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 26px;
}

.photo-grid figure { margin: 0; }
.photo-grid figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.summary-item-list.sqs-gallery > .summary-item {
  box-sizing: border-box;
  float: none;
  width: auto !important;
  max-width: none;
  padding: 0;
  position: relative;
  inset: auto;
  margin: 0;
}

.sqs-block-summary-v2 .summary-item-list .summary-thumbnail img {
  opacity: 1;
  width: 100%;
  height: auto;
}

.photo-viewer {
  border: 0;
  padding: 0;
  max-width: min(96vw, 1400px);
  max-height: 95vh;
  overflow: visible;
  background: #101010;
}

.photo-viewer::backdrop { background: #000d; }
.photo-viewer img { display: block; max-width: 95vw; max-height: 90vh; object-fit: contain; }
.photo-viewer button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 42px;
  height: 42px;
  border: 0;
  background: #000a;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.post-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  border: 0;
}

.archive-title { margin: 0 0 38px; text-align: center; }
.region-posts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.static-search-results { margin: 16px 0 0; padding-left: 20px; }
.static-search-results li { padding-bottom: 8px; }
.static-search-status { margin: 12px 0 0; }
.error-page { margin: 12vh auto; max-width: 620px; padding: 24px; font: 17px/1.55 Arial, sans-serif; }
.error-page a { color: var(--archive-accent); }

@media (max-width: 767px) {
  .collection-type-blog #page {
    padding: 48px 16px;
  }

  .collection-type-blog #page #content {
    display: block;
    width: 100%;
  }

  .collection-type-blog #page #rightSidebar {
    display: block;
    width: 100%;
    margin-top: 40px;
    padding-left: 0;
  }

  .collection-type-blog .entry-content {
    overflow-wrap: anywhere;
  }

  body #headerNav { display: none; }
  body #header .mobile-nav-toggle:not(.fixed-nav-toggle) {
    display: block;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 1200;
  }
  #header .mobile-nav-toggle > div {
    position: absolute;
    width: 22px;
    height: 2px;
    right: 10px;
    background: #000;
  }
  #header .mobile-nav-toggle .top-bar { top: 14px; }
  #header .mobile-nav-toggle .middle-bar { top: 21px; }
  #header .mobile-nav-toggle .bottom-bar { top: 28px; }
  body #sidecarNav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 310px);
    padding: 80px 24px 24px;
    box-sizing: border-box;
    z-index: 1500;
    background: #fff;
    overflow: auto;
  }
  body.static-menu-open #sidecarNav { display: block; }
  body.static-menu-open .body-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #0008;
    z-index: 1400;
    visibility: visible;
    opacity: 1;
  }
  .static-menu-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: transparent;
    font: 32px/1 Arial, sans-serif;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  #mobileNavigation > div { margin: 0 0 18px; }
  #mobileNavigation > div > a { color: #000; font-size: 16px; }
  body #mobileNavigation > div:last-child > a { display: inline-block !important; margin-left: 0 !important; }
  .desc-wrapper { padding-inline: 20px; }
  .desc-wrapper p { max-width: 100%; overflow-wrap: anywhere; }
  .desc-wrapper p strong { font-size: clamp(28px, 8vw, 48px) !important; letter-spacing: 2px !important; }
  .desc-wrapper p em { font-size: clamp(20px, 5vw, 30px) !important; }
  .index-page .index-section:first-child .banner-thumbnail-wrapper {
    min-height: 280px;
    padding-block: 60px;
  }
  .index-page .index-section:first-child .banner-thumbnail-wrapper img {
    object-fit: contain;
    background: #fce233;
  }
  .photo-grid, .summary-item-list.sqs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .static-menu-close { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-thumbnail-wrapper *, .photo-slideshow * { animation: none !important; transition: none !important; }
}

@font-face {
  font-family: proxima-nova;
  src: url('/assets/fonts/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: adobe-garamond-pro;
  src: url('/assets/fonts/eb-garamond.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: adobe-garamond-pro;
  src: url('/assets/fonts/eb-garamond-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@media (max-width: 767px) {
  body.static-menu-open #sidecarNav { visibility: visible; }
  .index-page .index-section:not(:first-child) .banner-thumbnail-wrapper {
    display: grid;
    place-items: center;
    min-height: clamp(380px, 115vw, 560px);
    padding: 56px 0;
  }
  .index-page .index-section:not(:first-child) .desc-wrapper p[data-rte-preserve-empty]:empty {
    display: none;
  }
}

.episode-player {
  width: min(100%, 420px);
  margin: 12px auto 0;
}

.episode-player audio {
  display: block;
  width: 100%;
  height: 54px;
}

.episode-player .episode-audio-fallback {
  display: inline-block;
  margin-top: 6px;
}

.episode-player .episode-audio-fallback[hidden] {
  display: none;
}
