.sv-html { color-scheme: light; background: white; }
.sv-html.sv-locked { overflow: hidden; }
.sv-body { margin: 0; background: white; }
.sv-content { display: none; }
.sv-opened .sv-content, .sv-preview .sv-content { display: block; }
#sv-envelope { cursor: pointer; touch-action: none; }
#sv-envelope [data-sv-envelope-flap] { transition: transform 2.5s ease-in-out; }
#sv-envelope [data-sv-envelope-bottom] { transition: bottom 2.5s .5s ease-in-out; }
#sv-envelope.sv-opening [data-sv-envelope-flap] { transform: translateX(-50%) translateY(-200%) rotate(45deg) !important; }
#sv-envelope.sv-opening [data-sv-envelope-bottom] { bottom: -100% !important; }
#sv-envelope.sv-opening { pointer-events: none; }
.sv-tools { position: fixed; z-index: 60; bottom: 16px; width: min(100%,448px); left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; flex-direction: column; gap: 16px; pointer-events: none; }
.sv-tools > button { border: 0; border-radius: 50%; width: 32px; height: 32px; padding: 4px; margin-right: 20px; color: white; background: #575757; display: grid; place-items: center; cursor: pointer; pointer-events: auto; }
.sv-tools > button[hidden] { display: none; }
#sv-music { padding: 0; }
.sv-scroll-hint { position: fixed; left: max(calc(50% - 204px),20px); bottom: 16px; z-index: 50; pointer-events: none; }
.sv-scroll-hint svg { animation: sv-scroll-hand 2s infinite; }
.sv-locked .sv-scroll-hint,.sv-preview .sv-scroll-hint,.iv-editing .sv-scroll-hint { display: none; }
@keyframes sv-scroll-hand { 0%,100% { transform:translateY(0) rotate(-25deg); } 50% { transform:translateY(-10px) rotate(-10deg); } }
.iv-editing [data-editor-type="mainPhoto"] .absolute:has(> img[src*="/templates/classic/divisor-"]) { pointer-events: none; }
.iv-editing img[src*="/templates/classic/divisor-"] { pointer-events: none; }
.sv-locked .sv-tools { bottom: 64px; }
.sv-locked .sv-tools { visibility: hidden; }
#sv-swatches { position: absolute; right: 60px; bottom: 48px; padding: 8px; gap: 8px; background: white; box-shadow: 0 2px 12px #0003; border-radius: 6px; pointer-events: auto; }
#sv-swatches:not([hidden]) { display: flex; }
#sv-swatches button { border: 2px solid white; width: 28px; height: 28px; border-radius: 50%; outline: 1px solid #ddd; }
.sv-map-dialog,.sv-rsvp-dialog { position: fixed; border: 0; padding: 16px; border-radius: 4px; color: #000; background: #fff; z-index: 100; box-sizing: border-box; }
.sv-map-dialog::backdrop,.sv-rsvp-dialog::backdrop { background: #0005; }
.sv-rsvp-dialog { top: 16px; margin: 0 auto; width: calc(100% - 32px); max-width: 1024px; max-height: calc(100dvh - 32px); overflow-y: auto; font-family: __contentFont_b393b5,__contentFont_Fallback_b393b5; font-size: 16px; line-height: 24px; }
.sv-rsvp-header { padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; position: relative; text-align: left; }
.sv-rsvp-header button { position: absolute; top: -3px; right: 0; font: 25px/25px Arial,sans-serif; cursor: pointer; }
#sv-rsvp .sv-rsvp-header .sv-rsvp-close { position: static; font: inherit; }
#sv-rsvp .sv-rsvp-submit svg { width: 20px; height: 20px; }
.sv-map-dialog { width: calc(100% - 32px); max-width: 880px; }
.sv-map-dialog iframe { border: 0; width: 100%; height: min(65dvh,550px); }
.sv-map-dialog [data-sv-close] { float: right; font-size: 28px; margin: -6px 0 8px; }
.sv-map-dialog a { display: block; padding: 8px 0; text-align: right; text-decoration: underline; }
.sv-body .iv-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(15px); opacity: 0; background: #252525; color: #fff; border-radius: 6px; padding: 10px 18px; font: 14px/1.5 Arial,sans-serif; pointer-events: none; z-index: 100; transition: .2s; }
.sv-body .iv-toast.is-show { opacity: 1; transform: translateX(-50%); }
.sv-body [data-sv-text] { font-kerning: none; }
.sv-body [data-sv-text="rise"] > dtc-e { letter-spacing: -.05em; }
.sv-body [data-sv-track] { transition: transform .45s ease-out; }
.sv-body [data-sv-viewport] { touch-action: pan-y; }
.sv-letter { opacity: 0; animation: sv-text-rise .3s both; animation-delay: var(--sv-delay,0s); }
[data-sv-text="blur"] .sv-letter { animation-name: sv-text-blur; }
.sv-wait .sv-letter { animation-play-state: paused; }
@keyframes sv-text-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sv-text-blur { from { opacity: 0; filter: blur(12px); transform: translateY(20px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
.sv-body.iv-editing #sv-envelope, .sv-body.iv-editing .sv-tools { display: none; }
.sv-body.iv-editing [data-sv-text] { opacity: 1 !important; }
.sv-body.iv-editing #iv-content { display: block; }
.sv-body.iv-editing .iv-photo { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sv-letter { animation: none; opacity: 1; } #sv-envelope * { transition-duration: .01ms !important; } [data-sv-track] { transition: none; } }

.sa-html { --sa-accent: #cb717e; --sa-subaccent: #cb717e; }
.sa-body [data-sv-text] .sv-letter { animation-name: sv-text-blur; }
.sa-body [data-sv-reveal] { transition-property: opacity,transform,filter; transition-duration: var(--sv-duration,1.5s); transition-delay: var(--sv-reveal-delay,.15s); transition-timing-function: ease-out; }
.sa-body [data-sv-reveal].sv-reveal-wait { opacity: var(--sv-from-opacity,0) !important; transform: var(--sv-from-transform,none) !important; filter: var(--sv-from-filter,none) !important; }
.sa-body [data-sv-reveal].sv-revealed { opacity: var(--sv-to-opacity,1) !important; transform: var(--sv-to-transform,none) !important; filter: none !important; }
.sa-body .sv-opening + .sv-content { display: block; }
.sa-body [data-sv-dot] { cursor: pointer; }
.sa-body [data-sv-dot][aria-current="true"] > * { background-color: var(--sa-accent) !important; }
.sa-body [data-sv-dot][aria-current="false"] > * { background-color: #9ca3af !important; }
.sa-body [data-sv-dot][aria-current="true"]::after { background-color: var(--sa-accent) !important; transform: scale(1.35) !important; }
.sa-body [data-sv-dot][aria-current="false"]::after { background-color: #6b7280 !important; transform: none !important; }
.sa-body [data-editor-type="mainPhoto"] video, .sa-body [data-editor-type="photo"] video { pointer-events: none; }
.sa-body.iv-editing [data-sv-reveal],.sa-body.sv-preview [data-sv-reveal] { opacity: var(--sv-to-opacity,1) !important; transform: var(--sv-to-transform,none) !important; filter: none !important; }
.sa-html.sv-preview [data-sv-reveal] { opacity: var(--sv-to-opacity,1) !important; transform: var(--sv-to-transform,none) !important; filter: none !important; }
.sa-body.iv-editing video { display: none; }
.sa-body .sv-rsvp-dialog { font-family: __contentFont_b393b5,__contentFont_Fallback_b393b5; }
.sa-body #sv-swatches button[aria-pressed="true"] { outline: 2px solid #575757; outline-offset: 2px; }
.sa-body #sv-envelope [data-sv-reveal] { --sv-reveal-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .sa-body [data-sv-reveal] { transition: none !important; }
  .sa-body #sv-envelope * { transition-delay: 0s !important; }
  .sa-body [class*="animate-"] { animation: none !important; }
}

/* Local Vietnamese fonts keep the source's serif and handwritten character. */
@font-face { font-family: 'SA Photograph'; src: url('../../fonts/orig/bh/7a998c-1FTV-Photograph-Signature.otf') format('opentype'); font-display: swap; }
.sa-body .__className_b37c57 { font-family: 'SA Photograph', cursive; }
.sa-body .__className_8eaa5e { font-family: 'Imperial Script', cursive; }
.sa-body #sv-rsvp { font-family: __contentFont_b393b5, Georgia, serif; }
.sa-body [data-editor-type="coupleName"] h1 { max-width: 100%; font-size: clamp(24px,8.1vw,38px); white-space: normal; padding-inline: 8px; line-height: 1.35; }
.sa-body [data-editor-type="coupleName"] { white-space: normal; }
.sa-body .sp-local-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-top: 24px; }
.sa-body .sp-local-gallery a { display: block; overflow: hidden; border-radius: 6px; }
.sa-body .sp-local-gallery img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.sa-body.sv-preview #sv-envelope, .sa-body.sv-preview .sv-tools, .sa-body.sv-preview video { display: none !important; }
.sa-body.sv-preview .sv-letter { opacity: 1 !important; animation: none !important; }
.sa-body.sv-preview [data-sv-reveal] { transition: none !important; }

