/* Photographs and accessible interactive components — HMA Group */
:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
.photo-hero.page-hero::before{background:linear-gradient(90deg,rgba(9,21,46,.45),rgba(9,21,46,.6))}
.photo-hero.page-hero.hero-tall{min-height:clamp(360px,53vw,600px)}
.photo-hero.page-hero{background-position:center}
.feature-photo{position:relative;display:block;width:100%;aspect-ratio:1;border:0;padding:0;border-radius:var(--radius-md);overflow:hidden;background:var(--blue-dark);cursor:zoom-in}
.feature-photo img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.feature-photo:hover img{transform:scale(1.035)}
.team-photo{aspect-ratio:3/1;grid-column:1/-1}
.photo-hint{position:absolute;inset-inline-end:18px;bottom:18px;background:rgba(10,20,40,.78);border:1px solid #ffffff55;border-radius:999px;color:#fff;font-size:12px;padding:7px 14px}
.gallery-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;align-items:stretch}
.story-slider{height:auto;min-height:370px;border-radius:var(--radius-md);aspect-ratio:2/1}
.story-slider img{object-position:center}
.gallery-thumbs{display:grid;gap:12px}
.gallery-thumb{display:flex;align-items:center;gap:12px;text-align:start;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--paper-raise);color:var(--ink);transition:border-color .2s,background .2s}
.gallery-thumb img{width:76px;height:64px;object-fit:cover;border-radius:6px}
.gallery-thumb span{font-size:13px;font-weight:700}
.gallery-thumb small{display:block;color:var(--muted);font-size:11px}
.gallery-thumb.selected{border-color:var(--accent);background:var(--accent-tint)}
.slider-controls{position:absolute;inset-inline:14px;bottom:14px;z-index:4;display:flex;align-items:center;gap:8px;direction:rtl}
.slider-controls button{width:44px;height:44px;border:1px solid #ffffff66;background:rgba(12,22,42,.8);color:#fff;border-radius:50%;font-size:17px}
.slider-controls button:hover{background:var(--blue)}
.slider-status{color:#fff;font-size:12px;background:rgba(12,22,42,.8);border-radius:999px;padding:7px 12px;margin-inline-start:auto}
.slider-caption{position:absolute;top:16px;inset-inline-start:16px;z-index:3;padding:7px 14px;border-radius:999px;color:#fff;background:rgba(12,22,42,.8);font-size:12px;max-width:calc(100% - 32px)}
.section-nav{position:sticky;top:64px;z-index:25;border-bottom:1px solid var(--line);background:rgba(247,245,240,.96);backdrop-filter:blur(12px)}
.section-nav .container{display:flex;gap:8px;overflow-x:auto;padding-block:10px;scrollbar-width:thin}
.section-nav a{white-space:nowrap;padding:8px 15px;border-radius:999px;font-size:12px;color:var(--ink-soft);border:1px solid transparent}
.section-nav a[aria-current="location"]{background:var(--accent);color:#fff}
section[id]{scroll-margin-top:155px}
.process-grid[data-process-explorer]{margin-bottom:20px}
.process-pick{display:block;width:100%;text-align:start;border:0;background:transparent;padding:0;color:inherit}
.process-pick h3{margin-top:14px}
.process-pick .step-prompt{display:block;font-size:12px;color:var(--accent);margin-top:12px}
.process-step.is-selected{background:var(--accent-tint);box-shadow:inset 0 -3px var(--accent)}
.process-detail{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper);min-height:260px}
.process-detail img{width:100%;height:100%;max-height:340px;object-fit:cover}
.process-detail-copy{padding:36px;align-self:center}
.process-detail-copy h3{font-size:25px;margin-block:14px}
.process-detail-copy p{color:var(--ink-soft)}
.photo-dialog{width:min(1200px,94vw);max-width:94vw;max-height:94vh;background:#101725;color:#fff;border:1px solid #ffffff33;border-radius:14px;padding:18px;box-shadow:0 30px 100px #0009}
.photo-dialog::backdrop{background:rgba(2,8,20,.88);backdrop-filter:blur(5px)}
.photo-dialog img{width:100%;max-height:76vh;object-fit:contain}
.photo-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.photo-dialog-header p{font-size:13px}
.photo-dialog-header button{color:#fff;background:#ffffff16;border:1px solid #ffffff55;border-radius:50%;width:44px;height:44px;font-size:22px}
body.photo-dialog-open{overflow:hidden}
@media(max-width:900px){
 .hero>.container[style*="grid-template-columns"]{grid-template-columns:1fr!important}
 .feature-photo{max-width:600px;margin-inline:auto;aspect-ratio:4/3}
 .team-photo{aspect-ratio:3/1;max-width:none}
 .gallery-layout{grid-template-columns:1fr}
 .gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .gallery-thumb{display:block;padding:6px}
 .gallery-thumb img{width:100%;height:65px}
 .gallery-thumb span{display:block;font-size:11px;padding:6px 2px 0}
 .gallery-thumb small{display:none}
 .section-nav{top:68px}
}
@media(max-width:620px){
 .photo-hero.page-hero.hero-tall{min-height:350px}
 .photo-hero.page-hero{padding-block:70px}
 .story-slider{min-height:260px;aspect-ratio:4/3}
 .gallery-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gallery-thumb{display:flex;gap:8px}
 .gallery-thumb img{width:58px;height:52px}
 .process-detail{grid-template-columns:1fr}
 .process-detail img{height:200px;order:-1}
 .process-detail-copy{padding:24px}
 .section-nav a{padding:8px 12px}
}
@media(prefers-reduced-motion:reduce){.feature-photo img,.img-slider img{transition:none}.feature-photo:hover img{transform:none}}

/* Form submission feedback */
.form-trap{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.form-status{margin-top:18px;padding:14px 18px;background:var(--accent-tint);border:1px solid var(--accent);border-radius:8px;font-size:14px;overflow-wrap:anywhere}
.form-status.is-error{background:#fff1f1;color:#861c23;border-color:#e3b5b8}
.file-help{font-size:12px;color:var(--muted);margin-top:6px}
[aria-invalid="true"]{border-color:#b52b34!important}
[hidden]{display:none!important}
