:root {
  --love-story-ink: #000000;
  --love-story-beige: #f1eae2;
  --love-story-width: 1280px;
}

.love-story-page main {
  display: block;
  color: var(--love-story-ink);
  font-family: 'Montserrat', sans-serif;
}

.love-story-page button,
.love-story-page a {
  font-family: inherit;
}

.love-story-container {
  width: min(var(--love-story-width), calc(100% - 112px));
  margin-inline: auto;
}

.love-story-divider {
  height: 8px;
  background: #373838;
}

.love-story-intro {
  padding: 69px 0 60px;
  background: #ffffff;
}

.love-story-heading {
  text-align: center;
}

.love-story-heading h1,
.love-story-spotlight h2,
.love-story-featured h2 {
  margin: 0;
  font-family: 'Forum', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
}

.love-story-rule {
  width: 58px;
  height: 1px;
  display: block;
  margin: 29px auto 26px;
  background: currentColor;
}

.love-story-heading p,
.love-story-spotlight__content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.love-story-heading p {
  max-width: 900px;
  margin-inline: auto;
}

.love-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.love-story-grid--intro {
  margin-top: 35px;
}

.love-story-gallery-item {
  width: 100%;
  aspect-ratio: 801 / 634;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}

.love-story-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.love-story-gallery-item:hover img,
.love-story-gallery-item:focus-visible img {
  opacity: 0.84;
}

.love-story-spotlight {
  padding: 90px 0 100px;
  background: var(--love-story-beige);
}

.love-story-spotlight__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 70px;
}

.love-story-spotlight h2 {
  margin-bottom: 8px;
}

.love-story-spotlight__content p {
  max-width: 540px;
  line-height: 1.9;
}

.love-story-spotlight__actions {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 45px;
}

.love-story-text-link {
  padding-block: 5px;
  border-bottom: 1px solid transparent;
  color: var(--love-story-ink);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.love-story-text-link:hover,
.love-story-text-link:focus-visible {
  border-bottom-color: currentColor;
}

.love-story-spotlight__image {
  width: 100%;
  aspect-ratio: 1319 / 899;
  display: block;
  object-fit: cover;
}

.love-story-featured {
  padding: 84px 0 103px;
  background: #ffffff;
}

.love-story-featured h2 {
  margin-bottom: 62px;
  text-align: center;
}

@media (max-width: 900px) {
  .love-story-container {
    width: min(100% - 48px, var(--love-story-width));
  }

  .love-story-spotlight__layout {
    gap: 42px;
  }
}

@media (max-width: 640px) {
  .love-story-container {
    width: min(100% - 32px, var(--love-story-width));
  }

  .love-story-divider {
    height: 5px;
  }

  .love-story-intro,
  .love-story-featured {
    padding-block: 54px;
  }

  .love-story-heading h1,
  .love-story-spotlight h2,
  .love-story-featured h2 {
    font-size: 38px;
  }

  .love-story-rule {
    margin-block: 22px;
  }

  .love-story-heading p br {
    display: none;
  }

  .love-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .love-story-grid--intro {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .love-story-spotlight {
    padding: 54px 0;
  }

  .love-story-spotlight__layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .love-story-spotlight__image {
    grid-row: 2;
  }

  .love-story-spotlight__actions {
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
  }

  .love-story-featured h2 {
    margin-bottom: 36px;
  }
}

@media (max-width: 380px) {
  .love-story-grid--featured {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .love-story-page *,
  .love-story-page *::before,
  .love-story-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
