.photo-intro{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:2rem}
.gallery .photo-intro h2{margin:0}
.photo-description{max-width:34ch;margin:0 0 .2rem;color:var(--muted);font-size:1rem;line-height:1.55}
.photo-filters,.photo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}
.photo-filters{margin-bottom:1.55rem}
.photo-filters[hidden],.photo-actions [hidden]{display:none}
.photo-filters button,.photo-actions a,.photo-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;border:1px solid #a6b29e;border-radius:2rem;background:transparent;color:var(--pine);padding:.53rem 1.04rem;font-size:.95rem}
.photo-filters button[aria-pressed="true"]{background:var(--pine);border-color:var(--pine);color:#fff}
.photo-actions{margin-top:2rem}
.photo-actions a,.photo-actions button{border-color:var(--pine);font-weight:700}
.photo-actions a:hover,.photo-actions button:hover,.photo-filters button:not([aria-pressed="true"]):hover{background:#e6ecdf}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.55rem 1.15rem}
.photo-card{min-width:0;display:block;padding:0;background:transparent;text-align:left;color:var(--ink);align-self:start}
.photo-frame{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:4px;background:#e0e4d8}
.photo-frame img{display:block;width:100%;height:100%;object-fit:cover}
.photo-card:hover .photo-title{text-decoration:underline;text-underline-offset:.22em}
.photo-model{display:block;margin-top:.72rem;color:var(--muted);font-size:.86rem;line-height:1.4}
.photo-title{display:block;margin-top:.07rem;font-size:clamp(1.04rem,1.4vw,1.32rem);font-weight:700;letter-spacing:-.026em;line-height:1.28}
.photo-dialog{width:min(94vw,1150px);max-width:none;max-height:94dvh;padding:0;border:0;border-radius:7px;color:#fff;background:#19261d}
.photo-dialog[open]{display:flex;flex-direction:column;align-items:stretch}
.photo-dialog::backdrop{background:rgba(13,21,15,.86)}
.photo-dialog-head,.photo-pager{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex:none;padding:.75rem 1.15rem}
.photo-dialog-head h2{font-size:clamp(1.06rem,2vw,1.4rem);font-weight:700;letter-spacing:-.025em;line-height:1.25}
.photo-vehicle,.photo-position{font-size:.88rem;color:#e0e8db;line-height:1.45}
.photo-position{min-width:3.4rem;text-align:center}
.photo-full{display:block;width:100%;height:min(68dvh,730px);max-height:calc(93dvh - 9rem);min-height:0;object-fit:contain;background:#111a13}
.photo-dialog button{border:1px solid #647268;min-height:40px;background:#2b3d2f;color:white;border-radius:2rem;padding:.42rem 1rem;font-size:.91rem}
.photo-dialog button:hover{background:#425a47}
.photo-pager{justify-content:center}
body.photo-view-open{overflow:hidden}
@media(max-width:830px){
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:710px){
  .photo-intro{display:block;margin-bottom:1.4rem}
  .photo-description{margin-top:.8rem}
  .photo-grid{gap:1.4rem .8rem}
  .photo-model{font-size:.81rem}
  .photo-title{font-size:1.03rem}
  .photo-frame{aspect-ratio:1.15}
  .photo-dialog-head,.photo-pager{padding:.55rem .75rem}
  .photo-actions{margin-top:1.4rem}
}
@media(max-width:420px){
  .photo-filters{gap:.4rem}
  .photo-filters button{font-size:.86rem;padding:.45rem .69rem}
}
