.gallery-page { letter-spacing: 0; }
.gallery-page .galerie-section { padding: 40px 0 56px; background: #f6f8f9; }
.gallery-page .gallery-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 24px; padding: 0; margin: 0; border-bottom: 1px solid #d4dfe3; }
.gallery-page .gallery-filters a { padding: 12px 0; min-height: 44px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: #53636b; font-size: .95rem; font-weight: 600; }
.gallery-page .gallery-filters a.active, .gallery-page .gallery-filters a:hover { color: #006d88; border-bottom-color: #0089a7; background: none; }
.gallery-count { margin: 18px 0 24px; font-size: .875rem; color: #53636b; }
.gallery-page .gallery { gap: 24px; align-items: stretch; }
.gallery-page .gallery-item { min-width: 0; border: 1px solid #dce4e7; border-radius: 8px; box-shadow: none; background: #fff; }
.gallery-page .gallery-item:hover, .gallery-page .gallery-item:focus-within { border-color: #8dabb6; }
.gallery-page .gallery-item img { display: block; width: 100%; object-fit: cover; }
.gallery-page .gallery-link { cursor: zoom-in; }
.gallery-page .gallery-item figcaption { min-height: 0; padding: 20px; gap: 10px; }
.gallery-page .gallery-item figcaption strong { color: #203f4c; font-size: 1rem; line-height: 1.45; }
.gallery-page .gallery-item figcaption > span { color: #53636b; font-size: .875rem; line-height: 1.65; }
.gallery-page .gallery-tags { margin-top: auto; padding-top: 6px; gap: 6px; }
.gallery-page .gallery-category, .gallery-page .gallery-badge { border-radius: 4px; padding: 4px 8px; font-size: .75rem; font-weight: 500; background: #edf4f6; color: #38616e; border: 0; }
.gallery-page .gallery-badge { background: #edf4ed; color: #42654a; }
.gallery-page .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 0; }
.gallery-page .pagination a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 14px; border: 1px solid #cbdde3; border-radius: 6px; background: #fff; color: #006d88; }
.gallery-page .pagination a.active { background: #006d88; border-color: #006d88; color: #fff; }
.gallery-page a:focus-visible { outline: 2px solid #0083a2; outline-offset: 3px; }
.gallery-page .gallery-related { margin-top: 48px; padding-top: 36px; border-top: 1px solid #d4dfe3; }
.gallery-page .gallery-related .section-title { font-size: 1.65rem; color: #203f4c; }
.gallery-page .gallery-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.gallery-related-grid article { display: flex; flex-direction: column; min-width: 0; }
.gallery-related-grid h3 { font-size: 1.1rem; line-height: 1.4; color: #203f4c; }
.gallery-related-grid p { font-size: .9rem; line-height: 1.65; color: #53636b; }
.gallery-related-grid a { margin-top: auto; padding: 8px 0; color: #006d88; font-weight: 600; }
.gallery-viewer { width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 60px 56px 20px; border: 1px solid #526068; border-radius: 8px; background: #182025; color: #fff; overflow: auto; }
.gallery-viewer::backdrop { background: #080e12e6; }
.gallery-viewer img { display: block; width: 100%; height: min(70dvh, 850px); object-fit: contain; }
.gallery-viewer button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff66; border-radius: 6px; background: #29383f; color: #fff; font-size: 24px; cursor: pointer; }
.gallery-viewer button:hover { background: #40606e; }
.gallery-viewer button:focus-visible { outline: 2px solid #6adfff; outline-offset: 3px; }
.gallery-viewer-close { top: 8px; right: 8px; }
.gallery-viewer-prev { left: 6px; top: 45%; }
.gallery-viewer-next { right: 6px; top: 45%; }
#gallery-viewer-caption { margin: 16px 0 0; font-size: .9rem; line-height: 1.5; text-align: center; }
@media (max-width: 1000px) {
    .gallery-page .gallery, .gallery-page .gallery-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .gallery-page .galerie-section { padding: 24px 0 36px; }
    .gallery-page .gallery { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .gallery-page .gallery-item img { height: auto; aspect-ratio: 4 / 3; }
    .gallery-page .gallery-filters { gap: 4px 20px; }
    .gallery-page .gallery-filters a { font-size: .875rem; }
    .gallery-page .gallery-related-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .gallery-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 60px 12px 68px; }
    .gallery-viewer img { height: 55dvh; }
    .gallery-viewer-prev { left: 12px; top: auto; bottom: 12px; }
    .gallery-viewer-next { right: 12px; top: auto; bottom: 12px; }
}
