.photo-gallery-page{max-width:95%;margin:auto;padding:32px 40px 64px;width:100%}
.photo-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.gallery-photo{display:block;overflow:hidden;border-radius:14px;background:var(--card-bg);border:1px solid var(--card-border);box-shadow:0 5px 20px #0021470c}.gallery-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.gallery-photo:focus-visible{outline:3px solid var(--accent-blue);outline-offset:4px}
.gallery-empty{text-align:center;padding:50px}.gallery-is-open{overflow:hidden}.gallery-viewer{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;padding:64px 84px;background:transparent;color:var(--text-dark);overflow:hidden}.gallery-viewer[open]{display:flex;align-items:center;justify-content:center}.gallery-viewer::backdrop{background:rgba(225,234,242,.38);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.gallery-viewer figure{margin:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}.gallery-full{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;box-shadow:0 12px 45px #00214725;pointer-events:auto}.gallery-viewer figcaption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.gallery-viewer button{position:absolute;width:48px;height:48px;border-radius:50%;border:1px solid var(--card-border);background:var(--bg-light);color:var(--accent-blue);font:400 32px/1 Arial;cursor:pointer;display:grid;place-items:center}.gallery-viewer button:hover{background:var(--card-border)}.gallery-viewer button:focus-visible{outline:3px solid #93c5fd;outline-offset:4px}.gallery-close{right:24px;top:20px}.gallery-prev{left:22px;top:calc(50% - 24px)}.gallery-next{right:22px;top:calc(50% - 24px)}
@media(max-width:1000px){.photo-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.photo-gallery-page{max-width:100%;padding:24px 18px}.photo-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-viewer{padding:60px 16px 90px}.gallery-prev,.gallery-next{top:auto;bottom:24px}}
