/* Christmas photographic showcase */
.dispatch {
  --scene-ink:#442d39; --orbit:#98745863; --road:#826646;
  --foil:#966b41; --bauble:#e5bdb9; --star-fill:#f5dfb9;
  position:relative;isolation:isolate;overflow:hidden;display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);grid-template-areas:"copy gallery" "note gallery";align-items:center;
  padding:clamp(2rem,4.9vw,5rem) var(--pad) clamp(5.2rem,7vw,7rem);
  color:var(--scene-ink);
  background:radial-gradient(ellipse at 81% 24%,#f9eee6 0%,transparent 57%),
             linear-gradient(112deg,#f3eae3 5%,#ebd9d6 58%,#e5cbcf 100%);
}
.dispatch::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 82% 23%,#5e394a 0%,transparent 63%),
             linear-gradient(116deg,#342127 8%,#3d2832 56%,#30212b 100%);
  opacity:0;
}
[data-theme="charcoal"] .dispatch {
  --scene-ink:#f4e7cf;--orbit:#e6cda33b;--road:#c6ad87;
  --foil:#d6b17b;--bauble:#643c4a;--star-fill:#705445;
}
[data-theme="charcoal"] .dispatch::before {opacity:1}
.festive-canopy {
  position:absolute;top:0;right:0;width:min(69%,70rem);z-index:0;
  overflow:hidden;pointer-events:none;color:var(--foil);
}
.festive-canopy svg {display:block;width:100%;height:auto}
.garland-cord {opacity:.69;stroke-width:1.15}
.pendant {stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.bauble-shell {fill:var(--bauble)}
.star-shell {fill:var(--star-fill)}
.canopy-stars {opacity:.74}
.canopy-snow {opacity:.72}
.holiday-note {display: flex;align-items: center;gap: 1rem;border-top: 1px solid var(--orbit);padding-top: 1.3rem;margin-top: 1.6rem;max-width: 30rem;grid-area: note;align-self: start;}
.holiday-note>img {width: 3.8rem;height: 4.6rem;object-fit: cover;border: 3px solid #eeddbf;transform: rotate(-4deg);flex: none;}
.greeting-label {font: 600 .77rem/1.3 Arial,sans-serif;text-transform: uppercase;letter-spacing: .14em;color: var(--scene-ink);}
.greeting-list {margin: .35rem 0 .12rem;max-width: 38ch;}
.greeting-list p {font: italic clamp(1.07rem, 1.36vw, 1.35rem)/1.3 Georgia,serif;text-wrap: pretty;}
.holiday-note button {color: inherit;text-decoration: underline;text-underline-offset: .22em;font-size: .85rem;min-height: 2rem;}

.gallery-caption {color:var(--muted);font-size:.88rem;margin:.6rem 0}
.dispatch-copy {grid-area:copy;align-self:end;position:relative;z-index:2;padding-right:1rem}
.dispatch-label {font-size:.72rem;text-transform:uppercase;letter-spacing:.19em;display:flex;align-items:center;gap:.7rem}
.dispatch-label span {font-size:1.3rem;color:var(--road)}
.dispatch-title {font-size:clamp(4.55rem,7.95vw,9.4rem);line-height:.86;letter-spacing:-.082em;margin:1.25rem 0 1.5rem}
.dispatch-title em {display:block;color:#7f4c49;letter-spacing:-.073em}
[data-theme="charcoal"] .dispatch-title em {color:#dbc196}
.dispatch-intro {font-size:clamp(1rem,1.13vw,1.17rem);line-height:1.5;max-width:36ch;color:var(--muted)}
.dispatch-links {display:flex;gap:1.4rem;align-items:center;margin-top:1.6rem;flex-wrap:wrap}
.dispatch-links .button {border-radius:99px;padding-inline:1.5rem}
.dispatch-gallery {grid-area:gallery;min-width:0;position:relative;z-index:1}
.print-stage {position:relative;display:grid;place-items:center;height:clamp(21rem,32.5vw,35rem);touch-action:pan-y}
.orbit {position:absolute;inset:13% -8% 12%;border:1px solid var(--orbit);border-radius:50%;transform:rotate(-14deg)}
.orbit:before,.orbit:after {content:'✦';position:absolute;left:19%;top:0;color:var(--road);font-size:.86rem;line-height:1}
.orbit:after {left:auto;top:auto;right:14%;bottom:6%;font-size:.67rem}
.gift-print {
  width:clamp(14rem,24.6vw,28rem);grid-area:1/1;display:block;position:relative;
  transform-origin:50% 90%;transition:transform .65s cubic-bezier(.4,0,.2,1),filter .65s,opacity .65s;
}
.gift-print[data-place="front"] {z-index:3;transform:translateY(-1%) rotate(-3deg)}
.gift-print[data-place="left"] {z-index:1;transform:translate(-41%,4%) rotate(-17deg) scale(.77);filter:brightness(.83) blur(.8px)}
.gift-print[data-place="right"] {z-index:2;transform:translate(44%,0%) rotate(15deg) scale(.79);filter:brightness(.86) blur(.8px)}
.gift-print[data-place="back"] {z-index:0;opacity:0;transform:translateY(-6%) scale(.56);filter:blur(3px)}
.print-inner {background:#f3e8d0;color:#302923;padding:clamp(.44rem,.68vw,.78rem);box-shadow:0 .9rem 2.2rem #0004;border:1px solid #c9b899;border-radius:2px}
.print-photo {overflow:hidden}
.print-photo img {width:100%;aspect-ratio:1.33;object-fit:cover}
.print-caption {display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem .25rem .2rem}
.print-caption small,.print-caption strong {display:block}
.print-caption small {font:600 .59rem/1.2 Arial,sans-serif;text-transform:uppercase;letter-spacing:.13em;color:#6e5a40;margin-bottom:.23rem}
.print-caption strong {font:clamp(1.14rem,1.72vw,2rem)/1.1 Georgia,serif;letter-spacing:-.05em}
.print-caption>span:last-child {font-size:.9rem;white-space:nowrap}
.reel-controls {position:relative;z-index:3;display:flex;align-items:center;justify-content:center;gap:.68rem;margin:.25rem 0 0}
.reel-controls button {display:grid;place-items:center;border-radius:50%;border:1px solid var(--orbit);width:2.75rem;height:2.75rem;line-height:1;font:1.4rem/1 Georgia,serif}
.reel-controls button:hover {background:var(--panel)}
.reel-controls [data-ride-pause] {font:600 .8rem/1 Arial,sans-serif;margin-left:.4rem}
.reel-dots {display:flex;align-items:center;gap:.3rem}
.reel-dots i {width:.32rem;height:.32rem;border-radius:1rem;background:var(--road);opacity:.35;transition:width .4s,opacity .4s}
.reel-dots .current {width:1.25rem;opacity:1}
.ride-lane {position:absolute;bottom:.5rem;left:0;right:0;height:clamp(3.1rem,4.9vw,5.5rem);color:var(--road);pointer-events:none}
.ride-lane:after {position:absolute;content:'';left:0;right:0;bottom:0;border-bottom:1px solid var(--orbit)}
.sleigh-flight {height:100%;position:absolute;bottom:0;left:0;width:clamp(8rem,12vw,12rem);display:flex;align-items:flex-end;justify-content:center;transform:translateX(15vw)}
.santa-sleigh {height:100%;width:auto;max-width:100%;display:block}
.collection-strip {padding:.85rem var(--pad);display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#e8d9bb;border-bottom:1px solid #b89f7f;color:#382e26}
.collection-strip .kicker {color:#62503d}
.collection-strip a {font:italic clamp(.96rem,1.45vw,1.52rem)/1.1 Georgia,serif}
.collection-strip a:hover {text-decoration:underline;text-underline-offset:.2em}
.collection-strip i {color:#8b7358;font-size:.8rem}
.whatsapp-float,.whatsapp-action {background:#146247;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:.55rem}
.whatsapp-float {position:fixed;right:max(1.1rem,env(safe-area-inset-right));bottom:max(1.1rem,env(safe-area-inset-bottom));z-index:6;box-shadow:0 4px 16px #0004;border:1px solid #fff7;border-radius:99px;padding:.73rem 1rem;font-size:.875rem;font-weight:600}
.whatsapp-float img,.whatsapp-action img {width:1.35rem;height:1.35rem}
.whatsapp-float:hover,.whatsapp-action:hover {background:#0d523c}
body:has(dialog[open]) .whatsapp-float {visibility:hidden}
.bag-footer .link-btn {margin:0 .85rem .7rem 0}
@keyframes santa-flight {from{transform:translateX(-13rem)}to{transform:translateX(calc(100vw + 1rem))}}
@keyframes holiday-arrival {from{opacity:0;transform:translateY(16px);filter:blur(5px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes sleigh-bob {50%{transform:translateY(-2px)}}
@keyframes print-float {50%{transform:translateY(-5px) rotate(.6deg)}}
@keyframes pendant-sway {
  from {transform:rotate(-5deg)}
  to {transform:rotate(5deg)}
}
@keyframes foil-glimmer {
  0%,100% {opacity:.35;transform:scale(.72)}
  52% {opacity:1;transform:scale(1)}
}
@keyframes snow-drift {
  0% {opacity:0;transform:translate(-5px,-10px)}
  22%,65% {opacity:.86}
  100% {opacity:0;transform:translate(9px,25px)}
}
@media(prefers-reduced-motion:no-preference) {
  .dispatch::before {transition:opacity .55s ease-in-out}
  .pendant {transform-origin:0 0;animation:pendant-sway 3.6s ease-in-out infinite alternate}
  .pendant-bauble {animation-duration:4.4s;animation-delay:-2.3s}
  .pendant-star {animation-duration:3.8s;animation-delay:-5.6s}
  .canopy-stars use {transform-box:fill-box;transform-origin:center;animation:foil-glimmer 4.2s ease-in-out infinite}
  .canopy-stars use:nth-child(2) {animation-delay:-2.7s}
  .canopy-stars use:nth-child(3) {animation-delay:-1.4s}
  .canopy-snow g {animation:snow-drift 7.8s linear -2s infinite}
  .canopy-snow g+g {animation-delay:-5.6s;animation-duration:9.4s}
  .sleigh-flight {animation:santa-flight 22s linear -5s infinite}
  .sleigh-body,.sleigh-deer {animation:sleigh-bob 1.45s ease-in-out infinite}
  .sleigh-deer {animation-delay:-.38s}
  .gift-print[data-place="front"] .print-inner {animation:print-float 4s ease-in-out infinite}
  .dispatch-title,.dispatch-intro,.dispatch-links {animation:holiday-arrival .85s cubic-bezier(.16,1,.3,1) backwards}
  .dispatch-intro {animation-delay:.12s}.dispatch-links {animation-delay:.24s}
  .dispatch:is([data-paused="true"],[data-resting="true"]) :is(.pendant,.canopy-stars use,.canopy-snow g,.sleigh-flight,.sleigh-body,.sleigh-deer,.print-inner) {animation-play-state:paused}
  .whatsapp-float {transition:transform .22s,background .22s}
  .whatsapp-float:hover {transform:translateY(-2px)}
}
@media(max-width:850px) and (min-width:681px) {
  .dispatch {grid-template-columns:.95fr 1.05fr;padding-inline:2rem}
  .gift-print {width:clamp(12.5rem,25vw,16rem)}
  .print-stage {height:19rem}
}
@media(max-width:680px) {
  .dispatch {grid-template-columns:1fr;grid-template-areas:"copy" "gallery" "note";padding:1.65rem var(--pad) 3.6rem}
  .festive-canopy {width:35%;height:5.6rem}
  .festive-canopy svg {position:absolute;right:-2.7rem;top:-.4rem;width:30rem;max-width:none}
  .dispatch-copy {padding:0}.dispatch-label {font-size:.66rem}.dispatch-label span {font-size:1.05rem}
  .dispatch-title {font-size:clamp(3.3rem,10.8vw,4.8rem);line-height:1;margin:.55rem 0 .65rem}
  .dispatch-title em {display:block;margin:0;white-space:nowrap}
  .dispatch-intro {font-size:.95rem;line-height:1.4;max-width:40ch}
  .dispatch-links {gap:1.15rem;margin-top:1rem}.dispatch-links .button {min-height:2.65rem}
  .holiday-note {margin:1.1rem 0 .45rem;padding-top:.85rem;max-width:100%}.holiday-note>img {width:2.8rem;height:3.4rem}.greeting-list p {font-size:1rem}
  .dispatch-gallery {margin-top:1rem}
  .print-stage {height:clamp(16rem,68vw,23rem)}
  .gift-print {width:clamp(11.4rem,50.5vw,17.3rem)}
  .print-caption {padding:.48rem .1rem .16rem}.print-caption small {font-size:.5rem}.print-caption>span:last-child {font-size:.75rem}
  .reel-controls {margin-top:0;gap:.5rem}.reel-controls button {width:2.75rem;height:2.75rem}
  .ride-lane {height:2.9rem;bottom:.3rem}.sleigh-flight {width:7.25rem}
  .collection-strip {justify-content:center;gap:clamp(.4rem,2.2vw,1.15rem);padding:.85rem .7rem}.collection-strip .kicker {display:none}.collection-strip a {font-size:clamp(.77rem,3.4vw,1.08rem)}.collection-strip i {font-size:.55rem}
  .whatsapp-float {width:3.15rem;height:3.15rem;padding:.75rem;right:.85rem;bottom:max(.85rem,env(safe-area-inset-bottom))}
  .whatsapp-float img {width:1.6rem;height:1.6rem}.whatsapp-float span {display:none}
}
@media(prefers-reduced-motion:reduce) {
  .dispatch,.gift-print,.reel-dots i {transition:none}
}

/* The same paper and ribbon open around each hamper's own photograph. */
.reel-controls { flex-wrap: wrap; }
.reel-controls .unwrap-trigger {
  width: auto;
  padding: 0 1rem;
  border-radius: 2rem;
  border-color: var(--foil);
  color: var(--scene-ink);
  font: 600 .87rem/1.1 Arial, sans-serif;
}
.unwrap-dialog {
  --wrap-paper: #eee0c5;
  --wrap-grain: #937a4e21;
  --ribbon-dark: #642439;
  --ribbon-mid: #9b4054;
  --ribbon-light: #cd8992;
  --ribbon-edge: #d59d96;
  width: min(38rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: .65rem;
  overflow: auto;
}
[data-theme="charcoal"] .unwrap-dialog {
  --wrap-paper: #462d3a;
  --wrap-grain: #f1d7ad1f;
  --ribbon-dark: #996d40;
  --ribbon-mid: #d5b080;
  --ribbon-light: #f8e6bd;
  --ribbon-edge: #efce9c;
}
.unwrap-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  height: min(52svh, 25rem);
  background: var(--wrap-paper);
}
.unwrap-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.unwrap-close {
  position: absolute;
  z-index: 2;
  top: .75rem;
  right: .75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #d3c1ae;
  border-radius: 50%;
  background: #fcf6e9;
  color: #382430;
  font: 1.65rem/1 Georgia, serif;
}
.unwrap-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .65rem 1.15rem;
  padding: clamp(1rem, 3vw, 1.65rem);
}
.unwrap-copy h2 {
  font: 400 clamp(1.7rem, 3.6vw, 2.6rem)/1.04 Georgia, serif;
  letter-spacing: -.05em;
}
.unwrap-caption { color: var(--muted); margin-top: .48rem; font-size: .91rem; }
.unwrap-next { justify-self: start; }
.unwrap-dialog [hidden], .reel-controls [hidden] { display: none; }
.parcel-wrap { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .parcel-wrap {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    perspective: 80rem;
  }
  .parcel-leaf {
    position: absolute;
    inset: 0 50% 0 0;
    background-color: var(--wrap-paper);
    background-image: repeating-linear-gradient(42deg, transparent 0 11px, var(--wrap-grain) 11px 12px),
      linear-gradient(120deg, #ffffff0d, transparent 60%, #0002);
    box-shadow: 0 0 12px #251a2580;
    transform-origin: left center;
  }
  .parcel-right { inset: 0 0 0 50%; transform-origin: right center; }
  .parcel-leaf::after, .bow-loop, .bow-knot {
    background: linear-gradient(177deg, var(--ribbon-edge), var(--ribbon-dark) 7%, var(--ribbon-mid) 30%, var(--ribbon-light) 48%, var(--ribbon-mid) 70%, var(--ribbon-dark) 96%);
    box-shadow: 0 4px 8px #1a121c42;
  }
  .parcel-leaf::after { content: ""; position: absolute; top: 45%; left: 0; width: 100%; height: 10%; }
  .parcel-bow { position: absolute; left: 50%; top: 50%; }
  .bow-loop {
    position: absolute;
    bottom: -.25rem;
    width: clamp(3rem, 9vw, 4.8rem);
    height: 2.75rem;
    border: 1px solid var(--ribbon-edge);
  }
  .loop-left { right: 0; border-radius: 65% 60% 8% 50%; transform: rotate(17deg); transform-origin: right bottom; }
  .loop-right { left: 0; border-radius: 60% 65% 50% 8%; transform: rotate(-17deg); transform-origin: left bottom; }
  .bow-knot { position: absolute; inset: -.6rem auto auto -.53rem; width: 1.06rem; height: 1.2rem; border-radius: 30%; transform: rotate(-10deg); }
  .unwrapped .parcel-left { animation: paper-left .76s cubic-bezier(.45,.02,.23,1) .22s both; }
  .unwrapped .parcel-right { animation: paper-right .76s cubic-bezier(.45,.02,.23,1) .28s both; }
  .unwrapped .loop-left { animation: bow-left .5s ease-in both; }
  .unwrapped .loop-right { animation: bow-right .5s ease-in both; }
  .unwrapped .bow-knot { animation: bow-knot .36s ease-in both; }
}
@keyframes paper-left { to { transform: translateX(-104%) rotateY(-30deg); } }
@keyframes paper-right { to { transform: translateX(104%) rotateY(30deg); } }
@keyframes bow-left { to { transform: translate(-6rem, .6rem) rotate(-30deg) scaleY(.42); opacity: 0; } }
@keyframes bow-right { to { transform: translate(6rem, -.5rem) rotate(25deg) scaleY(.4); opacity: 0; } }
@keyframes bow-knot { to { transform: translateY(-1rem) rotate(-35deg) scale(.6); opacity: 0; } }
@media (max-width: 520px) {
  .unwrap-copy { grid-template-columns: 1fr; }
  .unwrap-shop { justify-self: start; }
  .unwrap-stage { height: min(45svh, 20rem); }
  .reel-controls .unwrap-trigger { padding-inline: .8rem; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .unwrap-dialog[open] { animation: none; }
}


/* Slightly smaller heading, introduction and gift tag in the top section (desktop and tablet) */
@media (min-width: 851px) {
  .dispatch-title { font-size: clamp(3.4rem, 5.9vw, 6.8rem); margin: 1rem 0 1.2rem; }
  .dispatch-intro { font-size: clamp(.92rem, .98vw, 1.02rem); }
  .greeting-list p { font-size: clamp(.95rem, 1.1vw, 1.1rem); }
  .greeting-label { font-size: .7rem; }
  .holiday-note > img { width: 4.4rem; height: auto; }
}
