.oeb-panorama,
.oeb-panorama * {
  box-sizing: border-box;
}

.oeb-panorama {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--oeb-panorama-height-desktop, 460px);
  overflow: hidden;
  background: #111;
  user-select: none;
  isolation: isolate;
}

.oeb-panorama__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.oeb-panorama.is-dragging .oeb-panorama__viewport {
  cursor: grabbing;
}

.oeb-panorama__track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.oeb-panorama__picture,
.oeb-panorama__image {
  display: block;
  height: 100%;
}

.oeb-panorama__image {
  width: auto;
  max-width: none !important;
  min-width: 100vw;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.oeb-panorama.is-explorable .oeb-panorama__image {
  min-width: 0;
  object-fit: contain;
}

.oeb-panorama.is-narrow .oeb-panorama__track {
  left: 50%;
}

.oeb-panorama.is-narrow .oeb-panorama__image {
  min-width: 0;
  object-fit: contain;
}

.oeb-panorama--overlay-dark::after,
.oeb-panorama--overlay-light::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.oeb-panorama--overlay-dark::after {
  background: linear-gradient(90deg, rgba(0,0,0,.56) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,.12) 100%);
}

.oeb-panorama--overlay-light::after {
  background: linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.34) 42%, rgba(255,255,255,.12) 100%);
}

.oeb-panorama__content {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: clamp(22px, 7vw, 118px);
  max-width: min(620px, calc(100vw - 44px));
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  pointer-events: none;
}

.oeb-panorama--overlay-light .oeb-panorama__content {
  color: #2f2f2f;
  text-shadow: 0 2px 18px rgba(255,255,255,.45);
}

.oeb-panorama--text-center .oeb-panorama__content {
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.oeb-panorama--text-right .oeb-panorama__content {
  left: auto;
  right: clamp(22px, 7vw, 118px);
  text-align: right;
}

.oeb-panorama__title {
  margin: 0 0 12px 0;
  padding: 0;
  font-size: clamp(34px, 5vw, 76px);
  line-height: .96;
  font-weight: 700;
  letter-spacing: -.035em;
  color: inherit;
}

.oeb-panorama__subtitle {
  margin: 0 0 24px 0;
  padding: 0;
  max-width: 560px;
  font-size: clamp(17px, 1.65vw, 24px);
  line-height: 1.35;
  font-weight: 400;
  color: inherit;
}

.oeb-panorama--text-center .oeb-panorama__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.oeb-panorama__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #BFD885;
  color: #2f3526 !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  pointer-events: auto;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.oeb-panorama__button:hover,
.oeb-panorama__button:focus {
  transform: translateY(-1px);
  background: #cce49a;
  box-shadow: 0 16px 32px rgba(0,0,0,.22);
}


@media (max-width: 767px) {
  .oeb-panorama {
    height: var(--oeb-panorama-height-mobile, 300px);
  }
  .oeb-panorama--overlay-dark::after {
    background: linear-gradient(180deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.22) 100%);
  }
  .oeb-panorama__content,
  .oeb-panorama--text-right .oeb-panorama__content {
    left: 22px;
    right: 22px;
    max-width: none;
    text-align: left;
  }
  .oeb-panorama--text-center .oeb-panorama__content {
    left: 50%;
    right: auto;
    text-align: center;
  }
  .oeb-panorama__title {
    font-size: clamp(30px, 10vw, 46px);
    margin-bottom: 8px;
  }
  .oeb-panorama__subtitle {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .oeb-panorama__button {
    min-height: 42px;
    padding: 11px 18px;
    font-size: 14px;
  }
}
