
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.demo-nav {
  width: 100%;
  height: 48px;
  flex-shrink: 0;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: stretch;
  color: #fff;
  gap: 8px;
  box-sizing: border-box;
  padding: 8px 16px;
  z-index: 10;
  font-family: monospace;
  font-size: 12px;

  button,
  label {
    padding: 0 8px;
    border-radius: 32px;
    height: 100%;
    font-size: 12px;
    font-family: monospace;
    appearance: none;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition-duration: 100ms;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    &.active {
      background: #114df1;
      border-color: rgba(255, 255, 255, 0.2);
    }
    &:not(.active):hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
  }
  .demo-nav-segmented {
    display: flex;
    align-items: center;
    button {
      width: 96px;
      padding: 0;
      &:first-child {
        border-radius: 32px 0 0 32px;
        border-right: none;
      }
      &:nth-child(2) {
        border-radius: 0 32px 32px 0;
      }
    }
  }
  label input {
    display: none;
  }
}
:root {
  --expo-image-border-radius: 16px;
}
@media (min-width: 768px) {
  :root {
    --expo-image-border-radius: 32px;
  }
}

.expo-content {
  padding: 16px;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.1;
  text-wrap-style: balance;
  display: flex;
  align-items: end;
  box-sizing: border-box;
  color: #fff;
  font-size: 5.6vw;
  visibility: hidden;
  body.content-visible & {
    visibility: visible;
  }
  @media (min-width: 640px) {
    padding: 32px;
  }
  .swiper-vertical & {
    font-size: 4.5vh;
  }
}

.swiperExpo {
  max-width: 100%;
}
/* Horizontal: full width, height derived from a 16:9 ratio. */
.swiperExpo.swiper-horizontal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
}

.swiperExpo.swiper-vertical {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}


@media (min-width: 992px) {
  .swiperExpo.swiper-vertical .swiper-slide {
    transition: transform 0.35s ease;
    transform: scaleX(0.7);
    transform-origin: center center;
  }
  .swiperExpo.swiper-vertical .swiper-slide-active {
    transform: scaleX(1);
  }
}

:root {
    --expo-image-border-radius: 16px;
  }
  .swiper-expo {
    box-sizing: border-box;
  }
  .swiper-expo.swiper-horizontal {
    padding-top: var(--expo-padding, 0px);
    padding-bottom: var(--expo-padding, 0px);
  }
  .swiper-expo.swiper-vertical {
    padding-left: 0;
    padding-right: 0;
  }
  .swiper-expo .expo-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    overflow: hidden;
    border-radius: var(--expo-image-border-radius, 0px);
  }
  .swiper-expo .expo-content {
    position: relative;
  
    height: 100%;
  }
  .swiper-expo .expo-image {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    position: absolute;
    object-fit: cover;
  }
  
  .swiper-expo.swiper-horizontal .expo-image {
    left: calc((var(--expo-image-offset) * 100% - 100%) / -2);
    top: 0;
    width: calc(var(--expo-image-offset) * 100%);
    height: 100%;
  }
  .swiper-expo.swiper-vertical .expo-image {
    top: calc((var(--expo-image-offset) * 100% - 100%) / -2);
    left: 0;
    height: calc(var(--expo-image-offset) * 100%);
    width: 100%;
  }

  .swiperExpo.swiper-horizontal{
    height: auto;
    aspect-ratio: 1 / 1;
  }
  @media (min-width:768px){
    .swiperExpo.swiper-horizontal{
      height: 840px;
    }
  }
  