@font-face { font-family: "Copasso Gallery Icons"; font-style: normal; font-weight: 900; font-display: block; src: url("../../../../vendor/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2"); }
.copasso-gallery .fa-solid, .photo-viewer .fa-solid { font-family: "Copasso Gallery Icons"; font-weight: 900; }
.copasso-gallery { padding-block: 32px; }
.copasso-gallery + .copasso-gallery { padding-top: 0; }
.copasso-gallery > h2 { margin: 0 0 16px; }
.legacy-article .copasso-gallery { width: 100%; }
.legacy-article > .copasso-gallery:last-child { padding-bottom: 0; }
.gallery-track { gap: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 12px; }
.gallery-photo { display: block; aspect-ratio: 4 / 3; min-width: 0; background: #fff; scroll-snap-align: start; border: 1px solid var(--line); }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.gallery-photo:focus-visible, .gallery-controls button:focus-visible, .photo-viewer button:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.gallery-controls { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button, .photo-viewer button { min-height: 48px; min-width: 64px; border: 1px solid #69736c; background: #252c28; color: #fff; border-radius: 4px; cursor: pointer; font-size: 22px; }
.gallery-controls button { width: 120px; }
.gallery-controls button:hover, .photo-viewer button:hover { background: #39443c; }
.gallery-controls button:disabled { opacity: .4; cursor: default; }
.photo-viewer { width: min(1400px, 96vw); height: min(950px, 94dvh); max-width: 96vw; max-height: 94dvh; padding: 14px; border: 1px solid #69736c; border-radius: 4px; background: #121714; color: #fff; overflow: hidden; }
.photo-viewer[open] { display: flex; flex-direction: column; }
.photo-viewer::backdrop { background: rgb(0 0 0 / 86%); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; flex-shrink: 0; }
.viewer-counter { font-size: 16px; }
.viewer-tools { display: flex; gap: 10px; }
.viewer-image-area { flex: 1; min-height: 0; overflow: auto; display: grid; align-items: center; justify-items: center; margin-block: 12px; touch-action: pan-x pan-y pinch-zoom; }
.viewer-image-area img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-image-area.is-zoomed { display: block; }
.viewer-image-area.is-zoomed img { max-width: none; max-height: none; width: auto; height: auto; }
.viewer-navigation { display: flex; gap: 16px; justify-content: center; flex-shrink: 0; }
.viewer-navigation button { width: min(240px, 40%); }
@media (max-width: 760px) {
  .copasso-gallery { padding-block: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-carousel { grid-auto-columns: 78%; }
  .gallery-track { gap: 12px; }
  .photo-viewer { width: 98vw; max-width: 98vw; height: 92dvh; padding: 10px; }
}
@media (max-width: 420px) { .gallery-grid { grid-template-columns: 1fr; } }
