.violet-renderings [hidden] {
  display: none;
}

.violet-renderings-viewer {
  position: relative;
  overflow: hidden;
  border: 1px solid #352831;
  border-radius: 12px;
  background: #181318;
  color: #f1e7db;
}

.violet-renderings-viewer figure {
  margin: 0;
}

.violet-renderings-frame {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 2000 / 1414;
  max-height: 70vh;
  max-height: 70svh;
  overflow: hidden;
  background: #09070b;
}

.violet-renderings-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.violet-renderings-viewer figcaption {
  display: grid;
  gap: 3px;
  min-height: 86px;
  padding: 15px clamp(14px, 2.5vw, 26px) 9px;
  color: #e1d4d1;
  font-size: .92rem;
  line-height: 1.45;
}

.violet-renderings-viewer figcaption strong {
  color: #fff0dd;
  font-size: 1.08rem;
}

.violet-renderings-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px clamp(14px, 2.5vw, 26px) 15px;
}

.violet-renderings-controls button,
.violet-renderings-fullscreen {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #7d6c75;
  border-radius: 6px;
  padding: 7px 13px;
  background: #241d25;
  color: #f8efe3;
  font: inherit;
  font-size: .84rem;
  line-height: 1.25;
  cursor: pointer;
}

.violet-renderings-fullscreen {
  position: absolute;
  z-index: 1;
  top: clamp(10px, 2vw, 20px);
  right: clamp(10px, 2vw, 20px);
  background: #17121aee;
}

.violet-renderings-controls .violet-renderings-play {
  border-color: #f0d4aa;
  background: #f0d4aa;
  color: #251a1b;
  font-weight: 600;
}

.violet-renderings-controls button[aria-pressed="true"] {
  border-color: #f0d4aa;
  background: #47333d;
  color: #fff0dd;
}

.violet-renderings-controls button:hover,
.violet-renderings-fullscreen:hover {
  border-color: #ffe5c5;
}

.violet-renderings-steps {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: auto;
}

.violet-renderings-count {
  min-width: 42px;
  color: #e1d4d1;
  font-size: .81rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.violet-renderings-filmstrip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  padding: 12px clamp(14px, 2.5vw, 26px) 16px;
  border-top: 1px solid #423542;
  background: #100e13;
}

.violet-renderings-filmstrip a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid #635762;
  border-radius: 6px;
  background: #211a23;
  color: #e7dcd5;
  font-size: .75rem;
  line-height: 1.28;
  text-decoration: none;
}

.violet-renderings-filmstrip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 170;
  object-fit: contain;
  background: #08070a;
}

.violet-renderings-filmstrip span {
  flex: 1;
  align-content: center;
  min-height: 30px;
  padding: 5px 4px;
  text-align: center;
}

.violet-renderings-filmstrip a:hover {
  border-color: #f0d4aa;
  color: #fff1de;
}

.violet-renderings-filmstrip a[aria-current="true"] {
  border-color: #f0d4aa;
  background: #f0d4aa;
  color: #241a18;
  font-weight: 600;
}

.violet-renderings-viewer :is(button, a):focus-visible {
  outline: 2px solid #ffe8c5;
  outline-offset: 2px;
}

.violet-renderings .violet-renderings-status {
  margin: 0;
  padding: 0 clamp(14px, 2.5vw, 26px);
  color: #f4d5b3;
  font-size: .83rem;
}

.violet-renderings-status:not(:empty) {
  padding-block: 10px;
}

.violet-renderings .violet-renderings-credit {
  margin-top: 9px;
  color: #574e46;
  font-size: .84rem;
}

.violet-renderings-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #08070b;
  color: #f1e7db;
}

html.has-violet-renderings-dialog {
  overflow: hidden;
  overscroll-behavior: none;
}

.violet-renderings-viewer.is-fullscreen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0;
  border-radius: 0;
  background: #08070b;
}

.violet-renderings-viewer.is-fullscreen .violet-renderings-fullscreen {
  position: static;
  justify-self: end;
  margin: 8px clamp(12px, 2vw, 24px) 2px;
}

.violet-renderings-viewer.is-fullscreen figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.violet-renderings-viewer.is-fullscreen .violet-renderings-frame {
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  background: inherit;
}

.violet-renderings-viewer.is-fullscreen figcaption,
.violet-renderings-viewer.is-fullscreen .violet-renderings-controls {
  width: min(100%, 960px);
  margin-inline: auto;
}

.violet-renderings-viewer.is-fullscreen figcaption {
  min-height: 0;
  padding-block: 8px 3px;
}

.violet-renderings-viewer.is-fullscreen .violet-renderings-filmstrip {
  display: none;
}

@media (max-height: 500px) {
  .violet-renderings-viewer.is-fullscreen [data-rendering-note] {
    display: none;
  }

  .violet-renderings-viewer.is-fullscreen .violet-renderings-controls {
    padding-block: 3px 8px;
  }
}

@media (max-width: 760px) {
  .violet-renderings-filmstrip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 375px) {
  .violet-renderings-steps {
    margin-inline-start: 0;
  }
}
