.gallery-main{padding-top:65px;padding-bottom:90px;min-height:65vh}.gallery-main h1{font-size:clamp(26px,4vw,42px);margin:10px 0 15px}.gallery-nav{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0}.gallery-nav a{border:1px solid #e1ded8;border-radius:8px;padding:10px 14px;text-decoration:none;color:#303436;font-size:13px}.gallery-main h2{font-size:21px;margin:25px 0}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.gallery-card{border:1px solid #e9e5df;border-radius:12px;overflow:hidden;background:#fff}.gallery-card img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#f4f2ed;display:block}.gallery-info{padding:16px}.gallery-info h3{font-size:16px;margin:0 0 8px}.gallery-info p{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.gallery-info small{color:#777;font-size:11px}.gallery-pages{display:flex;justify-content:center;align-items:center;gap:15px;margin:30px}.gallery-pages button{border:1px solid #ddd;border-radius:7px;background:#fff;padding:9px 16px}.gallery-pages button:disabled{opacity:.4}@media(max-width:760px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.gallery-grid{grid-template-columns:1fr}}
.gallery-nav .gallery-nav-card{display:flex;align-items:center;gap:10px;padding:7px 14px 7px 7px;min-height:52px}.gallery-nav-card img{width:54px;height:40px;object-fit:cover;border-radius:5px;background:#f4f2ed}.gallery-nav-card span{font-size:13px}

.gallery-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;text-align:inherit}
.gallery-open:focus-visible,.lightbox-toolbar button:focus-visible,.lightbox-photo button:focus-visible{outline:3px solid #b99a64;outline-offset:3px}
.gallery-open:hover img{filter:brightness(.94)}
.lightbox-open{overflow:hidden}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(16,22,27,.86);overflow-y:auto}
.lightbox-panel{width:min(1120px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;background:#fbfaf8;border:1px solid #cfc9bf;border-radius:15px;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;border-bottom:1px solid #e8e2d8;color:#5e5b56;font-size:13px}
.lightbox-toolbar button{border:1px solid #d7d2ca;background:#fff;color:#303436;border-radius:8px;padding:8px 12px;cursor:pointer}
.lightbox-content{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);min-height:0;overflow-y:auto}
.lightbox-photo{position:relative;display:grid;place-items:center;background:#161b20;min-height:340px;overflow:hidden}
.lightbox-photo img{display:block;max-width:100%;max-height:min(70dvh,760px);width:auto;height:auto;object-fit:contain}
.lightbox-photo button{position:absolute;top:50%;transform:translateY(-50%);border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(0,0,0,.45);color:#fff;font-size:29px;width:44px;height:44px;cursor:pointer}
.lightbox-photo button:disabled{opacity:.2;cursor:default}
#lightbox-prev{left:12px}#lightbox-next{right:12px}
.lightbox-info{padding:35px 30px;min-width:0;overflow-wrap:anywhere}
.lightbox-info h2{font-size:clamp(22px,3vw,30px);line-height:1.3;margin:15px 0}
#lightbox-description{white-space:pre-wrap;font-size:14px;line-height:1.85;color:#555}
#lightbox-meta{font-size:12px;color:#888;margin-top:24px}
@media(max-width:760px){.gallery-lightbox{padding:8px}.lightbox-panel{max-height:calc(100dvh - 16px)}.lightbox-content{grid-template-columns:1fr}.lightbox-photo{min-height:230px}.lightbox-photo img{max-height:48dvh}.lightbox-info{padding:20px}.lightbox-photo button{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.gallery-open:hover img{filter:none}}
