/* MOSAIC Bxb1 two-scene animation: only the supplemental integration styles.
   Load this file AFTER the project's existing style.css. */

.mosaic-bxb1-combined {
  position: relative;
  width: min(1120px, 100%);
  min-width: 0;
  margin-inline: auto;
  container-type: inline-size;
}

.mosaic-bxb1-combined .mosaic-bxb1-scene {
  position: relative;
  width: 100%;
  min-width: 0;
}

.mosaic-bxb1-combined .mosaic-bxb1-scene[hidden] {
  display: none !important;
}

.mosaic-bxb1-combined #mosaic-sc-animation,
.mosaic-bxb1-combined #mosaic-population-animation {
  width: 100%;
  min-width: 0;
}

.mosaic-bxb1-combined .mosaic-bxb1-switch {
  position: absolute !important;
  z-index: 4;
  top: clamp(109px, 15.18cqw, 170px);
  right: 0;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 54px !important;
  height: 76px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  opacity: .92;
  cursor: pointer;
  transition: opacity .18s ease;
}

.mosaic-bxb1-combined .mosaic-bxb1-switch:hover {
  opacity: 1;
  background: transparent !important;
}

.mosaic-bxb1-combined .mosaic-bxb1-switch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.mosaic-bxb1-combined .mosaic-bxb1-switch svg {
  display: block;
  width: 46px;
  height: 46px;
  overflow: visible;
  transform: rotate(0deg);
  transition: transform .22s ease;
}

.mosaic-bxb1-combined .mosaic-bxb1-switch.is-back svg {
  transform: rotate(180deg);
}

.mosaic-bxb1-combined .mosaic-bxb1-switch path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 680px) {
  .mosaic-bxb1-combined .mosaic-bxb1-switch {
    right: 0;
    width: 42px !important;
    height: 64px !important;
  }

  .mosaic-bxb1-combined .mosaic-bxb1-switch svg {
    width: 38px;
    height: 38px;
  }
}

/* The stage scrolls itself to follow the action, but the scrollbar it draws on
   the way is furniture on top of the drawing: the frame is already the edge of
   the scene, and a track down it reads as a page that did not fit. The
   scrolling stays; only the bar goes. */
.mosaic-bxb1-combined [data-mosaic-stage-scroll] {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* legacy Edge */
}

.mosaic-bxb1-combined [data-mosaic-stage-scroll]::-webkit-scrollbar {
  width: 0;
  height: 0;
}
