[hidden] { display: none !important; }
[aria-label="Mobile navigation"].is-open { transform: none !important; visibility: visible !important; z-index: 100 !important; }
:focus-visible { outline: 2px solid #3176a7; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gallery { max-width: 1100px; margin: auto; }
.gallery-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 5px; height: min(54vw, 595px); overflow: hidden; }
.gallery-stage button, .gallery-thumbs button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.gallery-main { height: 100%; min-width: 0; }
.gallery-main img { display: block; height: 100%; max-width: 80vw; object-fit: contain; }
.gallery-side { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; margin-top: 14px; padding: 2px; }
.gallery-thumbs button { flex: 0 0 69px; height: 64px; }
.gallery-thumbs button[aria-current="true"] { outline: 2px solid #4682b4; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery .gallery-arrow, .gallery-close { position: absolute; z-index: 1; color: white; background: #171717b5; border: 0; cursor: pointer; width: 44px; height: 44px; font: 32px/1 sans-serif; }
.gallery-arrow { top: 50%; transform: translateY(-50%); }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-dialog { border: 0; padding: 0; overflow: visible; background: #151515; max-width: 94vw; max-height: 90vh; }
.gallery-dialog::backdrop { background: #000d; }
.gallery-dialog img { display: block; max-width: 94vw; max-height: 88vh; object-fit: contain; }
.gallery-close { top: 0; right: 0; }
@media (max-width: 600px) {
  .gallery-stage { display: grid; grid-template-columns: 1fr; height: min(112vw, 430px); }
  .gallery-main img { margin: auto; max-width: 100%; }
  .gallery-side { display: none; }
}
.mobile-close { position: absolute; top: 12px; right: 7px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: #171717; font: 34px/1 sans-serif; }
.gallery-stage { grid-template-rows: minmax(0, 1fr); }
.gallery-main { display: block; min-height: 0; }
.gallery-main img { width: auto; }
.gallery-side[data-offset="-1"] { object-position: right center; }
.gallery-side[data-offset="1"] { object-position: left center; }
