/* Build 19 overrides are loaded after the main stylesheet. */
.rc-social-page {
  padding-top: 0;
}

.rc-social-hero {
  height: clamp(390px, 43vw, 540px);
  min-height: 0;
  margin-top: 0;
}

.rc-social-hero::before,
.rc-social-hero::after {
  top: 0;
  bottom: 0;
  height: 100%;
}

.rc-social-hero::before {
  background-position: center;
  background-size: cover;
}

.rc-home-contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #031014;
}

.rc-home-contact-section > .rc-wrap {
  width: 100%;
  max-width: none;
}

.rc-home-contact-section .rc-home-contact-grid {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

.rc-home-contact-section .rc-home-contact-image {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 50%;
  height: 100%;
  margin: 0;
}

.rc-home-contact-section .rc-home-contact-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 0 55%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0, rgba(3, 16, 20, .48) 42%, #031014 100%);
}

.rc-home-contact-section .rc-home-contact-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 43%;
  opacity: .86;
  filter: contrast(1.06) brightness(.7);
  -webkit-mask-image: none;
  mask-image: none;
}

.rc-home-contact-section .rc-home-contact-copy {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: none;
  margin-left: 50%;
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(40px, 6vw, 90px) clamp(30px, 5vw, 78px);
  align-self: center;
}

@media (min-width: 821px) {
  .rc-home-about-section .rc-home-about {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr);
  }

  .rc-home-about-section .rc-author-portrait-home {
    align-self: center;
    width: min(100%, 560px);
    height: auto;
    justify-self: end;
  }

  .rc-home-about-section .rc-author-portrait-home img {
    width: 100%;
    height: auto;
    max-height: calc(var(--rc-home-section-height) - 60px);
    object-fit: contain;
    object-position: center right;
  }

  .rc-book-copy .rc-kindle-page-figure {
    width: 120%;
    max-width: none;
    margin: 20px 0 0 -10%;
  }
}

@media (max-width: 820px) {
  .rc-social-hero {
    height: 500px;
  }

  .rc-book-copy .rc-kindle-page-figure {
    width: 100%;
    margin: 24px 0 0;
  }

  .rc-home-contact-section .rc-home-contact-grid {
    min-height: 700px;
    align-items: flex-end;
  }

  .rc-home-contact-section .rc-home-contact-image {
    width: 100%;
    height: 100%;
  }

  .rc-home-contact-section .rc-home-contact-image::after {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(3, 16, 20, .28) 0, rgba(3, 16, 20, .48) 46%, #031014 100%),
      linear-gradient(90deg, transparent 0, rgba(3, 16, 20, .28) 72%, #031014 100%);
  }

  .rc-home-contact-section .rc-home-contact-copy {
    width: 100%;
    margin-left: 0;
    padding: 55px var(--gutter);
    align-self: center;
  }
}

/* Keep the complete Fragments paperback-and-Kindle artwork visible on tablets. */
@media (min-width: 821px) and (max-width: 1180px) {
  .home .rc-home-book-section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .rc-home-book-section .rc-book-visual {
    width: 72%;
    height: 100%;
  }

  .rc-home-book-section .rc-home-fragments-promo {
    object-fit: contain;
    object-position: left center;
  }

  .rc-home-book-section .rc-book-visual::after {
    inset: 0 0 0 62%;
    background: linear-gradient(90deg, transparent 0, rgba(3, 16, 20, .62) 42%, #031014 100%);
  }

  .rc-home-book-section .rc-book-copy {
    width: 58%;
    margin-left: 42%;
  }
}

/* Use the image's natural 3:2 frame on portrait phones and remove the old top gap. */
@media (max-width: 820px) {
  .home .rc-home-book-section {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .rc-home-book-section .rc-book {
    display: block;
    min-height: 0;
  }

  .rc-home-book-section .rc-book-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .rc-home-book-section .rc-home-fragments-promo {
    object-fit: contain;
    object-position: center;
  }

  .rc-home-book-section .rc-book-visual::after {
    inset: 50% 0 0;
    background: linear-gradient(180deg, transparent 0, rgba(3, 16, 20, .76) 52%, #031014 100%);
  }

  .rc-home-book-section .rc-book-copy {
    width: 100%;
    margin: clamp(-105px, -14vw, -58px) 0 0;
    padding: 0 var(--gutter) 54px;
  }
}
