/* Editorial photography and an accessible farm-image gallery. */
.demo-banner { background: #E4E8E0; color: #17201B; border-bottom: 1px solid #CAD2C2; font-size: 12px; }
.demo-banner > .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.demo-banner p { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.demo-banner strong { letter-spacing: .06em; }
.demo-banner a { flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.demo-gate-note { padding: 10px 12px; margin: 0 0 18px; background: #E4E8E0; border-left: 2px solid #C9A15A; color: #2F4A3A; font-size: 11px; line-height: 1.5; }
.demo-gate-note strong { font-size: 10px; letter-spacing: .06em; }
@media (max-width:600px) { .demo-banner > .container { align-items: flex-start; flex-direction: column; gap: 2px; } .demo-banner p { flex-direction: column; gap: 4px; } }
.hero { grid-template-columns: .94fr 1.16fr; gap: 44px; padding-top: 42px; }
.hero h1 { font-size: clamp(50px, 5.1vw, 76px); }
.photo-hero { min-height: 610px; border: 0; }
.hero-photo-button { border: 0; padding: 0; margin: 0; position: absolute; inset: 0 0 64px; background: #D3DACD; color: #17201B; overflow: hidden; width: 100%; }
.hero-photo-button > img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; transition: transform .35s; }
.hero-photo-button:hover > img { transform: scale(1.035); }
.hero-photo-button:focus-visible { outline-offset: -6px; outline-color: #F3F4F0; }
.image-label { position: absolute; top: 18px; left: 18px; padding: 7px 10px; background: #F3F4F0; color: #2F4A3A; font-size: 9px; z-index: 1; letter-spacing: .08em; }
.photo-expand { position: absolute; bottom: 18px; right: 18px; color: #F3F4F0; background: #17201B; padding: 10px 14px; font-size: 11px; min-height: 40px; }
.photo-hero figcaption { height: 64px; gap: 18px; pointer-events: none; }
.photo-hero figcaption > span:first-child { font-size: 24px; }
.photo-hero figcaption > .mono { font-size: 8px; }
.gate-landscape { position: relative; isolation: isolate; background: #2F4A3A url('/demos/mitchell-mountain/assets/farm-landscape-640.webp') center / cover no-repeat; }
.gate-landscape::before { content: ''; position: absolute; inset: 0; background: #17201BBF; z-index: -1; }
.gate-image-note { display: block; margin-top: 20px; font-size: 8px; color: #D6DFCE; }
.gallery-section { padding-bottom: 70px; }
.gallery-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; align-items: end; margin-bottom: 36px; }
.gallery-heading h2 { font-size: clamp(40px,4.5vw,62px); margin-top: 18px; }
.gallery-intro { max-width: 390px; padding-bottom: 5px; }
.gallery-intro > p { font-size: 17px; color: #2F4A3A; }
.gallery-intro > .illustration-notice { margin-top: 14px; padding-left: 15px; border-left: 2px solid #C9A15A; color: #5B6855; font-size: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.gallery-card { background: #E4E8E0; border: 1px solid #CAD2C2; min-width: 0; }
.gallery-landscape { grid-row: span 2; display: flex; flex-direction: column; }
.gallery-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: #D1D9C9; padding: 0; overflow: hidden; }
.gallery-landscape .gallery-photo { flex: 1; aspect-ratio: auto; min-height: 400px; }
.gallery-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-photo:hover > img { transform: scale(1.045); }
.gallery-photo:focus-visible { outline-offset: -5px; outline-color: #F3F4F0; }
.gallery-landscape .gallery-photo > img { object-position: 45% center; }
.gallery-photo .image-label { font-size: 8px; top: 14px; left: 14px; }
.gallery-expand { position: absolute; bottom: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; background: #F3F4F0; color: #2F4A3A; font-size: 22px; }
.gallery-card figcaption { padding: 19px 22px 22px; display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.gallery-card figcaption .eyebrow { font-size: 9px; }
.gallery-card h3 { font-size: 30px; margin-top: 7px; }
.gallery-card figcaption > .mono { font-size: 9px; color: #65715D; flex-shrink: 0; padding-bottom: 2px; }
.gallery-disclaimer { font-size: 9px; color: #5A6852; margin-top: 21px; line-height: 1.8; }
.farm-section { border-top: 1px solid #CBD3C4; padding-top: 70px; }
.notebook-figure { position: relative; min-height: 540px; background: #D5DCCE; overflow: hidden; }
.notebook-figure > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% center; }
.notebook-figure figcaption { position: absolute; left: 24px; bottom: 24px; right: 24px; background: #F3F4F0; padding: 23px 28px; display: flex; flex-direction: column; gap: 8px; }
.notebook-figure figcaption strong { font-family: FieldDisplay, sans-serif; font-size: 37px; line-height: 1; }
.notebook-figure figcaption > .mono { font-size: 10px; color: #53634C; }
.gallery-dialog { padding: 0; border: 1px solid #60745A; width: min(1150px,calc(100vw - 60px)); max-height: calc(100dvh - 48px); background: #17201B; color: #F3F4F0; }
.gallery-dialog::backdrop { background: #101A15EE; }
.gallery-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 26px; }
.gallery-dialog h2 { font-size: 29px; letter-spacing: 0; margin-top: 9px; }
.gallery-dialog-header .eyebrow { font-size: 9px; }
.gallery-close { background: transparent; color: #F3F4F0; border: 1px solid #8D9C83; width: 48px; height: 48px; font-size: 30px; line-height: 1; flex-shrink: 0; }
#gallery-large-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 260px); object-fit: contain; background: #101A15; }
.gallery-dialog-footer { padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.gallery-dialog-footer p { color: #CED8C8; font-size: 12px; max-width: 630px; }
.gallery-controls { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.gallery-controls button { background: #2F4A3A; color: #F3F4F0; border: 1px solid #84967B; width: 46px; height: 46px; font-size: 23px; }
.gallery-controls .mono { font-size: 11px; min-width: 37px; text-align: center; }
body:has(.gallery-dialog[open]) { overflow: hidden; }
@media (max-width:1100px) {
  nav { gap: 20px; }
  .hero { gap: 34px; grid-template-columns: 1fr 1.1fr; }
  .hero h1 { font-size: 58px; }
  .photo-hero { min-height: 570px; }
  .photo-hero figcaption { padding: 16px 18px; }
  .photo-hero figcaption > span:first-child { font-size: 21px; }
  .photo-hero figcaption > .mono { font-size: 7px; max-width: 95px; }
  .gallery-heading { gap: 40px; }
  .gallery-card h3 { font-size: 26px; }
  .gallery-grid { gap: 20px; }
}
@media (max-width:850px) {
  .hero { gap: 25px; }
  .hero h1 { font-size: 49px; }
  .photo-hero { min-height: 510px; }
  .photo-hero figcaption { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
  .photo-hero figcaption > .mono { max-width: none; }
  .gallery-heading { grid-template-columns: 1.2fr 1fr; gap: 30px; }
  .gallery-heading h2 { font-size: 44px; }
  .gallery-intro > p { font-size: 15px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .gallery-photo { aspect-ratio: 1.7; }
  .gallery-card h3 { font-size: 23px; }
  .gallery-card figcaption { padding: 15px; }
  .gallery-card figcaption > .mono { display: none; }
  .gallery-card figcaption .eyebrow { font-size: 8px; }
  .gallery-landscape .gallery-photo { min-height: 380px; }
  .notebook-figure { min-height: 560px; }
  .notebook-figure figcaption { left: 16px; right: 16px; bottom: 16px; padding: 20px; }
  .notebook-figure figcaption strong { font-size: 31px; }
  .notebook-figure figcaption > .mono { font-size: 8px; }
}
@media (max-width:600px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
  .hero h1 { font-size: clamp(36px,12.4vw,70px); }
  .photo-hero { min-height: 0; aspect-ratio: .95; width: 100%; }
  .hero-photo-button { inset: 0 0 64px; }
  .hero-photo-button > img { object-position: 68% center; }
  .photo-hero figcaption { flex-direction: row; align-items: center; justify-content: space-between; gap: 15px; }
  .photo-hero figcaption > span:first-child { font-size: 21px; max-width: 180px; }
  .photo-hero figcaption > .mono { font-size: 7px; max-width: 100px; }
  .photo-expand { font-size: 10px; padding: 9px 12px; bottom: 14px; right: 14px; }
  .image-label { font-size: 8px; top: 14px; left: 14px; }
  .gallery-section { padding-top: 55px; padding-bottom: 48px; }
  .gallery-heading { grid-template-columns: 1fr; gap: 23px; margin-bottom: 27px; }
  .gallery-heading h2 { font-size: clamp(36px,10vw,50px); }
  .gallery-intro > p { font-size: 16px; }
  .gallery-intro > .illustration-notice { font-size: 12px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 22px; }
  .gallery-landscape { grid-row: auto; }
  .gallery-photo, .gallery-landscape .gallery-photo { flex: none; aspect-ratio: 1.45; min-height: 0; }
  .gallery-card figcaption { padding: 18px 20px; }
  .gallery-card h3 { font-size: 29px; }
  .gallery-card figcaption .eyebrow { font-size: 9px; }
  .gallery-card figcaption > .mono { display: block; }
  .gallery-disclaimer { font-size: 8px; line-height: 1.9; }
  .farm-section { padding-top: 50px; }
  .notebook-figure { min-height: 400px; }
  .notebook-figure figcaption { padding: 22px; }
  .notebook-figure figcaption strong { font-size: 35px; }
  .notebook-figure figcaption > .mono { font-size: 9px; }
  .gallery-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  .gallery-dialog-header { padding: 19px 17px; gap: 15px; }
  .gallery-dialog-header .eyebrow { font-size: 7px; }
  .gallery-dialog h2 { font-size: 25px; line-height: 1.1; }
  .gallery-close { width: 44px; height: 44px; }
  #gallery-large-image { max-height: calc(100dvh - 290px); }
  .gallery-dialog-footer { padding: 17px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .gallery-dialog-footer p { font-size: 11px; }
  .gallery-controls { width: 100%; justify-content: space-between; }
}
@media (max-width:360px) {
  .photo-hero figcaption { padding: 13px; }
  .photo-hero figcaption > span:first-child { font-size: 19px; }
  .photo-hero figcaption > .mono { font-size: 6px; max-width: 90px; }
  .gallery-heading h2 { font-size: 35px; }
  .gallery-card figcaption { padding: 16px; }
  .gallery-card h3 { font-size: 26px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-photo-button:hover > img, .gallery-photo:hover > img { transform: none; }
}
