.mc-flipbook {
  margin-block: 1rem;
}

.mc-flipbook__cover {
  align-items: center;
  aspect-ratio: 3 / 4;
  background: #f7f9fc;
  border: 1px solid #d8dee8;
  color: #1f2933;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
  max-width: 16rem;
  min-height: 18rem;
  padding: 1.25rem;
  text-align: center;
  width: 100%;
}

.mc-flipbook__cover-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mc-flipbook__cover-image {
  display: block;
  max-height: 16rem;
  max-width: 100%;
  object-fit: contain;
}

.mc-flipbook__cover-action {
  color: #1f6feb;
}

.mc-flipbook__viewer {
  background: #1f2933;
  height: 700px;
  width: 100%;
}

.mc-flipbook__fallback,
.mc-flipbook-modal__fallback {
  align-items: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  min-height: 18rem;
  padding: 2rem;
  text-align: center;
}

.mc-flipbook__fallback[hidden],
.mc-flipbook-modal__fallback[hidden],
.mc-flipbook-modal[hidden] {
  display: none;
}

.mc-flipbook__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.mc-flipbook-modal {
  background: rgba(0, 0, 0, .62);
  inset: 0;
  overflow: auto;
  padding: 2rem;
  position: fixed;
  z-index: 1300;
}

.mc-flipbook-modal__dialog {
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .3);
  margin-inline: auto;
  max-width: 70rem;
  min-height: 70vh;
  position: relative;
  width: min(100%, 70rem);
}

.mc-flipbook-modal__close {
  background: #fff;
  border: 1px solid #d8dee8;
  color: #1f2933;
  cursor: pointer;
  font-size: 1.5rem;
  height: 2.5rem;
  line-height: 1;
  position: absolute;
  right: .75rem;
  top: .75rem;
  width: 2.5rem;
  z-index: 2;
}

.mc-flipbook-modal__mount {
  height: 75vh;
}

.mc-flipbook-modal-open {
  overflow: hidden;
}
