/* Photo gallery: shared by regular and seasonal pages. */
.gallery-intro { padding: clamp(1.5rem, 4vw, 3rem) 0; background: var(--cream); border-bottom: 1px solid var(--line); }
.gallery-intro .back-link { margin-bottom: 1.5rem; }
.gallery-intro .eyebrow { color: var(--moss); margin-bottom: .5rem; }
.gallery-intro h1 { max-width: 15ch; margin: .5rem 0 1.25rem; color: var(--forest-deep); font-family: var(--serif); font-size: clamp(2.8rem, 6.5vw, 4.5rem); line-height: 1.05; letter-spacing: -.04em; }
.gallery-lead { max-width: 40rem; margin-bottom: 1.75rem; color: var(--earth); font-size: 1.1rem; }
.gallery-section { padding: 2rem 0 clamp(3rem, 6vw, 5rem); }
.gallery-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; color: var(--taupe); font-size: .85rem; }
.gallery-toolbar strong { color: var(--forest); }
.deer-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.gallery-card { margin: 0; min-width: 0; }
.gallery-photo { position: relative; display: block; background: #e5e3d9; overflow: hidden; text-decoration: none; }
.gallery-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; transition: transform 220ms ease; }
.gallery-photo:hover img { transform: scale(1.025); }
.gallery-photo:focus-visible { outline: 3px solid var(--forest); outline-offset: 5px; }
.gallery-enlarge { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: var(--forest-deep); color: white; font-size: .75rem; letter-spacing: .04em; }
.gallery-enlarge > span { font-size: 1.2rem; }
.gallery-card figcaption { padding-top: 1rem; }
.gallery-credit-label { color: var(--taupe); font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; }
.gallery-credit { margin: .15rem 0 .35rem; color: var(--forest-deep); font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.gallery-source { color: var(--moss); font-size: .75rem; text-underline-offset: .2em; }
.gallery-share { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--cream); scroll-margin-top: 7rem; }
.gallery-share h2 { margin: .5rem 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.gallery-share p { max-width: 42rem; }
.gallery-share .gallery-removal { margin-top: 1.5rem; font-size: .8rem; color: var(--earth); }

.photo-form-page { min-height: 100vh; }
.photo-form-page h1 { margin: .5rem 0 1rem; font: 700 clamp(2.25rem, 6vw, 4rem)/1.1 var(--serif); }
.photo-form-page .back-link { display: inline-block; margin-bottom: 1.5rem; }
.photo-form-page [role="alert"] { color: var(--text); padding: .75rem 1rem; border-left: 4px solid #b04517; background: var(--paper); }
.photo-form { display: grid; gap: .5rem; max-width: 36rem; margin-top: 1.5rem; }
.photo-form label { font-weight: bold; }
.photo-form input:not([type="checkbox"]) { width: 100%; min-height: 44px; margin-bottom: .5rem; padding: .55rem .7rem; border: 1px solid var(--taupe); background: var(--paper); color: var(--text); font: inherit; }
.photo-form input:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.photo-form p { margin: 0; }
.photo-consent { display: flex; gap: .6rem; align-items: baseline; padding: .75rem 0; }
.photo-form button { justify-self: start; }
.photo-form-page button { font: inherit; cursor: pointer; }
.photo-secondary { background: var(--paper); color: var(--forest); border: 1px solid var(--forest); }
.photo-review { display: grid; grid-template-columns: minmax(5rem, 12rem) 1fr; gap: 1rem; max-width: 48rem; padding: 1rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.photo-review img { width: 100%; display: block; }
.photo-review h3, .photo-review p { margin: 0 0 .5rem; }
.photo-review form { display: flex; flex-wrap: wrap; gap: .5rem; }
.seasonal .gallery-intro { border-bottom: 5px solid var(--hunter-orange); }
.seasonal .gallery-enlarge { border-bottom: 3px solid var(--hunter-orange); }
body.gallery-viewer-open { overflow: hidden; }
.gallery-viewer { width: min(70rem, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: 1rem; border: 1px solid #ffffff44; background: #11261a; color: white; overflow-y: auto; }
.gallery-viewer::backdrop { background: #000d; }
.viewer-topbar, .viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.viewer-topbar { margin-bottom: 1rem; }
.viewer-topbar p { margin: 0; font-size: .8rem; color: #e4e7df; }
.gallery-viewer button { min-height: 44px; padding: .5rem .8rem; border: 1px solid #ffffff66; background: transparent; color: white; font: inherit; cursor: pointer; }
.gallery-viewer button:hover { background: #ffffff1a; }
.gallery-viewer button:focus-visible { outline: 3px solid #ffab67; outline-offset: 3px; }
.gallery-viewer .viewer-close:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.viewer-close span { margin-left: .5rem; font-size: 1.3rem; line-height: 1; }
.viewer-image { width: 100%; height: min(68dvh, 50rem); object-fit: contain; background: #09170e; }
.viewer-bottom { margin-top: 1rem; }
#viewer-credit { margin: 0; font-family: var(--serif); font-size: 1.15rem; text-align: center; }
@media (max-width: 60rem) { .deer-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) {
  .deer-gallery { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-toolbar { flex-direction: column; gap: .25rem; }
  .gallery-toolbar p { margin: 0; }
  .gallery-viewer { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); padding: .75rem; }
  .viewer-bottom { flex-wrap: wrap; gap: .75rem; }
  #viewer-credit { order: -1; width: 100%; }
  .viewer-image { height: 60dvh; }
}
@media (prefers-reduced-motion: reduce) { .gallery-photo img { transition: none; } .gallery-photo:hover img { transform: none; } }
