/* gallery.php (v3.9.0): highlight carousel — cinematic stage: slides cross-fade with a slow zoom, gold corner frame,
   glass ‹ › on the sides, pause button, numbered film strip below whose gold line fills during the 5 seconds of a slide */
.gw-reel{--rg:var(--gw-gold,#D9B36C);--rg2:#F3DDA6;position:relative;margin:0 0 clamp(28px,3.4vw,52px)}
.gw-reel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.gw-reel-head h2{display:flex;align-items:center;gap:12px;margin:0;font-family:var(--font-head);font-size:clamp(20px,2vw,28px);color:var(--rg);letter-spacing:.5px}
.gw-reel-head h2 i{display:block;width:34px;height:2px;background:linear-gradient(90deg,transparent,var(--rg))}
.gw-reel-count{font-family:var(--font-head);color:var(--rg2);display:flex;align-items:baseline;gap:6px}
.gw-reel-count b{font-size:clamp(26px,2.6vw,36px);font-weight:600;line-height:1}.gw-reel-count span{font-size:14px;opacity:.6;letter-spacing:1px}

.gw-stage{position:relative;aspect-ratio:16/7;max-height:min(72vh,640px);width:100%;border-radius:22px;overflow:hidden;background:#0b0a09;isolation:isolate;
 box-shadow:0 30px 70px -30px rgba(0,0,0,.9),0 0 0 1px rgba(217,179,108,.35)}
.gw-stage:focus-visible{outline:2px solid var(--rg);outline-offset:4px}
.gw-slide{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;margin:0;background:none;cursor:zoom-in;color:#fff;text-align:left;
 opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s .9s;z-index:0}
.gw-slide.is-on{opacity:1;visibility:visible;transition:opacity .9s ease;z-index:1}
.gw-slide-m{position:absolute;inset:0;overflow:hidden}
.gw-slide-m img,.gw-slide-m video{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.08);transition:transform 7s ease-out}
.gw-slide.is-on .gw-slide-m img,.gw-slide.is-on .gw-slide-m video{transform:scale(1)}
.gw-slide::after{content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(90deg,rgba(8,7,6,.85) 0%,rgba(8,7,6,.45) 38%,transparent 65%),linear-gradient(0deg,rgba(8,7,6,.7),transparent 45%)}
.gw-slide-cap{position:absolute;z-index:2;left:clamp(20px,4vw,56px);bottom:clamp(22px,4vw,54px);max-width:min(520px,70%);display:flex;flex-direction:column;gap:6px}
.gw-slide-cap em{font-style:normal;font-family:var(--font-head);font-size:13px;letter-spacing:4px;color:var(--rg);display:flex;align-items:center;gap:10px}
.gw-slide-cap em::after{content:"";width:40px;height:1px;background:var(--rg)}
.gw-slide-cap b{font-family:var(--font-head);font-size:clamp(22px,3vw,42px);line-height:1.15;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.5)}
.gw-slide-cap small{font-size:clamp(13px,1.1vw,15.5px);color:#e8dcc2;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gw-slide-cta{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:9px 18px;border-radius:999px;font-size:14px;font-weight:600;
 color:#1b1405;background:linear-gradient(135deg,var(--rg2),var(--rg));box-shadow:0 8px 24px -8px rgba(217,179,108,.7);transition:transform .2s}
.gw-slide-cta svg{width:14px;height:14px;fill:currentColor}
.gw-slide:hover .gw-slide-cta{transform:translateX(4px)}
/* the caption slides up a little when the slide comes in */
.gw-slide-cap>*{opacity:0;transform:translateY(14px);transition:opacity .6s,transform .6s}
.gw-slide.is-on .gw-slide-cap>*{opacity:1;transform:none}
.gw-slide.is-on .gw-slide-cap>:nth-child(2){transition-delay:.12s}.gw-slide.is-on .gw-slide-cap>:nth-child(3){transition-delay:.22s}.gw-slide.is-on .gw-slide-cap>:nth-child(4){transition-delay:.32s}

.gw-nav,.gw-pp{position:absolute;z-index:3;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(243,221,166,.45);cursor:pointer;color:#fff;
 background:rgba(15,13,10,.38);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:background .2s,color .2s,opacity .25s,transform .2s}
.gw-nav{top:50%;width:52px;height:52px;margin-top:-26px;opacity:0}
.gw-prev{left:18px}.gw-next{right:18px}
.gw-stage:hover .gw-nav,.gw-stage:focus-within .gw-nav{opacity:1}
.gw-nav svg,.gw-pp svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gw-nav:hover,.gw-nav:focus-visible,.gw-pp:hover,.gw-pp:focus-visible{background:var(--rg);color:#1b1405;border-color:var(--rg)}
.gw-prev:hover{transform:translateX(-2px)}.gw-next:hover{transform:translateX(2px)}
.gw-pp{right:18px;bottom:18px;width:42px;height:42px}
.gw-pp svg{width:16px;height:16px}.gw-pp-play{fill:currentColor!important;stroke:none!important}
.gw-pp .gw-pp-play,.gw-pp.is-paused .gw-pp-pause{display:none}.gw-pp.is-paused .gw-pp-play{display:block}
.gw-corner{position:absolute;z-index:2;width:26px;height:26px;pointer-events:none;border:0 solid var(--rg);opacity:.85}
.gw-c1{left:14px;top:14px;border-left-width:2px;border-top-width:2px;border-top-left-radius:8px}
.gw-c2{right:14px;top:14px;border-right-width:2px;border-top-width:2px;border-top-right-radius:8px}
.gw-c3{left:14px;bottom:14px;border-left-width:2px;border-bottom-width:2px;border-bottom-left-radius:8px}
.gw-c4{right:14px;bottom:14px;border-right-width:2px;border-bottom-width:2px;border-bottom-right-radius:8px;display:none}

/* numbered film strip */
.gw-reel-thumbs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(180px,1fr);gap:12px;margin-top:14px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin;scroll-snap-type:x proximity}
.gw-reel-thumbs button{position:relative;display:flex;align-items:center;gap:10px;padding:8px 10px 10px 8px;border-radius:14px;cursor:pointer;text-align:left;scroll-snap-align:start;
 background:rgba(255,255,255,.04);border:1px solid rgba(217,179,108,.18);color:#d8ccb2;transition:background .25s,border-color .25s,color .25s}
.gw-th-m{flex:0 0 64px;height:44px;border-radius:9px;overflow:hidden;background:#000}
.gw-th-m img,.gw-th-m video{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(.55) brightness(.75);transition:filter .3s}
.gw-th-t{display:flex;flex-direction:column;min-width:0}
.gw-th-t em{font-style:normal;font-size:11px;letter-spacing:2px;color:var(--rg);opacity:.75}
.gw-th-t b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gw-th-bar{position:absolute;left:12px;right:12px;bottom:4px;height:2px;border-radius:2px;background:rgba(217,179,108,.15);overflow:hidden}
.gw-th-bar::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--rg),var(--rg2));transform:scaleX(0);transform-origin:left}
.gw-reel-thumbs button:hover{border-color:rgba(217,179,108,.5);color:#fff}
.gw-reel-thumbs button:hover .gw-th-m img,.gw-reel-thumbs button.is-on .gw-th-m img,.gw-reel-thumbs button.is-on .gw-th-m video{filter:none}
.gw-reel-thumbs button.is-on{background:linear-gradient(135deg,rgba(217,179,108,.2),rgba(217,179,108,.06));border-color:var(--rg);color:#fff}
.gw-reel-thumbs button.is-on .gw-th-bar::after{animation:gwReelFill var(--reel-ms,5000ms) linear forwards}
.gw-reel.is-paused .gw-reel-thumbs button.is-on .gw-th-bar::after{animation-play-state:paused}
.gw-reel.is-static .gw-reel-thumbs button.is-on .gw-th-bar::after{animation:none;transform:scaleX(1)}
@keyframes gwReelFill{to{transform:scaleX(1)}}

.gw-reel.is-single .gw-nav,.gw-reel.is-single .gw-pp,.gw-reel.is-single .gw-reel-thumbs,.gw-reel.is-single .gw-reel-count{display:none}
@media(max-width:760px){
 .gw-stage{aspect-ratio:4/5;border-radius:18px}
 .gw-slide::after{background:linear-gradient(0deg,rgba(8,7,6,.92) 0%,rgba(8,7,6,.35) 55%,transparent 80%)}
 .gw-slide-cap{left:18px;right:18px;bottom:72px;max-width:none}
 .gw-nav{opacity:1;width:42px;height:42px;margin-top:0;top:auto;bottom:16px}
 .gw-prev{left:auto;right:118px}.gw-next{right:68px}
 .gw-reel-thumbs{grid-auto-columns:minmax(150px,46%)}
}
/* v3.25.4 (owner: “กรอบที่เปิดวีดีโอมันไม่สวย ออกแบบใหม่หน่อย”) — cleaner frame: no gold corner brackets, a fine inner gold line,
   soft vignette; on phones a landscape frame (not a tall poster), smaller title / button, one row of small round controls,
   and a film strip of small pictures only, so the whole highlight fits on one screen */
.gw-corner{display:none!important}
.gw-stage{box-shadow:0 24px 60px -28px rgba(0,0,0,.9),0 0 0 1px rgba(217,179,108,.28)}
.gw-stage::before{content:"";position:absolute;inset:8px;z-index:2;border-radius:16px;border:1px solid rgba(243,221,166,.22);pointer-events:none}
.gw-slide-cta{padding:8px 16px;font-size:13.5px}
@media(max-width:760px){
 .gw-reel-head{margin-bottom:10px}.gw-reel-head h2{font-size:20px}.gw-reel-head h2 i{width:22px}.gw-reel-count b{font-size:22px}
 .gw-stage{aspect-ratio:4/3;max-height:62vh;border-radius:16px}
 .gw-stage::before{inset:6px;border-radius:12px}
 .gw-slide::after{background:linear-gradient(0deg,rgba(8,7,6,.88) 0%,rgba(8,7,6,.3) 42%,transparent 66%)}
 .gw-slide-cap{left:16px;right:136px;bottom:14px;gap:4px}
 .gw-slide-cap em{font-size:11px;letter-spacing:3px}.gw-slide-cap em::after{width:24px}
 .gw-slide-cap b{font-size:19px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .gw-slide-cap small{display:none}
 .gw-slide-cta{margin-top:6px;padding:6px 12px;font-size:12.5px;gap:6px}
 .gw-nav,.gw-pp{width:36px;height:36px;margin:0;top:auto;bottom:14px;opacity:1;background:rgba(15,13,10,.5)}
 .gw-nav svg{width:18px;height:18px}.gw-pp svg{width:14px;height:14px}
 .gw-prev{left:auto;right:96px}.gw-next{right:54px}.gw-pp{right:12px}
 .gw-reel-thumbs{grid-auto-columns:76px;gap:8px;margin-top:10px;padding-bottom:4px}
 .gw-reel-thumbs button{padding:4px 4px 8px;border-radius:12px;flex-direction:column;gap:0}
 .gw-th-m{flex:none;width:100%;height:46px;border-radius:8px}
 .gw-th-t{display:none}
 .gw-th-bar{left:8px;right:8px;bottom:3px}
}
/* v3.25.4 b (owner: “ทำกรอบให้เท่กว่านี้”) — a thin gold border with a light that slowly travels around it, soft gold glow,
   cinematic vignette inside, arrows with a gold ring; colours and layout unchanged */
@property --gw-a{syntax:"<angle>";inherits:false;initial-value:0deg}
.gw-stage{border-radius:22px;box-shadow:0 40px 90px -40px rgba(0,0,0,.95),0 0 0 1px rgba(217,179,108,.16),0 0 70px -18px rgba(217,179,108,.35)}
.gw-stage::after{content:"";position:absolute;inset:0;z-index:4;border-radius:inherit;padding:1.5px;pointer-events:none;
 background:conic-gradient(from var(--gw-a),rgba(243,221,166,.18) 0deg,#F3DDA6 28deg,#fff6dc 36deg,#D9B36C 46deg,rgba(243,221,166,.18) 80deg,rgba(243,221,166,.18) 180deg,#D9B36C 214deg,#F3DDA6 224deg,rgba(243,221,166,.18) 260deg);
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
 animation:gwSheen 9s linear infinite}
@keyframes gwSheen{to{--gw-a:360deg}}
.gw-stage::before{inset:10px;border-radius:15px;border-color:rgba(243,221,166,.16);box-shadow:inset 0 0 140px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,246,220,.08)}
.gw-nav{border-color:rgba(243,221,166,.55);box-shadow:0 0 0 4px rgba(217,179,108,.08),0 8px 24px -8px rgba(0,0,0,.7)}
.gw-pp{border-color:rgba(243,221,166,.55)}
.gw-slide-cap em{color:#F3DDA6}
@media(max-width:760px){.gw-stage::before{inset:6px;border-radius:12px}.gw-stage{border-radius:16px}}
@media(prefers-reduced-motion:reduce){.gw-stage::after{animation:none}}
@media(prefers-reduced-motion:reduce){.gw-slide,.gw-slide-m img,.gw-slide-m video,.gw-slide-cap>*{transition:none!important}}
