.edc-contact-details {
  min-width: 0;
}

.edc-contact-page .edc-system-page__head {
  max-width: 760px;
  margin-bottom: 24px;
}

.edc-contact-page .edc-system-page__head h1 {
  font-size: clamp(42px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
}

.edc-contact-page .edc-system-page__head > p:last-child {
  max-width: 54ch;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.edc-contact-summary {
  padding-bottom: 16px;
}

body.edc-equipment-site .edc-contact-summary h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.edc-contact-summary address {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.edc-contact-summary__facts dd {
  font-size: 14px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.edc-contact-summary__schedule {
  grid-column: 1 / -1;
}

.edc-contact-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  width: 100%;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.edc-contact-schedule__week {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--edc-line);
}

.edc-contact-schedule__week span {
  min-width: 0;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: var(--edc-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}

.edc-contact-schedule__week .is-open {
  border-color: var(--edc-line);
  background: var(--edc-surface);
  color: var(--edc-muted);
}

.edc-contact-schedule__primary {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
}

.edc-contact-schedule__primary strong {
  font-size: 14px;
  font-weight: 600;
}

.edc-contact-schedule__primary span {
  color: var(--edc-ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.edc-contact-schedule__closed {
  grid-column: 2;
  align-self: end;
  margin: 0;
  color: var(--edc-ink);
  font-size: 12px;
  white-space: nowrap;
}

.edc-contact-schedule__fallback {
  margin: 0;
}

.edc-contact-about {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  margin-top: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--edc-line);
}

body.edc-equipment-site .edc-contact-about h2 {
  color: var(--edc-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
}

.edc-contact-about p {
  max-width: 58ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.edc-contact-gallery__head {
  margin-bottom: 10px;
}

.edc-contact-map {
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.edc-contact-map iframe {
  height: clamp(320px, 34vw, 380px) !important;
  overflow: hidden;
  border-radius: var(--edc-equipment-media);
}

body.edc-equipment-site .edc-contact-gallery__head h2,
body.edc-equipment-site .edc-contact-form-section h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.edc-contact-gallery__head a {
  font-size: 12px;
}

.edc-contact-gallery__mosaic {
  max-width: 100%;
}

.edc-contact-gallery__mosaic a {
  position: relative;
  line-height: 0;
}

.edc-contact-gallery__mosaic a:focus-visible {
  outline: 2px solid var(--edc-focus);
  outline-offset: 3px;
}

.edc-contact-form-section {
  padding: 24px;
}

.edc-contact-form-section__lead {
  margin: 10px 0 18px;
  font-size: 13px;
  line-height: 1.45;
}

.edc-contact-channels {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--edc-line);
}

.edc-contact-channels > p {
  margin: 0 0 9px;
  color: var(--edc-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.edc-contact-channels > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 8px;
}

.edc-contact-channels a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--edc-line);
  border-radius: var(--edc-equipment-control);
  background: #fff;
  color: var(--edc-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.edc-contact-channels img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.edc-contact-channels a:hover {
  border-color: var(--edc-ink);
  background: var(--edc-ink);
  color: #fff;
}

.edc-contact-channels a:hover img {
  filter: invert(1);
}

.edc-contact-channels a:active {
  transform: translateY(1px);
}

.edc-contact-channels a:focus-visible {
  outline: 2px solid var(--edc-focus);
  outline-offset: 2px;
}

.edc-contact-form {
  gap: 12px;
}

.edc-field {
  gap: 6px;
}

.edc-field input,
.edc-field textarea {
  min-height: 44px;
}

.edc-field textarea {
  min-height: 140px;
}

.edc-contact-form .edc-system-primary {
  min-height: 46px;
}

@media (min-width: 701px) {
  .edc-contact-gallery__mosaic > .edc-contact-gallery__lead > img {
    height: clamp(420px, 36vw, 500px);
  }
}

@media (max-width: 980px) {
  .edc-contact-layout {
    grid-template-columns: 1fr;
  }

  .edc-contact-form-section {
    position: static;
    max-width: none;
    margin-top: 20px;
  }
}

@media (max-width: 700px) {
  .edc-contact-page .edc-system-page__head h1 {
    font-size: 36px;
    line-height: 1.03;
  }

  body.edc-equipment-site .edc-contact-summary h2 {
    font-size: 22px;
    line-height: 1.08;
  }

  .edc-contact-summary__schedule {
    grid-column: 1 / -1;
  }

  .edc-contact-schedule {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .edc-contact-schedule__closed {
    grid-column: 1;
  }

  .edc-contact-about {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  body.edc-equipment-site .edc-contact-gallery__head h2,
  body.edc-equipment-site .edc-contact-form-section h2 {
    font-size: 26px;
    line-height: 1.05;
  }

  .edc-contact-map iframe {
    height: clamp(250px, 72vw, 280px) !important;
  }

  .edc-contact-form-section {
    padding: 20px 16px;
  }

  .edc-contact-channels > div {
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .edc-contact-channels a {
    transition: none;
  }
}
/* Contact interaction and mobile gallery repairs. */
.edc-contact-page .edc-system-page__head {
  max-width: none;
  margin-bottom: 18px;
}
.edc-contact-channels a:hover {
  border-color: var(--edc-equipment-control-hover, #aeb1aa);
  background: var(--edc-equipment-surface-strong);
  color: var(--edc-ink);
}
.edc-contact-channels a:hover img { filter: none; }

@media (max-width: 700px) {
  .edc-contact-gallery__mosaic {
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
  }
  .edc-contact-gallery__mosaic.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
  }
  .edc-contact-gallery__mosaic::-webkit-scrollbar { display: none; }
  .edc-contact-gallery__mosaic a {
    flex: 0 0 min(82vw, 420px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    user-select: none;
    -webkit-user-drag: none;
  }
  .edc-contact-gallery__mosaic img {
    pointer-events: none;
    -webkit-user-drag: none;
  }
}
/* Standalone contact lightbox. */
.edc-contact-lightbox[hidden] {
  display: none !important;
}

.edc-contact-lightbox {
  position: fixed;
  z-index: 2400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  overflow: hidden;
  background: rgba(8, 9, 8, .94);
  color: #fff;
}

.edc-contact-lightbox__stage {
  width: min(1120px, calc(100vw - 96px));
  height: min(760px, calc(100dvh - 112px));
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
}

.edc-contact-lightbox__stage:active {
  cursor: grabbing;
}

.edc-contact-lightbox__media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  will-change: transform;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.edc-contact-lightbox__media.is-dragging {
  transition: none;
}

.edc-contact-lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.edc-contact-lightbox__close,
.edc-contact-lightbox__previous,
.edc-contact-lightbox__next {
  position: fixed;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--edc-equipment-control, 7px);
  background: rgba(8, 9, 8, .58);
  color: #fff;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.edc-contact-lightbox__close svg,
.edc-contact-lightbox__previous svg,
.edc-contact-lightbox__next svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edc-contact-lightbox__close:hover,
.edc-contact-lightbox__previous:hover,
.edc-contact-lightbox__next:hover {
  border-color: #fff;
  background: #fff;
  color: var(--edc-ink);
}

.edc-contact-lightbox__close:focus-visible,
.edc-contact-lightbox__previous:focus-visible,
.edc-contact-lightbox__next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.edc-contact-lightbox__close {
  top: 20px;
  right: 20px;
  font-size: 30px;
  font-weight: 300;
}

.edc-contact-lightbox__previous {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.edc-contact-lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.edc-contact-lightbox__status {
  position: fixed;
  left: 50%;
  bottom: 18px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .edc-contact-lightbox {
    padding: 64px 12px 72px;
  }

  .edc-contact-lightbox__stage {
    width: 100%;
    height: calc(100dvh - 136px);
  }

  .edc-contact-lightbox__close {
    top: 10px;
    right: 10px;
  }

  .edc-contact-lightbox__previous {
    left: 10px;
  }

  .edc-contact-lightbox__next {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edc-contact-lightbox__media {
    transition: none;
  }
}
