/* ParkStarGames Gallery & Artwork. Isolated styling: the four approved pages stay unchanged. */
:root{--gal-green:#80ff19;--gal-green-2:#a8ff2d;--gal-bg:#010804;--gal-edge:clamp(14px,2.5vw,36px);--gal-line:rgba(126,255,21,.82);--gal-glow:0 0 9px rgba(106,255,10,.56),0 0 20px rgba(86,254,4,.19)}
.gallery-page{background:var(--gal-bg);overflow-x:hidden}
.gallery-page [hidden]{display:none!important}
.gallery-page .site-header{z-index:30}
.gallery-page .desktop-nav .nav-link{font-size:12px}
.gallery-page .eyebrow{color:#9aff37;letter-spacing:4px;font-weight:900}
.gallery-hero{position:relative;isolation:isolate;height:280px;background:#020a04;overflow:hidden;border-bottom:1px solid var(--gal-green);box-shadow:0 3px 15px rgba(105,255,6,.30)}
.gallery-hero-art{position:absolute;inset:0;z-index:-2;background-image:linear-gradient(90deg,rgba(0,7,2,.99) 0%,rgba(0,8,3,.88) 17%,rgba(0,7,3,.69) 33%,rgba(0,8,3,.16) 65%,rgba(0,0,0,0) 100%),linear-gradient(180deg,transparent 69%,rgba(0,8,3,.34)),url('../assets/city-drive-hero.webp');background-size:cover;background-position:center 53%;filter:saturate(1.18) contrast(1.06)}
.gallery-hero-inner{max-width:1500px;padding:47px var(--gal-edge) 0;margin:auto;position:relative}
.gallery-hero-inner h1{font-size:clamp(43px,6vw,65px);line-height:1.06;font-weight:900;letter-spacing:-3px;margin:8px 0 13px;white-space:nowrap;text-shadow:0 2px 3px #0009}
.gallery-hero-inner h1 span{color:var(--gal-green);text-shadow:0 0 12px rgba(70,240,12,.14)}
.gallery-hero-inner>p:last-child{font-size:17px;line-height:1.26;max-width:555px;margin:0;color:#f1f2ef;text-shadow:0 1px 6px #000}
.gallery-filter-zone{position:absolute;bottom:0;left:0;right:0;z-index:2;padding:0 var(--gal-edge) 11px;max-width:1570px;margin:auto}
.gallery-filter-zone::before{content:"";position:absolute;z-index:-1;inset:auto 0 0 0;height:46px;background:linear-gradient(90deg,rgba(0,7,3,.80),rgba(0,7,3,.12) 85%);pointer-events:none}
.gallery-filter-bar{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;max-width:1400px;margin:auto;overflow-x:auto;padding:5px 1px 2px;scrollbar-width:thin}
.gallery-filter{display:inline-flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap;flex:0 0 auto;min-height:38px;padding:0 19px;border-radius:10px;background:rgba(0,9,4,.88);border:1px solid var(--gal-line);color:#fff;font-size:14px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(72,178,5,.10);transition:background .18s,transform .18s,box-shadow .18s}
.gallery-filter svg{height:20px;width:20px;flex:none}
.gallery-filter.active{background:linear-gradient(110deg,#4ce800,#9dff21);border-color:#a7ff5c;box-shadow:var(--gal-glow),inset 0 0 3px #c8ff6d;color:#fff;text-shadow:0 1px 1px #347600}
.gallery-filter:not(.active):hover{background:#163606;box-shadow:var(--gal-glow)}
.gallery-filter:active{transform:translateY(1px)}
.gallery-main{padding:9px 15px 14px;max-width:1560px;margin:auto}
.gallery-feature{position:relative;isolation:isolate;height:295px;border:1px solid var(--gal-line);border-radius:11px;background:#061009;overflow:hidden;box-shadow:0 0 13px rgba(87,255,6,.15)}
.gallery-feature-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 51%;z-index:-2;filter:saturate(1.15) contrast(1.06)}
.gallery-feature::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#010803 0%,rgba(0,8,3,.95) 15%,rgba(0,7,3,.70) 29%,rgba(0,6,2,.10) 52%,transparent 80%),linear-gradient(0deg,rgba(0,3,1,.12),transparent 45%)}
.gallery-feature-copy{position:relative;width:min(365px,43%);padding:15px 0 13px 29px}
.gallery-feature-copy .eyebrow{font-size:10px;letter-spacing:4px;margin:0 0 6px}
.gallery-feature-copy h2{font-size:clamp(39px,4.5vw,52px);line-height:1.0;font-weight:900;letter-spacing:-2px;margin:0 0 10px;white-space:nowrap}
.gallery-feature-copy h2 span{color:var(--gal-green)}
.gallery-feature-copy>p:not(.eyebrow){font-size:16px;line-height:1.24;color:#f1f2f0;margin:0 0 12px}
.gallery-tags{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}
.gallery-tags span{border:1px solid var(--gal-green);background:rgba(0,8,2,.75);padding:6px 9px;border-radius:7px;white-space:nowrap;font-size:11px;font-weight:700}
.gallery-primary{min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:0 19px;color:#fff;font-size:15px;font-weight:700;border:1px solid #8cff28;border-radius:9px;background:#071209;box-shadow:0 0 9px #7aff12a0,inset 0 0 0 1px rgba(120,255,34,.35);transition:box-shadow .2s,background .2s}
.gallery-primary:hover{background:#15330b;box-shadow:0 0 17px rgba(120,255,26,.76)}
.gallery-primary span{font-size:23px;line-height:0}
.gallery-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:9px}
.gallery-card{min-width:0;aspect-ratio:1.61;border:1px solid var(--gal-line);border-radius:10px;overflow:hidden;position:relative;background:#051009;box-shadow:0 0 10px rgba(94,255,7,.1)}
.gallery-card-open{width:100%;height:100%;padding:0;display:block;position:relative;border:0;background:#041107;color:#fff;text-align:left;cursor:zoom-in}
.gallery-card-open img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .27s,filter .27s;filter:saturate(1.1)}
.gallery-card-open::after{content:"";pointer-events:none;position:absolute;inset:58% 0 0;background:linear-gradient(transparent,rgba(0,8,3,.38));z-index:1}
.gallery-card:hover .gallery-card-open img{transform:scale(1.035);filter:saturate(1.17)}
.gallery-card-label{position:absolute;z-index:2;bottom:8px;left:9px;min-height:29px;padding:6px 13px;display:inline-flex;align-items:center;border:1px solid var(--gal-green);border-radius:8px;background:rgba(0,8,3,.91);font-size:12px;font-weight:700;line-height:1}
.gallery-zoom{position:absolute;z-index:2;bottom:8px;right:9px;width:33px;height:33px;display:grid;place-items:center;border:1px solid var(--gal-green);border-radius:50%;background:#020b04;color:#fff;box-shadow:0 0 7px #78ff1966}
.gallery-zoom svg{width:19px;height:19px}
.gallery-empty{text-align:center;border:1px dashed rgba(122,255,23,.52);padding:35px 15px;margin-top:11px;border-radius:10px;background:#04100a}
.gallery-empty h2{margin:0 0 10px;font-size:24px}.gallery-empty p{color:#d1e0d3}.gallery-empty-reset{background:#071c09;color:#fff;border:1px solid var(--gal-green);border-radius:7px;padding:11px 17px}
.gallery-page .site-footer{border-top:1px solid rgba(133,255,20,.7);box-shadow:0 -3px 12px rgba(94,255,10,.14)}
/* Viewers are real native dialogs, not image backgrounds. */
.gallery-lightbox,.gallery-info-dialog,.gallery-search-dialog{padding:0;color:#fff;border:1px solid rgba(135,255,39,.7);border-radius:12px;background:#030b07;box-shadow:0 0 28px #74ff1240;max-width:calc(100% - 34px)}
.gallery-lightbox::backdrop,.gallery-info-dialog::backdrop,.gallery-search-dialog::backdrop{background:rgba(0,0,0,.88);backdrop-filter:blur(4px)}
.gallery-lightbox{width:min(1280px,96vw);max-height:min(94vh,1000px)}
.lightbox-panel{padding:22px 53px 28px;position:relative}
.lightbox-panel figure{margin:0;text-align:center}.lightbox-panel img{display:block;margin:0 auto;max-width:100%;max-height:71vh;object-fit:contain;border-radius:7px}
.lightbox-panel figcaption{text-align:left;display:flex;gap:16px;align-items:baseline;flex-wrap:wrap;margin-top:9px}
.lightbox-panel figcaption strong{font-size:19px}.lightbox-panel figcaption span{font-size:13px;color:#d0d9d2}
.lightbox-close{position:absolute;right:11px;top:8px;z-index:2;color:#fff;background:#071109;border:1px solid var(--gal-green);border-radius:50%;width:34px;height:34px;font-size:25px;line-height:1}
.lightbox-arrow{position:absolute;z-index:2;top:45%;transform:translateY(-50%);width:38px;height:50px;border-radius:9px;border:1px solid var(--gal-green);background:rgba(3,13,5,.9);color:#fff;font-size:37px;line-height:1}
.lightbox-arrow.prev{left:8px}.lightbox-arrow.next{right:8px}.lightbox-arrow:hover{box-shadow:var(--gal-glow)}
.lightbox-count{text-align:center;font-size:12px;color:#c2d4c6;margin-top:9px}
.gallery-info-dialog,.gallery-search-dialog{width:min(620px,calc(100% - 32px));padding:24px;position:relative}
.gallery-info-content h2,.gallery-search-panel h2{margin:8px 0 10px;font-size:31px}
.gallery-info-content p:not(.eyebrow){font-size:15px;line-height:1.5;color:#deeadf}
.gallery-search-panel h2 span{color:var(--gal-green)}
.gallery-search-panel label{display:block;margin-bottom:9px;color:#deeadf;font-size:13px}
.gallery-search-panel input{display:block;width:100%;height:43px;border:1px solid var(--gal-green);border-radius:7px;background:#010703;color:white;padding:0 12px;font-size:15px}
.gallery-search-results{margin-top:13px;display:grid;gap:6px;max-height:50vh;overflow:auto}.gallery-search-results button{background:#071209;border:1px solid #296d14;border-radius:7px;color:#fff;text-align:left;padding:11px 13px}.gallery-search-results button:hover{border-color:var(--gal-green)}.gallery-search-results strong,.gallery-search-results small{display:block}.gallery-search-results small{color:#b9d2bf;margin-top:4px}
.gallery-info-dialog>.dialog-close,.gallery-search-dialog>.dialog-close{position:absolute;right:10px;top:10px;display:grid;place-items:center;border:1px solid #72ff1b;background:#030b07;color:#fff;border-radius:50%;font-size:22px;width:33px;height:33px;line-height:1}
@media(min-width:1400px){.gallery-hero{height:320px}.gallery-hero-inner{padding-top:57px}.gallery-filter-zone{padding-bottom:14px}.gallery-feature{height:340px}.gallery-feature-copy{padding-top:27px;padding-left:36px}.gallery-feature-copy>p:not(.eyebrow){font-size:18px}.gallery-card{aspect-ratio:1.61}}
@media(max-width:920px){.gallery-hero-inner h1{font-size:clamp(40px,6.3vw,60px)}.gallery-feature-copy{width:min(365px,52%)}.gallery-filter{padding:0 14px;font-size:13px}.gallery-filter-bar{gap:9px}.gallery-card-label{font-size:11px;padding:5px 9px}}
@media(max-width:720px){.gallery-page .menu-toggle{display:grid}.gallery-page .desktop-nav{display:none}.gallery-hero{height:324px}.gallery-hero-inner{padding-top:41px}.gallery-hero-inner h1{font-size:clamp(36px,7.4vw,53px);letter-spacing:-2px;white-space:normal}.gallery-hero-inner>p:last-child{font-size:14px;max-width:380px}.gallery-desktop-break{display:none}.gallery-filter-zone{padding:0 12px 10px}.gallery-filter{font-size:12px;min-height:37px;padding:0 12px}.gallery-filter svg{width:17px;height:17px}.gallery-main{padding:9px 9px 13px}.gallery-feature{height:340px}.gallery-feature::before{background:linear-gradient(90deg,#010804ee,rgba(0,8,3,.82) 48%,rgba(0,7,3,.10) 100%)}.gallery-feature-copy{width:min(330px,85%);padding-left:18px;padding-top:20px}.gallery-feature-copy h2{font-size:39px}.gallery-feature-copy>p:not(.eyebrow){font-size:14px}.gallery-tags span{font-size:10px}.gallery-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gallery-card{aspect-ratio:1.28}.gallery-card-label{bottom:7px;left:7px;min-height:26px;font-size:10px}.gallery-zoom{bottom:7px;right:7px;width:28px;height:28px}.gallery-zoom svg{width:16px;height:16px}.lightbox-panel{padding:43px 9px 16px}.lightbox-arrow{width:33px;height:42px;top:auto;bottom:53px;transform:none}.lightbox-panel figcaption{padding:0 45px;justify-content:center;text-align:center;font-size:12px}.lightbox-panel img{max-height:62vh}}
@media(max-width:380px){.gallery-hero-inner h1{font-size:36px}.gallery-feature-copy{width:90%}.gallery-tags{gap:5px}.gallery-tags span{font-size:9px;padding:5px}.gallery-card{aspect-ratio:1.17}}
@media(prefers-reduced-motion:reduce){.gallery-page *, .gallery-page *::before,.gallery-page *::after{transition:none!important;scroll-behavior:auto!important}}
/* Final reference proportion polish: align the hero label, image rows and footer to the supplied desktop artwork. */
@media(min-width:721px) and (max-width:1399px){
  .gallery-hero{height:270px}
  .gallery-hero-inner{padding-left:clamp(28px,4vw,48px)}
  .gallery-filter-zone{padding-left:clamp(22px,3.5vw,42px)}
  .gallery-card{aspect-ratio:1.66}
}
@media(min-width:721px){
  .gallery-page .site-footer{padding-bottom:60px;background-image:linear-gradient(180deg,rgba(1,8,3,.98) 0%,rgba(0,10,3,.99) 70%,rgba(0,9,3,.88) 100%),url('../assets/engine-feature-world.webp');background-size:cover;background-position:center 55%}
}
