.artist-books-list {
  width: 100%;
}

.artist-book {
  padding: 0 0 34px 0;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.artist-book-header {
  max-width: 1180px;
  margin-bottom: 26px;
}

.artist-book-description {
  max-width: 1120px;
  margin: 0 0 18px 0;
  font-size: var(--text-base);
  font-weight: 300;
  line-height: var(--leading-base);
  letter-spacing: var(--tracking-base);
  color: rgba(0,0,0,0.78);
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.artist-book-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.artist-book-gallery.two-images {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}

.artist-book-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.artist-book-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition:
    opacity 0.28s ease,
    transform 0.32s ease;
}

.artist-book-thumb:hover img {
  opacity: 0.9;
  transform: scale(1.025);
}

.artist-book-accordion {
  margin: 18px 0 0 0;
}

.artist-book-accordion-toggle {
  padding: 0;
  border: none;
  background: transparent;
  color: #00008b;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 300;
  line-height: var(--leading-base);
  letter-spacing: var(--tracking-base);
  text-align: left;
  cursor: pointer;
}

.artist-book-accordion-toggle:hover {
  text-decoration: underline;
}

.artist-book-accordion-content {
  max-width: 1180px;
  margin-top: 22px;
  color: rgba(0,0,0,0.78);
}

.artist-book-accordion-content p {
  margin: 0 0 1.4rem 0;
  font-size: var(--text-base);
  line-height: var(--leading-base);
  letter-spacing: var(--tracking-base);
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* MODAL */

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  background: rgba(0,0,0,0.95);
  padding: 18px;
}

.book-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-modal-panel {
  position: relative;
  width: 96vw;
  height: 94vh;
  color: #ffffff;
  display: grid;
  grid-template-rows: 1fr auto;
  /*background: #050505;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);*/
  overflow: hidden;
}

.book-modal-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.45fr);
  gap: 28px;
  padding: 32px 56px 22px 56px;
}

.book-modal-image-wrap {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
}

.book-modal-image-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  display: block;
  object-fit: contain;
}

.book-modal-info {
  align-self: end;
  padding-right: 12px;
}

.book-modal-info h2 {
  margin: 0 0 12px 0;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-base);
  letter-spacing: var(--tracking-base);
}

.book-modal-meta,
.book-modal-description {
  margin: 0 0 10px 0;
  font-size: var(--text-caption);
  line-height: var(--leading-small);
  letter-spacing: var(--tracking-small);
  color: rgba(255,255,255,0.72);
}

.book-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.book-modal-arrow {
  position: absolute;
  top: 45%;
  z-index: 20;
  width: 38px;
  height: 54px;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.55;
}

.book-modal-prev {
  left: 14px;
}

.book-modal-next {
  right: 14px;
}

.book-modal-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 58px;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 56px 18px 56px;
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.book-modal-thumb {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
}

.book-modal-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.book-modal-thumb.is-active {
  opacity: 1;
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-2px);
}

/* TABLETA */

@media (max-width: 1024px) {
  .artist-book-gallery,
  .artist-book-gallery.two-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .book-modal-panel {
    width: 97vw;
    height: 95vh;
  }

  .book-modal-content {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 30px 38px 18px 38px;
  }

  .book-modal-image-wrap img {
    max-height: 70vh;
  }

  .book-modal-info {
    align-self: start;
    padding-right: 42px;
  }
}

/* CELULAR */

@media (max-width: 768px) {
  .artist-book {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .artist-book-gallery,
  .artist-book-gallery.two-images {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .artist-book-title,
  .artist-book-description,
  .artist-book-accordion-content p {
    font-size: var(--text-base);
    line-height: var(--leading-base);
    letter-spacing: var(--tracking-small);
  }

  .book-modal {
    padding: 0;
    overflow-x: hidden;
  }

  .book-modal-panel {
    width: 100%;
    height: 100svh;
    max-height: none;
    display: grid;
    grid-template-rows: 1fr auto auto;
    overflow-x: hidden;
  }

  .book-modal-content {
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 48px 14px 8px 14px;
    overflow-x: hidden;
  }

  .book-modal-image-wrap {
    flex: 1;
    width: 100%;
    min-height: 0;
    padding: 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
  }

  .book-modal-image-wrap img {
    max-width: 100%;
    max-height: 72svh;
    object-fit: contain;
  }

  .book-modal-info {
    width: 100%;
    max-width: 92%;
    margin: 0 auto;
    padding: 6px 18px 8px 18px;
    text-align: center;
    box-sizing: border-box;
  }

  .book-modal-info h2 {
    font-size: var(--text-base);
    margin-bottom: 6px;
    text-align: center;
  }

  .book-modal-meta,
  .book-modal-description {
    font-size: var(--text-caption);
    line-height: var(--leading-small);
    text-align: center;
  }

  .book-modal-close {
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    font-size: 2rem;
  }

  .book-modal-prev,
  .book-modal-next {
    position: fixed;
    transform: none;
    bottom: 66px;
    z-index: 35;
  }

  .book-modal-arrow {
    top: auto;
    width: 38px;
    height: 34px;
    font-size: 1.1rem;
  }

  .book-modal-prev {
    left: 12px;
  }

  .book-modal-next {
    right: 12px;
  }

  .book-modal-thumbs {
    grid-auto-columns: 46px;
    gap: 7px;
    padding: 46px 12px 14px 12px;
  }

  .book-modal-thumb {
    width: 46px;
    height: 46px;
  }
}