.gallery-main { min-height: calc(100svh - 260px); padding-block: 32px 56px; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #bac8bf; }
.gallery-heading h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.gallery-call { font-size: 16px; color: var(--green); text-underline-offset: 4px; }
.work-case { padding-top: 24px; }
.work-case h2 { font-size: 23px; font-weight: 500; letter-spacing: -.035em; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 18px; }
.photo-group h3 { margin-bottom: 10px; font-size: 16px; font-weight: 500; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-button { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #eff2ef; cursor: zoom-in; }
.photo-button img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.photo-button:focus-visible, .viewer-close:focus-visible { outline: 3px solid #9b783d; outline-offset: 3px; }
.gallery-page .copyright { margin-top: 2.5em; }
nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.photo-dialog { width: min(1200px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 12px; border: 0; border-radius: 8px; background: #fff; }
.photo-dialog::backdrop { background: rgb(0 0 0 / .8); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.viewer-caption { font-size: 14px; }
.viewer-close { min-height: 40px; padding: 6px 16px; border: 1px solid #bac8bf; border-radius: 4px; background: #fff; font: inherit; cursor: pointer; }
.viewer-image { width: 100%; max-height: calc(100svh - 110px); object-fit: contain; }
@media (max-width: 680px) {
  .gallery-main { padding-block: 22px 32px; }
  .gallery-heading { display: block; padding-bottom: 17px; }
  .gallery-heading h1 { font-size: 26px; }
  .gallery-call { display: inline-block; margin-top: 8px; }
  .work-case { padding-top: 18px; }
  .work-case h2 { font-size: 21px; }
  .comparison { grid-template-columns: 1fr; gap: 22px; margin-top: 16px; }
  .photo-grid { gap: 10px; }
}
