.service-gallery { max-width: 1200px; margin: 1.5rem auto; padding-inline: clamp(24px, 5vw, 40px); }
.service-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.service-gallery-grid a { display: block; float: none; width: 100% !important; }
.service-gallery-grid img { display: block; width: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; }
.service-gallery-grid a:focus-visible { outline: 3px solid #233a8d; outline-offset: 3px; }
.service-gallery-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; box-sizing: border-box; margin: 0; padding: 5rem 4.5rem; border: 0; background: #151515; color: #fff; }
.service-gallery-dialog[open] { display: grid; place-items: center; }
.service-gallery-dialog::backdrop { background: #151515; }
.service-gallery-photo { display: block; max-width: 100%; width: 100%; height: 100%; max-height: calc(100dvh - 10rem); object-fit: contain; }
.service-gallery-action { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: #222; color: #fff; font: 32px/1 sans-serif; cursor: pointer; }
.service-gallery-action[hidden] { display: none; }
.service-gallery-action:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.service-gallery-close { top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); }
.service-gallery-status { position: absolute; top: max(25px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left)); }
.service-gallery-prev { top: 50%; left: max(18px, env(safe-area-inset-left)); transform: translateY(-50%); }
.service-gallery-next { top: 50%; right: max(18px, env(safe-area-inset-right)); transform: translateY(-50%); }
@media (min-width: 1500px) { .service-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .service-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .service-gallery-dialog { padding-inline: 18px; }
  .service-gallery-prev, .service-gallery-next { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: none; }
}

.service-gallery-page > .main-inner-row .main-content.top-row .inner { padding-bottom: 0; }
.service-gallery-page .main-content.bottom-row[hidden] { display: none !important; }
.service-gallery-page > .service-gallery { margin-top: 1rem; }
.service-gallery-page > .service-gallery h2 { margin-top: 0; }
