:root {
  --photography-ink: #000000;
  --photography-blush: #f1eae2;
  --photography-width: 1280px;
}

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

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

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

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

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

.photography-heading {
  text-align: center;
}

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

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

.photography-heading p,
.gallery-spotlight__content p {
  margin: 0;
  font-size: 14.95px;
  line-height: 1.85;
}

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

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

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

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

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

.gallery-spotlight {
  padding: 90px 0 100px;
  background: var(--photography-blush);
}

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

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

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

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

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

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

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

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

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

.photography-grid--featured {
  row-gap: 20px;
}

.photography-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 11000;
  width: min(560px, calc(100% - 32px));
  padding: 15px 20px;
  opacity: 0;
  transform: translate(-50%, 12px);
  color: #ffffff;
  background: #232323;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.photography-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .gallery-spotlight__layout {
    gap: 42px;
  }
}

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

  .photography-divider {
    height: 5px;
  }

  .photography-intro,
  .featured-gallery {
    padding-block: 54px;
  }

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

  .photography-rule {
    margin-block: 22px;
  }

  .photography-heading p br {
    display: none;
  }

  .photography-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .photography-grid--intro {
    margin-top: 30px;
  }

  .gallery-spotlight {
    padding: 54px 0;
  }

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

  .gallery-spotlight__image {
    grid-row: 1;
  }

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

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

  .photography-toast {
    bottom: 16px;
  }
}

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