.gallery-hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.gallery-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  pointer-events: none;
}
.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #121418 0%, rgba(18, 20, 24, 0.15) 100%);
  pointer-events: none;
}
.gallery-hero .head_bg,
.gallery-hero__content {
  position: relative;
  z-index: 1;
}
.gallery_page .gallery-hero__content {
  padding-top: 100px;
  padding-bottom: 76px;
}
.gallery-hero h1 {
  max-width: 780px;
  margin: 20px 0;
  font-size: 60px;
  line-height: 1.2;
}
.gallery-hero p {
  max-width: 570px;
  font-size: 20px;
  line-height: 1.7;
}
.gallery-hero__link {
  display: inline-flex;
  gap: 28px;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  color: var(--light);
}
.gallery_page .gallery-collection {
  padding-top: 80px;
  padding-bottom: 80px;
}
.gallery-collection__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.gallery-collection h2,
.gallery-invitation h2 {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.3;
}
.gallery-collection__heading > p {
  max-width: 380px;
  color: var(--grey);
  line-height: 1.7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}
.gallery-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-card__image {
  display: block;
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #ebe7e2;
  border-radius: 6px;
}
.gallery-card:first-child .gallery-card__image {
  height: 550px;
}
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card__image:hover img {
  transform: scale(1.04);
}
.gallery-card__image > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 24px;
}
.gallery-card figcaption {
  margin-top: 16px;
}
.gallery-card h3 {
  margin-bottom: 6px;
  font-size: 21px;
  line-height: 1.4;
}
.gallery-card p {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.6;
}
.gallery_page .gallery-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  margin-bottom: 80px;
  border: 1px solid #e6ddd4;
  border-radius: 8px;
  background: #f7f4f0;
}
.gallery-invitation p {
  margin-top: 16px;
  color: var(--grey);
}
.gallery-invitation .btn_gold_sh {
  flex-shrink: 0;
}
.gallery_page a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
@media (max-width: 1000px) {
  .gallery-hero h1 {
    font-size: 48px;
  }
  .gallery-collection__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .gallery-collection__heading > p {
    max-width: 600px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-card:first-child {
    grid-row: auto;
  }
  .gallery-card:first-child .gallery-card__image {
    height: 420px;
  }
  .gallery_page .gallery-invitation {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
    margin-right: 20px;
  }
}
@media (max-width: 600px) {
  .gallery_page .gallery-hero__content {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .gallery-hero h1 {
    font-size: 36px;
  }
  .gallery-hero p {
    font-size: 17px;
  }
  .gallery_page .gallery-collection {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .gallery-collection h2,
  .gallery-invitation h2 {
    font-size: 28px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gallery-card:first-child {
    grid-column: auto;
  }
  .gallery-card:first-child .gallery-card__image,
  .gallery-card__image {
    height: 260px;
  }
  .gallery_page .gallery-invitation {
    padding: 28px 20px;
    margin-bottom: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card__image:hover img {
    transform: none;
  }
}
