.moving-gallery {
  background: #252723;
  color: #f2eee9;
  padding-top: clamp(48px, 6vw, 88px);
  overflow: clip;
  --gallery-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.moving-gallery-heading {
  padding: 0 var(--gutter) 36px;
  text-align: center;
}
.moving-gallery-heading h2 {
  font: 400 clamp(32px, 4.4vw, 68px)/1.15 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  text-wrap: balance;
}
.moving-gallery-heading p {
  font-size: 16px;
  color: #c8cbc0;
  margin: 0;
}
.moving-gallery-stage {
  position: relative;
  height: clamp(460px, 44vw, 650px);
  width: 100%;
  perspective: 1100px;
  perspective-origin: 50% 45%;
  touch-action: pan-y;
  cursor: grab;
}
.moving-gallery-stage.dragging {
  cursor: grabbing;
}
.moving-gallery-stage:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}
.moving-gallery-slides {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  direction: ltr;
}
.moving-slide {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  width: min(34vw, 490px);
  height: calc(100% - 35px);
  padding: 12px;
  background: #1a1c19;
  border: 0;
  box-shadow: 0 25px 35px #080a0880;
  opacity: var(--slide-opacity, 0);
  z-index: var(--slide-layer, 0);
  transform: translate3d(
      calc(-50% + var(--slide-x, 0) * 100%),
      0,
      var(--slide-depth, 0px)
    )
    rotateY(var(--slide-turn, 0deg));
  transition:
    transform 850ms var(--gallery-ease),
    opacity 700ms var(--gallery-ease);
  backface-visibility: hidden;
}
.moving-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}
.moving-slide:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -6px;
}
.moving-gallery-caption {
  text-align: center;
  padding: 28px var(--gutter) 0;
}
.moving-gallery-caption h3 {
  font: 400 clamp(23px, 2.2vw, 33px)/1.3 var(--sans);
  letter-spacing: 0.025em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.moving-gallery-caption p {
  color: #c8cbc0;
  font-size: 14px;
  margin: 0;
}
.moving-gallery-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 22px var(--gutter) 10px;
}
.gallery-step {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #d6b77680;
  border-radius: 50%;
  color: #f0d49a;
  background: transparent;
  transition:
    background 180ms,
    color 180ms;
}
.gallery-step:hover {
  background: #d6b776;
  color: #252723;
}
.gallery-step svg {
  width: 22px;
  height: 22px;
}
.gallery-pagination {
  display: flex;
  align-items: center;
  gap: 2px;
}
.gallery-pagination button {
  width: 32px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  position: relative;
}
.gallery-pagination button::after {
  content: "";
  height: 2px;
  inset: 21px 3px auto;
  position: absolute;
  background: #9d8a98;
  transition:
    background 180ms,
    transform 180ms;
}
.gallery-pagination button[aria-pressed="true"]::after {
  background: #f0d49a;
  transform: scaleY(2);
}
.gallery-pagination button:hover::after {
  background: #f0d49a;
}
.gallery-position {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #c8cbc0;
}
.moving-gallery-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 4px var(--gutter) 35px;
}
.moving-gallery-footer p {
  font-size: 12px;
  color: #c8cbc0;
  margin: 0;
}
.moving-gallery-footer button {
  font-size: 12px;
  color: #f0d49a;
  min-height: 44px;
  background: transparent;
  border-bottom: 1px solid #d6b77680;
  padding: 8px 0;
}
.gallery-disciplines {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #ffffff24;
  padding: 0 var(--gutter);
}
.moving-gallery-footer button:disabled {
  opacity: 0.6;
  cursor: default;
}
.gallery-disciplines a {
  min-height: 98px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: start;
  gap: 14px;
  padding: 24px 18px;
  font-size: 14px;
  color: #f2eee9;
  transition:
    color 180ms,
    background 180ms;
}
.gallery-service-icon {
  width: 30px;
  height: 34px;
  flex: 0 0 auto;
  color: #ded8ca;
}
.gallery-service-copy {
  display: grid;
  gap: 4px;
}
.gallery-service-copy > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.gallery-service-copy small {
  font-size: 11px;
  line-height: 1.5;
  color: #c2c4b9;
}
.gallery-service-arrow {
  width: 15px;
  height: 15px;
  margin-inline-start: auto;
  flex: 0 0 auto;
}
html[dir="rtl"] .gallery-service-arrow {
  transform: scaleX(-1);
}
html[dir="rtl"] .gallery-service-copy > span {
  letter-spacing: 0;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .gallery-disciplines {
    padding-inline: 16px;
  }
  .gallery-disciplines a {
    flex-wrap: wrap;
    gap: 8px;
    padding-inline: 12px;
  }
  .gallery-service-arrow {
    display: none;
  }
}
.gallery-disciplines a + a {
  border-inline-start: 1px solid #ffffff18;
}
.gallery-disciplines a:hover {
  color: #f0d49a;
  background: #d6b7760c;
}
html[dir="rtl"] .moving-gallery-heading h2,
html[dir="rtl"] .moving-gallery-caption h3 {
  font-family: "Noto Sans Arabic", Arial, sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] .gallery-step svg {
  transform: scaleX(-1);
}
.motion-paused .moving-slide {
  transition: none;
}
@media (max-width: 700px) {
  .moving-gallery-heading {
    padding-bottom: 25px;
  }
  .moving-gallery-heading h2 {
    font-size: 34px;
    letter-spacing: 0.045em;
  }
  .moving-gallery-stage {
    height: clamp(390px, 112vw, 520px);
    perspective: 800px;
  }
  .moving-slide {
    width: 65vw;
    padding: 7px;
  }
  .moving-gallery-navigation {
    gap: 8px;
    flex-wrap: wrap;
    padding-inline: 12px;
  }
  .gallery-step {
    width: 44px;
    height: 44px;
  }
  .gallery-pagination button {
    width: 21px;
  }
  .gallery-position {
    display: none;
  }
  .moving-gallery-footer {
    flex-direction: column;
    gap: 3px;
    text-align: center;
    padding-bottom: 24px;
  }
  .gallery-disciplines {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 var(--gutter);
  }
  .gallery-disciplines a {
    min-height: 100px;
    gap: 9px;
    padding: 15px 8px;
    border-bottom: 1px solid #ffffff18;
  }
  .gallery-service-icon {
    width: 24px;
    height: 28px;
  }
  .gallery-service-copy > span {
    font-size: 10px;
    letter-spacing: 0.025em;
  }
  .gallery-service-copy small {
    font-size: 10px;
  }
  .gallery-service-arrow {
    display: none;
  }
  .gallery-disciplines a:nth-child(odd) {
    border-inline-start: 0;
  }
  .gallery-disciplines a:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .moving-slide,
  .gallery-step,
  .gallery-pagination button::after {
    transition: none;
  }
}
