/* Homepage and guest book: the arrow cursor over the carousel's
   thumbnails (js/drag-cursor.js).
   Layers: .dc is moved to the mouse and .dc_body stretches with its speed
   (JS), .dc_shell pops in and out (CSS), .dc_turn turns the arrow (JS). */

html.has-drag-cursor:not(.is-leaving) .hcar .hcar_media,
html.has-drag-cursor:not(.is-leaving) .hlist a.hcar_media,
html.has-drag-cursor .hcar.is-dragging,
html.has-drag-cursor .hcar.is-dragging * {
  cursor: none;
}

.dc {
  --dc-ink: #130f0f;
  --dc-face: rgba(255, 255, 255, 0.72);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  will-change: transform;
}
html.is-dark .dc {
  --dc-ink: #f4f4f4;
  --dc-face: rgba(19, 15, 15, 0.55);
}

.dc_shell {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  opacity: 0;
  scale: 0.3;
  transition:
    opacity 0.2s ease,
    scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dc.is-on .dc_shell {
  opacity: 1;
  scale: 1;
}
/* Over the middle card (a click opens it): a little bigger */
.dc.is-on.is-open .dc_shell {
  scale: 1.15;
}
/* Pressed while dragging: squeezed a little */
.dc.is-on.is-dragging .dc_shell {
  scale: 0.88;
  transition-duration: 0.2s, 0.25s;
}

/* The glass pill. The arrow and the clicking pointer sit on top of each
   other; over something a click opens, the arrow fades out for the pointer. */
.dc_body {
  display: grid;
  place-items: center;
  width: 64px;
  height: 36px;
  border-radius: 999px;
  background: var(--dc-face);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: var(--glass-key-shadow);
  color: var(--dc-ink);
  will-change: transform;
}
.dc_turn,
.dc_click {
  grid-area: 1 / 1;
  transition: opacity 0.15s ease;
}
.dc_turn svg,
.dc_click {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75; /* the site's icons: 1.75 on a 24 grid, shown at 20px */
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dc_click {
  opacity: 0;
}
.dc.is-open .dc_click {
  opacity: 1;
}
.dc.is-open .dc_turn {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .dc_shell {
    transition: opacity 0.2s ease;
  }
}
