/* Styles for optional content. No editor-controlled layout values. */
.project-image-slot > a { display: block; width: 100%; color: inherit; }
.project-image-slot > a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.anthology-shop-intro a, .anthology-product-description a, .anthology-additional-paragraph a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.anthology-additional-paragraph { white-space: pre-line; }
.event-typeform[hidden] { display: none; }
.event-typeform { margin-top: 2rem; min-width: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.5rem; }
.event-typeform h3 { margin: 0 0 1rem; font: inherit; font-weight: 600; }
.event-typeform-widget { width: 100%; height: min(640px,72svh); min-height: 340px; overflow: hidden; }
.event-typeform-widget iframe { width: 100%; height: 100%; border: 0; }
.event-typeform-fallback { display: inline-block; margin-top: 1rem; color: inherit; text-underline-offset: .2em; }
@media (max-width: 600px) { .event-typeform-widget { height: 66svh; min-height: 320px; } }
.event-description,
.event-modal-description {
  white-space: pre-line;
}

/* Event formatting: content editors choose emphasis/headings, never custom styles. */
.event-description strong,
.event-modal-description strong { font-weight: 700; }
.event-description em,
.event-modal-description em { font-style: italic; }
.event-description .event-description-heading {
  font-size: 1.18em;
  line-height: 1.35;
}
.event-modal-description { white-space: normal; overflow-wrap: anywhere; }
.event-modal-description > p { margin: 0 0 1em; }
.event-modal-description > h3 {
  margin: 1.35em 0 .55em;
  font-family: inherit;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: inherit;
}
.event-modal-description > :first-child { margin-top: 0; }
.event-modal-description > :last-child { margin-bottom: 0; }

/* Photos inserted between event paragraphs keep a fixed responsive presentation. */
.event-modal-description img.event-description-image {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(70svh, 680px);
  margin: 1.25em auto;
  object-fit: contain;
  border: 0;
  outline: 0;
  box-shadow: none;
}
@media (max-width: 600px) {
  .event-modal-description img.event-description-image {
    max-height: 65svh;
    margin-block: 1em;
  }
}

.event-modal-description a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.event-modal-description a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Linked project images: subtle zoom and glow, with a keyboard equivalent. */
html body #projects .project-image-slot.has-image > a[href] {
  display: block;
  border-radius: inherit;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 300ms ease;
}
html body #projects .project-image-slot.has-image > a[href] > img {
  transform: scale(1);
  transform-origin: center;
  transition: transform 450ms cubic-bezier(.2,.65,.3,1), filter 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  html body #projects .project-image-slot.has-image > a[href]:hover {
    box-shadow: 0 0 28px rgba(170, 160, 255, .22);
  }
  html body #projects .project-image-slot.has-image > a[href]:hover > img {
    transform: scale(1.025);
    filter: brightness(1.06);
  }
}
html body #projects .project-image-slot.has-image > a[href]:focus-visible {
  outline: 2px solid #fffdf8;
  outline-offset: 6px;
  box-shadow: 0 0 28px rgba(170, 160, 255, .22);
}
html body #projects .project-image-slot.has-image > a[href]:focus-visible > img {
  transform: scale(1.025);
  filter: brightness(1.06);
}
@media (prefers-reduced-motion: reduce) {
  html body #projects .project-image-slot.has-image > a[href],
  html body #projects .project-image-slot.has-image > a[href] > img {
    transition: none;
  }
  html body #projects .project-image-slot.has-image > a[href]:hover > img,
  html body #projects .project-image-slot.has-image > a[href]:focus-visible > img {
    transform: none;
  }
}
