.office-gallery {
  max-width: var(--max);
  margin: auto;
  padding-top: 40px;
}

.office-gallery-head {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.office-gallery-head h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -.06em;
  margin: 0;
}

.office-gallery-head > p {
  max-width: 500px;
  color: var(--muted);
  font-size: 1.05rem;
}

.office-carousel {
  position: relative;
}

.office-slides {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.office-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease;
}

.office-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.office-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.office-slide-view img {
  object-position: center 47%;
}

.office-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 32px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}

.office-slide figcaption span {
  color: #ff3434;
  margin-right: 14px;
}

.office-controls {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  margin-top: 16px;
}

.office-controls > button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

.office-controls > button:hover,
.office-controls > button:focus-visible {
  background: var(--ink);
  color: #fff;
}

.office-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.office-dots button {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  background: #c7c7c3;
  cursor: pointer;
}

.office-dots button.is-active {
  background: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  .office-slide { transition: none; }
}

@media (max-width: 800px) {
  .office-gallery-head {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .office-slides {
    aspect-ratio: 4 / 5;
  }

  .office-slide-view img {
    object-position: center;
  }
}
