/* Classical works use the existing library layout, with room for verse and attribution. */
.story-picture {
  display: block;
  width: 100%;
  aspect-ratio: var(--landscape-ratio);
}
.story-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (orientation: portrait) {
  .story-picture {
    aspect-ratio: var(--portrait-ratio);
  }
}
.card-actions .card-author {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  flex: 1 1 130px;
}
.reader-source {
  margin: -8px 0 24px;
  color: var(--muted);
  font: 13px/1.5 var(--ui);
}
.reader-source a {
  color: var(--blue);
  text-decoration: underline;
}
.story-content.has-verse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(100%) minmax(0, 1fr);
}
.story-content.has-verse > .story-verse {
  grid-column: 2;
  min-width: 0;
  text-align: left;
}
.story-content.has-verse > .story-figure,
.story-content.has-verse > .story-text:not(.story-verse) {
  grid-column: 1 / -1;
  min-width: 0;
}
.story-verse {
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: normal;
  margin-bottom: 1.4em;
}
.classic-finish {
  display: block;
  text-align: center;
}
.classic-finish .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.setting-section[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .library .filters {
    justify-content: flex-start;
    gap: 0 12px;
  }
  .card-actions .card-author {
    text-align: left;
    flex-basis: 100%;
    font-size: 12px;
  }
}
