.container {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 48px);
}

.container__wrapper {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.text-container:hover {
  box-shadow: var(--shadow-md);
}

.text-container span:not(.sub-title, .book-title) {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.text-container .sub-title {
  margin-bottom: 4px;
}

.text-container a {
  font-weight: 500;
}

.text-container:last-of-type {
  margin-bottom: 40px;
}

.text-container iframe {
  border-radius: var(--radius-md) !important;
  margin-top: 8px;
  border: 1px solid var(--color-border);
}

br {
  display: block;
  content: '';
  margin-top: 8px;
}

.book-title {
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
}

.synopsis {
  text-align: left;
}

.book-header {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  margin-top: 24px;
  text-align: left;
}

.book-cover {
  width: 220px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.book-header-text {
  flex: 1;
}

.book-header .book-title {
  margin: 0 0 24px;
}

.book-header .book-meta {
  margin-top: 0;
}

@media screen and (max-width: 768px) {
  .container {
    padding: 24px 20px 48px;
  }

  .text-container span,
  .text-container a {
    word-break: break-word;
    hyphens: auto;
  }

  .text-container:last-of-type {
    margin-bottom: 24px;
  }
  .book-header {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .book-cover {
    width: min(220px, 70%);
  }

  .book-header-text {
    width: 100%;
  }
}
