/* A twilight, storybook atmosphere drawn from the first photograph in this series. */
body:has(.series-images img[src*="daydreaming-"]) {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  color: #eee7f0;
  background: #100e18;
}

body:has(.series-images img[src*="daydreaming-"])::before,
body:has(.series-images img[src*="daydreaming-"])::after {
  content: "";
  position: fixed;
  inset: -4%;
  z-index: -1;
  pointer-events: none;
}

body:has(.series-images img[src*="daydreaming-"])::before {
  background: url("assets/photos/daydreaming-efb03d803dbf.webp") center 38% / cover no-repeat;
  filter: blur(34px) saturate(.78);
  opacity: .22;
  transform: scale(1.08);
}

body:has(.series-images img[src*="daydreaming-"])::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 13%, rgba(192, 151, 217, .29), transparent 34%),
    radial-gradient(ellipse at 82% 38%, rgba(118, 167, 191, .17), transparent 37%),
    radial-gradient(ellipse at 51% 93%, rgba(221, 171, 194, .15), transparent 36%),
    radial-gradient(1px 1px at 13% 23%, rgba(255,255,255,.85) 60%, transparent 100%),
    radial-gradient(1px 1px at 29% 8%, rgba(242,222,255,.8) 60%, transparent 100%),
    radial-gradient(1px 1px at 47% 17%, rgba(255,255,255,.75) 60%, transparent 100%),
    radial-gradient(1px 1px at 72% 11%, rgba(235,221,255,.75) 60%, transparent 100%),
    radial-gradient(1px 1px at 88% 27%, rgba(255,255,255,.8) 60%, transparent 100%),
    radial-gradient(1px 1px at 65% 56%, rgba(244,222,255,.65) 60%, transparent 100%),
    radial-gradient(1px 1px at 21% 68%, rgba(255,255,255,.65) 60%, transparent 100%);
  background-size: auto, auto, auto, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  opacity: .78;
  animation: daydream-glimmer 9s ease-in-out infinite alternate;
}

@keyframes daydream-glimmer {
  from { opacity: .58; }
  to { opacity: .88; }
}

body:has(.series-images img[src*="daydreaming-"]) .series-count {
  color: #d9bddf;
}

body:has(.series-images img[src*="daydreaming-"]) h1 {
  color: #f3e9f4;
  text-shadow: 0 0 34px rgba(203, 161, 221, .28);
}

body:has(.series-images img[src*="daydreaming-"]) .back,
body:has(.series-images img[src*="daydreaming-"]) .next-series,
body:has(.series-images img[src*="daydreaming-"]) .forest-return {
  color: #e1d4e6;
}

body:has(.series-images img[src*="daydreaming-"]) .series-images figure {
  position: relative;
  isolation: isolate;
}

body:has(.series-images img[src*="daydreaming-"]) .series-images figure::before {
  content: "";
  position: absolute;
  inset: 12% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(184, 139, 207, .25), rgba(113, 151, 178, .12) 42%, transparent 72%);
  filter: blur(42px);
  opacity: .78;
}

body:has(.series-images img[src*="daydreaming-"]) .series-images img {
  filter: drop-shadow(0 16px 38px rgba(6, 4, 13, .36));
}

body:has(.series-images img[src*="daydreaming-"]) .forest-return::before {
  background:
    radial-gradient(ellipse 68% 58% at 31% 42%, rgba(186, 151, 208, .26), rgba(127, 146, 179, .11) 42%, transparent 77%),
    radial-gradient(ellipse 54% 74% at 70% 60%, rgba(117, 157, 179, .19), transparent 72%);
}

body:has(.series-images img[src*="daydreaming-"]).has-dream-light,
body:has(.series-images img[src*="daydreaming-"]).has-dream-light a,
body:has(.series-images img[src*="daydreaming-"]).has-dream-light button {
  cursor: none;
}

body:has(.series-images img[src*="daydreaming-"]).has-dream-light .series-images img {
  cursor: none;
}

.dream-cursor-light {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.78);
  background: radial-gradient(circle, rgba(255,255,255,.94) 0 2px, rgba(246,224,255,.72) 3px, rgba(205,164,231,.28) 10px, rgba(166,190,226,.12) 20px, transparent 72%);
  filter: drop-shadow(0 0 8px rgba(231,202,255,.7)) drop-shadow(0 0 22px rgba(190,165,238,.34));
  transition: opacity .22s ease, transform .22s ease;
  will-change: left, top, transform;
}

.dream-cursor-light.is-visible {
  opacity: .96;
  transform: translate(-50%, -50%) scale(1);
}

.dream-cursor-light.is-pressed {
  transform: translate(-50%, -50%) scale(.72);
}

@media (hover: none), (pointer: coarse) {
  body:has(.series-images img[src*="daydreaming-"]),
  body:has(.series-images img[src*="daydreaming-"]) a,
  body:has(.series-images img[src*="daydreaming-"]) button { cursor: auto; }
  .dream-cursor-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.series-images img[src*="daydreaming-"])::after { animation: none; }
  .dream-cursor-light { transition: none; }
}
