.services-section {
  width: 100%;
  background: #000;
  color: #f5f2ea;
}

.services-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: min(100%, 90rem);
  margin: 0 auto;
  padding: 6rem var(--container-padding, 1.5rem);
  box-sizing: border-box;
}

.services-section__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: var(--fs-hero-title);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  color: #f5f2ea;
}

.services-section__cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  max-width: 100%;
}

.services-section__card {
  flex: 0 0 15.625rem;
  width: 15.625rem;
  border-top: 5px solid #dc3610;
  padding-top: 0.625rem;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: border-color 220ms ease-out;
}

.services-section__card--link {
  cursor: pointer;
}

.services-section__card--link:focus-visible {
  outline: 2px solid #eae4d8;
  outline-offset: 4px;
}

.services-section__card-media {
  position: relative;
  width: 100%;
  height: 36.25rem;
  overflow: hidden;
  background: #161616;
}

.services-section__card-image,
.services-section__card-media picture,
.services-section__card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-section__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22, 22, 22, 0.8);
  pointer-events: none;
  transition: background-color 220ms ease-out;
}

@media (hover: hover) {
  .services-section__card--link:hover {
    border-top-color: #f5f2ea;
  }

  .services-section__card--link:hover .services-section__card-overlay {
    background: rgba(185, 43, 11, 0.9);
  }
}

.services-section__card--link:focus-visible .services-section__card-overlay {
  background: rgba(185, 43, 11, 0.9);
}

.services-section__card--link:focus-visible {
  border-top-color: #f5f2ea;
}

.services-section__card-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  pointer-events: none;
}

.services-section__card-title {
  width: min(100%, 13.875rem);
  font-family: "Cormorant Garamond", serif;
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #f5f2ea;
}

@media (max-width: 1099px) {
  .services-section__inner {
    align-items: stretch;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .services-section__cards {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  .services-section__card {
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .services-section__inner {
    gap: 2rem;
  }

  .services-section__card-media {
    height: 28rem;
  }
}
