/* Painted Bauble: the big hand-painted bauble hangs from the top of the screen on a long string and swings slowly beside the names, over
   the first card's blobs; the string of lights sags across the hero under the nav and frosty sprigs grow in from its low corners. On a
   wide screen the words keep to the left of the bauble, on a phone the bauble hangs over them. Down the page the countdown numbers sit in
   plain painted baubles, each heading wears holly with berries, the gifts stand by the story, the lights hang over the schedule, the
   table finder is a card with holly on its corner, the RSVP card is tied with a ribbon and a bow, and the bauble with its holly closes the
   page. The hero is never isolated and gets no z-index: the fixed nav lives inside it. Layout stays with the editor's layout classes. */
.esite-skin-painted-bauble {
  --sk-accent-font: "Mulish", sans-serif;
  --sk-accent-style: normal;
  --sk-photo-shape: none;
  --sk-gap: 104px;
  --sk-measure: 920px;
  --pb-ball: clamp(240px, 27vw, 400px);     /* the bauble's width on a wide screen */
  --pb-drop: clamp(120px, 16svh, 200px);   /* how far below the top of the screen it hangs */
}
.esite-skin-painted-bauble .ss-h, .esite-skin-painted-bauble .cl-names, .esite-skin-painted-bauble .ss-closing-names { font-weight: 400; letter-spacing: 0; text-transform: none; }
.esite-skin-painted-bauble .ss-h { font-size: calc(clamp(2.3rem, 4.2vw, 3.3rem) * var(--s-hscale, 1)); line-height: 1.3; color: var(--s-accent); }
.esite-skin-painted-bauble .ss-scope:not([data-type="hero"]):not([data-type="countdown"]):not([data-type="none"]) .ss-h::before { width: 120px; height: 52px; margin-bottom: 6px; }

/* ---- hero: the blobs, the lights and the sprigs; the bauble swinging on its string ---- */
.esite-skin-painted-bauble .ss-hero.hs-classic { position: relative; overflow: hidden; background: var(--s-bg); }
.esite-skin-painted-bauble .ss-hero.hs-classic::before {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: var(--sk-sprig-b, none) -2vw calc(100% + 2vw) / clamp(130px, 14vw, 230px) auto no-repeat,
              var(--sk-sprig-d, none) calc(100% + 1.5vw) calc(100% + 2vw) / clamp(110px, 12vw, 200px) auto no-repeat,
              var(--sk-star, none) 12% 30% / 18px auto no-repeat, var(--sk-star, none) 46% 18% / 14px auto no-repeat,
              var(--sk-star, none) 90% 78% / 20px auto no-repeat, var(--sk-star, none) 30% 82% / 16px auto no-repeat,
              var(--sk-dot, none) 22% 22% / 6px auto no-repeat, var(--sk-dot, none) 40% 70% / 7px auto no-repeat,
              var(--sk-dot, none) 8% 58% / 6px auto no-repeat, var(--sk-dot, none) 94% 40% / 7px auto no-repeat,
              var(--sk-bg-a, none) 50% 50% / cover no-repeat;
}
.esite-skin-painted-bauble .ss-hero.hs-classic::after {    /* the string of lights, sagging across under the nav */
  content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: 66px; height: clamp(52px, 6vw, 84px); pointer-events: none;
  background: var(--sk-lights, none) 50% 0 / auto 100% repeat-x;
}
.esite-skin-painted-bauble .hs-classic .cl-panel { background: none; z-index: 1; }
.esite-skin-painted-bauble .hs-classic.no-photo .cl-panel { align-content: center; min-height: max(100svh, 720px); padding: clamp(150px, 20svh, 200px) 24px 96px; }
.esite-skin-painted-bauble .hs-classic .cl-panel::before { display: none; }
.esite-skin-painted-bauble .hs-classic .cl-panel::after { display: none; }
.esite-skin-painted-bauble .hs-classic.no-photo .cl-panel::after {   /* the bauble on its long string, swinging from the top edge */
  display: block; content: ""; position: absolute; z-index: 2; top: 0; left: auto; right: max(4vw, calc(50% - 620px)); bottom: auto;
  width: var(--pb-ball); height: calc(var(--pb-drop) + var(--pb-ball) * 1.47); transform-origin: 50% 0;
  background: var(--sk-bauble, none) 50% 100% / 100% auto no-repeat,
              linear-gradient(var(--s-text), var(--s-text)) 50% 0 / 2px calc(var(--pb-drop) + 6px) no-repeat;
  animation: pb-swing 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .22));
}
@keyframes pb-swing { from { rotate: 3.2deg; } to { rotate: -3.2deg; } }
@keyframes pb-twinkle { 0% { opacity: .55; } 100% { opacity: 1; } }

.esite-skin-painted-bauble .cl-text { z-index: 3; }
@media (min-width: 901px) {
  /* the words keep to the left of the bauble */
  .esite-skin-painted-bauble .hs-classic.hv-center.no-photo .cl-text,
  .esite-skin-painted-bauble .hs-classic.no-photo .cl-text { max-width: min(640px, calc(100vw - var(--pb-ball) - 2 * max(4vw, 50vw - 620px) - 40px));
    margin-right: calc(var(--pb-ball) + max(4vw, 50vw - 620px)); margin-left: max(4vw, calc(50vw - 620px)); justify-self: start; }
}
.esite-skin-painted-bauble .cl-panel .h-kicker { margin: 0 0 8px; font-family: var(--s-fbody); font-size: .875rem; font-weight: 800; font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: var(--s-text); }
.esite-skin-painted-bauble .hs-classic .cl-names { justify-items: center; font-size: calc(clamp(3.2rem, 6.2vw, 5.8rem) * var(--s-hscale, 1)); line-height: 1.22; color: var(--s-accent); text-wrap: balance; }
.esite-skin-painted-bauble .hs-classic .cl-names .cn-1, .esite-skin-painted-bauble .hs-classic .cl-names .cn-2 { justify-self: center; padding: 0; }
.esite-skin-painted-bauble .cl-sub { margin-top: 12px; font-size: 1.0625rem; letter-spacing: .02em; text-transform: none; color: var(--s-text); }
.esite-skin-painted-bauble .cl-facts { margin: 16px 0 24px; }
.esite-skin-painted-bauble .cl-facts b { font-family: var(--s-fbody); font-weight: 800; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; color: var(--s-accent); }
.esite-skin-painted-bauble .cl-facts span { font-family: var(--s-fbody); font-size: 1rem; color: var(--s-text); }
.esite-skin-painted-bauble .cl-btn:not(.ghost), .esite-skin-painted-bauble .ss-btn { background: var(--s-accent); color: var(--s-bg); border-color: var(--s-accent); font-weight: 800; }
.esite-skin-painted-bauble .cl-btn, .esite-skin-painted-bauble .ss-btn, .esite-skin-painted-bauble .ss-rsvp-form .btn-rsvp, .esite-skin-painted-bauble .ss-location .ss-dir { border-radius: 999px !important; }
/* a photo: a rounded frame in the accent with a pale inner line; the small bauble hangs over its corner */
.esite-skin-painted-bauble .hv-cover:not(.no-photo) :is(.cl-names, .cl-facts b, .cl-facts span, .h-kicker, .cl-sub) { color: #fff; }
.esite-skin-painted-bauble .hs-classic:not(.no-photo):not(.hv-cover) .cl-photo { border-radius: 26px;
  box-shadow: 0 0 0 6px var(--s-bg), 0 0 0 10px var(--s-accent), 0 0 0 15px var(--s-bg), 0 0 0 16px color-mix(in srgb, var(--s-text) 50%, transparent); }
.esite-skin-painted-bauble .hs-classic:not(.no-photo):not(.hv-cover) .cl-visual::after { display: block; inset: -12% -16% auto auto; width: 34%; aspect-ratio: .68;
  background: var(--sk-bauble, none) 50% 0 / contain no-repeat; z-index: 2; }
.esite-skin-painted-bauble .stv-side .ss-story-img img, .esite-skin-painted-bauble .stv-right .ss-story-img img { border-radius: 26px; }

/* ---- countdown: each number in a plain painted bauble ---- */
.esite-skin-painted-bauble .ss-scope[data-type="countdown"] .ss-h { font-family: var(--s-fhead) !important; font-style: normal !important; text-transform: none !important; letter-spacing: 0 !important; font-size: calc(clamp(2.2rem, 3.8vw, 3.1rem) * var(--s-hscale, 1)); }
.esite-skin-painted-bauble .ss-scope[data-type="countdown"]:has(.cdv-tiles) { background-color: var(--sk-sec-bg, var(--s-band)); }
.esite-skin-painted-bauble .ss-scope[data-type="countdown"]:has(.cdv-tiles)::after {   /* the lights over the baubles' strings */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: clamp(44px, 5vw, 70px); pointer-events: none;
  background: var(--sk-lights, none) 50% 0 / auto 100% repeat-x;
}
.esite-skin-painted-bauble .cdv-tiles .ss-cd { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2.6vw, 34px); }
.esite-skin-painted-bauble .cdv-tiles .cd-unit {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center !important; width: clamp(108px, 11vw, 146px); aspect-ratio: 160 / 190;
  padding: calc(clamp(108px, 11vw, 146px) * .3) 0 0 !important; border: 0 !important; outline: 0; border-radius: 0; box-shadow: none;
  background: var(--sk-ball-0, none) 50% 100% / contain no-repeat !important; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .2));
  transform-origin: 50% 0; animation: pb-swing 5s ease-in-out infinite alternate;
}
.esite-skin-painted-bauble .cdv-tiles .cd-unit:nth-child(3n+2) { background-image: var(--sk-ball-1, none) !important; animation-delay: -1.6s; }
.esite-skin-painted-bauble .cdv-tiles .cd-unit:nth-child(3n) { background-image: var(--sk-ball-2, none) !important; animation-delay: -3.1s; }
.esite-skin-painted-bauble .cdv-tiles .cd-unit::before, .esite-skin-painted-bauble .cdv-tiles .cd-unit::after { display: none !important; }
.esite-skin-painted-bauble .cdv-tiles .cd-n { font-family: var(--s-fbody) !important; font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.esite-skin-painted-bauble .cdv-tiles .cd-l { font-family: var(--s-fbody); color: #fff; font-size: .625rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.esite-skin-painted-bauble .cdv-tiles .cd-unit:is(:nth-child(3n), :nth-child(3n+1)) :is(.cd-n, .cd-l) { color: #28415f; text-shadow: none; }
.esite-skin-painted-bauble .ss-countdown .cd-n { font-family: var(--s-fbody); }

/* ---- sections: the file's pieces at their sides ---- */
.esite-skin-painted-bauble .ss-scope[data-type="story"]::before { top: auto; bottom: 0; right: max(2vw, calc(50% - 660px)); left: auto; width: clamp(150px, 15vw, 220px); aspect-ratio: 1.15;
  background: var(--sk-gifts, none) 50% 100% / contain no-repeat; }
.esite-skin-painted-bauble .ss-scope[data-type="faq"]::before { top: auto; bottom: -12px; left: -1vw; right: auto; width: clamp(100px, 10vw, 160px); aspect-ratio: .8;
  background: var(--sk-sprig-c, none) 0 100% / contain no-repeat; }
.esite-skin-painted-bauble .ss-scope[data-type="schedule"]::before {   /* the lights along the top */
  inset: 0 0 auto 0; width: auto; height: clamp(48px, 5.4vw, 76px); aspect-ratio: auto; background: var(--sk-lights, none) 50% 0 / auto 100% repeat-x;
}
.esite-skin-painted-bauble .ss-scope[data-type="schedule"]:not(.ss-pad-c):not(.ss-pad-s) .ss { padding-top: calc(var(--sk-gap) + 30px); }
.esite-skin-painted-bauble .ss-scope[data-type="location"]::before { content: ""; position: absolute; z-index: -1; pointer-events: none; right: -1vw; bottom: -14px; width: clamp(100px, 10vw, 150px); aspect-ratio: .78;
  background: var(--sk-sprig-i, none) 100% 100% / contain no-repeat; transform: scaleX(-1); }
.esite-skin-painted-bauble .schv-wide .ss-tl-time, .esite-skin-painted-bauble .schv-cards .ss-tl-time, .esite-skin-painted-bauble .schv-timeline .ss-tl-time, .esite-skin-painted-bauble .schv-rail .ss-tl-time {
  font-family: var(--s-fbody); font-style: normal; letter-spacing: .16em; color: var(--s-accent); font-size: .8125rem; font-weight: 800; text-transform: uppercase; }
.esite-skin-painted-bauble .ss-tl-title { font-family: var(--s-fbody); font-size: 1.125rem; font-weight: 700; }
.esite-skin-painted-bauble .ss-faq-q { font-family: var(--s-fbody); font-size: 1.0625rem; font-weight: 700; }
.esite-skin-painted-bauble .ss-loc-venue { font-family: var(--s-fhead); font-style: normal; font-size: 1.9rem; line-height: 1.35; color: var(--s-accent); }
.esite-skin-painted-bauble .gftv-panel .ss-wrap { aspect-ratio: auto; width: min(620px, 100%); padding: 48px 30px; background: var(--s-band); border-radius: 34px; }
.esite-skin-painted-bauble .gftv-panel .ss-h::before { display: block !important; margin: 0 auto 8px !important; }

/* ---- find your table: a card with holly on its corner ---- */
.esite-skin.esite-skin-painted-bauble .ss-scope[data-type="seating"]:not([data-type="hero"]):not([data-type="countdown"]):not([data-type="none"]) .seatv-card .ss-h::before { display: none !important; }
.esite-skin-painted-bauble .seatv-card .ss-seat-body { position: relative; margin-top: 30px; padding: 46px clamp(22px, 5vw, 48px) 40px; border: 0; border-radius: 28px;
  background: var(--s-band); box-shadow: 0 24px 50px -36px rgba(0, 0, 0, .55); }
.esite-skin-painted-bauble .seatv-card .ss-seat-body::before { content: ""; position: absolute; right: -18px; top: -30px; width: 82px; aspect-ratio: .89; pointer-events: none;
  background: var(--sk-holly-berry, none) 50% 50% / contain no-repeat; }
.esite-skin-painted-bauble .ss-seat-table { font-family: var(--s-fhead); font-style: normal; font-size: 1.6rem; }

/* ---- RSVP: the card tied with a ribbon and the bow, the gifts at its foot ---- */
.esite-skin-painted-bauble .ss-scope[data-type="rsvp"]::before { display: none; }
.esite-skin-painted-bauble .ss-rsvp-form { position: relative; margin-top: 56px; padding: 58px 46px 44px; border-radius: 26px;
  background-image: linear-gradient(90deg, transparent calc(50% - 9px), var(--s-accent) calc(50% - 9px) calc(50% + 9px), transparent calc(50% + 9px));
  background-size: 100% 30px; background-repeat: no-repeat; background-position: 0 0;
  box-shadow: inset 0 0 0 3px var(--s-accent), 0 24px 50px -30px rgba(0, 0, 0, .5); }
.esite-skin-painted-bauble .ss-rsvp-form::after { content: ""; position: absolute; z-index: 3; left: 50%; top: -46px; width: 120px; aspect-ratio: 200 / 120; translate: -50% 0; pointer-events: none;
  background: var(--sk-bow, none) 50% 50% / contain no-repeat; }
.esite-skin-painted-bauble .ss-rsvp-form::before { content: ""; position: absolute; z-index: 3; right: -40px; bottom: -26px; width: 104px; aspect-ratio: .9; pointer-events: none;
  background: var(--sk-gift-yellow, none) 50% 100% / contain no-repeat; }
.esite-skin-painted-bauble .ss-rsvp-form .btn-rsvp { border-color: var(--s-accent); background: var(--s-accent); color: var(--s-bg); }

/* ---- the last word: the bauble with its holly ---- */
.esite-skin-painted-bauble .ss-closing::before { width: min(60vw, 260px); height: 250px; margin-bottom: 22px; background: var(--sk-bauble-set, none) 50% 100% / contain no-repeat; }
.esite-skin-painted-bauble .ss-closing-names { color: var(--s-accent); line-height: 1.3; }
.esite-skin-painted-bauble .ss-closing-line { font-family: var(--s-fbody); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--s-text); text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .esite-skin-painted-bauble .hs-classic.no-photo .cl-panel::after, .esite-skin-painted-bauble .cdv-tiles .cd-unit { animation: none; }
}
@media (max-width: 1100px) {
  .esite-skin-painted-bauble .ss-scope[data-type="story"]::before, .esite-skin-painted-bauble .ss-scope[data-type="faq"]::before,
  .esite-skin-painted-bauble .ss-scope[data-type="location"]::before { display: none; }
}
@media (max-width: 900px) {
  /* on a phone the bauble hangs over the words, smaller, and the words take the width */
  .esite-skin-painted-bauble { --pb-ball: clamp(150px, 42vw, 220px); --pb-drop: 92px; }
  .esite-skin-painted-bauble .hs-classic.no-photo .cl-panel { min-height: 100svh; align-content: start; padding: calc(var(--pb-drop) + var(--pb-ball) * 1.47 + 18px) 18px 120px; }
  .esite-skin-painted-bauble .hs-classic.no-photo .cl-panel::after { right: auto; left: calc(50% - var(--pb-ball) / 2); }
  .esite-skin-painted-bauble .ss-hero.hs-classic::after { top: 62px; height: 46px; }
  .esite-skin-painted-bauble .hs-classic .cl-names { font-size: calc(clamp(2.7rem, 12vw, 3.8rem) * var(--s-hscale, 1)); }
  .esite-skin-painted-bauble .ss-hero.hs-classic::before { background-size: 110px auto, 96px auto, 14px auto, 12px auto, 16px auto, 12px auto, 5px auto, 6px auto, 5px auto, 6px auto, cover;
    background-position: -6vw calc(100% + 4vw), calc(100% + 4vw) calc(100% + 4vw), 8% 24%, 88% 20%, 95% 33%, 5% 36%, 20% 14%, 84% 36%, 4% 30%, 96% 26%, 30% 50%; }
  .esite-skin-painted-bauble .ss-rsvp-form { padding: 52px 22px 32px; }
  .esite-skin-painted-bauble .ss-rsvp-form::before { right: -10px; bottom: -22px; width: 70px; }
}
@media (max-width: 640px) {
  .esite-skin-painted-bauble .cdv-tiles .ss-cd { flex-wrap: nowrap; gap: 6px; }
  .esite-skin-painted-bauble .cdv-tiles .cd-unit { width: 22vw; padding-top: 6.6vw !important; }
  .esite-skin-painted-bauble .cdv-tiles .cd-n { font-size: 1.35rem; }
  .esite-skin-painted-bauble .cdv-tiles .cd-l { font-size: .5rem; letter-spacing: .08em; }
}
