.services-main {
  padding: 0 var(--side);
  font-weight: 300;
  text-transform: none;
}

.services-heading {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
  padding-top: 46px;
  min-height: 355px;
  padding-bottom: 30px;
  scroll-margin-top: 60px;
}

.services-heading__copy {
  grid-column: 3 / 6;
  padding-right: 10px;
}

.services-heading h1 {
  font-size: var(--type-editorial);
  font-weight: 300;
  line-height: var(--leading-editorial);
  margin: 0 0 26px;
  text-wrap: pretty;
}

.services-heading__details,
.services-heading__contact {
  font-size: var(--type-ui);
  line-height: 20px;
}

.services-heading__details p,
.services-heading__details ul,
.services-heading__contact p {
  margin: 0;
}

.services-heading__details ul {
  padding-left: 1.2em;
}

.services-heading__contact {
  grid-column: 6;
  padding-left: 10px;
  overflow-wrap: anywhere;
}

.services-heading__contact p:nth-child(2) {
  margin: 17px 0;
}

.services-request-note {
  width: calc((100% - 2 * var(--gap)) / 3);
  margin: 0 0 12px calc((100% + var(--gap)) / 3);
  font-size: var(--type-ui);
  line-height: 20px;
  text-wrap: pretty;
}

.services-scene,
.services-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.services-gallery {
  grid-area: 1 / 1 / 2 / -1;
  align-items: start;
}

.services-gallery figure {
  grid-column: var(--column);
  grid-row: var(--row);
  aspect-ratio: 633 / 810;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.services-gallery .services-gallery__opening {
  aspect-ratio: 633 / 920;
}

.services-gallery .services-gallery__tall {
  aspect-ratio: 633 / 869;
}

.services-gallery .services-gallery__short {
  aspect-ratio: 633 / 469;
}

.services-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-gallery__tall img {
  object-position: center 90%;
}

.services-gallery__short img {
  object-position: center 61%;
}

/* The form shares the centre column with the image grid and floats over it on scroll. */
.services-form-track {
  grid-area: 1 / 2 / 2 / 3;
  min-width: 0;
  z-index: 2;
  pointer-events: none;
}

.services-form {
  position: sticky;
  top: 55px;
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  pointer-events: auto;
  max-height: calc(100svh - 65px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.services-form input,
.services-form select,
.services-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid white;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: var(--type-ui);
  font-weight: 300;
  line-height: 20px;
}

.services-form input::placeholder,
.services-form textarea::placeholder {
  color: var(--ink);
  opacity: 1;
  text-transform: none;
}

.services-form select,
.services-form__date label {
  text-transform: none;
}

.services-form option {
  background: var(--paper);
}

.services-form textarea {
  min-height: 140px;
  resize: vertical;
}

.services-form p {
  margin: 0;
  font-size: var(--type-caption);
  line-height: var(--leading-caption);
  text-wrap: pretty;
}

.services-form__date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.services-form__date label {
  font-size: var(--type-ui);
}

.services-form__date input {
  width: 155px;
}

.services-form [hidden] {
  display: none;
}

.services-form button {
  justify-self: start;
  min-height: 40px;
  min-width: 127px;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  text-transform: uppercase;
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
  cursor: pointer;
}

.services-form button:hover {
  background: #333;
}

.services-form .services-form__status {
  color: #454545;
}

.services-main .services-trusted {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 0 100px;
  font-size: var(--type-body);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

.services-main .services-trusted__inner {
  grid-column: 2 / 4;
  max-width: none;
}

.services-main .services-trusted h2 {
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .services-heading {
    grid-template-columns: 1fr;
    padding: 24px 10px 30px;
    min-height: 0;
    gap: 24px;
  }

  .services-heading__copy,
  .services-heading__contact {
    grid-column: 1;
    padding: 0;
  }

  .services-heading h1 {
    font-size: var(--type-intro);
    line-height: var(--leading-intro);
  }

  .services-request-note {
    width: auto;
    margin: 0 10px 16px;
  }

  .services-scene {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .services-form {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .services-form input,
  .services-form select,
  .services-form textarea {
    font-size: var(--type-body);
    min-height: 44px;
  }

  .services-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-gallery figure {
    grid-column: auto;
    grid-row: auto;
  }

  .services-main .services-trusted {
    display: block;
    padding: 32px 10px 30px;
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }
}
