/*
 * Static preservation replacement for Wix Pro Gallery on installation pages.
 * The surrounding Wix page composition remains in place.
 */
.calder-installation-gallery,
.calder-installation-gallery * {
  box-sizing: border-box;
}

.calder-installation-gallery {
  position: relative !important;
  left: auto !important;
  width: min(1216px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-right: auto !important;
  margin-left: auto !important;
  overflow: visible !important;
  color: #111;
  background: #fff;
}

.calder-installation-gallery__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.calder-installation-gallery__track {
  display: flex;
  width: max-content;
  height: 464px;
  min-width: 100%;
  align-items: stretch;
  gap: 10px;
  padding: 0 0 10px;
}

.calder-installation-gallery__item {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background: #f4f4f4;
}

.calder-installation-gallery__item > a,
.calder-installation-gallery__item > video {
  display: block;
  width: 100%;
  height: 100%;
}

.calder-installation-gallery__item a {
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
}

.calder-installation-gallery__item img,
.calder-installation-gallery__item video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: contain;
  background: #f4f4f4;
}

.calder-installation-gallery__item video {
  background: #000;
}

.calder-installation-gallery__item a:focus-visible,
.calder-installation-gallery__viewport:focus-visible {
  outline: 3px solid #111;
  outline-offset: -3px;
}

.calder-installation-gallery__button {
  position: absolute;
  z-index: 5;
  top: 212px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / .66);
  box-shadow: 0 2px 10px rgb(0 0 0 / .25);
  cursor: pointer;
  transform: translateY(-50%);
}

.calder-installation-gallery__button:hover {
  background: rgb(0 0 0 / .84);
}

.calder-installation-gallery__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.calder-installation-gallery__button[disabled] {
  visibility: hidden;
}

.calder-installation-gallery__button--previous {
  left: 12px;
}

.calder-installation-gallery__button--next {
  right: 12px;
}

.calder-installation-gallery__status {
  min-height: 1.5em;
  margin: 4px 0 0;
  color: #555;
  font: normal 14px/1.5 Arial, Helvetica, sans-serif;
  text-align: center;
}

.calder-standalone-video-repair {
  position: relative !important;
  left: auto !important;
  width: min(640px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-right: auto !important;
  margin-left: auto !important;
  overflow: visible !important;
}

.calder-standalone-video-repair video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
