/* One continuous, draggable strip of photographs for each garden. */
html { scrollbar-gutter: stable; }
.project-gallery-jump { display: inline-flex; align-items: center; min-height: 48px; padding: 9px 20px; margin-top: 27px; border: 1px solid #ffffffa6; font-size: 1rem; color: #fff; }
.project-gallery-jump:hover { background: #ffffff19; }
.garden-gallery { padding: 0 0 88px; }
.gallery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.gallery-heading h2 { font-size: clamp(2.7rem, 4vw, 4rem); }
.gallery-heading p { color: #526953; font-size: .9375rem; }
.gallery-track { --gallery-inset: 52px; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 1000px); gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gallery-inset); padding: 5px var(--gallery-inset); scrollbar-width: none; cursor: grab; user-select: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid #1c402e; outline-offset: -2px; }
.gallery-track figure { min-width: 0; scroll-snap-align: start; }
.gallery-photo { display: block; overflow: hidden; background: #edf0e6; cursor: inherit; }
.gallery-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; -webkit-user-drag: none; }
.gallery-photo:focus-visible { outline: 2px solid #1c402e; outline-offset: 3px; }
.gallery-track figcaption { margin-top: 13px; font-size: .9375rem; }
.gallery-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 25px; }
.gallery-nav[hidden] { display: none; }
.gallery-position { font-size: .9375rem; color: #526953; font-variant-numeric: tabular-nums; }
.gallery-controls { display: flex; gap: 12px; }
.gallery-controls button { min-height: 46px; padding: 9px 20px; color: #1c402e; border: 1px solid #1c402e80; background: transparent; font-size: 1rem; }
.gallery-controls button:hover:not(:disabled) { background: #f0f3e9; border-color: #1c402e; }
.gallery-controls button:disabled { opacity: .35; }
.gallery-controls button:focus-visible { outline: 2px solid #1c402e; outline-offset: 4px; }
.gallery-open { overflow: hidden; }
.photo-viewer { width: min(1320px, calc(100% - 64px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 20px 24px 24px; border: 0; background: #122c20; color: #fff; overflow: auto; }
.photo-viewer::backdrop { background: #07150feb; }
.photo-viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin-bottom: 14px; }
.photo-viewer-top p { font-size: .9375rem; color: #d2dfcc; }
.photo-viewer form { margin: 0; }
.photo-viewer button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 17px; border: 1px solid #ffffff75; background: transparent; color: #fff; font-size: 1rem; }
.photo-viewer button:hover { background: #ffffff12; }
.photo-viewer button:focus-visible { outline: 2px solid #dced73; outline-offset: 4px; }
.photo-viewer-image { width: 100%; height: min(68dvh, 850px); object-fit: contain; }
.photo-viewer-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 19px; }
.photo-viewer-caption { text-align: center; font-size: 1rem; line-height: 1.45; }
@media (max-width: 1050px) { .gallery-track { --gallery-inset: 30px; } }
@media (max-width: 740px) {
  .project-gallery-jump { margin-top: 23px; }
  .garden-gallery { padding-bottom: 52px; }
  .gallery-heading { display: block; margin-bottom: 24px; }
  .gallery-heading h2 { font-size: 2.8rem; }
  .gallery-heading p { margin-top: 14px; }
  .gallery-track { --gallery-inset: 19px; grid-auto-columns: calc(100% - 24px); gap: 14px; }
  .gallery-track figcaption { margin-top: 10px; }
  .gallery-nav { margin-top: 20px; gap: 12px; }
  .gallery-controls { gap: 8px; }
  .gallery-controls button { padding: 8px 14px; }
  .photo-viewer { width: 100%; max-height: 100dvh; padding: 14px 18px 22px; }
  .photo-viewer-image { height: auto; max-height: 64dvh; }
  .photo-viewer-bottom { grid-template-columns: 1fr 1fr; gap: 17px; }
  .photo-viewer-caption { grid-column: 1 / -1; grid-row: 1; min-height: 1.5em; }
  .photo-viewer-bottom button { min-width: 104px; justify-self: start; }
  .photo-viewer-bottom button:last-child { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { .gallery-photo img { transition: none; } }
