* { box-sizing: border-box; }
:root { --page-bg: #f3f3f3; --text: #232323; --button: #00457c; --button-hover: #b86d00; }
html { min-height: 100%; }
body { margin: 0; background: var(--page-bg); color: var(--text); font-family: "Fira Sans", sans-serif; -webkit-font-smoothing: antialiased; }
.page { width: min(1440px, 100%); margin: 0 auto; padding: 48px 32px 64px; }
.page-header { margin: 0 0 30px; text-align: center; }
h1 { margin: 0; font-size: 2rem; line-height: 1.5; font-weight: 600; }
.subtitle { margin: 8px 0 0; font-size: 1.4rem; line-height: 1.3; font-weight: 400; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery-item { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 1rem; background: #ddd; cursor: zoom-in; aspect-ratio: 3 / 2; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.zoom-icon { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: rgb(0 0 0 / 0%); opacity: 0; transition: opacity .2s, background .2s; }
.zoom-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gallery-item:hover .zoom-icon, .gallery-item:focus-visible .zoom-icon { opacity: 1; background: rgb(0 0 0 / 35%); }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item:focus-visible, button:focus-visible { outline: 3px solid var(--button-hover); outline-offset: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 64px 80px 28px; background: rgb(0 0 0 / 94%); }
.lightbox.is-open { display: flex; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; margin: 0; }
.lightbox-image { display: block; max-width: min(100%, 1350px); max-height: calc(100vh - 210px); width: auto; height: auto; object-fit: contain; }
.lightbox-counter { padding-top: 12px; color: #fff; font-size: .9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; display: grid; place-items: center; box-sizing: border-box; flex: 0 0 48px; width: 48px; min-width: 48px; max-width: 48px; height: 48px; min-height: 48px; max-height: 48px; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--button); cursor: pointer; font: inherit; font-size: 28px; line-height: 1; transition: background .2s; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--button-hover); }
.lightbox-close { top: 20px; right: 24px; font-size: 34px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-figure { min-height: 0; justify-content: center; }

@media (max-width: 900px) {
  .page { padding: 36px 24px 48px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 1024px) {
  .lightbox { padding: 64px 20px 96px; }
  .lightbox-image { max-width: 100%; max-height: calc(100vh - 250px); }
  .lightbox-prev { left: calc(50% - 58px); right: auto; top: auto; bottom: 24px; transform: none; }
  .lightbox-next { right: calc(50% - 58px); left: auto; top: auto; bottom: 24px; transform: none; }
  .zoom-icon { display: none; }
}
@media (max-width: 600px) {
  .page { padding: 28px 16px 40px; }
  h1 { font-size: 1.65rem; line-height: 1.35; }
  .gallery { grid-template-columns: 1fr; gap: 16px; }
  .lightbox { padding: 60px 12px 92px; }
  .lightbox-image { max-height: calc(100vh - 230px); }
  .lightbox-close { top: 10px; right: 10px; }
}
