/* "From the field" gallery and its viewer. Uses the tokens in styles.css. */
.field-gallery{padding-top:96px;padding-bottom:40px}
.field-heading{max-width:640px;margin-bottom:34px}
.field-heading h2{margin:0 0 12px;font-family:Manrope,sans-serif;font-size:clamp(30px,4vw,46px);letter-spacing:-1px;color:var(--ink)}
.field-heading p{margin:0;color:var(--muted);font-size:17px;line-height:1.6}
.field-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.field-tile{position:relative;display:block;padding:0;border:0;background:#dfe6da;cursor:zoom-in;overflow:hidden;min-height:300px;grid-column:span 2}
.field-tile:nth-child(n+3){min-height:420px}
.field-tile img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0;transition:transform .5s ease}
.field-tile:hover img,.field-tile:focus-visible img{transform:scale(1.04)}
.field-tile:focus-visible{outline:3px solid var(--leaf);outline-offset:3px}
.field-caption{position:absolute;left:0;right:0;bottom:0;padding:34px 16px 14px;color:#fff;font-size:14px;font-weight:600;text-align:left;background:linear-gradient(transparent,rgba(10,30,20,.78))}
.field-photo-failed{position:absolute;inset:0;display:grid;place-items:center;padding:16px;background:#e9eee4;color:var(--muted);font-size:13px;text-align:center}
.lightbox{width:min(94vw,1100px);max-height:94vh;margin:auto;padding:0;border:0;background:#0e2b20;color:#fff;overflow:hidden}
.lightbox::backdrop{background:rgba(6,20,14,.86)}
.lightbox-frame{display:grid;place-items:center;height:min(76vh,760px);position:relative;background:#0a1f17}
.lightbox-frame img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.lightbox-frame .field-photo-failed{position:static;width:100%;height:100%;background:#0a1f17;color:#c9d6cc}
.lightbox-button{position:absolute;z-index:2;width:46px;height:46px;border:0;border-radius:50%;background:rgba(10,30,20,.6);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.lightbox-button:hover,.lightbox-button:focus-visible{background:rgba(10,30,20,.85)}
.lightbox-button:focus-visible{outline:2px solid var(--lime)}
.lightbox-close{top:12px;right:12px}
.lightbox-prev,.lightbox-next{top:50%;transform:translateY(-50%)}
.lightbox-prev{left:12px}
.lightbox-next{right:12px}
.lightbox-foot{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:14px 18px;font-size:14px}
.lightbox-caption{margin:0}
.lightbox-counter{opacity:.7;white-space:nowrap}
@media(max-width:700px){.field-gallery{padding-top:64px}.field-grid{grid-template-columns:1fr}.field-tile,.field-tile:nth-child(n+3){grid-column:auto;min-height:260px}.field-tile:nth-child(n+3){min-height:340px}.lightbox{width:100vw;max-width:none;max-height:100vh;margin:0}.lightbox-frame{height:68vh}}
