.gallery-page{padding-top:120px}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;margin-top:40px;padding-bottom:60px}
.gallery-item{border:1px solid var(--border);background:color-mix(in srgb,var(--card) 92%,transparent);border-radius:24px;overflow:hidden;backdrop-filter:blur(12px);box-shadow:0 24px 48px rgba(15, 23, 42, .08);transition:transform .3s ease}
.gallery-item:nth-child(2n){transform:translateY(40px)}
.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;transition:transform .4s ease}
.gallery-trigger::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(10,14,22,.55));opacity:0;transition:opacity .3s ease}
.gallery-trigger:hover img,.gallery-trigger:hover .video-thumb{transform:scale(1.05)}
.gallery-trigger:hover::after{opacity:1}
.video-badge{position:absolute;left:16px;top:16px;z-index:2;border-radius:999px;background:rgba(10,14,22,.72);color:#fff;padding:8px 12px;font-size:13px;font-weight:900;backdrop-filter:blur(12px)}
.video-badge::before{content:"▶";margin-right:6px;color:var(--brand-secondary)}
.gallery-item h2{font-size:18px;line-height:1.4;margin:20px;transition:color .2s ease,transform .2s ease;font-weight:800}
.gallery-item:hover h2{color:var(--brand-primary);transform:translateX(4px)}
.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,.85);backdrop-filter:blur(16px)}
.gallery-modal-panel{position:relative;z-index:1;width:min(1120px,100%);display:grid;gap:16px}
.gallery-modal-stage{min-height:min(72vh,760px);display:grid;place-items:center;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:24px;overflow:hidden;box-shadow:0 40px 100px rgba(0,0,0,.5)}
.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:20px;font-weight:900}
.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(12px);transition:transform .2s ease,background .2s ease}
.gallery-modal-close{right:16px;top:16px;width:48px;height:48px;border-radius:12px;font-size:32px;line-height:1}
.gallery-modal-nav{top:50%;width:56px;height:64px;border-radius:16px;font-size:46px;line-height:1;display:grid;place-items:center;transform:translateY(-50%)}
.gallery-modal-prev{left:16px}.gallery-modal-next{right:16px}
.gallery-modal-close:hover,.gallery-modal-nav:hover{transform:translateY(calc(-50% - 2px)) scale(1.05);background:rgba(255,255,255,.22)}
.gallery-modal-close:hover{transform:translateY(-2px) scale(1.05)}
body.gallery-modal-open{overflow:hidden}
@media(max-width:900px){.gallery-grid{grid-template-columns:1fr 1fr;padding-bottom:20px}.gallery-modal{padding:14px}.gallery-modal-nav{width:46px;height:56px}.gallery-modal-stage{min-height:58vh}.gallery-item:nth-child(2n){transform:none}}
@media(max-width:560px){.gallery-grid{grid-template-columns:1fr}.gallery-modal-caption{display:block}.gallery-modal-caption span{display:block;margin-top:8px}.gallery-modal-prev{left:8px}.gallery-modal-next{right:8px}}
