.photo-gallery h1 { font-size: clamp(52px, 8vw, 92px); }
.gallery-jumps { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 48px; }
.gallery-group { margin-bottom: 56px; scroll-margin-top: 28px; }
.gallery-group h2 { font-size: clamp(36px, 5vw, 56px); }
.gallery-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.gallery-photo { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.gallery-photo img { display: block; width: 100%; height: 240px; object-fit: contain; transition: transform .2s ease; }
.gallery-photo:hover { border-color: #6ce9ef; }
.gallery-photo:hover img { transform: scale(1.025); }
.gallery-photo:focus-visible, .gallery-close:focus-visible { outline: 3px solid #6ce9ef; outline-offset: 4px; }
.gallery-dialog { width: min(1100px, 94vw); max-height: 94vh; padding: 18px; border: 1px solid #6ce9ef; border-radius: 16px; background: #10091b; color: #fff; }
.gallery-dialog::backdrop { background: rgb(0 0 0 / .88); }
.gallery-dialog figure { margin: 14px 0 0; }
.gallery-dialog img { display: block; width: 100%; height: auto; max-height: 73vh; object-fit: contain; }
.gallery-dialog figcaption { margin: 14px 0 4px; text-align: center; }
.gallery-close { display: block; margin-left: auto; padding: 9px 16px; color: #fff; background: #30203e; border: 1px solid #9b79af; border-radius: 8px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-photo img { height: 190px; }
  .gallery-section-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 440px) {
  .photo-grid { grid-template-columns: 1fr; }
  .gallery-photo img { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-photo img { transition: none; }
}
