/* addon/story/080 Illuminated page (INV-14B Ink & Bloom, A2199), lead colour coral. W1c (A2210, owner: the couple's picture in the
   story): the couple's main photo is the plate, a whole print with paint bleeding out behind it and their names under it, and the
   story's first letter is gilded in a painted roundel inside the words on every size. A couple with no photo keeps the letter on
   its own plate on the laptop's left page. The script sets the letter, so the words and the plate are whole without it, and a
   first letter outside the Latin alphabet stays plain. */
/* phone and tablet: the heading, the photo, the words */
.st080--photo .st080__sp { display: flex; flex-direction: column; }
.st080--photo .st080__page { display: contents; }
.st080--photo .k-ib-head { order: -1; }
.st080__pic { position: relative; width: min(84%, calc(var(--k-ig-u) * 430)); margin: calc(var(--k-ig-u) * 26) auto 0; }
.st080__print { position: relative; z-index: 1; padding: calc(var(--k-ig-u) * 13); rotate: -1deg; }
.st080__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--st080-pos, 50% 35%); }
.st080__pw1 { width: 88%; left: -17%; top: -7%; opacity: .58; }
.st080__pw2 { width: 60%; right: -11%; bottom: 3%; opacity: .52; }
.st080__pf { position: absolute; z-index: 2; background: center / contain no-repeat; pointer-events: none; }
.st080__pf--a { width: 29%; aspect-ratio: 1; left: -8%; bottom: 3%; }
.st080__pf--b { width: 15%; aspect-ratio: 240 / 384; right: -4%; top: -5%; rotate: 14deg; }
/* these two lie over the photo, so they are the solid-backed parts: on the plain parts a dark photo showed through the pale petals */
html:not(.js) .st080__pf--a, html.kjy-opening .st080__pf--a { background-image: url("/skins/ink_bloom_luxe/assets/art/part-rose-a-solid.webp"); }
html:not(.js) .st080__pf--b, html.kjy-opening .st080__pf--b { background-image: url("/skins/ink_bloom_luxe/assets/art/part-bud-solid.webp"); }
.st080__who { position: relative; z-index: 1; margin-top: calc(var(--k-ig-u) * 14); text-align: center; font: italic 500 calc(var(--k-ig-u) * 19)/1.2 var(--k-font-book); color: var(--k-ink-soft); }
.st080__text { position: relative; display: flow-root; margin-top: calc(var(--k-ig-u) * 22); font: 500 calc(var(--k-ig-u) * 20.5)/1.5 var(--k-font-book); color: var(--k-ink-body); text-align: left; text-wrap: pretty; }
.st080__p + .st080__p { margin-top: .85em; }
/* the laptop's plate: on a phone it stays out of the way and its art is never fetched */
.st080__plate { display: none; }
/* the phone's illuminated letter: three lines deep, the words run round it. It stands beside the paragraph, not inside it, so the
   words' printed grain never dulls the gold; the first letter stays in the words for screen readers and for the laptop. */
.st080__cap { position: relative; float: left; display: grid; place-items: center; width: 3.9em; aspect-ratio: 1; margin: .05em .55em .1em 0; font-size: calc(var(--k-ig-u) * 20.5); }
.st080__cap b { position: relative; font: 400 2.2em/1 var(--k-font-display); }
.st080__cap b, .st080__L { color: #8E6C42; background: var(--k-ig-foil); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.st080__cap .k-ib-daub { inset: -5%; width: 110%; opacity: .7; }
.st080__c1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.st080__ring { position: absolute; inset: 7%; border-radius: 50%; border: 1px solid var(--kb-frame); box-shadow: 0 0 0 3px var(--k-paper), 0 0 0 3.6px var(--kb-frame); pointer-events: none; }
/* the end of the page: one small painted flower between two gold hairlines */
.st080__orn { position: relative; display: block; width: calc(var(--k-ig-u) * 38); aspect-ratio: 320 / 313; margin: calc(var(--k-ig-u) * 22) auto 0; background: center / contain no-repeat; }
.st080__orn::before, .st080__orn::after { content: ""; position: absolute; top: 50%; width: calc(var(--k-ig-u) * 54); height: 1px; }
.st080__orn::before { right: calc(100% + 8px); background: linear-gradient(90deg, transparent, var(--kb-frame)); }
.st080__orn::after { left: calc(100% + 8px); background: linear-gradient(270deg, transparent, var(--kb-frame)); }
html:not(.js) .st080__orn, html.kjy-opening .st080__orn { background-image: url("/skins/ink_bloom_luxe/assets/art/part-daisy-a.webp"); }
@media (min-width: 1024px) and (min-aspect-ratio: 1/1) {
  .st080__text { margin-top: calc(var(--k-ig-u) * 26); font-size: calc(var(--k-ig-u) * 23); }
  /* the photo on the left page, the words on the right */
  .st080--photo .st080__sp { display: grid; }
  .st080--photo .st080__page { display: block; }
  .st080__pic { justify-self: end; width: min(100%, calc(var(--k-ig-u) * 440)); margin: 0; }
  .st080__pf--b { top: 2%; right: -5%; } /* clear of the garland above the page */
  /* no photo: the letter leaves the words for its plate, and they read as plain text again */
  .st080:not(.st080--photo) .st080__cap { display: none; }
  .st080:not(.st080--photo) .st080__c1 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .st080__plate { position: relative; display: grid; place-items: center; justify-self: end; width: min(100%, calc(var(--k-ig-u) * 430)); aspect-ratio: 4 / 5; overflow: hidden; }
  .st080__w1 { width: 78%; left: 11%; top: 19%; opacity: .6; }
  .st080__w2 { width: 42%; right: 6%; bottom: 8%; opacity: .46; }
  .st080__w3 { width: 40%; left: 5%; top: 5%; opacity: .36; }
  .st080__L { position: relative; font: 400 calc(var(--k-ig-u) * 158)/1 var(--k-font-display); }
  .st080__ring--plate { inset: auto; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; box-shadow: 0 0 0 4px var(--k-paper), 0 0 0 4.8px var(--kb-frame); }
  .st080__L:empty ~ .st080__ring--plate { display: none; }
  .st080__fl { position: absolute; background: center / contain no-repeat; }
  .st080__fl--a { width: 33%; aspect-ratio: 1; left: 5%; bottom: 5%; }
  .st080__fl--b { width: 20%; aspect-ratio: 240 / 384; right: 9%; top: 6%; rotate: 14deg; }
  .st080__fl--c { width: 22%; aspect-ratio: 300 / 472; left: 7%; top: 7%; rotate: -16deg; }
  .st080__fl--d { width: 19%; aspect-ratio: 320 / 313; right: 8%; bottom: 7%; }
  .st080__fl--e { display: none; width: 52%; aspect-ratio: 460 / 480; left: 24%; top: 26%; }
  /* no letter to gild: a lily takes the middle of the plate */
  .st080__L:empty ~ .st080__fl--e { display: block; }
  html:not(.js) .st080__fl--a, html.kjy-opening .st080__fl--a { background-image: url("/skins/ink_bloom_luxe/assets/art/part-rose-a.webp"); }
  html:not(.js) .st080__fl--b, html.kjy-opening .st080__fl--b { background-image: url("/skins/ink_bloom_luxe/assets/art/part-bud.webp"); }
  html:not(.js) .st080__fl--c, html.kjy-opening .st080__fl--c { background-image: url("/skins/ink_bloom_luxe/assets/art/part-sprig.webp"); }
  html:not(.js) .st080__fl--d, html.kjy-opening .st080__fl--d { background-image: url("/skins/ink_bloom_luxe/assets/art/part-daisy-a.webp"); }
  html:not(.js) .st080__fl--e, html.kjy-opening .st080__fl--e { background-image: url("/skins/ink_bloom_luxe/assets/art/part-lily.webp"); }
}
/* stage 2: line first, colour second. The real ring has no transition: it returns in the frame the drawn line goes, so nothing blinks. */
.st080__draw { display: none; position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; rotate: -90deg; fill: none; stroke: var(--k-ig-line); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; }
html.kjy-fx:not(.kjy-lite) .st080.is-armed:not(.is-done) .st080__draw { display: block; }
html.kjy-fx:not(.kjy-lite) .st080.is-armed.is-in .st080__draw { stroke-dashoffset: 0; transition: stroke-dashoffset .9s ease-in-out; }
html.kjy-fx:not(.kjy-lite) .st080.is-armed:not(.is-done) .st080__ring { border-color: transparent; box-shadow: none; }
html.kjy-fx:not(.kjy-lite) .st080.is-armed:not(.is-in) .st080__cap b, html.kjy-fx:not(.kjy-lite) .st080.is-armed:not(.is-in) .st080__L { opacity: 0; }
html.kjy-fx:not(.kjy-lite) .st080.is-in .st080__cap b, html.kjy-fx:not(.kjy-lite) .st080.is-in .st080__L { transition: opacity .6s ease .45s; }
html.kjy-fx:not(.kjy-lite) .st080.is-armed:not(.is-in) .st080__cap .k-ib-daub, html.kjy-fx:not(.kjy-lite) .st080.is-armed:not(.is-in) .st080__plate .k-ib-daub { opacity: 0; scale: .55; }
html.kjy-fx:not(.kjy-lite) .st080.is-in .st080__cap .k-ib-daub, html.kjy-fx:not(.kjy-lite) .st080.is-in .st080__plate .k-ib-daub { transition: opacity 1s ease .75s, scale 1.2s cubic-bezier(.2, .7, .2, 1) .75s; }
