.page-book_hero {
  width: 100%;
  min-height: 90vh;


  padding-bottom: 2rem;

  background-color: var(--blue-darker);
  background-image: linear-gradient(90deg, var(--blue-darker), var(--blue-lighter));
  color: #fff;

  position: relative;
}

.page-book_hero--bakground {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .page-book_hero {
    font-size: 18px;
  }
}

@media (min-width: 769px) {
  .page-book_hero {


    display: flex;
    align-items: center;
  }
}

.page-book_hero .hero__content {
  padding-left: 1.5em;
  padding-right: 1.5em;
}

@media (min-width: 769px) {
  .page-book_hero .hero__content {
    width: 75%;
    margin: 0 auto;
    display: flex;
  }
}

/* Book cover */
.page-book_hero .book-cover {
  padding: 2em 0;
}

.page-book_hero .book-cover_image {
  display: block;
  max-height: 40vh;
  width: auto;
  margin: 0 auto;

  border-radius: 1em;
  transition: transform .5s ease-in-out, box-shadow .5s ease-in-out;
}

.page-book_hero .book-cover_image--perspective:not(.preview-trigger--active) {
  box-shadow: 2px 2px 0px 1px #fff;
  transform: perspective(100vh) rotateY(-15deg) rotateX(10deg);
}

.page-book_hero .book-cover_image--perspective:not(.preview-trigger--active):hover {
  transform: perspective(100vh) rotateY(-15deg) rotateX(10deg) translateY(-1em) scale(1.01);
}

@media (min-width: 769px) {
  .page-book_hero .book-cover {
    display: flex;
    flex: 1 1 39%;
    min-width: 1%;
    max-width: 39%;
    align-items: center;
  }

  .page-book_hero .book-cover_image {
    max-height: 70vh;
    max-width: 80%;
    height: 100%;
  }
}



/* Book ditails */
.page-book_hero .hero__book-ditails {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

@media (min-width: 769px) {
  .page-book_hero .hero__book-ditails {
    display: flex;
    justify-content: center;
    flex-direction: column;

    max-width: 61%;
    padding: 0 0 0 3em ;

    font-size: 1.1rem;
  }
}

.page-book_hero .sub-title {
  font-size: .9em;
}

.page-book_hero h1 {
  max-width: 100%;
  margin: .3em 0 .4em;
}

@media (min-width: 769px) {
  .page-book_hero .sub-title {
    font-size: 1.6rem;
  }
}

.hero__book-ditails ul {
  display: flex;
  flex-direction: column;
  padding: 0;

  list-style: none;
  margin: 1em 0;
}


/* Hero reviews */
.hero__book-reviews {
  display: grid;
  gap: 2rem;
}

.hero__book-reviews .site-reviews {
  padding: 1rem 1.5rem;
  background-color: #fff;
  color: #333;
  text-align: center;
}

.hero__book-reviews .headeline,
.book-rel--item .raiting {
  font-weight: bold;
  line-height: 1;
}

.hero__book-reviews .headeline .midle {
  font-size: 2em;
}

.hero__book-reviews .headeline .delimer,
.book-rel--item .raiting .delimer {
  color: transparent;
}

.hero__book-reviews .review-rating {
  justify-content: center;
}

.hero__book-reviews .review-ancor {
  padding-top: .3em;
}

.hero__book-reviews .review-ancor button,
.reviews-controls button {

  font-weight: bold;
  text-transform: uppercase;
  transition: .2s;
  cursor: pointer;
}

.hero__book-reviews .headeline .delimer::after,
.book-rel--item .raiting .delimer::after {
  content: '';
  display: inline-block;
  height: .7em;
  width: 2px;
  margin-right: .5em;
  border-radius: 1px;
  background-color: #333;
  transform: rotate(16deg);
}

.hero__book-reviews .description {
  color: #a3a3a4
}


.hero__book-reviews .site-reviews,
.hero__book-reviews .action_block {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
}


@media (min-width: 769px) {
  .hero__book-reviews {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Book actions */

.hero__book-reviews .action_block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;

  padding: .5em 1em;

  border-radius: .5em;

  background-color: #fff;
}

@media (min-width: 769px) {
  .hero__book-reviews .action_block {
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    /* align-items: flex-start; */
  }
}

.hero__book-reviews .action_block .action-text {
  display: block;
  width: 100%;
  flex: 1 1 100%;

  color: #333;
}

.hero__book-reviews .action_block .price {
  color: #333;
  font-size: 1.4em;
  font-weight: bold;
}


.hero__book-reviews .action_block .action {
  width: 100%;
  display: block;

  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;

  overflow: hidden;
  position: relative;
}

.hero__book-reviews .action_block .action span {
  z-index: 20;
}


@-webkit-keyframes flash_slash {
  0% {
    left: -1000%;
  }
  100% {
    left: 1200%;
  }
}
@keyframes flash_slash {
  0% {
    left: -1000%;
  }
  100% {
    left: 1200%;
  }
}

.hero__book-reviews .action_block .action::after {
  background: #fff;
  content: "";
  height: 155px;
  left: -75px;
  opacity: .2;
  position: absolute;
  top: -50px;
  transform: rotate(35deg);
  transition: all 550ms;
  width: 50px;
  z-index: 0;
  -webkit-animation: flash_slash 5000ms infinite;
  -moz-animation: flash_slash 5000ms infinite;
  -o-animation: flash_slash 5000ms infinite;
  animation: flash_slash 5000ms infinite;
}

.hero__book-reviews .action_block .action:hover::after {
  left: 120%;
  -webkit-animation: unset;
  -moz-animation: unset;
  -o-animation: unset;
  animation: unset;
}

@media (min-width: 1441px) {
  .hero__book-reviews .action_block .action {
    padding: .7em 1.3em;
    font-size: 21px;
  }
}

.preview-trigger {
  cursor: pointer;
}
/*  */

.page-book_content {
  width: 100%;

  font-size: 18px;
  line-height: 1.6;

  color: #666666
}

.page-book_content .title--book-content{
  font-size: 2rem;
  text-align: center;
}

.page-book_content .book--content {
  padding-left: 1.5em;
  padding-right: 1.5em;
}

@media (min-width: 769px) {
  .page-book_content .book--content {
    max-width: 750px;
    margin: 0 auto;
  }
}

@media (min-width: 993px) {
  .page-book_content .book--content {
    max-width: 80%;
  }

  .page-book_content .description--book-content {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
  }

  .page-book_content .description--book-content p:first-child {
    margin-top: 0;
  }

  .page-book_content .description--book-content p:last-child {
    margin-bottom: 0;
  }
}

/* Preview modal */
.modal--book-preview .btn-close {
  opacity: 0;
}
.modal--book-preview.show .btn-close {
  position: fixed;
  right: 1rem;
  top: 1.75em;

  display: flex;
  width: auto;
  padding: .3em .75em;

  opacity: 1;
  background: #fff;

  text-transform: uppercase;

  color: #333;
  z-index: 10;
  transition: opacity .35s .5s;
}

.modal--book-preview .btn-close::after {
  content: '';
  display: block;
  height: 1em;
  width: 1em;
  margin-left: 0.5em;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512.021 512.021' width='24' height='24'%3E%3Cg%3E%3Cpath fill='%23333' d='M301.258,256.01L502.645,54.645c12.501-12.501,12.501-32.769,0-45.269c-12.501-12.501-32.769-12.501-45.269,0l0,0 L256.01,210.762L54.645,9.376c-12.501-12.501-32.769-12.501-45.269,0s-12.501,32.769,0,45.269L210.762,256.01L9.376,457.376 c-12.501,12.501-12.501,32.769,0,45.269s32.769,12.501,45.269,0L256.01,301.258l201.365,201.387 c12.501,12.501,32.769,12.501,45.269,0c12.501-12.501,12.501-32.769,0-45.269L301.258,256.01z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;

}

.modal--book-preview .h-100 {
  height: 100%;
}

@media (min-width: 769px) {
  .modal--book-preview.show .btn-close {
    right: 2em;
    top: 2.75rem;
    background: none;
    color: #fff;

    font-size: 1.2em;
  }

  .modal--book-preview .btn-close::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512.021 512.021' width='24' height='24'%3E%3Cg%3E%3Cpath fill='%23fff' d='M301.258,256.01L502.645,54.645c12.501-12.501,12.501-32.769,0-45.269c-12.501-12.501-32.769-12.501-45.269,0l0,0 L256.01,210.762L54.645,9.376c-12.501-12.501-32.769-12.501-45.269,0s-12.501,32.769,0,45.269L210.762,256.01L9.376,457.376 c-12.501,12.501-12.501,32.769,0,45.269s32.769,12.501,45.269,0L256.01,301.258l201.365,201.387 c12.501,12.501,32.769,12.501,45.269,0c12.501-12.501,12.501-32.769,0-45.269L301.258,256.01z'/%3E%3C/g%3E%3C/svg%3E");
  }
}

.preview-content {
  display: flex;
  flex-direction: column;
}

.preview-content > * {
  margin-bottom: 1rem;
}

.preview-content > :last-child {
  margin-bottom: 0;
}

.preview-content > .preview-item {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.modal--book-preview .embed-wrapper {
  position: relative;
}

.modal--book-preview canvas {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}
