/* Full-width public website header, approved with the Ariadne preview. */
@media (min-width: 901px) {
  .cw-site-header__row {
    width: calc(100% - 2 * clamp(32px, 2.5vw, 48px));
    max-width: none;
  }
}

@media (min-width: 901px) {
  .site-header .nav-wrap,
  main .wrap:not(.narrow),
  .site-footer .wrap {
    width: calc(100% - 2 * clamp(32px, 2.5vw, 48px));
    max-width: none;
  }
}

@media (min-width: 961px) {
  .home-hero,
  .media-hero,
  .farm-opening,
  .editorial-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 4vw, 88px);
  }

  .media-hero,
  .farm-opening { align-items: start; }
}

main .product-capture {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
main .product-capture .image-zoom { width: auto; max-width: 100%; }
main .product-capture img,
main .farm-opening-proof .product-capture img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72svh, 780px);
  object-fit: contain;
}
main .prose p,
main .guide-article p { max-width: 70ch; }

.screenshot-dialog[open] {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.screenshot-dialog img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 192px);
  min-height: 0;
  object-fit: contain;
  margin-inline: auto;
}
.screenshot-dialog p,
.screenshot-dialog > a { flex: none; }

@media (max-height: 600px) and (orientation: landscape) {
  .farm-art { width: min(100%, calc(72svh * 1.518987)); margin-inline: auto; }
  .home-hero .farm-hero-image { width: fit-content; margin-inline: auto; }
  .home-hero .farm-hero-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 72svh;
    aspect-ratio: auto;
    object-fit: contain;
  }
}
