/* کارت تولد پاییزی، Mina Invite */
@font-face { font-family: "AK Vazirmatn"; src: url("../fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "AK Vazirmatn"; src: url("../fonts/vazirmatn-arabic-700-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "AK Vazirmatn"; src: url("../fonts/vazirmatn-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "AK Vazirmatn"; src: url("../fonts/vazirmatn-latin-700-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "AK Lalezar"; src: url("../fonts/lalezar-arabic-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "AK Lalezar"; src: url("../fonts/lalezar-latin-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --cream: #fffcf7; --paper: #fbf3e6; --paper2: #f5e8d3; --page: #efe4d2;
  --pumpkin: #d9772b; --pumpkin-d: #b25e1e; --rust: #b4532a; --brown: #6b4a32; --ink: #4a3324; --muted: #8a6b52;
  --sage: #8fa07e; --berry: #8e3b3b; --line: #ead8bf;
  --display: "AK Lalezar", "AK Vazirmatn", Tahoma, sans-serif;
  --body: "AK Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--page); color: var(--ink); font-family: var(--body); }
body { min-height: 100vh; -webkit-tap-highlight-color: transparent; }
body.locked { overflow: hidden; height: 100%; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 2px; }

.card { max-width: 440px; margin: 0 auto; background: var(--paper); overflow: hidden; position: relative; box-shadow: 0 10px 40px rgba(107, 74, 50, .18); min-height: 100vh; }
.h { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--rust); line-height: 1.35; text-wrap: balance; }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.8; }
.sec { position: relative; padding: 34px 20px; text-align: center; }

/* ---------- ابزار بالای کارت ---------- */
.tools { position: fixed; top: max(10px, env(safe-area-inset-top)); inset-inline: 0; margin: 0 auto; max-width: 440px; display: flex; justify-content: space-between; padding: 0 12px; z-index: 30; pointer-events: none; }
.tools > * { pointer-events: auto; }
.langs { display: flex; gap: 4px; background: rgba(255, 252, 247, .88); border-radius: 99px; padding: 3px; box-shadow: 0 3px 12px rgba(107, 74, 50, .15); }
.langs a { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--brown); text-decoration: none; }
.langs a[aria-current] { background: var(--pumpkin); color: #fff; }
.music { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 252, 247, .9); color: var(--rust); box-shadow: 0 3px 12px rgba(107, 74, 50, .15); display: grid; place-items: center; }
.music svg { width: 20px; height: 20px; }
.music.on svg { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ورودی ابرها ---------- */
.intro { position: fixed; inset: 0; margin: 0 auto; max-width: 440px; z-index: 40; background: linear-gradient(#f4e3cb, #fbf3e6); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 0; width: 100%; color: inherit; transition: opacity 1.1s ease .7s, visibility 0s linear 1.9s; }
.intro .c { position: absolute; width: 62%; transition: transform 1.6s cubic-bezier(.6, 0, .3, 1); pointer-events: none; }
.intro .c1 { right: -14%; top: -4%; transform: rotate(90deg); }
.intro .c2 { left: -16%; top: 6%; transform: rotate(-90deg); }
.intro .c3 { right: -8%; bottom: 6%; transform: rotate(80deg); width: 56%; }
.intro .c4 { left: -6%; bottom: -6%; transform: rotate(-84deg); width: 58%; }
.intro .c5 { left: 20%; top: 28%; transform: rotate(95deg); width: 40%; opacity: .8; }
.intro .c6 { left: 14%; top: -16%; transform: rotate(-92deg); width: 66%; }
.intro .fox { width: 42%; animation: bob 3s ease-in-out infinite; position: relative; z-index: 2; pointer-events: none; }
.intro .t { position: relative; z-index: 3; text-align: center; margin-top: 10px; padding: 0 16px; pointer-events: none; }
.intro .t b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.4; color: var(--rust); text-wrap: balance; }
.intro .t span { display: block; font-size: 14px; color: var(--brown); }
.intro .tap { margin-top: 14px; display: inline-block; background: #fff; border-radius: 99px; padding: 8px 18px; font-size: 13px; color: var(--rust); box-shadow: 0 4px 14px rgba(180, 83, 42, .2); animation: pulse 1.6s ease-in-out infinite; }
.intro.open { opacity: 0; visibility: hidden; pointer-events: none; }
.intro.open .c1, .intro.open .c3 { transform: translateX(120%) rotate(90deg); }
.intro.open .c2, .intro.open .c4 { transform: translateX(-120%) rotate(-90deg); }
.intro.open .c5 { transform: translateY(-140%) rotate(95deg); }
.intro.open .c6 { transform: translateY(-140%) rotate(-92deg); }
.intro.open .fox, .intro.open .t { transform: scale(1.15); opacity: 0; transition: all .8s; }
@keyframes pulse { 50% { transform: scale(1.06); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- صفحه‌ی اول ---------- */
.hero { position: relative; background: var(--cream); }
.hero .bg { width: 100%; }
.hero .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 9%; }
.stars { width: 78%; margin: 0 auto; transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(1.4deg); } }
.kicker { margin-top: 6%; font-size: 14px; color: var(--brown); background: rgba(255, 252, 247, .85); padding: 2px 12px; border-radius: 99px; }
.name { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 20vw, 92px); line-height: 1.05; color: var(--rust); margin-top: 4px; text-shadow: 0 3px 0 #f3d7b4; max-width: 90%; text-align: center; overflow-wrap: anywhere; }
.age { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 800; color: var(--brown); font-size: 16px; }
.age i { font-style: normal; font-family: var(--display); font-weight: 400; min-width: 52px; height: 52px; padding: 4px 8px 0; border-radius: 26px; background: var(--pumpkin); color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 4px 0 var(--pumpkin-d); }
.hero .fox { width: 42%; margin-top: 2%; animation: bob 3.4s ease-in-out infinite; }
.fall { position: absolute; top: -8%; width: 26px; opacity: .9; animation: fall linear infinite; pointer-events: none; z-index: 3; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(18px, 25vh) rotate(90deg); } 50% { transform: translate(-14px, 50vh) rotate(180deg); } 75% { transform: translate(16px, 75vh) rotate(270deg); } 100% { transform: translate(0, 105vh) rotate(360deg); opacity: .2; } }
.scroll { position: absolute; bottom: 1.2%; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--brown); }
.scroll::after { content: ""; display: block; width: 10px; height: 10px; margin: 6px auto 0; border-left: 2px solid var(--rust); border-bottom: 2px solid var(--rust); transform: rotate(-45deg); animation: bob 1.6s infinite; }

/* ---------- متن دعوت در تاج گل ---------- */
.wreath { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 666 / 635; }
.wreath > img.wr { position: absolute; inset: 0; width: 100%; height: 100%; }
.wreath .txt { position: absolute; inset: 20% 20% 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: clamp(12px, 3.4vw, 14px); line-height: 1.9; color: var(--ink); }
[dir="ltr"] .wreath .txt { line-height: 1.6; }
.wreath .txt b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--berry); line-height: 1.4; }
.wreath .txt p { overflow-wrap: anywhere; }
.mouse { width: 34%; position: absolute; left: -4%; bottom: -8%; z-index: 2; transform: rotate(-4deg); }

/* ---------- تقویم روی ریسه‌ی برگ ---------- */
.calwrap { position: relative; margin: 8px -20px 0; }
.garland { width: 100%; position: relative; z-index: 3; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; }
.cal { position: relative; z-index: 2; width: 82%; margin: -18px auto 0; background: #fff; border-radius: 6px 6px 14px 14px; padding: 26px 14px 16px; box-shadow: 0 12px 28px rgba(107, 74, 50, .18); transform-origin: 50% -40px; animation: swing 5s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.peg { position: absolute; top: -10px; width: 12px; height: 22px; background: #c08a55; border-radius: 3px; box-shadow: inset 0 0 0 2px #a8743f; z-index: 2; }
.peg.r { right: calc(22% - 5px); } .peg.l { left: calc(22% - 5px); }
.cal .m { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--rust); }
.cal .y { font-size: 12px; color: #9a7b62; margin-top: -4px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.grid .wd { font-size: 11px; color: var(--sage); font-weight: 800; padding-bottom: 4px; }
.grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #6b5745; }
.grid .wd { aspect-ratio: auto; }
.grid .hol { color: var(--berry); }
.grid .day { position: relative; background: var(--pumpkin); color: #fff; font-weight: 800; box-shadow: 0 3px 0 var(--pumpkin-d); animation: beat 1.4s ease-in-out infinite; }
.grid .day::after { content: ""; position: absolute; top: -9px; right: -6px; width: 20px; height: 20px; background: url("../img/el/leaf3.webp") center / contain no-repeat; transform: rotate(20deg); }
@keyframes beat { 50% { transform: scale(1.12); } }
.when { margin-top: 12px; font-weight: 800; color: var(--brown); font-size: 15px; }
.count { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.count div { background: #fff; border-radius: 14px; padding: 8px 0; width: 68px; box-shadow: 0 4px 0 var(--line); }
.count b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--pumpkin); line-height: 1.2; }
.count small { font-size: 11px; color: var(--muted); }
.count-l { margin-top: 8px; font-size: 13px; color: var(--muted); }
.count-msg { margin-top: 20px; font-family: var(--display); font-size: 22px; color: var(--pumpkin); }

/* ---------- قاب عکس ---------- */
.keep { position: relative; width: 100%; max-width: 400px; margin: 14px auto 0; aspect-ratio: 590 / 512; }
.keep .ph { position: absolute; left: 26.6%; top: 29%; width: 53.2%; height: 43.8%; object-fit: cover; background: #f2ddbf; }
.keep .fr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.keep-cap { margin-top: 6px; font-size: 13px; color: var(--brown); font-weight: 600; }

/* ---------- کجا و کِی ---------- */
.cottage { width: 86%; margin: 6px auto -10px; position: relative; z-index: 1; }
.info { background: #fff; border-radius: 22px; padding: 22px 18px 18px; box-shadow: 0 8px 24px rgba(107, 74, 50, .12); position: relative; text-align: start; }
.row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.8; }
.row:last-of-type { border: 0; }
.row .ic { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--paper2); display: grid; place-items: center; color: var(--rust); }
.row .ic svg { width: 18px; height: 18px; }
.row > div { min-width: 0; overflow-wrap: anywhere; }
.row b { display: block; color: var(--rust); font-size: 13px; }
.row a { color: var(--rust); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { flex: 1 1 120px; border: 0; border-radius: 99px; padding: 11px 8px; font: 800 14px var(--body); background: var(--pumpkin); color: #fff; box-shadow: 0 4px 0 var(--pumpkin-d); text-decoration: none; text-align: center; display: inline-block; }
.btn.alt { background: var(--paper2); color: var(--brown); box-shadow: 0 4px 0 #e2cbaa; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pumpkin-d); }
.btn[disabled] { opacity: .6; }

/* ---------- برنامه ---------- */
.prog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.p { background: #fff; border-radius: 20px; padding: 14px 10px; box-shadow: 0 4px 0 var(--line); }
.p img { height: 66px; margin: 0 auto 6px; object-fit: contain; }
.p b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--brown); line-height: 1.4; overflow-wrap: anywhere; }
.p small { font-size: 12px; color: var(--pumpkin); font-weight: 800; }
.prog.odd .p:last-child { grid-column: 1 / -1; }

/* ---------- تأیید حضور ---------- */
.rsvp { background: linear-gradient(var(--paper), #f4e6d0); }
.teddy { width: 40%; margin: 0 auto 6px; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.form { background: #fff; border-radius: 22px; padding: 18px; text-align: start; box-shadow: 0 8px 24px rgba(107, 74, 50, .12); margin-top: 10px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--brown); margin: 12px 0 6px; }
.inp { width: 100%; border: 2px solid #f0e2cc; border-radius: 14px; padding: 10px 12px; font: 14px var(--body); color: var(--ink); background: var(--cream); }
textarea.inp { resize: vertical; min-height: 84px; }
.inp:focus { outline: none; border-color: var(--pumpkin); }
.yn { display: flex; gap: 8px; }
.yn button { flex: 1; text-align: center; border-radius: 14px; padding: 11px 4px; font-weight: 800; font-size: 14px; border: 2px solid #f0e2cc; color: var(--brown); background: #fff; }
.yn button[aria-pressed="true"] { background: #fdebd8; border-color: var(--pumpkin); color: var(--rust); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; background: var(--paper2); border: 0; font-weight: 800; font-size: 20px; color: var(--brown); line-height: 1; }
.stepper b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--rust); min-width: 26px; text-align: center; }
.more[hidden] { display: none; }
.msg { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--rust); text-align: center; min-height: 1px; }
.msg.err { color: #a3384a; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- درخت یادگاری ---------- */
.tree-sec { background: linear-gradient(#f4e6d0, #f7ecdb); }
.tree { position: relative; width: 92%; max-width: 380px; margin: 14px auto 0; aspect-ratio: 632 / 900; }
.tree > img { width: 100%; height: 100%; }
.leaf { position: absolute; width: 14%; aspect-ratio: 1; margin: -7% 0 0 -7%; padding: 0; border: 0; background: none; transform: rotate(var(--r)); transform-origin: 50% 50%; animation: leafsway 4s ease-in-out infinite; animation-delay: var(--d); }
.leaf img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(90, 50, 20, .25)); pointer-events: none; }
.leaf.new { animation: leafdrop 1.6s cubic-bezier(.3, .6, .4, 1) both; }
.leaf:hover img, .leaf:focus-visible img { transform: scale(1.15); }
@keyframes leafsway { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) + 8deg)); } }
@keyframes leafdrop { 0% { transform: translateY(-260px) rotate(-120deg) scale(1.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: rotate(var(--r)); } }
.leaf-count { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--rust); background: #fff; padding: 3px 14px; border-radius: 99px; }
.tree-empty { font-size: 13px; color: var(--muted); margin-top: 4px; }

.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(74, 51, 36, .45); }
.sheet[hidden] { display: none; }
.note { position: relative; width: min(340px, 100%); background: #fffaf1; border-radius: 22px; padding: 26px 20px 20px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: pop .35s cubic-bezier(.3, 1.4, .6, 1); }
.note img { width: 70px; height: 70px; object-fit: contain; margin: -62px auto 6px; filter: drop-shadow(0 4px 6px rgba(90, 50, 20, .3)); }
.note b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--rust); }
.note p { margin-top: 8px; font-size: 15px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); max-height: 50vh; overflow: auto; }
.note .btn { margin-top: 16px; width: 150px; flex: none; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* ---------- پایان ---------- */
.foot { padding: 30px 20px calc(26px + env(safe-area-inset-bottom)); text-align: center; position: relative; background: #f4e6d0; }
.pumpkin { width: 44%; margin: 0 auto; }
.foot .h { margin-top: 8px; }
.brand { margin-top: 18px; font-size: 11px; color: #9a7b62; }
.brand b { color: var(--rust); }
.bow { width: 92px; margin: 0 auto -6px; position: relative; z-index: 4; display: block; }
.leafdeco { position: absolute; width: 56px; opacity: .95; }

[dir="ltr"] .mouse { left: auto; right: -4%; transform: rotate(4deg) scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- آلبوم عکس ---------- */
.album-sec { padding-top: 14px; }
.album { position: relative; margin: 10px -20px 0; }
.album > .garland { position: absolute; top: 0; left: 0; right: 0; width: 100%; z-index: 1; pointer-events: none; }
.alb-track { position: relative; z-index: 2; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 11.4% 19% 26px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.alb-track::-webkit-scrollbar { display: none; }
.alb-track:focus-visible { outline-offset: -4px; }
.album.one .alb-track { justify-content: center; overflow: visible; }
.pol { position: relative; flex: 0 0 62%; scroll-snap-align: center; margin: 0; background: #fffaf1; padding: 10px 10px 12px; border-radius: 4px; box-shadow: 0 10px 22px rgba(107, 74, 50, .22), 0 1px 0 #ead8bf; transform: rotate(var(--r)) scale(.86); transform-origin: 50% -14px; opacity: .72; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; }
.pol.on, .album.one .pol { transform: rotate(calc(var(--r) * .5)) scale(1); opacity: 1; animation: polsway 5.5s ease-in-out infinite; }
@keyframes polsway { 0%, 100% { transform: rotate(calc(var(--r) * .5 - .8deg)); } 50% { transform: rotate(calc(var(--r) * .5 + .8deg)); } }
.pol .peg { top: -14px; left: calc(50% - 6px); z-index: 4; }
.pol .ph { display: block; width: 100%; padding: 0; border: 0; background: #f2ddbf; border-radius: 2px; overflow: hidden; cursor: zoom-in; }
.pol .ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pol figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--brown); line-height: 1.6; overflow-wrap: anywhere; }
.alb-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 2px; }
.alb-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper2); color: var(--brown); display: grid; place-items: center; box-shadow: 0 3px 0 #e2cbaa; }
.alb-btn svg, .lb-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .alb-btn svg, [dir="ltr"] .lb-go svg { transform: scaleX(-1); }
.alb-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #e2cbaa; }
.alb-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60%; }
.alb-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e2cbaa; transition: width .3s, background .3s; }
.alb-dots i.on { width: 20px; border-radius: 99px; background: var(--pumpkin); }
.alb-leaf { position: absolute; width: 30px; z-index: 5; pointer-events: none; animation: albleaf 1.8s ease-in forwards; }
@keyframes albleaf { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(-22px, 110px) rotate(140deg); } 100% { transform: translate(14px, 240px) rotate(300deg); opacity: 0; } }

.lb { position: fixed; inset: 0; z-index: 60; background: rgba(43, 29, 20, .97); display: grid; place-items: center; padding: 56px 14px 70px; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100%; text-align: center; animation: pop .3s ease-out; }
.lb img { max-width: min(100%, 720px); max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; margin: 0 auto; border: 8px solid #fffaf1; border-radius: 4px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); background: #fffaf1; }
.lb figcaption { margin-top: 12px; color: #fbeedd; font-size: 14px; font-weight: 600; line-height: 1.7; }
.lb-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 250, 241, .14); color: #fff; font-size: 28px; line-height: 1; }
.lb-go { position: absolute; bottom: 16px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 250, 241, .16); color: #fff; display: grid; place-items: center; }
.lb-go.prev { inset-inline-start: 18px; } .lb-go.next { inset-inline-end: 18px; }
.lb-n { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: #e9d6bc; font-size: 13px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pol, .pol.on { animation: none; transition: none; } .alb-leaf { display: none; } }
