.gallery-page{padding-top:96px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:30px}
.gallery-item{border:1px solid var(--border);background:var(--card);border-radius:8px;overflow:hidden;box-shadow:var(--shadow)}
.gallery-trigger{position:relative;display:block;width:100%;border:0;padding:0;background:transparent;color:inherit;cursor:pointer;overflow:hidden}
.gallery-trigger img,.video-thumb{width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--surface-soft);display:grid;place-items:center;color:var(--brand-primary);font:inherit;font-weight:950}
.gallery-trigger::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(10,14,22,.55));opacity:0;transition:opacity .22s ease}
.gallery-trigger:hover::after{opacity:1}
.video-badge{position:absolute;left:12px;top:12px;z-index:2;border-radius:999px;background:rgba(10,14,22,.72);color:#fff;padding:7px 10px;font-size:12px;font-weight:950;backdrop-filter:blur(10px)}
.video-badge::before{content:"▶";margin-right:6px;color:var(--brand-secondary)}
.gallery-item h2{font-size:17px;line-height:1.3;margin:14px;transition:color .18s ease,transform .18s ease}
.gallery-item:hover h2{color:var(--brand-primary);transform:translateX(3px)}
.gallery-modal[hidden]{display:none}
.gallery-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px}
.gallery-modal-backdrop{position:absolute;inset:0;background:rgba(6,8,13,.78);backdrop-filter:blur(10px)}
.gallery-modal-panel{position:relative;z-index:1;width:min(1120px,100%);display:grid;gap:12px}
.gallery-modal-stage{min-height:min(72vh,760px);display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.38)}
.gallery-modal-stage img,.gallery-modal-stage video,.gallery-modal-stage iframe{display:block;width:100%;max-height:76vh;object-fit:contain;border:0;background:#05070b}
.gallery-modal-stage iframe{aspect-ratio:16/9}
.gallery-modal-caption{display:flex;justify-content:space-between;gap:16px;align-items:center;color:#fff}
.gallery-modal-caption strong{font-size:18px}
.gallery-modal-caption span{color:rgba(255,255,255,.68);font-weight:800}
.gallery-modal-close,.gallery-modal-nav{position:absolute;z-index:3;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:#fff;cursor:pointer;backdrop-filter:blur(10px);transition:transform .18s ease,background .18s ease}
.gallery-modal-close{right:10px;top:10px;width:42px;height:42px;border-radius:10px;font-size:28px;line-height:1}
.gallery-modal-nav{top:50%;width:48px;height:58px;border-radius:12px;font-size:42px;line-height:1;display:grid;place-items:center}
.gallery-modal-prev{left:10px}.gallery-modal-next{right:10px}
.gallery-modal-close:hover,.gallery-modal-nav:hover{transform:translateY(-1px) scale(1.04);background:rgba(255,255,255,.18)}
body.gallery-modal-open{overflow:hidden}
@media(max-width:900px){.gallery-grid{grid-template-columns:1fr 1fr}.gallery-modal{padding:14px}.gallery-modal-nav{width:42px;height:52px}.gallery-modal-stage{min-height:58vh}}
@media(max-width:560px){.gallery-grid{grid-template-columns:1fr}.gallery-modal-caption{display:block}.gallery-modal-caption span{display:block;margin-top:5px}.gallery-modal-prev{left:4px}.gallery-modal-next{right:4px}}
