/* WEBA 2 – viešo puslapio stiliai (dizainas – kaip lukasbartkus.lt: Manrope, balta/juoda, „piliulės“ antraštė) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
    --bg: #fff;
    --soft: #f4f2ee;
    --dark: #131313;
    --card: #ffffff;
    --line: #e5e5e5;
    --text: #111;
    --muted: #666;
    --accent: #111;
    --accent-dark: #333;
    --warm: #f0a532;
    --danger: #b42318;
    --ok: #157a3c;
    --radius: 10px;
    --shadow: none;
    --wrap: 1280px;
    --inner: calc(var(--wrap) - 2 * var(--pad)); /* turinio plotis be šoninių paraščių – antraštė, turinys ir juosta lygiuojasi */
    --pad: clamp(16px, 4vw, 40px);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --toolbar-h: 0px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.menu-lock { overflow: hidden; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--text); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration: underline; text-underline-offset: 3px; } }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 8px 16px; border-radius: 99px; background: var(--text); color: #fff; }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Antraštė – plaukiojanti matinė „piliulė“; paspaudžiama tik pati piliulė */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px var(--pad) 0; pointer-events: none; }
.site-header-inner { pointer-events: auto; position: relative; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); height: 64px; max-width: var(--inner); margin: 0 auto; padding: 0 10px 0 26px; border-radius: 99px; border: 1px solid rgba(17,17,17,.07); background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow 250ms ease, background-color 250ms ease; }
.site-header.scrolled .site-header-inner, .site-header.menu-open .site-header-inner { background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.site-brand { display: flex; flex-direction: column; min-width: 0; margin-right: auto; color: var(--text); line-height: 1.15; text-decoration: none !important; }
.site-brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.site-brand-role { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--text); text-decoration: none; } }
.site-nav .site-nav-contact { display: none; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1; overflow: hidden; flex: none; }
.lang-switch a, .lang-switch span { padding: 8px; color: var(--muted); }
.lang-switch .is-active { color: var(--text); background: var(--soft); }
.site-cta { flex: none; }
.site-menu-btn { display: none; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.site-menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-menu-btn path { transform-box: fill-box; transform-origin: center; transition: transform 200ms var(--ease-out); }
.site-header.menu-open .site-menu-btn path:first-child { transform: translateY(4px) rotate(45deg); }
.site-header.menu-open .site-menu-btn path:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1024px) {
    .site-menu-btn { display: inline-flex; }
    .site-nav { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.16); }
    .site-header.menu-open .site-nav { display: flex; animation: menu-in 220ms var(--ease-out); }
    .site-nav a { padding: 8px 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
    .site-nav .site-nav-contact { display: block; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 820px) {
    .site-header-inner { height: 56px; padding: 0 6px 0 20px; gap: 8px; }
    .site-brand-name { font-size: 18px; }
    .site-header .site-cta { display: none; }
    .site-nav { width: 100%; }
}
@media (max-width: 380px) {
    .site-header-inner { padding-left: 16px; }
    .site-brand-name { font-size: 17px; }
    .site-brand-role { font-size: 11px; }
}

/* Pabaigos juosta (tamsi) ir poraštė */
.cta-band { margin-top: auto; background: var(--dark); color: #fff; padding: clamp(48px, 6vw, 80px) var(--pad); }
.cta-band-in { max-width: var(--inner); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-band-title { margin: 0 0 8px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.cta-band-text { margin: 0; color: rgba(255,255,255,.7); font-size: clamp(16px, 1.4vw, 18px); }
.cta-band + .site-footer { margin-top: 0; }
.site-footer { margin-top: auto; padding: 24px var(--pad); color: var(--muted); font-size: 14px; display: flex; justify-content: center; gap: 8px 24px; flex-wrap: wrap; }

/* Konteineriai */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 24px var(--pad) clamp(56px, 7vw, 96px); }
.wrap-narrow { padding-top: clamp(32px, 5vw, 64px); }
.wrap-narrow > * { max-width: 800px; margin-left: auto; margin-right: auto; }
/* Galerija – per visą ekrano plotį (iki 2400 px); antraštė ir juosta – tokio pat pločio */
body.page-gallery { --wrap: 2400px; --inner: calc(2400px - 2 * var(--pad)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
/* Antraštinė dalis (pavadinimas, tekstas, forma) – per puslapio vidurį */
.hero-card { background: transparent; border: 0; border-radius: 0; padding: 0; text-align: center; }
.hero-card .eyebrow { justify-content: center; }
.hero-card .hero-message { margin-left: auto; margin-right: auto; }
.hero-card .id-form { margin-left: auto; margin-right: auto; }
.hero-card .section-title, .hero-card .folder-list { text-align: left; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.hero-title { margin: 0 0 16px; font-size: clamp(36px, 4.8vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.page-landing .hero-title { font-size: clamp(40px, 5vw, 66px); letter-spacing: -0.045em; line-height: 1.02; }
.hero-message { margin: 0; font-size: clamp(18px, 1.5vw, 20px); font-weight: 400; color: #444; max-width: 760px; }
.hero-hint { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
/* Paslaugos aprašymas pradžios puslapyje (tas pats tekstas – Google aprašymas) */
.hero-lead { margin: 0 auto 24px; max-width: 640px; font-size: 16px; line-height: 1.55; color: var(--muted); }
/* Slapukų juosta (tik kai nustatytas Google Analytics ID) */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 24px; max-width: 680px; margin: 0 auto; padding: 28px 32px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px rgba(0, 0, 0, .22); }
.consent[hidden] { display: none; }
.consent-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.consent-text { margin: 0; font-size: 16px; line-height: 1.55; color: #444; }
.consent-text a { color: inherit; }
.consent-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 20px; }
@media (max-width: 520px) {
    .consent { bottom: 12px; left: 12px; right: 12px; padding: 22px 20px; }
    .consent-title { font-size: 20px; }
    .consent-text { font-size: 15px; }
    .consent-actions { flex-direction: column-reverse; align-items: stretch; }
}
.section-title { margin: 48px 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.form-error { color: var(--danger); font-weight: 600; margin: 16px 0 0; }
.actions-row { margin: 32px 0 0; }

/* Mygtukai: juodos „piliulės“, antrinis – su rėmeliu */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 99px; border: 1px solid var(--text); background: var(--text); color: #fff; cursor: pointer; text-decoration: none !important; font: 600 15px/1.2 var(--font); white-space: nowrap; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary, .btn-accent { background: var(--text); border-color: var(--text); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: #d4d4d4; }
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover:not(:disabled), .btn-accent:hover:not(:disabled) { background: #333; border-color: #333; }
    .btn-secondary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) { background: var(--soft); border-color: var(--text); }
}
.btn-on-dark { background: #fff; border-color: #fff; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .btn-on-dark:hover { background: #e9e9e9; border-color: #e9e9e9; } }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 16px; }
.btn .count { opacity: .7; font-weight: 600; }

/* ID forma – šilto pilko fono dėžutėje */
.id-form { display: flex; gap: 8px; margin: 32px 0 0; max-width: 640px; flex-wrap: wrap; padding: clamp(16px, 2vw, 24px); background: var(--soft); border-radius: var(--radius); }
.id-form input { flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid #d4d4d4; border-radius: var(--radius); background: #fff; font-size: 16px; color: var(--text); transition: border-color 150ms ease, box-shadow 150ms ease; }
.id-form input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
/* Prieigos kodas: akutė „rodyti kodą“, neteisingas kodas – raudonas rėmelis ir lengvas sujudėjimas */
.code-field { position: relative; flex: 1 1 240px; min-width: 0; display: flex; }
.code-field input { flex: 1 1 auto; width: 100%; padding-right: 48px; }
.code-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.code-toggle:hover { color: var(--text); background: var(--soft); }
.code-toggle[aria-pressed="true"] { color: var(--text); }
.code-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.id-form input.is-wrong { border-color: var(--danger); background: #fff8f8; animation: shake .32s var(--ease-out); }
.id-form input.is-wrong:focus { box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* Galerijų sąrašas – numeruotos eilutės su plonomis linijomis */
.folder-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; text-align: left; counter-reset: row; border-top: 1px solid var(--line); }
.folder-list > li { counter-increment: row; }
.folder-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.folder-item::before { content: counter(row, decimal-leading-zero); flex: none; width: 32px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.folder-item.is-child { padding-left: 32px; }
.folder-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; }
.folder-item-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.folder-item-meta { font-size: 14px; font-weight: 400; color: #555; }
.folder-item-arrow { font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .folder-item:hover .folder-item-arrow { transform: translateX(4px); } .folder-item:hover .folder-item-title { text-decoration: underline; text-underline-offset: 3px; } }
.public-list { margin-top: 8px; }

/* Galerijos antraštė */
.gallery-hero { border: 0; padding: clamp(16px, 3vw, 32px) 0 8px; background: transparent; text-align: center; }
.gallery-hero .back-link { display: table; margin: 0 auto 16px; }
.gallery-title { margin: 0 0 16px; font-size: clamp(36px, 4.8vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.gallery-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--soft); border: 1px solid transparent; font-size: 14px; color: var(--muted); }
.pill strong { color: var(--text); font-weight: 600; }
.pill-keep-soon { background: #fdecec; border-color: #f3b4b4; color: #9b1c1c; }
.pill-importing { background: #fff6e5; border-color: #f7d9a6; color: #8a5a00; }
.pill-importing::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #f0a532; border-top-color: transparent; animation: spin 1s linear infinite; }
.gallery-note { margin: 24px auto 0; max-width: 1200px; padding: clamp(16px, 2vw, 24px) clamp(16px, 4vw, 48px); background: var(--soft); border: 1px solid transparent; border-radius: var(--radius); font-size: 15px; line-height: 1.6; color: #333; }
.gallery-note.note-yellow { background: #fbf6e4; }
.gallery-note.note-blue { background: #eef3f9; }
.gallery-note.note-green { background: #eef6f0; }
.gallery-note.note-red { background: #fbefed; }
.gallery-note.note-gray { background: var(--soft); }
.gallery-note.note-dark { background: var(--dark); color: #fff; }
.gallery-note.note-dark a { color: #fff; }
.gallery-note.note-none { background: transparent; padding-left: 0; padding-right: 0; }
.gallery-note p { margin: 0 0 8px; } .gallery-note p:last-child { margin-bottom: 0; }
/* Tušti pastraipų tarpai iš redaktoriaus nedidina bloko */
.gallery-note p.is-blank, .gallery-note p:empty { margin: 0; height: 4px; overflow: hidden; }
.gallery-note ul, .gallery-note ol { display: inline-block; margin: 8px 0; padding-left: 24px; text-align: left; }
.gallery-note h3 { margin: 0 auto 8px; max-width: 900px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; } .gallery-note h4 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.gallery-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.back-link:hover { color: var(--text); }

/* Įrankių juosta (kompiuteryje prilimpa po antrašte) */
.toolbar { position: sticky; top: 84px; z-index: 20; margin: 24px 0 16px; padding: 8px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(17,17,17,.07); border-radius: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 820px) { .toolbar { top: 76px; } }
/* Paslinkus: antraštė išslenka aukštyn, juosta užima jos vietą (app.js → body.bars-merged) */
.site-header { transition: transform 300ms var(--ease-out), opacity 200ms ease; }
body.bars-merged .site-header { transform: translateY(calc(-100% - 12px)); opacity: 0; }
body.bars-merged .site-header-inner { pointer-events: none; }
.toolbar { transition: top 300ms var(--ease-out); }
body.bars-merged .toolbar { top: 12px; }
.toolbar-brand, .toolbar-cta { display: none !important; }
.toolbar-brand { flex-direction: column; justify-content: center; min-height: 40px; padding: 0 16px 0 18px; margin-right: 8px; border-right: 1px solid var(--line); color: var(--text); line-height: 1.15; text-decoration: none !important; }
.toolbar-brand .site-brand-name { font-size: 18px; }
@media (min-width: 721px) { body.bars-merged .toolbar-brand { display: flex !important; animation: fade-in 250ms ease-out; } }
@media (min-width: 1280px) { body.bars-merged .toolbar-cta { display: inline-flex !important; animation: fade-in 250ms ease-out; } }
/* Siauresniame kompiuterio ekrane sujungta juosta glaudesnė, kad tilptų į vieną eilutę */
@media (min-width: 721px) and (max-width: 1279px) {
    body.bars-merged .toolbar .toolbar-field > span:not(.sr-only) { display: none; }
    body.bars-merged .toolbar-search input { width: 150px; }
    body.bars-merged .toolbar .btn { padding: 0 16px; }
    body.bars-merged .toolbar-brand .site-brand-role { display: none; }
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.toolbar-field select, .toolbar-field input { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; color: var(--text); }
.toolbar-field select { padding-right: 8px; }
.toolbar-field select:focus, .toolbar-field input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.toolbar-search input { width: 200px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; padding: 2px; background: #fff; }
.view-toggle button { border: 0; background: transparent; width: 36px; height: 34px; border-radius: 99px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.view-toggle button.is-active { background: var(--text); color: #fff; }
.view-toggle svg { width: 16px; height: 16px; fill: currentColor; }

/* Tinklelis (justified rows) */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.photo-grid .photo { position: relative; flex: 0 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.photo-grid .photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #f4f2ee 30%, #faf9f7 50%, #f4f2ee 70%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.photo-grid .photo.is-loaded::before, .photo-grid .photo.is-failed::before { animation: none; background: none; }
.photo-grid .photo.is-failed::before { background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b5' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center/32px no-repeat; }
.photo-grid .photo img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; position: relative; }
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }
.photo-grid .photo img.is-loaded { opacity: 1; }
.photo .photo-select { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); background: rgba(0,0,0,.28); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; z-index: 2; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.photo .photo-select::before { content: ""; position: absolute; inset: -12px; }
.photo:hover .photo-select, .photo.is-selected .photo-select { opacity: 1; }
.photo.is-selected .photo-select { background: var(--accent); border-color: #fff; }
.photo.is-selected .photo-select::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.photo.is-selected::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--accent); border-radius: var(--radius); box-shadow: inset 0 0 0 5px rgba(255,255,255,.85); pointer-events: none; }
.photo .photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 12px; opacity: 0; transition: opacity .15s; pointer-events: none; display: flex; justify-content: space-between; gap: 8px; }
.photo:hover .photo-caption { opacity: 1; }
.photo-caption .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo .photo-dl { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: none; align-items: center; justify-content: center; text-decoration: none; z-index: 2; }
.photo:hover .photo-dl { display: inline-flex; }
.photo .photo-dl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.photo .photo-tags { display: none; }

/* Sąrašo režimas */
.photo-grid.is-list { flex-direction: column; gap: 6px; }
.photo-grid.is-list .photo { display: grid; grid-template-columns: 96px 1fr auto auto; grid-template-areas: "img cap dl sel"; gap: 14px; align-items: center; width: 100% !important; height: auto !important; padding: 8px; background: #fff; border: 1px solid var(--line); }
.photo-grid.is-list .photo img { grid-area: img; width: 96px; height: 72px; border-radius: 6px; background: var(--soft); }
.photo-grid.is-list .photo .photo-caption { grid-area: cap; min-width: 0; }
.photo-grid.is-list .photo .photo-dl { grid-area: dl; }
.photo-grid.is-list .photo .photo-select { grid-area: sel; }
.photo-grid.is-list .photo .photo-caption { position: static; opacity: 1; background: none; color: var(--text); padding: 0; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; }
.photo-grid.is-list .photo-caption .meta { color: var(--muted); font-size: 12px; }
.photo-grid.is-list .photo .photo-dl { position: static; display: inline-flex; width: 40px; height: 40px; background: #fff; color: var(--text); border: 1px solid var(--line); }
.photo-grid.is-list .photo::before { display: none; }
.photo-grid.is-list .photo .photo-select { opacity: 1; position: relative; justify-self: end; margin-left: 8px; background: #fff; border-color: #c4ccd8; box-shadow: none; width: 28px; height: 28px; }
.photo-grid.is-list .photo .photo-select::before { inset: -10px; }
.photo-grid.is-list .photo.is-selected .photo-select { background: var(--accent); border-color: var(--accent); }
.photo-grid.is-list .photo.is-selected .photo-select::after { left: 9px; top: 5px; }
.photo-grid.is-list .photo.is-selected { background: var(--soft); border-color: var(--accent); }
.photo-grid.is-list .photo.is-selected::after { display: none; }
.photo-grid.is-list .photo .photo-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.photo-grid.is-list .photo .photo-tags span { font-size: 12px; background: var(--soft); color: #444; padding: 2px 7px; border-radius: 999px; }
.photo-grid.is-list .list-actions { display: flex; align-items: center; gap: 8px; }

.gallery-empty { padding: 48px 24px; text-align: center; background: var(--soft); border-radius: var(--radius); }
.gallery-empty-title { margin: 0; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.gallery-empty-hint { margin: 6px 0 0; color: var(--muted); }

.new-photos-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); z-index: 30; cursor: pointer; animation: toast-in .24s var(--ease-out); }
.grid-sentinel { height: 1px; }
.zip-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100% - 32px)); background: var(--text); color: #fff; padding: 12px 14px 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.35; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 31; animation: toast-in .24s var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }
/* Pažymėjus nuotraukas pranešimai pakyla virš apatinės juostos */
body.has-selection .zip-toast, body.has-selection .new-photos-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Pažymėtų nuotraukų juosta ekrano apačioje */
.select-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 24px); padding: 8px 8px 8px 10px; background: var(--dark); color: #fff; border-radius: 99px; box-shadow: 0 12px 36px rgba(0,0,0,.28); transform: translate(-50%, calc(100% + 32px)); opacity: 0; visibility: hidden; transition: transform .24s var(--ease-out), opacity .2s ease-out, visibility 0s linear .24s; }
.select-bar.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.select-bar-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1 1 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.select-bar-text strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.select-bar-text small { font-size: 12px; color: rgba(255,255,255,.7); }
.select-bar-text small:empty { display: none; }
.select-bar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.select-bar .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }
.select-bar .btn-primary { flex: 0 0 auto; background: #fff; border-color: #fff; color: var(--text); }
.select-bar .btn-primary:hover:not(:disabled) { background: #e9e9e9; border-color: #e9e9e9; }
body.has-selection .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.zip-toast-spinner { display: none; flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.zip-toast.is-spinning .zip-toast-spinner { display: block; }
.zip-toast-close { flex: 0 0 auto; margin-left: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; transition: opacity .15s ease-out; }
.lightbox.is-closing { opacity: 0; pointer-events: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .96); }
.lightbox-dialog { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; color: #fff; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
/* Viršutinė juosta: ženkliukai su užrašais (telefone – tik ženkliukai) */
.lb-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 99px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .12s var(--ease-out); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(255,255,255,.22); color: #fff; } }
.lb-btn:active { transform: scale(.94); }
.lb-btn svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn.is-selected { background: #fff; color: var(--text); }
.lb-btn.is-selected circle { fill: var(--text); stroke: var(--text); }
.lb-btn.is-selected path { stroke: #fff; stroke-width: 2.2; }
.lb-link { background: none; border: 0; padding: 0; color: rgba(255,255,255,.7); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lb-link:hover { color: #fff; }
.lightbox-top, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.lightbox-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-actions { display: flex; align-items: center; gap: 6px; }
.lightbox .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.lightbox .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.lightbox .btn-ghost.is-selected { background: #fff; border-color: #fff; color: var(--text); }
.lightbox .btn-primary { background: #fff; border-color: #fff; color: var(--text); }
.lightbox-close { width: 40px; padding: 0; justify-content: center; color: #fff; }
.lightbox-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; transition: opacity .2s; -webkit-user-drag: none; }
.lightbox-image.is-loading { opacity: .35; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; cursor: pointer; line-height: 1; padding: 0 0 4px; display: inline-flex; align-items: center; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .lightbox-nav:hover { background: rgba(255,255,255,.22); } }
.lightbox-nav:active { background: rgba(255,255,255,.24); }
.lightbox-nav.prev { left: 16px; } .lightbox-nav.next { right: 16px; }
.lightbox-spinner { position: absolute; width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.lightbox-counter { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
.lightbox-note { font-size: 13px; color: rgba(255,255,255,.6); text-align: right; }
.lightbox-status { font-size: 13px; }
.lightbox-status.is-error { color: #ff9b91; } .lightbox-status.is-ok { color: #8fdca8; }
.lightbox-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.tag-list span { font-size: 12px; background: rgba(255,255,255,.12); padding: 3px 9px; border-radius: 999px; }
.tag-form { display: flex; gap: 6px; }
.tag-form input { padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; width: 220px; font-size: 13px; }
.tag-form input::placeholder { color: #9aa5b5; }
.lightbox .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.delete-request-form { display: flex; flex-direction: column; gap: 6px; width: min(420px, 100%); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 10px 12px; }
.delete-request-title { font-size: 14px; color: #fff; }
.delete-request-form textarea, .delete-request-form input { font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; width: 100%; resize: vertical; }
.delete-request-form textarea::placeholder, .delete-request-form input::placeholder { color: #9aa5b5; }
.delete-request-actions { display: flex; gap: 6px; justify-content: flex-end; }

@keyframes spin { to { transform: rotate(360deg); } }

body.lightbox-open { overflow: hidden; position: fixed; left: 0; right: 0; width: 100%; }
.lightbox, .lightbox button, .lightbox a, .photo .photo-select, .photo .photo-dl, .btn, .view-toggle button { touch-action: manipulation; }
/* Gestus (priartinimą, stumdymą, braukimą) tvarko JS – naršyklė neturi kištis. */
.lightbox-stage { touch-action: none; overflow: hidden; }
.lightbox-image { transform-origin: center center; will-change: transform; -webkit-touch-callout: none; }
.lightbox.is-zoomed .lightbox-image { cursor: grab; }
.lightbox.is-zoomed .lightbox-nav { display: none; }
.lightbox-nav, .lightbox-close { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
    .photo .photo-select { opacity: 1; background: rgba(0,0,0,.4); }
}

@media (max-width: 720px) {
    .toolbar { margin: 16px 0; padding: 8px; gap: 8px; border-radius: var(--radius); }
    .toolbar-right { width: 100%; flex-wrap: nowrap; gap: 6px; }
    .toolbar-field { min-width: 0; }
    .toolbar-field span:not(.sr-only) { display: none; }
    .toolbar-field select { min-width: 0; max-width: 150px; padding: 0 4px 0 12px; }
    .toolbar-field input { padding: 0 12px; }
    .toolbar-search { flex: 1 1 80px; min-width: 0; }
    .toolbar-search input { width: 100%; min-width: 0; }
    .view-toggle { flex: 0 0 auto; }
    .lightbox-title { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }
    .lightbox-actions { flex: 0 0 auto; gap: 6px; }
    .lb-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
    .lb-btn .lb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .lb-btn svg { width: 20px; height: 20px; }
    .btn { padding: 0 16px; font-size: 14px; min-height: 44px; }
    .btn-sm { min-height: 40px; }
    .id-form .btn { flex: 1 1 100%; }
    .photo-grid { gap: 4px; }
    .photo .photo-select { opacity: 1; width: 28px; height: 28px; top: 6px; left: 6px; background: rgba(0,0,0,.4); }
    .photo.is-selected .photo-select::after { left: 9px; top: 5px; }
    .photo .photo-dl { display: none !important; }
    .photo-grid.is-list .photo { grid-template-columns: 80px 1fr auto auto; gap: 10px; }
    .photo-grid.is-list .photo .photo-dl { display: inline-flex !important; }
    .photo-grid.is-list .photo img { width: 80px; height: 60px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 26px; opacity: .85; }
    .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
    .lightbox-top, .lightbox-bottom { padding: 8px 10px; }
    .lightbox-note { text-align: left; font-size: 11px; line-height: 1.3; opacity: .85; }
    .lightbox-side { align-items: stretch; width: 100%; }
    .lightbox-bottom { flex-direction: column; align-items: stretch; gap: 6px; }
    .tag-form input { width: 100%; }
    .tag-form { width: 100%; }
    .tag-list { justify-content: flex-start; }
    /* Telefone įrankių juosta nebeprilimpa – pažymėtų nuotraukų veiksmai yra apatinėje juostoje */
    .toolbar { position: static; box-shadow: none; background: var(--soft); border-color: transparent; }
    .select-bar { left: 12px; right: 12px; width: auto; max-width: none; transform: translateY(calc(100% + 32px)); padding-left: 8px; }
    .select-bar.is-visible { transform: none; }
    .select-bar .btn .count { display: none; }
}

/* Poaplankiai: kortelės su viršeliu, galima pažymėti ir atsisiųsti kelis vienu archyvu */
/* Poaplankiai – kompaktiška juostelė (maža nuotrauka + pavadinimas), kad galerijos nuotraukos matytųsi iš karto žemiau.
   Visa kortelė paspaudžiama (pavadinimo nuoroda ištempta per kortelę), varnelė – kortelės dešinėje. */
.folders { margin: 32px 0 0; }
.folders-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.folders-head .section-title { margin: 0; }
.folders-head .muted { color: var(--muted); font-weight: 400; }
.folders-head .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.folders-hint { margin: -8px 0 16px; font-size: 14px; color: var(--muted); }
.folder-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.folder-card { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; max-width: 100%; padding: 8px 16px 8px 8px; background: var(--soft); border: 1px solid transparent; border-radius: var(--radius); transition: border-color 150ms ease, background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .folder-card:hover { border-color: #d4d4d4; background: #efece6; } }
.folder-card.is-picked { border-color: var(--accent); background: #fff; }
/* Viršelis – visas kadras savo proporcijomis (tik aukštis fiksuotas) */
.folder-cover { flex: none; display: flex; align-items: center; justify-content: center; height: 56px; min-width: 56px; }
.folder-cover img { display: block; height: 56px; width: auto; max-width: 96px; object-fit: contain; border-radius: 6px; }
.folder-cover-empty { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 6px; background: #e8e5df; font-size: 24px; }
.folder-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.folder-title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--text); text-decoration: none !important; overflow-wrap: anywhere; }
.folder-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.folder-meta { font-size: 13px; color: #555; }
.folder-card::after { content: "→"; flex: none; margin-left: auto; padding-left: 8px; font-weight: 600; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .folder-card:hover::after { transform: translateX(4px); } }
.folder-check { position: relative; z-index: 1; order: 3; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 -8px 0 0; border-radius: 50%; cursor: pointer; }
.folder-check:hover { background: rgba(0,0,0,.05); }
.folder-check span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.folder-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.folder-card:has(.folder-check)::after { display: none; }
/* Galerija be savo nuotraukų (tik poaplankiai): lieka tik „Atsisiųsti visas“ */
.toolbar-folders-only .toolbar-right, .toolbar-folders-only #btn-select-all, .toolbar-folders-only #btn-deselect { display: none; }
/* Telefone – viena slenkama eilė (per visą ekrano plotį), kad neužimtų aukščio */
@media (max-width: 720px) {
    .folder-grid { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; scroll-padding: 0 var(--pad); scroll-snap-type: x mandatory; scrollbar-width: none; }
    .folder-grid::-webkit-scrollbar { display: none; }
    .folder-card { flex: none; max-width: 80%; scroll-snap-align: start; }
    .folder-title { overflow-wrap: normal; }
}

/* „Pranešti, kai atsiras nuotraukos“ */
.notify-box { margin: 24px auto 0; max-width: 760px; padding: 16px 24px; border: 0; background: var(--soft); border-radius: var(--radius); text-align: left; font-size: 15px; }
.notify-box.is-done { background: #eef6f0; border-color: #bfe6c9; transition: opacity .5s ease; }
.notify-box.is-hiding { opacity: 0; }
.feedback-box { margin: 48px auto 8px; max-width: 560px; padding: 24px; border: 0; background: var(--soft); border-radius: var(--radius); text-align: center; font-size: 15px; transition: opacity .5s ease; }
.feedback-box.is-top { margin: 24px auto 0; max-width: 760px; }
.feedback-anchor { display: block; position: relative; top: -80px; visibility: hidden; }
.feedback-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.feedback-hint { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.feedback-stars { display: inline-flex; gap: 2px; margin-bottom: 8px; }
.feedback-star { background: none; border: 0; padding: 2px 3px; font-size: 30px; line-height: 1; color: #d0d5dd; cursor: pointer; }
.feedback-star.is-on { color: #f5a524; }
.feedback-box textarea { display: block; width: 100%; box-sizing: border-box; padding: 12px 16px; border: 1px solid #d4d4d4; border-radius: var(--radius); background: #fff; font: inherit; resize: vertical; }
.feedback-actions { margin-top: 16px; }
.feedback-box.is-done { background: #eef6f0; }
.feedback-box.is-done .feedback-title { color: var(--ok); }
.feedback-box.is-hiding { opacity: 0; }
.notify-title { font-weight: 600; margin-bottom: 8px; color: var(--text); }
.notify-box.is-done .notify-title { margin: 0; color: var(--ok); }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-row input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid #d4d4d4; border-radius: var(--radius); background: #fff; font: inherit; font-size: 16px; }
.notify-row input:focus, .feedback-box textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.notify-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.notify-privacy { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.notify-status { margin: 8px 0 0; font-size: 14px; color: var(--danger); }

/* Privatumo politika */
.privacy { max-width: 820px; margin: 0; text-align: left; line-height: 1.65; padding: clamp(16px, 3vw, 32px) 0; border: 0; }
.privacy h1 { margin-top: 0; font-size: clamp(36px, 4.8vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.privacy h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 32px 0 8px; }
.privacy ul { padding-left: 20px; }
.privacy code { background: var(--soft); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.site-footer .footer-link { color: inherit; font-weight: 400; }
.site-footer .footer-link:hover { color: var(--text); }

/* Renginys su poaplankiais: „Atsisiųsti viską“ viršuje, „Kitos nuotraukos“ – atskira dalis */
.hero-actions { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.own-photos-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 0; flex-wrap: wrap; }
.own-photos-head .section-title { margin: 0; }
.own-photos-head .muted { color: var(--muted); font-weight: 400; }
.own-photos-head[hidden], .toolbar[hidden] { display: none; }
/* Sutikimas naujienoms: paprasta varnelė, nepažymėta (BDAR) */
.notify-check { cursor: pointer; }
.notify-check input { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
.notify-check strong { display: block; color: var(--text); font-weight: 600; }
.notify-check small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Didelis archyvas su poaplankiais: „ruošiama – palaukite arba palikite el. paštą“ (langas galerijoje ir /zip puslapis) */
.zipw-modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.zipw-modal[hidden] { display: none; }
.zipw-modal { animation: fade-in .18s ease-out; }
.zipw-modal .zipw-dialog { animation: dialog-in .22s var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: scale(.96); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
.zipw-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 32px 32px 24px; text-align: left; border: 0; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.zipw-dialog h2 { margin: 0 40px 16px 0; font-size: 28px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.zipw-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; color: var(--text); }
.zipw-lead { margin: 0; color: var(--text); line-height: 1.5; }
.zipw-progress { margin: 14px 0 0; }
.zipw-progress[hidden] { display: none; }
.zipw-bar { height: 8px; border-radius: 99px; background: #e8e5df; overflow: hidden; }
.zipw-bar span { display: block; height: 100%; min-width: 2%; background: var(--accent); border-radius: 999px; transition: width .6s ease; }
.zipw-status { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.zipw-status[hidden] { display: none; }
.zipw-hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
/* „Atsisiųsti“ langas: visa galerija vienu failu + poaplankiai atskirai */
.dl-alert { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); background: #fbf6e4; color: #6b4e00; font-size: 14px; }
.dl-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.dl-whole { border-top: 0; padding-top: 4px; }
.dl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-info strong { overflow-wrap: anywhere; }
.dl-meta { color: var(--muted); font-size: 14px; }
.dl-status { font-size: 13px; color: #6b4e00; }
.dl-info .zipw-bar { margin-top: 6px; }
.dl-action { flex: none; }
.dl-action .btn { white-space: nowrap; }
.dl-parts-title { margin: 24px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl-parts { list-style: none; margin: 0; padding: 0; }
.dl-dialog .zipw-form { margin-top: 10px; }
.zipw-now { margin: 16px 0 0; font-size: 14px; }
.zipw-now a { font-weight: 600; }
.zipw-now small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.zip-wait .notify-box { text-align: left; }
.zip-wait .hero-message { font-size: 16px; font-weight: 400; line-height: 1.5; }
.zip-wait .zipw-status { font-size: 16px; }
@media (max-width: 600px) {
    .zipw-modal { align-items: flex-end; padding: 0; }
    .zipw-dialog { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 24px 16px calc(18px + env(safe-area-inset-bottom)); }
    .zipw-modal .zipw-dialog { animation: sheet-in .28s var(--ease-drawer); }
}

/* Naudotojas nenori judesio: paliekame tik išryškėjimą, be slinkimo, mastelio ir sujudėjimo */
@media (prefers-reduced-motion: reduce) {
    .zipw-modal .zipw-dialog, .zip-toast, .new-photos-toast { animation: fade-in .18s ease-out !important; }
    .id-form input.is-wrong { animation: none; }
    .btn:active:not(:disabled), .lb-btn:active { transform: none; }
    .select-bar, .select-bar.is-visible { transition: opacity .18s ease-out, visibility 0s linear .18s; }
    .select-bar.is-visible { transition-delay: 0s; transform: translate(-50%, 0); }
    .folder-item-arrow, .site-menu-btn path, .toolbar { transition: none; }
    .site-header { transition: opacity 200ms ease; }
    body.bars-merged .site-header { transform: none; }
    .site-header.menu-open .site-nav { animation: fade-in .18s ease-out; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
    .select-bar, .select-bar.is-visible { transform: none; }
}

/* Įžanga: taškas centre išsiskleidžia per visą ekraną, iš apačios išnyra vardas (ir galerijos pavadinimas), tada uždanga pakyla.
   Viskas CSS – baigiasi ir be JS; app.js tik pašalina elementą ir leidžia praleisti paspaudus. */
/* Kada uždanga pakyla: vardas matomas ~1,1 s, su galerijos pavadinimu ~1,5 s – spėja perskaityti */
body.has-intro { --intro-out: 1800ms; }
body.has-intro.intro-titled { --intro-out: 2200ms; }
/* Baltas pagrindas nuo pirmo kadro – puslapis neprasišviečia prieš tašką */
.intro { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; padding: 24px var(--pad); cursor: pointer; animation: intro-out 650ms cubic-bezier(0.76, 0, 0.24, 1) var(--intro-out) forwards; }
.intro-bg { position: absolute; inset: 0; background: var(--dark); clip-path: circle(0 at 50% 50%); animation: intro-dot 800ms forwards; }
.intro-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff; }
.intro-line { display: block; overflow: hidden; padding-bottom: .08em; }
.intro-line > span { display: block; transform: translateY(105%); animation: intro-line 650ms var(--ease-out) 520ms forwards; }
.intro-name { font-size: clamp(40px, 7vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.intro-role { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.intro-role > span { animation-delay: 600ms; }
.intro-title { margin-top: 16px; max-width: 900px; font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: rgba(255,255,255,.85); text-wrap: balance; }
.intro-title > span { animation-delay: 700ms; }
.intro.is-skipping { animation: intro-skip 200ms ease-out forwards; }
@keyframes intro-dot {
    0% { clip-path: circle(0 at 50% 50%); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
    22% { clip-path: circle(7px at 50% 50%); }
    40% { clip-path: circle(7px at 50% 50%); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
    100% { clip-path: circle(75vmax at 50% 50%); }
}
@keyframes intro-line { to { transform: none; } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes intro-skip { to { opacity: 0; visibility: hidden; } }
/* Puslapis po uždanga lengvai pakyla (tik animacijos metu – fill: backwards, kad neliktų transform) */
body.has-intro main, body.has-intro .site-header { animation: page-rise 800ms var(--ease-out) var(--intro-out) backwards; }
@keyframes page-rise { from { transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) {
    .intro { animation: intro-skip 300ms ease-out var(--intro-out) forwards; }
    .intro-bg { clip-path: none; animation: none; }
    .intro-line > span { transform: none; animation: none; }
    body.has-intro main, body.has-intro .site-header { animation: none; }
}
