.whp-interface-gallery {
  padding: 26px 0 8px;
  overflow: hidden;
  background: #101920;
}

.whp-interface-gallery__viewport {
  overflow: hidden;
  padding: 4px 0 16px;
}

.whp-interface-gallery__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.whp-interface-gallery__group {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}

.whp-interface-gallery__card {
  position: relative;
  width: clamp(250px, 26vw, 390px);
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #101920;
  color: #fff;
  cursor: zoom-in;
}

.whp-interface-gallery__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.whp-interface-gallery__card:hover img,
.whp-interface-gallery__card:focus-visible img {
  transform: scale(1.025);
}

.whp-interface-gallery__card:focus-visible {
  outline: 4px solid #fa8705;
  outline-offset: 3px;
}

.whp-interface-gallery__card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(12, 23, 32, .88);
  font-size: 13px;
  font-weight: 800;
}

.whp-gallery-lightbox[hidden] { display: none; }

.whp-gallery-lightbox {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  padding: 32px;
  place-items: center;
  background: rgba(4, 10, 14, .94);
  backdrop-filter: blur(12px);
}

.whp-gallery-lightbox__figure {
  display: flex;
  max-width: calc(100vw - 180px);
  margin: 0;
  flex-direction: column;
  align-items: center;
}

.whp-gallery-lightbox__figure img {
  display: block;
  max-width: min(calc(100vw - 180px), 1532px);
  max-height: calc(100vh - 112px);
  border-radius: 18px;
  object-fit: contain;
}

.whp-gallery-lightbox__figure figcaption {
  margin-top: 12px;
  color: #dbe4e8;
  font-weight: 700;
}

.whp-gallery-lightbox__close,
.whp-gallery-lightbox__nav {
  position: fixed;
  z-index: 2;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: #1a2834;
  color: #fff;
  cursor: pointer;
}

.whp-gallery-lightbox__close:hover,
.whp-gallery-lightbox__close:focus-visible,
.whp-gallery-lightbox__nav:hover,
.whp-gallery-lightbox__nav:focus-visible {
  border-color: #fa8705;
  background: #fa8705;
}

.whp-gallery-lightbox__close { top: 24px; right: 24px; }
.whp-gallery-lightbox__nav { top: 50%; transform: translateY(-50%); }
.whp-gallery-lightbox__nav--prev { left: 24px; }
.whp-gallery-lightbox__nav--next { right: 24px; }

.whp-cpanel-browser {
  overflow: hidden;
  margin-top: 36px;
  background: #fff;
}

.whp-cpanel-browser__bar {
  display: grid;
  min-height: 32px;
  padding: 5px 10px;
  grid-template-columns: 66px minmax(0, 1fr) 66px;
  gap: 10px;
  align-items: center;
  background: #263640;
  color: #bac7cf;
}

.whp-cpanel-browser__controls {
  display: flex;
  gap: 7px;
}

.whp-cpanel-browser__controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fa8705;
}

.whp-cpanel-browser__controls span:nth-child(2) { background: #f0b24a; }
.whp-cpanel-browser__controls span:nth-child(3) { background: #64a96b; }

.whp-cpanel-browser__address {
  width: 82%;
  max-width: 430px;
  min-width: 0;
  padding: 3px 10px;
  overflow: hidden;
  justify-self: center;
  border-radius: 5px;
  background: #101920;
  color: #bac7cf;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  transform: translateY(-1px);
  white-space: nowrap;
}

.whp-cpanel-tour__viewport {
  position: relative;
  height: 410px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0;
  background: #fff;
  scrollbar-color: #fa8705 #101920;
  scrollbar-width: auto;
  overscroll-behavior: contain;
}

.whp-cpanel-tour__viewport::-webkit-scrollbar { width: 13px; }
.whp-cpanel-tour__viewport::-webkit-scrollbar-track { background: #101920; }
.whp-cpanel-tour__viewport::-webkit-scrollbar-thumb {
  border: 3px solid #101920;
  border-radius: 999px;
  background: #fa8705;
}

.whp-cpanel-tour__canvas {
  position: relative;
  width: 100%;
}

.whp-cpanel-tour__canvas > img {
  display: block;
  width: 100%;
  height: auto;
}

.whp-cpanel-hotspot {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fa8705;
  color: #101920;
  font-size: 13px;
  font-weight: 900;
  line-height: 22px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(250, 135, 5, .28);
}

.whp-cpanel-hotspot:hover,
.whp-cpanel-hotspot:focus-visible,
.whp-cpanel-hotspot[aria-expanded="true"] {
  background: #fff;
  outline: 4px solid #fa8705;
  outline-offset: 2px;
}

.whp-cpanel-callout {
  position: absolute;
  z-index: 3;
  display: none;
  width: min(255px, 38vw);
  padding: 13px 15px;
  border-left: 5px solid #fa8705;
  border-radius: 7px;
  background: rgba(16, 25, 32, .96);
  color: #dce5e9;
  font-size: 12px;
  line-height: 1.5;
  transform: translate(18px, -50%);
}

.whp-cpanel-callout strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 14px;
}

.whp-cpanel-callout.is-active { display: block; }
.whp-cpanel-callout--left { transform: translate(calc(-100% - 18px), -50%); }

@media (max-width: 767px) {
  .whp-interface-gallery { padding: 22px 0 6px; }
  .whp-interface-gallery__card { width: 72vw; }
  .whp-gallery-lightbox { padding: 14px; }
  .whp-gallery-lightbox__figure { max-width: calc(100vw - 28px); }
  .whp-gallery-lightbox__figure img {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 120px);
  }
  .whp-gallery-lightbox__close { top: 12px; right: 12px; }
  .whp-gallery-lightbox__nav { top: auto; bottom: 18px; transform: none; }
  .whp-gallery-lightbox__nav--prev { left: calc(50% - 58px); }
  .whp-gallery-lightbox__nav--next { right: calc(50% - 58px); }
  .whp-gallery-lightbox__figure figcaption { padding-bottom: 64px; }
  .whp-cpanel-tour__viewport { height: 250px; }
  .whp-cpanel-callout { width: min(220px, 62vw); }
}
