.book {
  padding: 0 6vw;
}

.libro-template-default.overflow {
  overflow: hidden;
}

.book__popup {
  background: #1a2433;
  color: #fff;
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  padding: 2rem 6vw;
  z-index: 2;
}

.book__popup_block {
  display: none;
}

.video .book__popup_block.video {
  display: block;
}

.audio .book__popup_block.audio {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.book__popup_block video {
  width: 100%;
}

.book__popup .book__title {
  font-size: 2rem;
  color: #fff;
}

.book__close_container {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.book__popup.active {
  display: block;
}

.book__title {
  color: #000;
  font-family: "BanamexDisplay";
  font-size: 1.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2.125rem; /* 113.333% */
  letter-spacing: -0.05625rem;
  text-transform: uppercase;
  margin-bottom: 0;
}

.book__cover {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.book__popup_block .cover,
.book__cover .cover {
  object-fit: cover;
  border-radius: 1.0625rem;
  width: calc(100% - 10vw);
}

.book__popup_block .cover {
  width: calc(100% - 12vw);
  margin-bottom: 1rem;
}

.book__cover_container {
  display: flex;
  font-family: "BanamexDisplay";
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.02438rem;
  text-transform: uppercase;
  margin: 2rem 0;
  width: 100%;
}

.book__video_btn {
  align-items: center;
  display: flex;
}

.play_btn {
  align-items: center;
  border: solid 1px #000;
  border-radius: 50%;
  display: flex;
  margin-left: 0.5rem;
  justify-content: center;
  height: 1.8rem;
  width: 1.8rem;
}

.libro-template-default .painting {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  width: 100vw;
  height: 10vh;
}

.libro-template-default .painting .arrow_btn {
  height: 3rem;
  position: fixed;
  top: 50vh;
}

.libro-template-default .painting .left_btn {
  left: 1.5rem;
}

.libro-template-default .painting .right_btn {
  right: 1.5rem;
}

.libro-template-default .painting .arrow_btn span {
  display: none;
}
/*
.libro-template-default .painting .arrow_btn svg path {
  stroke: #000;
}
*/
.arrow_btn {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.arrow_btn_block {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  z-index: 10;
}

.arrow_btn_block svg {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 !important;
}

.arrow_btn img {
  display: none;
  border-radius: 0.5rem;
  object-fit: cover;
  max-height: 70%;
  width: 80%;
}

.arrow_btn svg {
  margin: 0.5rem 2rem 0 2rem;
}

.book__content {
  color: #000;
  font-family: "BanamexText";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem; /* 150% */
  letter-spacing: -0.03rem;
  padding: 1rem 0;
}

.book__media_buttons {
  display: flex;
  margin-bottom: 2rem;
}

.book__media_button {
  align-items: center;
  border: solid 1px #000;
  color: #000;
  font-family: "Interstate Light";
  display: flex;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.03rem;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  border-radius: 1rem;
}

.book__media_button img {
  margin-left: 0.5rem;
  height: 0.7rem;
}

.book__video_btn,
.book__media_button {
  cursor: pointer;
  text-decoration: none;
}

.book__cover_container {
  display: flex;
  justify-content: space-between;
}

.custom__arrow {
  background: transparent;
  border: none;
}

.custom__arrow img {
  filter: invert(1);
}

.arrow_left {
  margin-right: 1rem;
}

.splide__slide {
  border-radius: 2rem;
  overflow: hidden;
}

.splide__pagination__page.is-active {
  background: #1a2433;
}

.book__content.info p {
  margin: 0;
}

.book__content.info .author {
  text-transform: uppercase;
}

#footer {
  margin-top: 3rem;
}

.book__content .author {
  font-family: "BanamexDisplay";
  font-weight: 400;
}

#page_header {
  display: none;
}

.book__content.info .legales {
  padding: 20px 0;
  color: #888;
}

@media screen and (max-width: 768px) {
  #page_header {
    display: none;
  }

  .libro-template-default .painting .left_btn {
    left: 1rem;
  }

  .libro-template-default .painting .right_btn {
    right: 1rem;
  }

  .book__content.info .author {
    font-size: 1.2rem;
  }

  .book__content.info p {
    font-size: 1rem;
  }

  .book__content p {
    line-height: 130%;
  }

  .splide__slide {
    padding: 0;
  }

  .book__video_btn,
  .book__media_button {
    font-size: 1rem;
  }

  .book__title {
    font-size: 2.1rem;
    line-height: 120%;
  }

  .book__content {
    font-size: 1.3rem;
    line-height: 120%;
  }

  .book__title {
    margin-bottom: 2rem;
  }
  .splide__slide {
    align-items: center;
    display: flex;
    height: 50vh;
    justify-content: center;
  }

  .splide__slide img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
}

@media screen and (min-width: 769px) {
  .book__cover {
    margin-top: 4rem;
  }

  .splide__slide img {
    object-fit: cover !important;
    border-radius: 2rem;
  }

  .book__content.info {
    font-size: 1rem;
    line-height: 120%;
  }

  .book__content .author {
    font-size: 1.125rem;
  }

  .splide__slide {
    height: 70vh;
    max-height: 70vh;
  }

  .splide__slide img {
    object-fit: contain;
  }

  .book__cover {
    border-bottom: none !important;
  }

  .book__video_btn {
    font-size: 1rem;
  }

  .custom_arrows {
    position: absolute;
    right: 0;
  }

  .splide__pagination {
    display: none;
    bottom: -1rem;
    left: 0;
    right: auto;
  }

  .book {
    display: grid;
    grid-template-columns: 57% 36% 7%;
    grid-template-rows: 0 auto;
    grid-template-areas:
      ". . ."
      ". title ."
      ". info ."
      ". content ."
      ". buttons ."
      ". related ."
      ". next_prev .";
    padding: 0;
    position: relative;
  }

  .book .mcic__related {
    grid-area: related;
    display: none;
  }

  .book .mc__next_prev {
    grid-area: next_prev;
  }

  .book__cover {
    align-items: flex-start;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    position: -webkit-sticky;
    position: sticky;
    top: 2rem;
    left: 2vw;
    width: 48vw;
    max-height: 80vh;
    min-height: 40vh;
  }

  .video .book__popup_block.video {
    align-items: center;
    display: flex;
  }

  .book__popup_block .cover {
    width: 18.9375rem;
    height: 25.25rem;
    flex-shrink: 0;
  }

  .book__popup_block video {
    margin: 0 auto;
    max-height: 60vh;
    max-width: 60vw;
  }

  .book__title {
    grid-area: title;
    font-size: 4rem;
    font-style: normal;
    font-weight: 400;
    line-height: 5rem; /* 125% */
    letter-spacing: -0.12rem;
  }

  .book__content {
    grid-area: content;
    text-align: justify;
    font-family: "BanamexText";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.875rem; /* 166.667% */
    letter-spacing: -0.03375rem;
  }

  .book__content.info {
    grid-area: info;
  }

  .book__media_buttons {
    grid-area: buttons;
  }

  .book__media_button {
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.03rem;
  }

  .book__cover .cover {
    width: 17.4375rem;
    height: 23.25rem;
    flex-shrink: 0;
  }

  .book__cover_container {
    justify-content: flex-start;
  }

  .book__cover_container .play_btn {
    display: none;
  }

  .book__cover_container .arrow_btn {
    display: inline-block;
  }
}
