/*
  Mobile books-only content. Fonts are scoped separately from desktop so mobile
  typography can be tuned without changing the desktop page.
*/

@font-face {
  font-family: "Books Mobile Gotham XLight";
  src:
    url("../fonts/Gotham-XLight.woff2") format("woff2"),
    url("../fonts/Gotham-XLight.woff") format("woff"),
    url("../fonts/Gotham-XLight.ttf") format("truetype"),
    url("../fonts/Gotham-XLight.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Books Mobile Gotham Light";
  src:
    url("../fonts/Gotham-Light.woff2") format("woff2"),
    url("../fonts/Gotham-Light.woff") format("woff"),
    url("../fonts/Gotham-Light.ttf") format("truetype"),
    url("../fonts/Gotham-Light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Books Mobile Gotham Medium";
  src:
    url("../fonts/Gotham-Medium.woff2") format("woff2"),
    url("../fonts/Gotham-Medium.woff") format("woff"),
    url("../fonts/Gotham-Medium.ttf") format("truetype"),
    url("../fonts/Gotham-Medium.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  --books-mobile-image-ratio: 380 / 430;
}

.books-mobile-title-block {
  margin-bottom: 90px;
}

.books-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 90px;
  width: 100%;
}

.books-mobile-block {
  width: 100%;
  min-width: 0;
}

.books-mobile-block__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: var(--books-mobile-image-ratio);
  margin: 0 0 36px;
  overflow: hidden;
}

.books-mobile-block__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.books-mobile-block__image-wrap:has(img[option="1"])::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px #4d4d4d;
}

.books-mobile-block__title {
  margin: 0 0 30px;
  color: #fff;
  font-family: "Books Mobile Gotham XLight", var(--site-font-body);
  font-size: 26px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.books-mobile-block__title:empty {
  margin-bottom: 0;
}

.books-mobile-block__text {
  color: #b1b1b1;
  font-family: "Books Mobile Gotham Light", var(--site-font-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0;
  text-align: left;
}

.books-mobile-block__text p {
  margin: 0 0 22px;
}

.books-mobile-block__text p:last-child {
  margin-bottom: 0;
}

.books-mobile-block__link,
.books-mobile-block__text a {
  color: #fff;
  font-family: "Books Mobile Gotham Medium", var(--site-font-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  text-decoration: none;
}

@supports not selector(:has(*)) {
  .books-mobile-block__image-wrap img[option="1"] {
    outline: 1px solid #4d4d4d;
    outline-offset: -1px;
  }
}
