.library-books {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.library-book-entry {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 8rem) 1.5rem;
  background-color: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
}

.library-book-entry__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.35;
}

.library-book-entry__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.7) 100%
  );
  z-index: 2;
}

.library-book-entry__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  justify-content: space-between;
}

/* 
 * INFINITE ALTERNATING ROW CAPABILITY
 * Targets even numerical iterations to reverse horizontally 
 */
.library-book-entry:nth-child(even) .library-book-entry__inner {
  flex-direction: row-reverse;
}

.library-book-entry__content {
  flex: 1;
  max-width: 35rem;
}

.library-book-entry__media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 40rem;
}

.library-book-entry__title {
  font-family:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: #ffffff;
  text-transform: uppercase;
}

.library-book-entry__description {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.library-book-entry__description p {
  margin-bottom: 1.5rem;
}
.library-book-entry__description p:last-child {
  margin-bottom: 0;
}

.library-book-entry__actions {
  display: flex;
  justify-content: flex-start;
}

.library-book-entry__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.5rem;
  text-decoration: none;
  font-family: "Neuzeit Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: #0f172a;
  background-color: var(--CTA-Default);
  border-radius: 5px;
  transition: all 0.3s ease;
  border: none;
}

.library-book-entry__button:hover {
  transform: translateY(-2px);
  box-shadow: var(--CTA-Shadow);
}

.library-book-entry__cover {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.library-book-entry__cover:hover {
  transform: translateY(-5px);
}

@media (max-width: 991px) {
  .library-book-entry {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .library-book-entry__inner,
  .library-book-entry:nth-child(even) .library-book-entry__inner {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .library-book-entry__description {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .library-book-entry__title {
    text-align: center;
  }
  
  .library-book-entry__actions {
    justify-content: center;
  }
}
