/* SOJ Gallery Cinema — premium filterable gallery */
body[data-page="gallery-cinema"]{background:#050a07;color:#f7f1e6}
body[data-page="gallery-cinema"] .site-header{background:#043322}
.gallery-cinema-page{background:
  radial-gradient(circle at 85% 0%,rgba(199,163,57,.08),transparent 26%),
  linear-gradient(180deg,#090b08 0%,#030705 100%)}
.gallery-cinema-hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.62fr);gap:50px;align-items:end;
  padding:38px var(--space) 30px;
  background:linear-gradient(100deg,#3e0812 0%,#5d0d1d 45%,#061d15 100%);
  border-bottom:1px solid rgba(225,194,91,.24)
}
.gallery-cinema-hero p{margin:0 0 9px;color:#e4c85e;font:900 11px/1 var(--text);letter-spacing:.2em}
.gallery-cinema-hero h1{margin:0;color:#fff8e9;font:400 clamp(58px,6.1vw,88px)/.91 var(--editorial);letter-spacing:-.055em}
.gallery-cinema-hero h1 em{color:#e4c85e;font-style:normal}
.gallery-cinema-hero>span{max-width:520px;color:#d7ddd5;font-size:16px;line-height:1.65}

.gallery-cinema-shell{position:relative;padding:0 var(--space) 28px;background:#050a07}
.gallery-cinema-toolbar{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;
  padding:18px 0 13px;border-top:4px solid transparent;
  border-image:linear-gradient(90deg,#bd1935,#d7b84d,#6f8c3c,#146146) 1
}
.gallery-cinema-filters{display:flex;gap:8px;flex-wrap:wrap}
.gallery-cinema-filters button,.gallery-cinema-options button{
  min-height:38px;padding:0 13px;border:1px solid rgba(255,255,255,.16);border-radius:999px;
  background:#121310;color:#d5d4cd;font:800 12px/1 var(--text);cursor:pointer;
  transition:.18s ease
}
.gallery-cinema-filters button span{margin-left:6px;color:#918f86;font-size:10px}
.gallery-cinema-filters button:hover,.gallery-cinema-options button:hover{border-color:#d9bb58;color:#fff}
.gallery-cinema-filters button.is-active{
  border-color:#bd1935;background:#bd1935;color:#fff;box-shadow:0 8px 20px rgba(189,25,53,.2)
}
.gallery-cinema-filters button.is-active span{color:#fff1f4}
.gallery-cinema-options{display:flex;gap:7px}
.gallery-cinema-options button{background:#d9bb58;color:#183a2d;border-color:#d9bb58}
.gallery-cinema-options button:not(.is-active){background:#151612;color:#bbb8aa;border-color:#39382f}

.gallery-cinema-stage{
  position:relative;min-height:650px;overflow:hidden;background:#0d0e0c;border:1px solid rgba(217,187,88,.25);
  box-shadow:0 22px 55px rgba(0,0,0,.32)
}
.gallery-cinema-stage-media{position:absolute;inset:0;overflow:hidden}
.gallery-cinema-stage-media img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.015)}
.gallery-cinema-stage.is-motion .gallery-cinema-stage-media img{animation:galleryKenBurns 7s ease-out both}
@keyframes galleryKenBurns{from{transform:scale(1.07)}to{transform:scale(1.015)}}
.gallery-cinema-vignette{position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(0deg,rgba(1,7,4,.88) 0%,transparent 30%),
  linear-gradient(90deg,rgba(1,7,4,.22),transparent 35%,transparent 72%,rgba(1,7,4,.16))}
.gallery-cinema-stage-meta{
  position:absolute;z-index:4;left:22px;top:20px;display:flex;gap:8px;align-items:center
}
.gallery-cinema-stage-meta span{
  padding:8px 11px;border-radius:999px;background:rgba(6,35,24,.88);backdrop-filter:blur(10px);
  color:#fff8e8;font:900 11px/1 var(--text);letter-spacing:.05em
}
.gallery-cinema-stage-meta span:last-child{background:rgba(255,255,255,.9);color:#18392c}
.gallery-cinema-caption{
  position:absolute;z-index:4;left:24px;right:130px;bottom:22px;color:#fff;
  font:700 15px/1.35 var(--text);text-shadow:0 3px 18px rgba(0,0,0,.65)
}
.gallery-cinema-nav{
  position:absolute;z-index:5;top:50%;transform:translateY(-50%);display:grid;place-items:center;
  width:48px;height:48px;border:1px solid rgba(255,255,255,.28);border-radius:50%;
  background:rgba(6,25,17,.65);color:#fff;font:300 32px/1 var(--text);cursor:pointer;backdrop-filter:blur(8px)
}
.gallery-cinema-prev{left:18px}.gallery-cinema-next{right:18px}
.gallery-cinema-nav:hover{border-color:#d9bb58;color:#d9bb58}
.gallery-cinema-stage-controls{position:absolute;z-index:5;right:20px;bottom:18px;display:flex;gap:7px}
.gallery-cinema-stage-controls button{
  width:42px;height:42px;border:1px solid rgba(255,255,255,.25);border-radius:50%;
  background:rgba(7,24,17,.72);color:#fff;font-size:14px;cursor:pointer
}
.gallery-cinema-progress{position:absolute;z-index:6;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.08)}
.gallery-cinema-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#bd1935,#e0bf59,#3e8c64)}
.gallery-cinema-stage.is-playing .gallery-cinema-progress i{animation:galleryProgress 5.6s linear forwards}
.gallery-cinema-stage.is-paused .gallery-cinema-progress i{animation-play-state:paused}
@keyframes galleryProgress{from{width:0}to{width:100%}}

.gallery-cinema-filmstrip-wrap{
  display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:8px;align-items:center;padding-top:11px
}
.gallery-cinema-filmstrip-wrap[hidden]{display:none}
.gallery-strip-nav{
  width:38px;height:76px;border:1px solid rgba(255,255,255,.14);background:#121410;color:#d9bb58;
  border-radius:7px;font-size:24px;cursor:pointer
}
.gallery-cinema-filmstrip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth}
.gallery-cinema-filmstrip::-webkit-scrollbar{display:none}
.gallery-cinema-thumb{
  flex:0 0 128px;height:76px;padding:0;border:2px solid transparent;border-radius:7px;overflow:hidden;
  background:#111;opacity:.65;cursor:pointer;transition:.18s ease
}
.gallery-cinema-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-cinema-thumb:hover{opacity:1}
.gallery-cinema-thumb.is-active{opacity:1;border-color:#e0bf59;box-shadow:0 0 0 2px rgba(224,191,89,.14)}

.gallery-collection{padding:38px var(--space) 52px;background:#07100c}
.gallery-collection-head{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.65fr);gap:45px;align-items:end;
  margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid rgba(224,191,89,.16)
}
.gallery-collection-head p{margin:0 0 8px;color:#d9bb58;font:900 10px/1 var(--text);letter-spacing:.19em}
.gallery-collection-head h2{margin:0;color:#fff8e9;font:400 clamp(42px,4.5vw,62px)/.94 var(--editorial);letter-spacing:-.045em}
.gallery-collection-head h2 em{color:#d9bb58;font-style:normal}
.gallery-collection-head>span{color:#b9c2bb;font-size:14px;line-height:1.6}
.gallery-collection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.gallery-collection-card{
  position:relative;min-height:230px;overflow:hidden;border:0;background:#111;cursor:pointer
}
.gallery-collection-card:nth-child(5n+1){grid-column:span 2;min-height:300px}
.gallery-collection-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease,filter .3s ease}
.gallery-collection-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,16,10,.78),transparent 50%)}
.gallery-collection-card:hover img{transform:scale(1.035);filter:saturate(1.06)}
.gallery-collection-card span{
  position:absolute;z-index:2;left:14px;right:14px;bottom:13px;color:#fff;font:800 12px/1.3 var(--text);text-align:left
}
.gallery-collection-card small{display:block;margin-bottom:4px;color:#e2c563;font:900 9px/1 var(--text);letter-spacing:.12em;text-transform:uppercase}

@media(max-width:950px){
  .gallery-cinema-hero{grid-template-columns:1fr}
  .gallery-cinema-toolbar{grid-template-columns:1fr}
  .gallery-cinema-options{justify-content:flex-start}
  .gallery-cinema-stage{min-height:540px}
  .gallery-collection-grid{grid-template-columns:repeat(3,1fr)}
  .gallery-collection-card:nth-child(5n+1){grid-column:span 2}
}
@media(max-width:680px){
  .gallery-cinema-hero{padding:28px 18px 24px;gap:16px}
  .gallery-cinema-hero h1{font-size:50px}
  .gallery-cinema-hero>span{font-size:15px}
  .gallery-cinema-shell{padding:0 10px 22px}
  .gallery-cinema-toolbar{padding-top:13px}
  .gallery-cinema-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .gallery-cinema-filters::-webkit-scrollbar{display:none}
  .gallery-cinema-filters button{flex:0 0 auto;font-size:12px}
  .gallery-cinema-options button{font-size:12px}
  .gallery-cinema-stage{min-height:420px}
  .gallery-cinema-stage-meta{left:12px;top:12px}
  .gallery-cinema-stage-meta span{font-size:10px}
  .gallery-cinema-caption{left:14px;right:105px;bottom:16px;font-size:13px}
  .gallery-cinema-nav{width:40px;height:40px;font-size:27px}
  .gallery-cinema-prev{left:10px}.gallery-cinema-next{right:10px}
  .gallery-cinema-stage-controls{right:12px;bottom:10px}
  .gallery-cinema-stage-controls button{width:36px;height:36px}
  .gallery-cinema-filmstrip-wrap{grid-template-columns:32px minmax(0,1fr) 32px}
  .gallery-strip-nav{width:32px;height:68px}
  .gallery-cinema-thumb{flex-basis:105px;height:68px}
  .gallery-collection{padding:30px 10px 38px}
  .gallery-collection-head{grid-template-columns:1fr;gap:14px}
  .gallery-collection-head>span{font-size:13px}
  .gallery-collection-grid{grid-template-columns:1fr 1fr;gap:7px}
  .gallery-collection-card,.gallery-collection-card:nth-child(5n+1){grid-column:auto;min-height:180px}
}
@media(prefers-reduced-motion:reduce){
  .gallery-cinema-stage-media img,.gallery-collection-card img{animation:none!important;transition:none!important}
  .gallery-cinema-progress i{animation:none!important}
}
