/* Antalgija — storiai svetainėje: žiedas ant logotipo + žiūryklė (inc/site-stories.php, assets/js/site-stories.js).
   Spalvos: klinikos žalia / auksinė (ne IG rausva). Jokių išorinių šriftų — paveldi temos. */
:root { --as-green: #17a85e; --as-gold: #f2b53a; --as-green-2: #39e08a; --as-gold-2: #ffd97a; }

/* --- žiedas aplink logotipą --- */
.as-ring { position: relative; display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 16px; isolation: isolate; }
.as-ring::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3.5px;
	background: conic-gradient(from 200deg, var(--as-green), var(--as-gold), var(--as-green-2), var(--as-gold-2), var(--as-green));
	filter: drop-shadow(0 0 6px rgba(242, 181, 58, .55)) drop-shadow(0 0 2px rgba(23, 168, 94, .6));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	animation: as-pulse 1.8s ease-in-out 3; }
.as-ring--seen::before { background: #cfd4d1; animation: none; filter: none; }
.as-ring .site-header__logo { position: relative; z-index: 1; cursor: pointer; }
.as-badge { position: absolute; right: -6px; top: -6px; z-index: 2; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--as-green); color: #fff;
	font: 700 11px/18px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }
.as-ring--seen .as-badge { display: none; }
.as-intro { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); z-index: 2; white-space: nowrap; padding: 3px 10px; border-radius: 999px;
	background: var(--as-green); color: #fff; font: 600 12px/1.4 system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.15); transition: opacity .4s; }
.as-intro::before { content: ""; position: absolute; left: 50%; top: -5px; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: var(--as-green); }
.as-intro--out { opacity: 0; pointer-events: none; }
@keyframes as-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .8; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .as-ring::before { animation: none; } }

/* --- žiūryklė --- */
.as-lock, .as-lock body { overflow: hidden; }
.as-viewer { position: fixed; inset: 0; z-index: 2147483000; display: none; } /* virš slapukų lango (CookieYes) ir meniu */
.as-viewer--open { display: block; }
.as-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, .82); backdrop-filter: blur(3px); }
.as-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(430px, 100vw); height: min(92vh, 780px); aspect-ratio: 9 / 16;
	background: #0e1a14; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.as-progress { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 3; display: flex; gap: 4px; }
.as-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.as-bar b { display: block; height: 100%; width: 0; background: #fff; }
.as-bar--done b { width: 100%; }
.as-head { position: absolute; left: 12px; right: 12px; top: 22px; z-index: 3; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.as-head-logo { height: 22px; width: auto; background: #fff; border-radius: 6px; padding: 2px 5px; }
.as-count { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.as-head-title { flex: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-close { appearance: none; border: 0; background: rgba(0,0,0,.35); color: #fff; width: 34px; min-width: 0; height: 34px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; font-size: 24px; line-height: 34px; cursor: pointer; box-shadow: none; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; }
.as-stage { position: relative; flex: 1; min-height: 0; background: #0e1a14; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.as-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.as-tap { position: absolute; top: 0; bottom: 0; width: 30%; cursor: pointer; }
.as-tap--prev { left: 0; }
.as-tap--next { right: 0; width: 70%; }
.as-text { padding: 10px 16px 0; font-size: 15px; line-height: 1.4; }
.as-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; }
.as-cta { flex: 1; text-align: center; background: var(--as-gold); color: #1a1a1a !important; text-decoration: none !important; font-weight: 700; font-size: 15px; padding: 12px 16px; border-radius: 999px; }
.as-cta:hover { filter: brightness(1.06); }
.as-legal { padding: 0 16px 12px; font-size: 11px; line-height: 1.35; color: rgba(255,255,255,.6); }
.as-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; appearance: none; border: 0; padding: 0; margin: 0; min-width: 0; min-height: 0; box-shadow: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1a1a1a; font-size: 26px; line-height: 40px; cursor: pointer; display: none; }
.as-nav--prev { left: -56px; }
.as-nav--next { right: -56px; }
.as-card--first .as-nav--prev, .as-card--last .as-nav--next { visibility: hidden; }
@media (min-width: 721px) { .as-nav { display: block; } }
@media (max-width: 720px) {
	.as-card { left: 0; top: 0; transform: none; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; }
	.as-backdrop { background: #000; }
	.as-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
