/* Theme "Klasik". Other themes (assets/themes/*.css) load after this file and override these variables. */
:root {
  --bg: #faf6f0;
  --ink: #3d3027;
  --muted: #6b5a4c;
  --accent: #9a7b5b;
  --accent-ink: #7a5c40; /* accent for small text and filled buttons (AA contrast) */
  --on-accent: #fff;
  --line: #e6dccf;
  --card: #fffdf9;
  --panel: #efe5d8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --display: var(--serif); /* couple names; script themes swap this */
  --photo-radius: 110px 110px 8px 8px; /* arch */
  --glass: color-mix(in srgb, var(--card) 72%, transparent); /* cards over a page background (.cards, capsule cover) */
  --glass-line: color-mix(in srgb, #fff 55%, transparent);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 1rem/1.7 var(--sans); text-align: center; }
section, footer { max-width: 480px; margin: 0 auto; padding: 4rem 1.5rem; }
h1, h2, h3, .amp, .sign, .guest { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1, .amp, .sign { font-family: var(--display); }
h1 { font-size: 3rem; margin: .5rem 0; }
h2 { font-size: 2rem; margin: 1rem 0 .25rem; }
h3 { font-size: 1.5rem; color: var(--accent); margin: 0 0 .5rem; }
.cover { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.photo { width: 220px; height: 280px; object-fit: cover; border-radius: var(--photo-radius); margin-bottom: 1.5rem; }
/* Optional section photos: the theme's .photo look, centred; frame-* picks a shape. Two classes, so they
   win over a theme's single-class .photo size and shape. */
.pic { display: block; margin: 0 auto 1.75rem; }
h2 + .pic { margin-top: 1.5rem; }
.photo.frame-arch { width: 220px; height: 280px; border-radius: 999px 999px 8px 8px; }
.photo.frame-oval { width: 220px; height: 280px; border-radius: 50%; }
.photo.frame-circle { width: 220px; height: 220px; border-radius: 50%; }
.photo.frame-rounded { width: 220px; height: 280px; border-radius: 18px; }
.photo.frame-square { width: 220px; height: 280px; border-radius: 2px; }
/* Cut-out shapes: a border or outline would be cut off by the shape, so they have none. */
.photo.frame-hexagon, .photo.frame-diamond, .photo.frame-heart, .photo.frame-blob, .photo.frame-stamp, .photo.frame-kubah, .photo.frame-octagon, .photo.frame-scallop { border: 0; outline: 0; border-radius: 0; box-shadow: none; }
.photo.frame-hexagon { width: 240px; height: 270px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.photo.frame-diamond { width: 250px; height: 250px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.photo.frame-heart { width: 240px; height: 220px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 240 220%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M120 214C40 150 0 110 0 62 0 26 28 0 64 0c26 0 46 14 56 36C130 14 150 0 176 0c36 0 64 26 64 62 0 48-40 88-120 152z%27/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 240 220%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M120 214C40 150 0 110 0 62 0 26 28 0 64 0c26 0 46 14 56 36C130 14 150 0 176 0c36 0 64 26 64 62 0 48-40 88-120 152z%27/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.photo.frame-blob { width: 230px; height: 270px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 230 270%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M115 4C170 0 222 36 228 96c6 54-14 118-60 154-40 30-104 22-138-18C-2 194 2 132 14 88 28 38 62 8 115 4z%27/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 230 270%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M115 4C170 0 222 36 228 96c6 54-14 118-60 154-40 30-104 22-138-18C-2 194 2 132 14 88 28 38 62 8 115 4z%27/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* Postage stamp: white border with a perforated edge (half-circle bites every 16px). */
.photo.frame-stamp { width: 230px; height: 290px; padding: 14px; background: #fff;
  -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - 16px) calc(100% - 16px) no-repeat, radial-gradient(circle, #0000 5px, #000 5.5px) -8px -8px / 16px 16px round;
  mask: linear-gradient(#000 0 0) center / calc(100% - 16px) calc(100% - 16px) no-repeat, radial-gradient(circle, #0000 5px, #000 5.5px) -8px -8px / 16px 16px round; }
/* Kapsul: a tall pill. Daun: two opposite corners fully round, like a leaf. */
.photo.frame-capsule { width: 200px; height: 320px; border-radius: 999px; }
.photo.frame-leaf { width: 230px; height: 280px; border-radius: 999px 10px; }
.photo.frame-octagon { width: 240px; height: 280px; clip-path: polygon(29% 0, 71% 0, 100% 22%, 100% 78%, 71% 100%, 29% 100%, 0 78%, 0 22%); }
.photo.frame-kubah { width: 220px; height: 300px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 220 300%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0 300V128C0 84 46 62 80 40 96 30 106 16 110 0c4 16 14 30 30 40 34 22 80 44 80 88v172z%27/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 220 300%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0 300V128C0 84 46 62 80 40 96 30 106 16 110 0c4 16 14 30 30 40 34 22 80 44 80 88v172z%27/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* Bergelombang: a scalloped edge, round bumps all the way around (circles at the edge + the inside). */
.photo.frame-scallop { width: 240px; height: 300px;
  -webkit-mask: radial-gradient(9px, #000 97%, #0000) 0 0 / 18px 18px round, linear-gradient(#000 0 0) center / calc(100% - 18px) calc(100% - 18px) no-repeat;
  mask: radial-gradient(9px, #000 97%, #0000) 0 0 / 18px 18px round, linear-gradient(#000 0 0) center / calc(100% - 18px) calc(100% - 18px) no-repeat; }
.photo.frame-polaroid { width: 230px; height: 290px; padding: 10px 10px 44px; border: 0; outline: 0; border-radius: 2px; background: #fff; rotate: -2.5deg; box-shadow: 0 14px 30px -14px rgb(0 0 0 / .45); }
/* Shape of each frame, so a bigger section photo (size-m / size-l) keeps it. The heart and organic shapes are
   SVG masks stretched to the box, so they scale too. */
.photo.frame-arch, .photo.frame-oval, .photo.frame-rounded, .photo.frame-square { --ar: 11 / 14; }
.photo.frame-circle, .photo.frame-diamond { --ar: 1; }
.photo.frame-hexagon { --ar: 16 / 18; }
.photo.frame-heart { --ar: 12 / 11; }
.photo.frame-capsule { --ar: 5 / 8; }
.photo.frame-leaf { --ar: 23 / 28; }
.photo.frame-octagon { --ar: 6 / 7; }
.photo.frame-kubah { --ar: 11 / 15; }
.photo.frame-scallop { --ar: 4 / 5; }
.photo.frame-blob { --ar: 23 / 27; }
.photo.frame-stamp, .photo.frame-polaroid { --ar: 23 / 29; }
.photo.size-m { width: 280px; height: auto; aspect-ratio: var(--ar, 11 / 14); }
.photo.size-l { width: min(340px, 80vw); height: auto; aspect-ratio: var(--ar, 11 / 14); }
.corner { display: none; } /* section corner ornaments, switched on by custom themes */
/* Box around a framed photo when a custom theme hangs an ornament on it (Hiasan foto). */
.photo-wrap { position: relative; display: block; width: fit-content; margin: 0 auto 1.5rem; }
.photo-wrap > .photo { margin: 0; }
h2 + .photo-wrap { margin-top: 1.5rem; }
.person > .photo-wrap, section > .photo-wrap:has(.pic) { margin-bottom: 1.75rem; }
/* Section photo layouts. Wide: edge to edge across the column. Bg ("Jadi latar"): the photo fills the whole
   section (or person block) under a dark shade; only text sitting on the photo turns white, cards keep theirs. */
.photo.pic-wide, .photo.pic-bg { max-width: none; padding: 0; border: 0; outline: 0; box-shadow: none; background: none; clip-path: none; -webkit-mask: none; mask: none; rotate: none; border-radius: 0; }
.photo.pic-wide { width: calc(100% + 3rem); height: auto; aspect-ratio: 4 / 3; margin: 0 -1.5rem 1.75rem; }
h2 + .pic-wide { margin-top: 1.25rem; }
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.photo.pic-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0; }
.has-bg > .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(18 12 9 / .6), rgb(18 12 9 / .74)); }
.has-bg > :is(h2, p, blockquote, .sign, .amp), .has-bg .event > :is(h3, p), .has-bg .timeline :is(h3, p), .has-bg .wish-form label, .person.has-bg > .info > :is(h2, p, .ig) { color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / .35); }
.has-bg > .btn, .has-bg > details > .btn, .has-bg .event .btn, .has-bg .wish-more { color: #fff; border-color: rgb(255 255 255 / .7); }
.person.has-bg { margin: 1rem -.5rem; padding: 3rem 1.25rem; border-radius: 18px; }
/* Section background image (a lazy <img>) under a veil of the page colour; text keeps the theme's colours. */
.with-bg { position: relative; isolation: isolate; overflow: hidden; }
.sec-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.sec-veil { position: absolute; inset: 0; z-index: -2; background: color-mix(in srgb, var(--bg) var(--veil, 40%), transparent); }
main { overflow-x: clip; } /* sections sliding in from the side never widen the page */
/* A section's own entrance animation, for each of its parts. The attribute makes these outrank a custom theme's
   page-wide rules. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim] .reveal:not(.in) { opacity: 0; filter: none; transform: translateY(24px); }
  .js [data-anim="zoom"] .reveal:not(.in) { transform: scale(.92); }
  .js [data-anim="slide"] .reveal:not(.in) { transform: translateX(-40px); }
  .js [data-anim="right"] .reveal:not(.in) { transform: translateX(40px); }
  .js [data-anim="drop"] .reveal:not(.in) { transform: translateY(-28px); }
  .js [data-anim="tilt"] .reveal:not(.in) { transform: translateY(26px) rotate(-5deg); }
  /* Membuka: each part unfolds downward from its top edge, like a card opening. */
  .js [data-anim="flip"] .reveal { transform-origin: 50% 0; transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
  .js [data-anim="flip"] .reveal:not(.in) { transform: perspective(700px) rotateX(-60deg); }
  /* Tirai: each part opens from its middle outward. Shown, it is clipped well outside itself, so shadows and hanging
     ornaments stay visible. */
  .js [data-anim="curtain"] .reveal { transition: opacity .5s ease, clip-path 1.1s cubic-bezier(.2, .7, .2, 1); }
  .js [data-anim="curtain"] .reveal:not(.in) { transform: none; clip-path: inset(0 50%); }
  .js [data-anim="curtain"] .reveal.in { clip-path: inset(-40%); }
  .js [data-anim="fade"] .reveal { transition: opacity 1.4s ease; }
  .js [data-anim="fade"] .reveal:not(.in) { transform: none; }
  .js [data-anim="blur"] .reveal { transition: opacity .9s ease, transform .9s ease, filter .9s ease; }
  .js [data-anim="blur"] .reveal:not(.in) { transform: none; filter: blur(8px); }
  .js [data-anim="none"] .reveal, .js [data-anim="none"] .reveal:not(.in) { opacity: 1; transform: none; filter: none; transition: none; }
}
.eyebrow { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--accent-ink); }
.to { margin: 2rem 0; }
.to p { margin: 0; }
.guest { font-size: 1.6rem; }
.btn { display: inline-block; margin: .5rem .25rem; padding: .6rem 1.4rem; border: 1px solid var(--accent); border-radius: 999px; background: none; color: var(--ink); font: 400 .9rem var(--sans); text-decoration: none; cursor: pointer; }
.cover .btn { background: var(--accent-ink); color: var(--on-accent); }
blockquote { margin: 0 0 2rem; font-style: italic; }
.amp { font-size: 2.5rem; color: var(--accent); margin: 1rem 0; }
/* Date: weekday | big day number | month year. Equal side widths keep the number centred. */
.date-block { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0 0; font: 400 .78rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.date-block span { flex: 1; max-width: 8.5rem; }
.date-block span:first-child { text-align: right; }
.date-block span:last-child { text-align: left; }
.date-block strong { font: 600 3.2rem/1 var(--serif); letter-spacing: 0; padding: .1rem 1.1rem; border-inline: 1px solid var(--accent); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.5rem 0 1rem; }
.countdown div { padding: .8rem 0 .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.countdown strong { display: block; font: 600 2rem/1 var(--serif); }
.countdown span { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

.event .time { font: 600 1.6rem/1.2 var(--serif); margin: .25rem 0 .75rem; }
/* Cormorant defaults to old-style digits ("13" reads like "I3"); dates and times need lining ones.
   Must come after the `font:` shorthands above, which reset it. */
.date-block strong, .countdown strong, .event .time { font-variant-numeric: lining-nums tabular-nums; }
.gifts summary { list-style: none; }
.gifts summary::-webkit-details-marker { display: none; }
.gifts details[open] summary { display: none; }
.gift { margin: 1rem 0; padding: 1.5rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.gift p { margin: 0; }
.gift .bank { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.gift .number { font: 600 1.7rem/1.3 var(--serif); font-variant-numeric: lining-nums tabular-nums; margin: .35rem 0 .15rem; }
.gift .btn { margin-top: .9rem; }
.gift .qris { display: block; width: min(240px, 100%); height: auto; margin: .75rem auto .25rem; border-radius: 8px; background: #fff; }
.gift .address { white-space: pre-line; margin-top: .35rem; }
.hint { font-size: .85rem; color: var(--muted); }

/* Guestbook */
.wish-form { display: grid; gap: .75rem; margin: 1.5rem 0 1rem; text-align: left; }
.wish-form label { display: grid; gap: .3rem; font-size: .9rem; }
.wish-form input, .wish-form textarea, .wish-form select { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: 400 1rem var(--sans); }
.wish-form textarea { resize: vertical; }
.wish-form .btn { justify-self: center; background: var(--accent-ink); color: var(--on-accent); border-color: var(--accent-ink); }
.wish-form .btn:disabled { opacity: .6; }
.wish-form .hp { position: absolute; left: -9999px; }
.rsvp-form .choice { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; }
.rsvp-form .choice legend { margin-bottom: .3rem; padding: 0; font-size: .9rem; }
.rsvp-form .choice label { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.rsvp-form .choice label:has(:checked) { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.rsvp-form .choice input { width: auto; accent-color: var(--accent-ink); }
.rsvp-form:has([value="tidak"]:checked) .pax { display: none; }
.save-date .when { margin: 0 0 .5rem; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.wish-status { min-height: 1.4em; margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
.wish-count { font-size: .85rem; color: var(--muted); }
.wish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; text-align: left; }
.wish-more { margin-top: 1rem; }
.wish-more[hidden] { display: none; }
.wish { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.wish p { margin: 0; }
.wish-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.wish-msg { margin: .35rem 0 !important; white-space: pre-line; overflow-wrap: anywhere; }
.wish time { font-size: .78rem; color: var(--muted); }
.badge { padding: .05rem .55rem; border-radius: 999px; background: var(--accent-ink); color: var(--on-accent); font-size: .72rem; letter-spacing: .04em; }

.ig { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; color: var(--accent-ink); font-size: .9rem; text-decoration: none; }
.ig svg { width: 18px; height: 18px; }

/* Video: YouTube thumbnail with a play button; the player loads only when tapped. */
.video .yt, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 1.25rem; border: 0; border-radius: 12px; overflow: hidden; background: #000; }
.video .yt img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 68px; height: 48px; border-radius: 14px; background: rgb(0 0 0 / .72); }
.video .play::after { content: ''; position: absolute; inset: 50% auto auto 54%; translate: -50% -50%; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video .yt:hover .play { background: #c00; }

/* Premium QR check-in, as a ticket: a photo header with the names and date, then who it's for and the place
   beside the QR. The QR always sits on white with a quiet zone, whatever the theme. */
.ticket { overflow: hidden; border-radius: 18px; background: var(--card); text-align: left; box-shadow: 0 22px 44px -30px rgb(0 0 0 / .55); }
.ticket-head { position: relative; isolation: isolate; padding: 2.25rem 1.25rem 1.25rem; background: var(--accent-ink); color: #fff; }
.ticket-head img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ticket-head:has(img)::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(0 0 0 / .05), rgb(0 0 0 / .6)); }
.ticket-head h2 { margin: 0; font: 400 .72rem var(--sans); letter-spacing: .25em; text-transform: uppercase; color: inherit; }
.ticket-head p { margin: 0; color: inherit; }
.ticket-names { font: 400 2rem/1.15 var(--display); margin: .2rem 0 .25rem !important; }
.ticket-body { display: grid; grid-template-columns: 1fr minmax(140px, 46%); gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 2px dashed var(--line); }
.ticket-info p { margin: 0; }
.ticket-info .label { margin-top: .6rem; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.ticket-info .label:first-child { margin-top: 0; }
.ticket .qr { padding: 8px; border-radius: 10px; background: #fff; }
.ticket .qr svg { display: block; width: 100%; height: auto; }
.qr-name { font: 600 1.3rem/1.25 var(--serif); margin: 0; }
.ticket-foot { margin: 0; padding: .9rem 1.25rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* Penerima tamu page (/tamu) and check-in result (/checkin/...). */
.tamu .stat { font-size: 1.1rem; margin: .25rem 0; }
.tamu input[type=search] { width: 100%; margin: 1rem 0 .5rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; }
.guest-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.guest-list li { display: grid; gap: .4rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.guest-list li[hidden] { display: none; }
.guest-list .who { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.guest-list .who span { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.guest-list .nm small { display: block; font-size: .75rem; color: var(--muted); }
.guest-list li.in .who span { color: #2e7d32; font-weight: 600; }
.guest-list .acts, .guest-list form { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; align-items: center; }
.guest-list .pax label { display: inline-flex; align-items: center; margin: 0; }
.guest-list .btn { margin: 0; padding: .35rem .8rem; font-size: .8rem; }
.btn.primary { background: var(--accent-ink); color: var(--on-accent); border-color: var(--accent-ink); }
.btn.danger { color: #a33; border-color: #d9a3a3; }
.tamu details { margin: 1rem 0; }
.tamu details[open] summary { display: none; }
.tamu summary { list-style: none; }
.tamu .add { display: grid; gap: .5rem; }
.guest-list .pax { margin: 0; font-size: .8rem; color: var(--muted); align-self: center; }
.guest-list .pax input { width: 3.2rem; margin-right: .2rem; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; }
.scan-open { display: block; width: 100%; margin: 1rem 0 .5rem; padding: .9rem; font-size: 1.05rem; }
.scan-open[hidden] { display: none; }

/* Scanner: full-screen camera; the result bar turns green / amber / red after each scan. */
.scanner { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 50% auto auto 50%; translate: -50% -60%; width: min(70vw, 300px); aspect-ratio: 1; border: 3px solid rgb(255 255 255 / .85); border-radius: 18px; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .35); }
.scan-result { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.25rem calc(5.5rem + env(safe-area-inset-bottom)); background: rgb(0 0 0 / .72); text-align: center; }
.scan-result p { margin: 0; }
.scan-head { font: 600 1.5rem/1.25 var(--serif); }
.scan-sub { margin-top: .35rem !important; font-size: .95rem; opacity: .9; }
.scanner[data-tone="ok"] .scan-result { background: #1b5e20e6; }
.scanner[data-tone="warn"] .scan-result { background: #8a5a00e6; }
.scanner[data-tone="bad"] .scan-result { background: #a12a2ae6; }
.scan-close { position: absolute; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); translate: -50% 0; background: #fff; color: #111; border-color: #fff; }

.checkin-result { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.checkin-result h1 { font-size: 2.2rem; }
.checkin-result .btn { align-self: center; }
.checkin-result.ok { background: #e8f5e9; }
.checkin-result.ok h1 { color: #1b5e20; }
.checkin-result.warn { background: #fff8e1; }
.checkin-result.warn h1 { color: #8a5a00; }
.checkin-result.bad { background: #fdecea; }
.checkin-result.bad h1 { color: #a12a2a; }

/* Gallery: thumbnail grid, first photo wide; full-size photos open in a native <dialog>. */
.gallery .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 1.25rem; }
.gallery .grid a:first-child { grid-column: 1 / -1; }
.gallery .grid img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.gallery .grid a:first-child img { aspect-ratio: 4 / 3; }
/* An even count leaves the last photo alone in its row: let it fill the row like the first. */
.gallery .layout-grid a:last-child:nth-child(even) { grid-column: 1 / -1; }
.gallery .layout-grid a:last-child:nth-child(even) img { aspect-ratio: 4 / 3; }
/* Mosaik: 3 columns; big tiles alternate left and right; the last one or two photos widen to fill their row. */
.gallery .grid.layout-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: .4rem; }
.gallery .layout-mosaic a:first-child { grid-column: auto; }
.gallery .layout-mosaic a.big { grid-column: span 2; grid-row: span 2; }
.gallery .layout-mosaic a.big.r { grid-column: 2 / span 2; }
.gallery .layout-mosaic a.wide { grid-column: span 2; }
.gallery .layout-mosaic a.full { grid-column: 1 / -1; }
.gallery .layout-mosaic img, .gallery .layout-mosaic a:first-child img { aspect-ratio: 1; border-radius: 6px; }
.gallery .layout-mosaic a.wide img { aspect-ratio: 2 / 1; }
.gallery .layout-mosaic a.full img { aspect-ratio: 3 / 1; }
/* Slider: a native swipe strip that snaps one photo at a time, bleeding to the column edges. */
.gallery .grid.layout-slider { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1.5rem; padding-inline: 1.5rem; scroll-padding-inline: 1.5rem; }
.layout-slider::-webkit-scrollbar { display: none; }
.gallery .layout-slider a { flex: 0 0 100%; scroll-snap-align: start; }
.gallery .layout-slider img, .gallery .layout-slider a:first-child img { aspect-ratio: 4 / 5; border-radius: 14px; }
.slide-nav { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: .9rem; font-size: .85rem; letter-spacing: .15em; color: var(--muted); font-variant-numeric: tabular-nums; }
.slide-nav button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
/* Polaroid: white prints in two columns, each tilted a little differently. */
.gallery .grid.layout-polaroid { gap: 1.4rem 1rem; padding: .5rem .25rem 1rem; }
.gallery .layout-polaroid a:first-child { grid-column: auto; }
.gallery .layout-polaroid a { padding: 8px 8px 30px; background: #fff; box-shadow: 0 12px 24px -14px rgb(0 0 0 / .5); rotate: -2.5deg; }
.gallery .layout-polaroid a:nth-child(3n + 2) { rotate: 2deg; translate: 0 8px; }
.gallery .layout-polaroid a:nth-child(3n) { rotate: -1deg; }
.gallery .layout-polaroid img, .gallery .layout-polaroid a:first-child img { aspect-ratio: 1; border-radius: 0; }
/* Potret 2 kolom: even tall tiles, two per row. */
.gallery .layout-portrait a:first-child { grid-column: auto; }
.gallery .layout-portrait img, .gallery .layout-portrait a:first-child img { aspect-ratio: 4 / 5; border-radius: 6px; }
/* Satu kolom: full-width photos at their own shape, one after another. */
.gallery .grid.layout-single { grid-template-columns: 1fr; gap: .9rem; }
.gallery .layout-single img, .gallery .layout-single a:first-child img { height: auto; aspect-ratio: auto; border-radius: 12px; }

/* Cover layouts. Full: the photo fills the cover under a dark fade, text at the bottom in white.
   Half: the photo fills the top half with a softly curved lower edge, text below. Both undo any frame. */
.cover.cover-full, .cover.cover-half { position: relative; overflow: hidden; } /* the full photo and shade are absolute inside */
.cover.cover-full > .photo, .cover.cover-half > .photo, .cover.cover-capsule > .photo { max-width: none; padding: 0; border: 0; outline: 0; box-shadow: none; background: none; clip-path: none; -webkit-mask: none; mask: none; rotate: none; }
.cover.cover-full { justify-content: flex-end; padding-top: 5rem; padding-bottom: 4.5rem; color: #fff; }
.cover.cover-full > .photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; }
.cover-full > .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgb(18 12 9 / .88), rgb(18 12 9 / .45) 42%, rgb(18 12 9 / .08) 68%, rgb(18 12 9 / .3)); }
.cover.cover-full > :not(.photo, .shade), .cover.cover-full::before, .cover.cover-full::after { z-index: 2; }
.cover.cover-full :is(h1, .eyebrow, .guest, .to p, .date-block) { color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / .35); }
.cover.cover-full .date-block strong { border-color: rgb(255 255 255 / .55); }
.cover.cover-half { justify-content: flex-start; padding-top: 0; }
.cover.cover-half::before { display: none; } /* a theme's top ornament would sit on the photo */
.cover.cover-half > .photo { width: calc(100% + 3rem); height: 54svh; margin: 0 -1.5rem 2rem; border-radius: 0 0 50% 50% / 0 0 12% 12%; }
/* Kapsul: the cover as a tall glass pill (round top and bottom) over the page background, with an arched
   photo, the names and the date inside. */
.cover.cover-capsule { position: relative; justify-content: flex-start; width: calc(100% - 2.5rem); max-width: 430px; min-height: calc(100svh - 2.5rem); margin: 1.25rem auto; padding: 1.4rem 1.4rem 4.5rem; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); box-shadow: 0 30px 60px -40px rgb(0 0 0 / .5); }
.cover.cover-capsule > .photo { order: -2; width: 100%; height: min(58svh, 540px); margin: 0 0 1.75rem; border-radius: 999px 999px 14px 14px; }
.cover-capsule > .date-num { order: -1; margin: 0 0 .9rem; font: 600 2.3rem/1 var(--serif); letter-spacing: .04em; color: var(--accent-ink); font-variant-numeric: lining-nums tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .cover.cover-full > .photo { animation: cover-zoom 14s ease-out both; } /* slow push-in, like a film opening */
}
@keyframes cover-zoom { from { scale: 1.1; } }
/* A photo that keeps moving (Gerak foto, or a theme's photo motion). Individual transform properties, so it stacks
   with the entrance. On a wrap, the photo inside stops its own (theme) motion. */
@media (prefers-reduced-motion: no-preference) {
  :is(.photo, .photo-wrap).move-float { animation: pic-float 6s ease-in-out infinite; }
  :is(.photo, .photo-wrap).move-breathe { animation: pic-breathe 7s ease-in-out infinite; }
  :is(.photo, .photo-wrap).move-sway { animation: pic-sway 5s ease-in-out infinite; }
  :is(.photo, .photo-wrap).move-swing { transform-origin: 50% 0; animation: pic-swing 4s ease-in-out infinite; }
  .photo.move-still, .photo-wrap[class*="move-"] > .photo { animation: none; }
}
@keyframes pic-float { 50% { translate: 0 -10px; } }
@keyframes pic-breathe { 50% { scale: 1.04; } }
@keyframes pic-sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
@keyframes pic-swing { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }

/* Opening page (themes with a gate): the names, the guest and "Buka Undangan" in front of the invitation.
   With JS it covers the screen and locks scrolling until opened, then slides up (invite.ts adds .opened);
   the cover behind it waits to play its entrance. Without JS, or in the admin live preview (data-pv), it is
   just the first screen. */
.gate { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4rem 1.5rem; overflow: hidden; background: var(--gate-bg, var(--bg)); }
.gate > * { position: relative; z-index: 1; }
.gate p { margin: 0; }
.gate-names { margin: .4rem 0 0 !important; font: 400 2.6rem/1.15 var(--display); color: var(--accent-ink); }
.gate .btn { background: var(--accent-ink); color: var(--on-accent); border-color: var(--accent-ink); }
.js:not([data-pv]) .gate { position: fixed; inset: 0; z-index: 30; transition: translate 1.1s cubic-bezier(.7, 0, .3, 1), visibility 0s 1.1s; }
.js:not([data-pv]):not(.opened):has(.gate), .js:not([data-pv]):not(.opened):has(.gate) body { overflow: hidden; }
.js.opened .gate { translate: 0 -100%; visibility: hidden; }
.js:not([data-pv]):not(.opened) .gate ~ main .cover > * { animation-play-state: paused; }
@media (min-width: 900px) { .js:not([data-pv]) .gate { left: auto; width: 480px; } }

/* The person text block; the nickname only shows on card themes. */
.nick { display: none; }

/* Card themes (.cards on body): text sits on glass cards over the page background, photos stay off the cards,
   and the parts enter like on a printed-card site: headings drop in, photos and gallery pictures grow, the rest
   rises. :where keeps these as weak as the page-wide rule, so a custom theme's own entrance still wins. */
.cards main > section:not(.cover) { padding: 3.5rem 1.25rem; }
.cards :is(blockquote, .info, .event, .wish-form, .timeline), .cards main > .gifts { padding: 1.75rem 1.25rem; border: 1px solid var(--glass-line); border-radius: 24px; background: var(--glass); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: 0 18px 40px -32px rgb(0 0 0 / .5); }
.cards main > .gifts { width: calc(100% - 2.5rem); margin: 2rem auto; padding-top: 2.5rem; }
.cards .person.has-bg > .info { border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; } /* white text on the photo */
.cards .event { margin: 1.25rem 0; }
.cards .gift { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.cards .nick { display: block; margin: 0; font: 400 2.8rem/1.15 var(--display); color: var(--accent-ink); }
.cards .person h2 { margin-top: .35rem; font-size: 1.2rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:where(.cards *):where(h2, h3, .eyebrow, .nick):not(.in) { transform: translateY(-26px); }
  .js .reveal:where(.cards *):where(.photo, .photo-wrap, .countdown, .grid > a, .layout-slider):not(.in) { transform: scale(.82); }
  .js .cards .reveal { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s ease; }
}

/* Side ornaments (.sides on body): each section's corner ornament hangs from its top on both sides, the right
   one mirrored, and waves a little from where it hangs. The theme paints .corner::before/::after. */
.sides main > section:not(.cover) { position: relative; padding-top: 7.5rem; } /* room for the spray between sections */
.sides.cards main > .gifts { margin-top: 6rem; padding-top: 3.75rem; } /* a card section: the spray hangs over its top */
/* ...mostly above the card, so it never covers the heading (a share of its own height: it scales with the card). */
.sides.cards:not(.story) main > .gifts > .corner::before, .sides.cards:not(.story) main > .gifts > .corner::after { top: 0; translate: 0 -72%; }
.sides .corner { display: block; position: absolute; inset: 0 0 auto; z-index: 2; height: 0; pointer-events: none; }
.sides .corner::before, .sides .corner::after { content: ''; position: absolute; top: -3rem; width: var(--side-w, 30%); aspect-ratio: var(--side-ratio, .65); transform-origin: 50% 0; }
.sides .corner::before { left: -10%; }
.sides .corner::after { right: -10%; scale: -1 1; }
@media (prefers-reduced-motion: no-preference) {
  .sides .corner::before { animation: wave 3s ease-in-out infinite alternate; }
  .sides .corner::after { animation: wave 2.8s ease-in-out infinite alternate-reverse; }
}
@keyframes wave { from { rotate: -1.5deg; } to { rotate: 2deg; } }

/* Cerita (.story on body, a couple setting): each section is one full-screen slide in a row. invite.ts moves the
   whole row with one transform (--i = current slide, --w = screen width, --dx = finger drag), adds the bars at the
   top and the first-time hint. The browser only scrolls up and down inside a slide (touch-action: pan-y), so a
   sideways swipe is always ours. Short slides sit in the middle, tall ones scroll. Without JS: the normal page. */
.js .story { overflow: hidden; }
/* clip, not hidden: nothing (a link, focus, scrollIntoView) can scroll the row out of step with the transform. */
.js .story main { display: flex; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; touch-action: pan-y; }
.js .story main > section { position: relative; flex: 0 0 100%; max-width: none; height: 100%; margin: 0; padding-inline: max(1.5rem, (100% - 480px) / 2); overflow-y: auto; overscroll-behavior-y: contain; align-content: center; touch-action: pan-y;
  translate: calc(var(--i, 0) * var(--w, 100vw) * -1 + var(--dx, 0px)) 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .story main > section { transition: translate .36s cubic-bezier(.22, .8, .24, 1); }
}
.js .story main.drag > section { transition: none; }
/* A text box scrolls by itself, so the browser would claim a sideways swipe that starts on it: only up and down there too. */
.js .story main :is(input, textarea, select) { touch-action: pan-y; }
/* Light on budget phones: slides off screen stop their loops, and nothing is blurred while the row moves. */
.js .story main > section:not(.now) *, .js .story main > section:not(.now) *::before, .js .story main > section:not(.now) *::after { animation-play-state: paused; }
.js .story main * { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Inset slides (the Kapsul cover, a card theme's gift card) keep their margin; the slide plus margins is one screen. */
.js .story main > .cover-capsule, .js .story.cards main > .gifts { flex-basis: calc(100% - 2.5rem); height: calc(100% - 2.5rem); margin: 1.25rem; padding-inline: 1.4rem; }
.js .story main > .cover-capsule { overflow: visible; }
.js .story.sides .corner::before, .js .story.sides .corner::after { top: 0; }
.js .story.sides .corner::before { left: -4%; }
.js .story.sides .corner::after { right: -4%; }
.js .story main > section > footer { margin-top: 2rem; padding: 0; background: none; color: inherit; }
.story-bar { position: fixed; z-index: 20; top: max(.6rem, env(safe-area-inset-top)); left: .75rem; right: .75rem; display: flex; gap: 4px; pointer-events: none; }
.story-bar i { flex: 1; height: 4px; overflow: hidden; border-radius: 4px; background: rgb(255 255 255 / .7); box-shadow: 0 0 0 .5px rgb(0 0 0 / .18), 0 1px 5px rgb(0 0 0 / .35); }
.story-bar i::after { content: ''; display: block; height: 100%; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.story-bar i.done::after { transform: none; }
.story-hint { position: fixed; z-index: 20; bottom: max(1.5rem, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; margin: 0; padding: .45rem 1rem; border-radius: 999px; background: rgb(0 0 0 / .5); color: #fff; font-size: .8rem; white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.story-moved .story-hint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .story-hint { animation: nudge 1.8s ease-in-out infinite; }
  .js .story main > .now :is(.sec-bg, .pic-bg) { animation: cover-zoom 14s ease-out both; } /* slow push-in on the slide being read */
}
@keyframes nudge { 50% { translate: calc(-50% + 6px) 0; } }
@media (min-width: 900px) {
  .story-bar { left: calc(100% - 480px + .75rem); }
  .story-hint { left: calc(100% - 240px); }
}
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(12 10 9 / .94); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-prev { left: .75rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .75rem; top: 50%; translate: 0 -50%; }
.lb-close { right: .75rem; top: max(.75rem, env(safe-area-inset-top)); }

/* Entrance and scroll reveal. Only opacity and transform, which the GPU composites without re-laying out
   the page, so it stays smooth on budget phones. .js is set in <head>; without JS nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  .cover > * { animation: rise .9s ease both; }
  .cover > :nth-child(2) { animation-delay: .12s; }
  .cover > :nth-child(3) { animation-delay: .24s; }
  .cover > :nth-child(4) { animation-delay: .36s; }
  .cover > :nth-child(5) { animation-delay: .48s; }
  .cover > :nth-child(n + 6) { animation-delay: .6s; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.music-toggle { position: fixed; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 10; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--accent-ink); color: var(--on-accent); cursor: pointer; box-shadow: 0 6px 18px rgb(61 48 39 / .3); }
.music-toggle svg { width: 22px; height: 22px; }
.music-toggle[aria-pressed="false"] svg { opacity: .55; }
.music-toggle[aria-pressed="true"] { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .music-toggle[aria-pressed="true"] { animation: none; } }

/* Kisah Kami: moments down a thin line, a dot at each. */
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; text-align: left; }
.timeline li { position: relative; margin-left: .45rem; padding: 0 0 1.75rem 1.6rem; border-left: 1px solid var(--accent); }
.timeline li:last-child { padding-bottom: .25rem; border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: .3rem; width: 13px; height: 13px; border: 2px solid var(--accent-ink); border-radius: 50%; background: var(--bg); box-sizing: border-box; }
.timeline .when { margin: 0; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.timeline h3 { margin: .2rem 0 .35rem; font-size: 1.4rem; line-height: 1.25; color: var(--accent-ink); } /* the light accent is too faint for a title */
.timeline li > p:last-child:not(.when) { margin: 0; white-space: pre-line; }
.event { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.sign { font-size: 2rem; }
footer { padding: 2rem; font-size: .8rem; }
footer a { color: var(--accent-ink); }
/* Desktop: invitation stays a phone-width column on the right; the side panel fills the rest. */
.side { display: none; }
@media (min-width: 900px) {
  .invite { padding-left: calc(100% - 480px); }
  .invite main > section, .invite > footer { max-width: none; }
  .side { display: flex; align-items: flex-end; position: fixed; inset: 0 480px 0 0; padding: clamp(3rem, 6vw, 5.5rem); background: var(--panel); text-align: left; overflow: hidden; box-shadow: inset -1px 0 0 var(--line); }
  .side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .side:not(.has-photo)::before { content: ''; position: absolute; top: 10%; right: 12%; width: 34%; aspect-ratio: 3 / 4; border: 1px solid var(--accent); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .5; }
  .side.has-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgb(31 24 19 / .75), rgb(31 24 19 / .1) 55%); }
  .side div { position: relative; z-index: 2; }
  .side p { margin: 0; }
  .side-names { font: 600 clamp(3.5rem, 6vw, 5.5rem)/1.05 var(--display); margin: .5rem 0 1rem !important; }
  .side .date-block { justify-content: flex-start; margin: 0; }
  .side .date-block span { flex: none; }
  .side.has-photo { color: #fff; }
  .side.has-photo .date-block strong { border-color: rgb(255 255 255 / .5); }
  .side.has-photo .eyebrow { color: #f0e2d0; }
}
.tool { text-align: left; }
.tool label { display: block; margin: 1rem 0; }
.tool textarea { display: block; width: 100%; padding: .75rem; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
#out { list-style: none; padding: 0; }
#out li { display: flex; align-items: center; gap: .25rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
#out span { flex: 1; overflow-wrap: anywhere; }
#out small { display: block; font-size: .75rem; color: var(--muted); }
#out li.sent span::before { content: '✓ '; color: #2e7d32; font-weight: 600; }
#out li.sent { opacity: .7; }
.tool-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-acts .btn { margin: 0; }
.tool-acts .btn:disabled { opacity: .5; cursor: default; }
/* The next guest to send to, near the top: tap, send in WhatsApp, come back, tap again. */
.send-next { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: center; }
.send-next[hidden], #next[hidden] { display: none; }
.send-next p { margin: 0 0 .4rem; font-size: .85rem; color: var(--muted); }
.tool .link-btn { display: block; margin: .4rem auto 0; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }

/* A section photo's own ornament (Hiasan on its photo card). The file and its shape come in as CSS variables on
   the .photo-wrap; these outrank a custom theme's photo ornament, and .po-none hides that one.
   Placement: sprays sit on the photo's edge, overlapping it (left side low; the second one mirrored, right side
   high), so they touch any frame shape. Corner pieces (.po-hug) wrap the photo's corners instead. */
.photo-wrap.po-set::after, .photo-wrap.po-set.po-corners::before { content: ''; position: absolute; z-index: 2; pointer-events: none; width: 34%; aspect-ratio: var(--po-ratio, 1); }
.photo-wrap.po-set::after { inset: auto auto 4% -9%; transform-origin: 30% 100%; } /* small overhang: a large photo on a phone has ~10% to spare */
.photo-wrap.po-set.po-corners::before { inset: 6% -9% auto auto; scale: -1 1; transform-origin: 70% 0; }
.photo-wrap.po-set.po-hug::after { inset: auto auto -5% -6%; width: 30%; }
.photo-wrap.po-set.po-hug.po-corners::before { inset: -5% -6% auto auto; width: 30%; scale: none; transform: rotate(180deg); transform-origin: center; }
.photo-wrap.po-set:not(.po-corners)::before, .photo-wrap.po-none::before, .photo-wrap.po-none::after { content: none; }
.photo-wrap.po-set.po-frame::after { inset: -9%; width: auto; aspect-ratio: auto; }
.photo-wrap.po-mask::after, .photo-wrap.po-mask::before { background: var(--po, var(--accent)); -webkit-mask: var(--po-src) center / contain no-repeat; mask: var(--po-src) center / contain no-repeat; }
.photo-wrap.po-png::after, .photo-wrap.po-png::before { background: var(--po-src) center / contain no-repeat; -webkit-mask: none; mask: none; }
.photo-wrap.po-frame.po-mask::after { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.photo-wrap.po-frame.po-png::after { background-size: 100% 100%; }
/* Ornament motion: a gentle sway from where it's attached, or a slow float. Uses rotate/translate so it stacks
   with the mirror and corner turns above. */
@media (prefers-reduced-motion: no-preference) {
  .photo-wrap.po-sway::after, .photo-wrap.po-sway::before { animation: po-sway 5s ease-in-out infinite; }
  .photo-wrap.po-float::after, .photo-wrap.po-float::before { animation: po-float 6s ease-in-out infinite; }
  .photo-wrap.po-sway::before, .photo-wrap.po-float::before { animation-delay: -2.5s; }
  .photo-wrap.po-still::after, .photo-wrap.po-still::before { animation: none; }
}
@keyframes po-sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 2.5deg; } }
@keyframes po-float { 50% { translate: 0 -12px; } }
