/* TMC Gallery Video: the Play badge on gallery thumbnails, the video slide of the main photo, and the Reels-style viewer. */
.tmc-gv-thumb{position:relative}
.tmc-gv-thumb::before{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;background:linear-gradient(180deg,rgba(7,20,38,.05),rgba(7,20,38,.55));pointer-events:none}
.tmc-gv-thumb:not(:has(img)){background:#0b1a2b}
.tmc-gv-thumb__play{position:absolute;z-index:2;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.35);pointer-events:none}
.tmc-gv-thumb__play::after,.tmc-gv-main__play::after{content:"";position:absolute;left:50%;top:50%;border-style:solid;border-color:transparent transparent transparent var(--tmc-clean-blue,#086db1)}
.tmc-gv-thumb__play::after{margin:-6px 0 0 -3px;border-width:6px 0 6px 10px}
.tmc-gv-thumb__time{position:absolute;z-index:2;right:3px;bottom:3px;padding:1px 4px;border-radius:5px;background:rgba(7,20,38,.78);color:#fff;font:600 9px/1.3 var(--tmc-clean-font,'TMC Exo',Arial,sans-serif);pointer-events:none}

/* The video slide in the big frame: the cover, a large Play button and a label. Gallery arrows stay on top. */
.tmc-gv-main{position:absolute;inset:0;z-index:2;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:inherit;background:linear-gradient(180deg,rgba(7,20,38,.08),rgba(7,20,38,.5));cursor:pointer;-webkit-tap-highlight-color:transparent}
.tmc-gv-main[hidden]{display:none}
.tmc-gv-main__play{position:relative;width:76px;height:76px;border-radius:50%;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.45);transition:transform .16s cubic-bezier(.22,1,.36,1)}
.tmc-gv-main__play::after{margin:-14px 0 0 -8px;border-width:14px 0 14px 24px}
.tmc-gv-main:hover .tmc-gv-main__play{transform:scale(1.06)}
.tmc-gv-main:active .tmc-gv-main__play{transform:scale(.96)}
.tmc-gv-main:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.tmc-gv-main__label{position:absolute;left:12px;bottom:12px;padding:5px 10px;border-radius:999px;background:rgba(7,20,38,.78);color:#fff;font:600 13px/1.2 var(--tmc-clean-font,'TMC Exo',Arial,sans-serif)}
.is-tmc-gv-slide .tmc25-product-gallery-nav{z-index:3}

/* ---- Viewer (TikTok-like: full-screen video, white icons on the right, the caption and the button at the bottom) ---- */
.tmc-gv{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;background:#000;color:#fff;font-family:var(--tmc-clean-font,'TMC Exo',Arial,sans-serif);opacity:0;transition:opacity .2s ease-out;-webkit-font-smoothing:antialiased}
.tmc-gv.is-open{opacity:1}
.tmc-gv[hidden]{display:none}
.tmc-gv__stage{position:relative;width:100vw;height:100vh;height:100dvh;transform:scale(.97);transition:transform .28s cubic-bezier(.22,1,.36,1)}
.tmc-gv.is-open .tmc-gv__stage{transform:none}
.tmc-gv__feed{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;background:#000;-webkit-overflow-scrolling:touch}
.tmc-gv__feed::-webkit-scrollbar{display:none}
.tmc-gv__slide{position:relative;height:100%;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always;background:#05080d}
.tmc-gv__blur{position:absolute;inset:-40px;background:#0b1a2b center/cover no-repeat;filter:blur(28px) saturate(1.1) brightness(.55);transform:translateZ(0)}
.tmc-gv__slide video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:transparent}
.tmc-gv__slide[data-format="reel"] video{object-fit:cover}
.tmc-gv__slide[data-format="reel"] .tmc-gv__blur{display:none}
.tmc-gv__tap{position:absolute;inset:0;z-index:1;margin:0;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:pan-y}
.tmc-gv__paused{position:absolute;z-index:2;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;opacity:0;transform:scale(1.5);transition:opacity .16s ease-out,transform .22s cubic-bezier(.22,1,.36,1);pointer-events:none;filter:drop-shadow(0 4px 14px rgba(0,0,0,.45))}
.tmc-gv__paused::after{content:"";position:absolute;left:50%;top:50%;margin:-26px 0 0 -16px;border-style:solid;border-width:26px 0 26px 42px;border-color:transparent transparent transparent rgba(255,255,255,.92);border-radius:4px}
.tmc-gv__slide.is-paused .tmc-gv__paused{opacity:1;transform:none}
/* Buffering: a thin ring, shown only while the video is really waiting for data. */
.tmc-gv__wait{position:absolute;z-index:2;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid rgba(255,255,255,.28);border-top-color:#fff;opacity:0;pointer-events:none}
.tmc-gv__slide.is-waiting .tmc-gv__wait{opacity:1;animation:tmc-gv-spin .8s linear infinite}
/* The heart that flies up from a double tap. */
.tmc-gv__burst{position:absolute;z-index:3;width:96px;height:96px;margin:-48px 0 0 -48px;pointer-events:none;animation:tmc-gv-burst .8s cubic-bezier(.22,1,.36,1) forwards;filter:drop-shadow(0 6px 18px rgba(0,0,0,.4))}
.tmc-gv .tmc-gv__burst svg{width:100%;height:100%;fill:#fe2c55}
.tmc-gv__shade{position:absolute;left:0;right:0;z-index:2;pointer-events:none}
.tmc-gv__shade--top{top:0;height:22%;background:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}
.tmc-gv__shade--bottom{bottom:0;height:42%;background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,.35) 45%,transparent)}
.tmc-gv__bar{position:absolute;z-index:4;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.22);overflow:hidden}
.tmc-gv__bar i{display:block;width:100%;height:100%;background:#fff;transform:scaleX(0);transform-origin:left center;will-change:transform}
.tmc-gv__top{position:absolute;z-index:3;left:16px;right:10px;top:calc(10px + env(safe-area-inset-top,0px));display:flex;align-items:center;justify-content:space-between;gap:12px}
.tmc-gv__chip{font-size:15px;font-weight:700;letter-spacing:.01em;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.tmc-gv button{font-family:inherit;color:inherit}
.tmc-gv__icon{display:grid;place-items:center;width:48px;height:48px;margin:0;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .14s cubic-bezier(.22,1,.36,1)}
.tmc-gv__icon:active{transform:scale(.86)}
.tmc-gv__icon:focus-visible,.tmc-gv__cta:focus-visible{outline:3px solid #fff;outline-offset:2px;border-radius:12px}
.tmc-gv .tmc-gv__icon svg{width:34px;height:34px;filter:drop-shadow(0 2px 5px rgba(0,0,0,.55))}
.tmc-gv .tmc-gv__close svg{width:22px;height:22px}
.tmc-gv__rail{position:absolute;z-index:3;right:6px;bottom:calc(104px + env(safe-area-inset-bottom,0px));display:grid;gap:10px;justify-items:center}
.tmc-gv__act{display:grid;justify-items:center;font-size:12px;font-weight:700;line-height:1.1;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.tmc-gv__act>span{margin-top:-2px}
.tmc-gv__like svg{fill:#fff;transition:fill .12s ease-out}
.tmc-gv__like.is-liked svg{fill:#fe2c55}
.tmc-gv__like.is-pop svg{animation:tmc-gv-pop .42s cubic-bezier(.22,1,.36,1)}
.tmc-gv__sound .tmc-gv__cross{display:none}
.tmc-gv__sound.is-muted .tmc-gv__waves{display:none}
.tmc-gv__sound.is-muted .tmc-gv__cross{display:block}
.tmc-gv__sound>span,.tmc-gv__next>span{display:none}
.tmc-gv__next[hidden]{display:none}
.tmc-gv__next svg{animation:tmc-gv-nudge 1.5s ease-in-out infinite}
.tmc-gv__info{position:absolute;z-index:3;left:16px;right:72px;bottom:calc(88px + env(safe-area-inset-bottom,0px));pointer-events:none;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.tmc-gv__info h3{margin:0 0 4px;padding:0;color:#fff;font-size:17px;font-weight:700;line-height:1.25;letter-spacing:0;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tmc-gv__info p{margin:0;color:rgba(255,255,255,.9);font-size:14px;line-height:1.3;text-align:left}
.tmc-gv__cta{position:absolute;z-index:3;left:16px;right:16px;bottom:calc(20px + env(safe-area-inset-bottom,0px));display:grid;place-items:center;height:52px;margin:0;padding:0;border:0;border-radius:12px;background:var(--tmc-clean-buy,#15803d);color:#fff;font-size:17px;font-weight:700;cursor:pointer;box-shadow:0 8px 22px -8px rgba(0,0,0,.6);transition:background-color .15s ease-out,transform .15s cubic-bezier(.22,1,.36,1)}
.tmc-gv__cta:hover{background:var(--tmc-clean-buy-hover,#166534)}
.tmc-gv__cta:active{transform:scale(.985)}
.tmc-gv__note{position:absolute;z-index:4;left:16px;right:72px;bottom:calc(148px + env(safe-area-inset-bottom,0px));display:flex;justify-content:flex-start;pointer-events:none}
.tmc-gv__note span{max-width:100%;padding:10px 14px;border-radius:12px;background:rgba(22,24,35,.94);font-size:14px;line-height:1.35;pointer-events:auto;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.tmc-gv__note a{color:#fff;font-weight:700;text-decoration:underline}
.tmc-gv__note:empty{display:none}
/* Entries closed or sold out: no button, the caption and the icons move down into its place. */
.tmc-gv.is-closed .tmc-gv__cta{display:none}
.tmc-gv.is-closed .tmc-gv__info{bottom:calc(22px + env(safe-area-inset-bottom,0px))}
.tmc-gv.is-closed .tmc-gv__rail{bottom:calc(38px + env(safe-area-inset-bottom,0px))}
.tmc-gv.is-closed .tmc-gv__note{bottom:calc(82px + env(safe-area-inset-bottom,0px))}
@keyframes tmc-gv-pop{0%{transform:scale(.55)}55%{transform:scale(1.28)}100%{transform:none}}
@keyframes tmc-gv-nudge{0%,100%{transform:none}50%{transform:translateY(6px)}}
@keyframes tmc-gv-spin{to{transform:rotate(360deg)}}
@keyframes tmc-gv-burst{0%{opacity:0;transform:scale(.3) rotate(-12deg)}18%{opacity:1;transform:scale(1.15) rotate(-12deg)}40%{transform:scale(1) rotate(-12deg)}100%{opacity:0;transform:translateY(-90px) scale(1.25) rotate(-12deg)}}
/* The page under the viewer must not jump when its scrollbar goes: the script sets --tmc-gv-gap to the scrollbar's width. */
html.tmc-gv-lock{overflow:hidden;padding-right:var(--tmc-gv-gap,0px)}
/* Staff only: the WordPress toolbar would cover the counter and the close icon. */
html.tmc-gv-lock body.admin-bar #wpadminbar{display:none!important}

@media (min-width:760px){
  .tmc-gv{background:rgba(8,10,14,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  .tmc-gv__stage{width:auto;height:min(90vh,880px);aspect-ratio:9/16}
  .tmc-gv__feed{border-radius:16px;box-shadow:0 30px 80px -20px rgba(0,0,0,.85)}
  .tmc-gv__shade--top{border-radius:16px 16px 0 0}
  .tmc-gv__shade--bottom,.tmc-gv__bar{border-radius:0 0 16px 16px}
  /* Owner 2026-11-18: same as on a phone — the heart, the sound and the close icons lie on the video, no buttons around it. */
  .tmc-gv__icon:hover{transform:scale(1.1)}
  .tmc-gv__icon:active{transform:scale(.86)}
}
@media (prefers-reduced-motion:reduce){
  .tmc-gv,.tmc-gv *{transition:none!important;animation:none!important}
  .tmc-gv__stage{transform:none}
}
