/* The names and stored candle_type IDs are independent of this presentation. */
.rb-lantern-art{display:inline-block;position:relative;isolation:isolate;width:var(--rb-lantern-size,112px);max-width:100%;aspect-ratio:5/6;line-height:0;vertical-align:middle}
.rb-lantern-art>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;position:relative;z-index:1}
.rb-lantern-art::before{content:"";position:absolute;inset:10% -12% 9%;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 50% 49%,#ffb55688 0,#ee9e5140 28%,transparent 66%);opacity:0}
.rb-lantern-light{position:absolute;z-index:2;inset:0;pointer-events:none;opacity:0}
.rb-lantern-light::before{content:"";position:absolute;left:50.6%;top:47%;width:48%;height:43%;transform:translate(-50%,-50%);background:radial-gradient(ellipse,#ffe2a37d 6%,#f3933b38 31%,transparent 68%)}
.rb-lantern-light::after{content:"";position:absolute;left:50.6%;top:46.8%;width:10%;height:14%;transform:translate(-50%,-100%);border-radius:68% 32% 56% 44% / 80% 56% 44% 20%;background:radial-gradient(ellipse at 51% 69%,#fffdfa 2%,#fff4c4 31%,#ffd777 57%,#e68437 83%,#dc5c24 100%);box-shadow:0 0 7px 1px #ffbf64ad}
.rb-lantern-art--tile{--rb-lantern-size:98px}
.rb-lantern-art--icon{--rb-lantern-size:38px;display:block;margin:auto}
.rb-lantern-art--showcase{--rb-lantern-size:clamp(142px,22vw,250px)}
.rb-lantern-art--recent{--rb-lantern-size:38px}
.rb-lantern-art--saved{--rb-lantern-size:71px}
.rb-lantern-art--preview{--rb-lantern-size:81px}
.rb-lantern-art--tile .rb-lantern-light,.rb-lantern-art--icon .rb-lantern-light,.just-lit .rb-lantern-art--saved .rb-lantern-light,.rb-is-lit .rb-lantern-art--preview .rb-lantern-light,html.site-night .rb-lantern-art:not(.rb-lantern-art--preview) .rb-lantern-light{opacity:1}
.rb-lantern-art--tile::before,.rb-is-lit .rb-lantern-art--preview::before{opacity:.49}
html.site-night .rb-lantern-art::before{opacity:.9}
html.site-night .rb-lantern-art--saved::before,html.site-night .rb-lantern-art--recent::before{opacity:.69}
.gesture-options .rb-lantern-art--icon>img{margin:0 auto}
.night-candle-illustration>.rb-lantern-art{align-self:center;justify-self:center}
.home-night-lanterns>.rb-lantern-art{margin:auto}
.memorial-page .lights-section .gift-memory .rb-lantern-art--saved{grid-column:1;grid-row:1;margin:0 auto;align-self:start}
.recent-light-lantern .rb-lantern-art--recent{max-width:none;flex:none}
.memorial-v14 .candle-options label{position:relative;min-width:0}
.memorial-v14 .candle-options input{width:1px;height:1px;left:2px;top:3px;padding:0;margin:0}
.memorial-v14 .candle-options .candle-option{min-height:135px;height:100%;gap:0;grid-template-rows:1fr auto;align-content:center;padding:.15rem .38rem .55rem;border-color:#a6a99f;background:#f9f4e9}
.memorial-v14 .candle-options .candle-option small{max-width:100%;font-size:.77rem;font-weight:650;line-height:1.26;overflow-wrap:anywhere;padding:0 0 .1rem;color:#37484e}
.memorial-v14 .candle-options input:checked+.candle-option{border-color:#375d65;background:#e6eeea;box-shadow:inset 0 0 0 1px #375d65}
.memorial-v14 .candle-options input:focus-visible+.candle-option{outline:2px solid #375d65;outline-offset:2px}
html.site-night .memorial-v14 .candle-options .candle-option{border-color:#6b625f;background:#29262e}
html.site-night .memorial-v14 .candle-options .candle-option small{color:#fff1df}
html.site-night .memorial-v14 .candle-options input:checked+.candle-option{border-color:#e4b979;background:#40372f;box-shadow:inset 0 0 0 1px #e4b979}
html.site-night .memorial-v14 .candle-options input:focus-visible+.candle-option{outline-color:#f6cb94}
@media(max-width:680px){
  .memorial-v14 .candle-options .candle-option{min-height:119px}
  .rb-lantern-art--tile{--rb-lantern-size:84px}
  .rb-lantern-art--showcase{--rb-lantern-size:155px}
  .rb-lantern-art--saved{--rb-lantern-size:63px}
}

/* Visitor lights: keep the original fixtures, but give their light a readable halo. */
html.site-night .rb-lantern-art:is(.rb-lantern-art--saved,.rb-lantern-art--recent),
.just-lit .rb-lantern-art--saved,
.rb-is-lit .rb-lantern-art--preview {
  --rb-visitor-core:clamp(7px,15%,12px);
}
html.site-night .rb-lantern-art:is(.rb-lantern-art--saved,.rb-lantern-art--recent)::before,
.just-lit .rb-lantern-art--saved::before,
.rb-is-lit .rb-lantern-art--preview::before {
  inset:-11% -31% -4%;
  background:radial-gradient(ellipse at 50% 48%,#ffb95bd9 0%,#ff9e4384 24%,#da7c3d35 46%,transparent 72%);
  opacity:.89;
}
html.site-night .rb-lantern-art:is(.rb-lantern-art--saved,.rb-lantern-art--recent) .rb-lantern-light::before,
.just-lit .rb-lantern-art--saved .rb-lantern-light::before,
.rb-is-lit .rb-lantern-art--preview .rb-lantern-light::before {
  width:69%; height:58%;
  background:radial-gradient(ellipse,#ffe7a4c4 0%,#ffb14e73 26%,#ffad4726 50%,transparent 72%);
}
html.site-night .rb-lantern-art:is(.rb-lantern-art--saved,.rb-lantern-art--recent) .rb-lantern-light::after,
.just-lit .rb-lantern-art--saved .rb-lantern-light::after,
.rb-is-lit .rb-lantern-art--preview .rb-lantern-light::after {
  width:var(--rb-visitor-core); min-height:7px; height:17%;
  background:radial-gradient(ellipse at 51% 69%,#fffdfa 2%,#fff6c4 35%,#ffd777 64%,#e68437 90%,#dc5c24 100%);
  box-shadow:0 0 7px 2px #ffd984c7,0 0 15px 3px #fbb05280;
}
@media (prefers-reduced-motion:no-preference) {
  .just-lit .rb-lantern-art--saved .rb-lantern-light::after,
  .rb-is-lit .rb-lantern-art--preview .rb-lantern-light::after {
    animation:rb-new-visitor-flame 2.2s ease-in-out 2;
  }
}
@keyframes rb-new-visitor-flame {
  0%,100% { transform:translate(-50%,-100%); }
  42% { transform:translate(-49%,-97%) rotate(9deg) scale(1.13,1.22); }
  70% { transform:translate(-52%,-103%) rotate(-7deg) scale(.93,.93); }
}
