:root {
  --gallery-ink: #211c1a;
  --gallery-muted: #6d6461;
  --gallery-rose: #d97f7c;
  --gallery-blush: #fff4f2;
  --gallery-line: #eedbd8;
}

.gallery-hero {
  margin-top: 90px;
  padding: 96px 0 90px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .9), transparent 32%),
    radial-gradient(circle at 88% 88%, rgba(238, 173, 170, .25), transparent 28%),
    linear-gradient(135deg, #fff9f7 0%, #fff1ef 52%, #fbe2e0 100%);
}

.gallery-hero::before,
.gallery-hero::after {
  position: absolute;
  border: 1px solid rgba(203, 119, 116, .25);
  border-radius: 50%;
  content: "";
}

.gallery-hero::before {
  width: 240px;
  height: 240px;
  top: -155px;
  left: 8%;
}

.gallery-hero::after {
  width: 160px;
  height: 160px;
  right: 7%;
  bottom: -105px;
}

.gallery-hero__content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.gallery-hero__eyebrow,
.gallery-heading > span {
  display: block;
  margin-bottom: 20px;
  color: var(--gallery-rose);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  margin: 0;
  color: var(--gallery-ink);
  font-family: var(--alt-font);
  font-size: clamp(2.65rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}

.gallery-hero p {
  max-width: 690px;
  margin: 24px auto 0;
  color: var(--gallery-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.gallery-showcase {
  padding: 0 0 110px;
  background: #fffdfc;
}

.gallery-service-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: -35px auto 92px;
}

.gallery-service-nav a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  min-height: 88px;
  padding: 20px 25px;
  border: 1px solid var(--gallery-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 42px rgba(77, 44, 41, .09);
  color: var(--gallery-muted);
  font-size: .88rem;
  line-height: 1.45;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.gallery-service-nav a:hover,
.gallery-service-nav a:focus-visible {
  border-color: #dda7a4;
  box-shadow: 0 20px 46px rgba(77, 44, 41, .14);
  transform: translateY(-4px);
}

.gallery-service-nav__label {
  color: var(--gallery-ink);
  font-family: var(--alt-font);
  font-size: 1.55rem;
  line-height: 1;
}

.gallery-service-nav strong {
  color: var(--gallery-rose);
  font-size: 1.4rem;
  font-weight: 400;
}

.gallery-heading {
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
}

.gallery-heading > span {
  margin-bottom: 16px;
}

.gallery-heading h2 {
  color: var(--gallery-ink);
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1.15;
}

.gallery-heading p {
  margin: 14px 0 0;
  color: var(--gallery-muted);
  font-size: .95rem;
}

.gallery-grid {
  --bs-gutter-x: 24px;
}

.gallery-4 .gallery-image {
  margin-bottom: 24px;
}

.gallery-image .hover-overlay {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #f4e9e7;
  box-shadow: 0 10px 30px rgba(62, 38, 36, .08);
}

.gallery-image .hover-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-image .item-overlay {
  background: linear-gradient(180deg, transparent 45%, rgba(30, 19, 18, .65) 100%);
}

.gallery-image__action {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.gallery-image:hover .gallery-image__action,
.gallery-image a:focus-visible .gallery-image__action {
  opacity: 1;
  transform: translateY(0);
}

.gallery-image a:focus-visible {
  display: block;
  border-radius: 18px;
  outline: 3px solid rgba(217, 127, 124, .5);
  outline-offset: 4px;
}

@media (max-width: 991px) {
  .gallery-hero {
    margin-top: 80px;
    padding: 78px 0 78px;
  }

  .gallery-service-nav {
    margin-bottom: 72px;
  }
}

@media (max-width: 767px) {
  .gallery-page .floating-icons {
    display: none;
  }

  .gallery-hero {
    padding: 64px 0 68px;
  }

  .gallery-hero p {
    max-width: 330px;
    font-size: .98rem;
  }

  .gallery-showcase {
    padding-bottom: 75px;
  }

  .gallery-service-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: -28px auto 58px;
  }

  .gallery-service-nav a {
    min-height: 78px;
    padding: 17px 19px;
  }

  .gallery-service-nav__label {
    font-size: 1.35rem;
  }

  .gallery-heading {
    margin-bottom: 32px;
  }

  .gallery-grid {
    --bs-gutter-x: 18px;
  }

  .gallery-image .hover-overlay {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-service-nav a,
  .gallery-image__action {
    transition: none;
  }
}
