/* Experience VISTAS — Oxbridge “Knowledge Meets Innovation” marquee */

.life {
  background: var(--navy, #293896);
  color: var(--white);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 0;
  overflow-x: clip;
  overflow-y: clip;
}

.life__shell {
  width: min(810px, calc(100% - 2.5rem));
  margin: 0 auto;
}

@media (min-width: 781px) {
  .life__shell {
    width: min(72rem, calc(100% - 2.5rem));
  }
}

.life__head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
}

.life .eyebrow,
.life .eyebrow-lockup,
.life__eyebrow {
  margin: 0;
  color: var(--gold, #f9a825);
}

.life__head .section-heading,
.life__intro h2 {
  margin: 0;
  color: var(--white);
  text-wrap: balance;
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.life__head .lede {
  margin: 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

@media (min-width: 781px) {
  .life__head .lede {
    max-width: 62rem;
  }
}

.life__cta {
  margin-top: 0.35rem;
  width: fit-content;
}

.life__marquee {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
  cursor: grab;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.life__marquee::-webkit-scrollbar {
  display: none;
}

.life__marquee.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

.life__track {
  display: flex;
  align-items: stretch;
  width: max-content;
}

.life__tile {
  position: relative;
  flex: none;
  width: 26.5rem;
  height: 31rem;
  margin: 0 0.7rem;
  overflow: hidden;
  border-radius: 1.15rem;
  background: var(--navy, #293896);
}

.life__tile--first,
.life__tile--second,
.life__tile--video {
  width: 26.5rem;
  height: 31rem;
  aspect-ratio: auto;
}

.life__tile img,
.life__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.life__play {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy, #293896);
  color: var(--white);
  cursor: pointer;
}

.life__chip {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 1.5rem);
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(41, 56, 150, 0.28);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--navy, #293896);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

.life__tile--video .life__chip {
  max-width: calc(100% - 4.25rem);
}

.life__play-icon {
  width: 0;
  height: 0;
  margin-left: 0.12rem;
  border-style: solid;
  border-width: 0.36rem 0 0.36rem 0.58rem;
  border-color: transparent transparent transparent currentColor;
}

.life__play[aria-pressed="false"] .life__play-icon {
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) left / 32% 100% no-repeat,
    linear-gradient(currentColor, currentColor) right / 32% 100% no-repeat;
}


@media (max-width: 1100px) {
  .life__tile,
  .life__tile--first,
  .life__tile--second,
  .life__tile--video {
    width: 22rem;
    height: 26rem;
  }
}

@media (max-width: 780px) {
  .life__tile {
    margin: 0 0.4rem;
    border-radius: 1rem;
  }
  .life__tile,
  .life__tile--first,
  .life__tile--second,
  .life__tile--video {
    width: min(18.75rem, 78vw);
    height: min(22.5rem, 94vw);
  }
  .life__play {
    width: 2rem;
    height: 2rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
  .life__chip {
    left: 0.45rem;
    bottom: 0.45rem;
    padding: 0.42rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 0.65rem;
    max-width: calc(100% - 1rem);
  }
  .life__tile--video .life__chip {
    max-width: calc(100% - 3.1rem);
  }
}

