/* Photo links remain a usable grid without JavaScript. */
.photo-gallery { background: var(--paper); border-top: 1px solid var(--line); }
.gallery-inner { max-width: 1260px; margin: auto; padding: 80px 35px; }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.photo-gallery .eyebrow { font-size: .875rem; letter-spacing: .14em; }
.gallery-heading h2 { font-size: clamp(2.8rem, 4.8vw, 4.2rem); margin: 0; color: var(--forest); }
.gallery-heading h2 em { font-family: Georgia, serif; font-weight: 400; }
.gallery-intro { max-width: 320px; color: var(--muted); margin: 0 0 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.gallery-item { position: relative; display: block; grid-column: span 4; height: 245px; overflow: hidden; border-radius: 4px; isolation: isolate; background: #34402e; color: white; text-decoration: none; }
.gallery-item:first-child { grid-column: span 8; height: 340px; }
.gallery-item:nth-child(2) { height: 340px; }
.gallery-item::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 35%, #101a10ba 100%); pointer-events: none; }
.gallery-item img { height: 100%; width: 100%; object-fit: cover; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: none; }
.gallery-item:focus-visible { outline: 3px solid var(--forest); outline-offset: 5px; }
.gallery-caption { position: absolute; z-index: 1; bottom: 24px; left: 24px; right: 65px; }
.gallery-caption small { display: block; font-size: .875rem; letter-spacing: .08em; margin-bottom: 3px; }
.gallery-caption strong { display: block; font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 600; font-size: 1.8rem; line-height: 1.1; }
.gallery-expand { display: none; position: absolute; z-index: 1; bottom: 24px; right: 20px; width: 36px; height: 36px; border: 1px solid #ffffff80; border-radius: 50%; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1; background: #ffffff15; }
.gallery-ready .gallery-expand { display: flex; }
.gallery-footnote { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; color: var(--muted); font-size: .875rem; }
.gallery-footnote p { margin: 0; }
.gallery-service .gallery-item { grid-column: span 3; height: 300px; }
.gallery-service .gallery-item:first-child { grid-column: span 6; }
.gallery-service .gallery-caption { left: 20px; bottom: 20px; }
.gallery-service .gallery-caption strong { font-size: 1.6rem; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.gallery-thumbnails .gallery-item { display: flex; align-items: center; gap: 20px; flex: 1 1 300px; height: auto; min-height: 150px; background: var(--forest); }
.gallery-thumbnails .gallery-item::after { display: none; }
.gallery-thumbnails .gallery-item img { flex: 0 0 150px; width: 150px; height: 150px; }
.gallery-thumbnails .gallery-caption { position: static; padding: 16px 20px 16px 0; }
.gallery-thumbnails .gallery-caption strong { font-size: 1.4rem; }
.gallery-thumbnails .gallery-expand { display: none; }
.gallery-lightbox { border: 1px solid #ffffff30; border-radius: 8px; padding: 0; width: min(1100px, calc(100% - 40px)); max-height: calc(100dvh - 40px); background: #17221a; color: white; box-shadow: 0 25px 90px #0008; }
.gallery-lightbox::backdrop { background: #0c160ee8; backdrop-filter: blur(8px); }
.gallery-lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 20px; }
.gallery-lightbox-top p { margin: 0; font-size: .875rem; letter-spacing: .08em; }
.gallery-lightbox button { border: 1px solid #ffffff60; border-radius: 3px; background: transparent; color: white; cursor: pointer; min-height: 44px; padding: 8px 16px; font-size: .875rem; }
.gallery-lightbox button:hover { background: #ffffff1c; }
.gallery-lightbox button:focus-visible { outline-color: #d5e8c7; outline-offset: 3px; }
.gallery-lightbox figure { margin: 0; }
.gallery-lightbox-image { width: 100%; height: min(60dvh, 620px); object-fit: scale-down; background: #101a13; }
.gallery-lightbox-bottom { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gallery-lightbox figcaption { font-size: 1.1rem; }
.gallery-lightbox-controls { display: flex; align-items: center; gap: 10px; }
.gallery-count { min-width: 48px; text-align: center; font-size: .875rem; white-space: nowrap; }
body.gallery-is-open { overflow: hidden; }
@media (max-width: 960px) {
  .gallery-inner { padding: 60px 30px; }
  .gallery-grid { gap: 14px; }
  .gallery-caption { left: 18px; bottom: 20px; }
  .gallery-item, .gallery-item:nth-child(2), .gallery-item:first-child { height: 270px; }
  .gallery-item { grid-column: span 6; }
  .gallery-item:first-child { grid-column: span 12; height: 320px; }
  .gallery-service .gallery-item { grid-column: span 6; height: 260px; }
  .gallery-service .gallery-item:first-child { grid-column: span 12; height: 320px; }
}
@media (max-width: 600px) {
  .gallery-inner { padding: 48px 24px; }
  .gallery-heading { display: block; margin-bottom: 25px; }
  .gallery-intro { margin-top: 20px; max-width: none; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-item, .gallery-item:first-child, .gallery-item:nth-child(2), .gallery-service .gallery-item, .gallery-service .gallery-item:first-child { grid-column: 1; height: 235px; }
  .gallery-item:first-child { height: 280px; }
  .gallery-footnote { flex-direction: column; gap: 5px; }
  .gallery-lightbox { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .gallery-lightbox-top { padding: 10px 14px; }
  .gallery-lightbox-image { height: 48dvh; }
  .gallery-lightbox-bottom { padding: 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .gallery-lightbox-controls { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } }
@media (max-width: 400px) {
  .gallery-thumbnails .gallery-item { flex-basis: 100%; gap: 12px; }
  .gallery-thumbnails .gallery-item img { flex-basis: 120px; width: 120px; height: 120px; }
  .gallery-thumbnails .gallery-caption { padding-right: 12px; }
  .gallery-thumbnails .gallery-caption small { font-size: .75rem; }
}

/* A cinematic contact sheet: a wide image, a glimpse ahead, and a filmstrip. */
.gallery-slider { overflow: hidden; background: #eef1e9; }
.gallery-slider .gallery-heading { gap: 55px; margin-bottom: 36px; }
.gallery-slider .gallery-heading > div { max-width: 760px; }
.gallery-slider .gallery-heading h2 { font-size: clamp(2.8rem, 4.7vw, 4.5rem); line-height: 1.08; }
.gallery-slider .gallery-heading h2 em { color: #657957; }
.gallery-slider .gallery-intro { flex: 0 1 270px; font-size: .9375rem; }
.gallery-frame { padding-top: 22px; border-radius: 8px; background: #253b2e; color: #f4f6ed; box-shadow: 0 18px 40px #203b2414; }
.gallery-frame-label { display: flex; justify-content: space-between; gap: 20px; padding: 0 28px 20px; color: #d2dec9; font-size: .75rem; letter-spacing: .17em; }
.gallery-slider .gallery-grid { position: relative; display: flex; gap: 18px; padding: 0 26px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 26px; scrollbar-width: none; cursor: grab; }
.gallery-slider .gallery-grid::-webkit-scrollbar, .gallery-filmstrip::-webkit-scrollbar { display: none; }
.gallery-slider .gallery-grid::after { content: ''; flex: 0 0 calc(14% - 18px); }
.gallery-slider .gallery-grid:focus-visible { outline: 2px solid #cee4bd; outline-offset: -3px; }
.gallery-slider .gallery-grid > .gallery-item { flex: 0 0 86%; height: clamp(340px, 37vw, 490px); border-radius: 3px; scroll-snap-align: start; scroll-snap-stop: always; cursor: inherit; transform: scale(.96); opacity: .55; transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .65s; user-select: none; }
.gallery-slider .gallery-grid > .gallery-item.is-active { transform: scale(1); opacity: 1; }
.gallery-slider .gallery-item::after { background: linear-gradient(180deg, #13251a00 25%, #13251a22 50%, #13251ae8 100%); }
.gallery-slider .gallery-item img { image-rendering: auto; }
.gallery-slider .gallery-item img.gallery-portrait { object-fit: contain; background: #17221a; }
.gallery-slider .gallery-item:hover img { transform: none; }
.gallery-slider .gallery-item:focus-visible { outline: 3px solid #d4eac4; outline-offset: -5px; }
.gallery-slider .gallery-caption { left: 36px; bottom: 34px; right: 110px; transition: transform .65s; transform: translateY(8px); }
.gallery-slider .is-active .gallery-caption { transform: translateY(0); }
.gallery-slider .gallery-caption small { font-size: .8125rem; letter-spacing: .16em; color: #e0edda; margin-bottom: 10px; }
.gallery-slider .gallery-caption strong { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 600; line-height: 1.05; text-wrap: balance; }
.gallery-slider .gallery-expand { width: 48px; height: 48px; right: 30px; bottom: 35px; background: #f5f7ef1a; backdrop-filter: blur(8px); font-size: 1.8rem; transition: background .2s, transform .2s; }
.gallery-slider .gallery-item:hover .gallery-expand { transform: rotate(90deg); background: #f5f7ef33; }
.gallery-slider .gallery-grid.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery-slider .is-dragging .gallery-item { transition: none; }
.gallery-slider-controls { display: flex; align-items: center; gap: 30px; padding: 22px 28px; }
.gallery-position { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: #bdcbb5; font-variant-numeric: tabular-nums; }
.gallery-position-current { font-family: 'Barlow Condensed', Arial, sans-serif; font-size: 2rem; line-height: 1; color: white; }
.gallery-position-divider { width: 25px; height: 1px; background: #8a9f80; transform: rotate(-55deg); }
.gallery-progress { height: 2px; flex: 1; background: #ffffff25; }
.gallery-progress span { display: block; height: 100%; background: #c8dfa9; transition: width .55s ease; }
.gallery-step-controls { display: flex; gap: 10px; }
.gallery-step-controls button { min-height: 46px; min-width: 72px; padding: 8px 18px; border: 1px solid #bccdb370; border-radius: 24px; color: #f5f7ef; background: transparent; cursor: pointer; font-size: .875rem; transition: background .2s, color .2s; }
.gallery-step-controls button:last-child { background: #d7e7c5; border-color: #d7e7c5; color: #253b2e; }
.gallery-step-controls button:hover { background: white; color: #253b2e; }
.gallery-step-controls button:focus-visible { outline: 3px solid #d7e7c5; outline-offset: 4px; }
.gallery-filmstrip { position: relative; display: flex; gap: 10px; padding: 18px 3px 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.gallery-thumb { position: relative; flex: 0 0 88px; height: 62px; padding: 3px; border: 1px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.gallery-thumb:hover, .gallery-thumb[aria-pressed="true"] { opacity: 1; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--forest); background: white; }
.gallery-thumb:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; opacity: 1; }
.gallery-slider .gallery-footnote { padding-top: 12px; font-size: .875rem; }
@media (max-width: 960px) {
  .gallery-slider .gallery-heading { gap: 28px; }
  .gallery-slider .gallery-caption { left: 28px; bottom: 28px; }
  .gallery-slider .gallery-grid > .gallery-item { height: 390px; }
}
@media (max-width: 600px) {
  .gallery-slider .gallery-inner { padding: 48px 20px; }
  .gallery-slider .gallery-heading { margin-bottom: 26px; }
  .gallery-slider .gallery-intro { font-size: 1rem; }
  .gallery-frame { padding-top: 18px; margin-inline: -8px; }
  .gallery-frame-label { padding: 0 16px 16px; font-size: .75rem; letter-spacing: .1em; }
  .gallery-frame-label span:last-child { display: none; }
  .gallery-slider .gallery-grid { padding-inline: 12px; gap: 10px; scroll-padding-left: 12px; }
  .gallery-slider .gallery-grid > .gallery-item { flex-basis: 92%; height: 350px; }
  .gallery-slider .gallery-grid::after { flex-basis: calc(8% - 10px); }
  .gallery-slider .gallery-caption { left: 20px; bottom: 25px; right: 65px; }
  .gallery-slider .gallery-caption strong { font-size: 2.25rem; }
  .gallery-slider .gallery-caption small { font-size: .75rem; letter-spacing: .1em; }
  .gallery-slider .gallery-expand { width: 38px; height: 38px; bottom: 26px; right: 16px; }
  .gallery-slider-controls { gap: 16px; padding: 18px 16px; }
  .gallery-step-controls { gap: 8px; }
  .gallery-step-controls button { min-width: 60px; padding-inline: 13px; }
  .gallery-position { gap: 7px; }
  .gallery-position-divider { width: 16px; }
  .gallery-thumb { flex-basis: 76px; height: 56px; }
  .gallery-slider .gallery-footnote { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-slider *, .gallery-slider *::after { transition: none !important; scroll-behavior: auto !important; }
}
