.custom-audio-player {
  display: grid;
  width: 100%;
  align-content: center;
  justify-items: center;
  gap: 0px;
}

.custom-audio-player > .custom-audio-player__engine {
  display: none;
}

.sound-title-canvas {
  display: block;
  max-width: 100%;
}

.custom-audio-player__controls {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 0px;
}

.custom-audio-player__timeline {
  display: grid;
  width: 100%;
  grid-template-columns: max-content minmax(100px, 1fr) max-content;
  align-items: center;
  gap: 12px;
}

.custom-audio-player__timeline--stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.custom-audio-player__time-labels {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.custom-audio-player__play {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.custom-audio-player__progress {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.custom-audio-player__progress-shell {
  --progress-position: 0%;
  position: relative;
  display: block;
  width: 100%;
  height: 28px;
}

.custom-audio-player__progress-shell::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--installation-page-ink, white);
  transform: translateY(-50%);
}

.custom-audio-player__progress-glyph {
  position: absolute;
  top: 50%;
  left: var(--progress-position);
  color: var(--installation-page-ink, white);
  font-family: var(--global-font, monospace);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.custom-audio-player__progress::-webkit-slider-runnable-track {
  height: 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.custom-audio-player__progress::-webkit-slider-thumb {
  width: 18px;
  height: 28px;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

.custom-audio-player__progress::-moz-range-track {
  height: 1px;
  border: 0;
  background: transparent;
}

.custom-audio-player__progress::-moz-range-thumb {
  width: 18px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

.custom-audio-player__time {
  font-variant-numeric: tabular-nums;
}

.installation-media__content--audio .media-item--audio {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.custom-audio-player--mosson-lines {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  row-gap: 0;
  align-content: stretch;
  overflow: hidden;
}

.mosson-lines {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 48px 0 218px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  font-family: var(--global-font, monospace);
  font-size: var(--mosson-line-font-size, 24px);
  line-height: var(--mosson-line-height, 24px);
}

@media (max-width: 650px) {
  .mosson-lines {
    padding: 44px 0 140px;
  }
}

.mosson-lines__row {
  position: relative;
  display: flex;
  width: 100%;
  flex: 0 0 var(--mosson-line-height, 24px);
  align-items: center;
}

.ruderales-letters {
  position: relative;
  display: block;
  overflow: visible;
  font-size: var(--ruderales-font-size, 48px);
  line-height: 1;
}

.ruderales-letters__column {
  --ruderales-stem-height: 0px;
  position: absolute;
  top: 60%;
  display: block;
  width: 1em;
  height: 1em;
  text-align: center;
  transform: translate(-50%, -50%);
}

.ruderales-letters__glyph {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}

.ruderales-letters__glyph--moving {
  transform: translate(-50%, calc(-1 * var(--ruderales-stem-height)));
  transition: transform 80ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.ruderales-letters__stem {
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: max(0px, calc(var(--ruderales-stem-height) - 1em));
  background: currentColor;
  transform: translateX(-50%);
  transform-origin: bottom;
  transition: height 80ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.ruderales-letters__flower {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  line-height: 1;
  text-align: left;
  white-space: pre;
  opacity: 0;
  transform: translate(
    -50%,
    calc(-1 * var(--ruderales-stem-height) - 3.15em)
  );
  transition:
    opacity 80ms linear,
    transform 80ms cubic-bezier(0.2, 0.75, 0.25, 1);
  pointer-events: none;
}

.ruderales-letters__column.is-flowering .ruderales-letters__flower {
  opacity: 1;
}

.nature-mikado {
  position: relative;
  display: block;
  overflow: hidden;
}

.nature-mikado .mosson-lines__row {
  position: absolute;
  inset: 0;
  height: 100%;
}

.nature-mikado .mosson-lines__line {
  transform-origin: center;
}

.nature-box {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--installation-page-ink, var(--ink));
  font-family: var(--global-font, monospace);
}

.nature-box__ascii {
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  white-space: pre;
  pointer-events: none;
  user-select: none;
}

.nature-box__words {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.nature-box__word {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max-content;
  color: inherit;
  font-family: var(--global-font, monospace);
  font-size: var(--nature-box-word-size, 26px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transform-origin: center;
  will-change: transform;
  user-select: none;
}

.nature-ghosts {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  color: var(--installation-page-ink, var(--ink));
  font-family: var(--global-font, monospace);
  user-select: none;
}

.nature-ghosts__art {
  position: relative;
  display: block;
  width: max-content;
  margin: 0;
  padding: 0;
  font-size: var(--nature-ghosts-desktop-font-size, 26px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
  white-space: pre;
  transform: translateY(var(--nature-ghosts-vertical-offset, 0px));
}

.nature-ghosts__line,
.nature-ghosts__leaves {
  height: 1em;
  white-space: pre;
}

.nature-ghosts__ghost {
  opacity: 0;
  transition: opacity 45ms linear;
}

.nature-ghosts__ghost.is-visible {
  opacity: 1;
}

.nature-ghosts__trees {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.nature-ghosts__tree {
  position: absolute;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  color: inherit;
  font: inherit;
  line-height: 0.94;
  letter-spacing: 0;
  white-space: pre;
}

.nature-ghosts__leaves {
  opacity: 1;
}

@media (max-width: 649px) {
  .nature-ghosts__art {
    font-size: var(--nature-ghosts-mobile-font-size, 18px);
  }
}

.sub-aqua-wave {
  position: relative;
  display: block;
  overflow: hidden;
  font-size: var(--sub-aqua-font-size, 24px);
  line-height: 1;
}

.sub-aqua-wave__curve {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sub-aqua-wave__curve path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.sub-aqua-wave__group {
  position: absolute;
  z-index: 2;
  display: block;
  width: max-content;
  padding: 0 0.18em;
  background: #ffffff;
  color: inherit;
  white-space: nowrap;
  transform-origin: center;
  transition:
    top 80ms cubic-bezier(0.2, 0.75, 0.25, 1),
    letter-spacing 80ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 80ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.sub-aqua-wave__trail {
  position: absolute;
  z-index: 3;
  display: block;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  transform-origin: center;
  pointer-events: none;
}

.mar-i-munt-landscape {
  position: relative;
  display: block;
  overflow: hidden;
  font-size: var(--mar-i-munt-font-size, 24px);
  line-height: 1;
}

.mar-i-munt-landscape__paths {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mar-i-munt-landscape__paths path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.mar-i-munt-landscape__group {
  position: absolute;
  z-index: 2;
  display: block;
  width: max-content;
  padding: 0 0.18em;
  background: #ffffff;
  color: inherit;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: top 80ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.mosson-lines__line {
  position: absolute;
  top: 50%;
  display: flex;
  width: max-content;
  flex: none;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: var(--mosson-line-height, 24px);
  text-align: center;
  white-space: nowrap;
  transform: translateY(-50%);
  will-change: transform;
}

.mosson-lines__line--left {
  left: 0;
}

.mosson-lines__line--right {
  right: 0;
}

.mosson-lines__line--center {
  left: 50%;
  transform: translate(-50%, -50%);
}

.mosson-lines__word {
  display: block;
  letter-spacing: calc(
    var(--mosson-letter-spacing, 0px) * var(--mosson-letter-weight, 1)
  );
  transition: letter-spacing 80ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.mosson-lines__word-gap {
  display: block;
  width: calc(var(--mosson-word-gap, 0px) * var(--mosson-gap-weight, 1));
  height: 2px;
  flex: 0 0 calc(var(--mosson-word-gap, 0px) * var(--mosson-gap-weight, 1));
  background: currentColor;
  transition:
    width 80ms cubic-bezier(0.2, 0.75, 0.25, 1),
    flex-basis 80ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.custom-audio-player--mosson-lines .custom-audio-player__controls {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  width: auto;
  pointer-events: none;
}

.custom-audio-player--mosson-lines .custom-audio-player__play {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: 150px;
  height: 150px;
  border: 1px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  transform: translateX(-50%);
  pointer-events: auto;
}

.custom-audio-player__play-icon {
  position: relative;
  z-index: 2;
  font-size: clamp(20px, 4vw, 64px);
  line-height: 1;
  left: 3%;
}

.custom-audio-player__play[aria-label="Mettre en pause"]
  .custom-audio-player__play-icon {
  left: 0;
}

.custom-audio-player--mosson-lines .custom-audio-player__timeline {
  position: absolute;
  right: 20px;
  bottom: 6px;
  left: 20px;
  display: grid;
  width: auto;
  pointer-events: auto;
}

.custom-audio-player--mosson-lines .custom-audio-player__time-labels {
  display: none;
}

@media (max-width: 650px) {
  .custom-audio-player--mosson-lines .custom-audio-player__play {
    bottom: 40px;
    width: 80px;
    height: 80px;
  }

  .custom-audio-player--mosson-lines .custom-audio-player__timeline {
    right: 16px;
    bottom: 2px;
    left: 16px;
  }
}

@media (max-width: 540px) {
  .custom-audio-player__timeline {
    gap: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sound-title-canvas {
    image-rendering: auto;
  }
}
