@value (
  darkContentSurfaceColor, lightContentSurfaceColor,
  darkContentTextColor, lightContentTextColor,
  darkContentLinkColor, lightContentLinkColor
) from "pageflow-scrolled/values/colors.module.css";

.compositeItem {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wrapper {
  height: var(--hotspots-container-height);
  aspect-ratio: var(--hotspots-image-aspect-ratio);
  transform-origin: 0 0;
  position: relative;
}

.reference {
  position: absolute;
  border: 0;
  width: 0;
  height: 0;
  background: transparent;
}

.reference {
  outline: none !important;
}

.box {
  font-family: var(--theme-entry-font-family);
  box-sizing: border-box;
  padding: 0.75rem;
  border-radius: 5px;
  --max-width: 400px;
  --floating-padding: 8% - 5px;
  max-width: min(100% - 2 * var(--floating-padding), var(--max-width));
}

.paddingForScrollButtons {
  --floating-padding: 40px;
}

.light {
  composes: scope-darkContent from global;
  background-color: lightContentSurfaceColor;
  color: darkContentTextColor;
  --content-text-color: darkContentTextColor;
  --content-link-color: darkContentLinkColor;
  box-shadow: 0px 3px 3px -2px rgba(0,0,0,0.2), 0px 3px 4px 0px rgba(0,0,0,0.14), 0px 1px 8px 0px rgba(0,0,0,0.12);
  --theme-link-button-on-surface-color: var(--theme-widget-primary-color);
}

.dark {
  composes: scope-lightContent from global;
  background-color: darkContentSurfaceColor;
  color: lightContentTextColor;
  --content-text-color: lightContentTextColor;
  --content-link-color: lightContentLinkColor;
  border: solid 1px rgba(255 255 255 / 5%);
}

.light > svg {
  fill: lightContentSurfaceColor;
}

.dark > svg {
  fill: darkContentSurfaceColor;
}

.dark > svg path:first-of-type {
  stroke: rgba(255 255 255 / 5%);
}

.maxWidth-wide {
  --max-width: 600px;
}

.maxWidth-narrow {
  --max-width: 300px;
}

.maxWidth-veryNarrow {
  --max-width: 200px;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

.minWidth {
  min-width: 200px;
}

.box .imageWrapper {
  position: relative;
  margin-bottom: 1rem;
}

.imageWrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}

.box h3,
.box p {
  margin: 0;
}

.box h3 {
  margin-bottom: 0.5rem;
}

.box h3:last-child {
  margin-bottom: 0;
}

.textWrapper > :first-child .link {
  margin-top: 0;
}

.box > :first-child .link {
  margin-top: 0;
}
