/* Homepage news carousel.
   Phone layout is only inside max-width: 680px.
   Desktop layout is only inside min-width: 681px. */

.news {
  position: relative;
  background: #0a0a0a;
  color: var(--white);
}

.news__label {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
}

.news__kicker {
  color: var(--pink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.news__cats {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.news__viewport {
  position: relative;
  min-width: 0;
}

.news__scroller {
  display: flex;
  align-items: flex-start;
}

.news__card {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.news__media {
  position: relative;
  background: transparent;
}

.news__shot {
  display: contents;
  color: inherit;
}

.news__shot:focus-visible,
.news__card h2 a:focus-visible,
.news .button:focus-visible,
.news__hint:focus-visible,
.news__arrow:focus-visible,
.news__dot:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.news__still {
  display: block;
}

.news__video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.news__media.is-playing .news__video {
  opacity: 1;
}

.news .eyebrow {
  margin: 0 0 6px;
}

.news__card h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}

.news__card h2 a {
  color: inherit;
  text-decoration: none;
}

.news__when {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

/* Collapsed More info sits in the same slot as the other slides' date line,
   so this card stays no taller than London To Tokyo and Break The Rhythm. */
html body .news details.more-info,
html body .shows details.more-info {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.news details.more-info > summary,
.shows details.more-info > summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: fit-content;
  min-height: 0 !important;
  padding: 0 !important;
  border: none;
  line-height: 1.2 !important;
}

.news .more-info-body {
  color: var(--muted);
}

.news .button {
  margin-top: 12px;
  padding: 12px 14px;
}

.news__nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news__dots {
  display: flex;
  align-items: center;
}

.news__arrow,
.news__dot,
.news__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.news__arrow,
.news__dot {
  width: 44px;
  height: 44px;
}

.news__hint {
  display: none;
  position: absolute;
  z-index: 4;
  top: 42%;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  transform: translateY(-50%);
}

.news__hint.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.news__arrow span,
.news__hint span {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.news__hint span {
  width: 7px;
  height: 7px;
  margin-left: -2px;
}

.news__arrow--prev span {
  transform: translateX(2px) rotate(-135deg);
}

.news__arrow--next span,
.news__hint--next span {
  transform: translateX(-1px) rotate(45deg);
}

.news__hint--prev span {
  margin-left: 2px;
  transform: translateX(1px) rotate(-135deg);
}

.news__arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

.news__dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.news__dot[aria-current="true"]::before {
  background: var(--pink);
}

.news__label {
  position: absolute;
  z-index: 3;
  top: 12px;
  margin: 0;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .news {
    padding: 40px 0 0;
  }

  .news__label {
    left: 20px;
    right: 20px;
  }

  .news__viewport {
    margin-left: 20px;
    margin-right: 20px;
    overflow: hidden;
  }

  .news__scroller {
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-left: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }

  .news__scroller.is-rebasing {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .news__scroller::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .news__scroller::after {
    content: none;
    display: none;
  }

  .news__card {
    width: 100%;
    flex: 0 0 100%;
    margin-left: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    touch-action: pan-x pan-y;
  }

  .news__hint--prev {
    right: auto;
    left: 8px;
  }

  .news__hint--next {
    right: 8px;
    left: auto;
  }

  .news__media {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
  }

  .news__still,
  .news__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .news__copy {
    padding-top: 10px;
  }

  .news__card--event .news__media {
    background: #0a0a0a;
  }

  .news__card--event .news__still {
    object-fit: contain;
  }

  .news__card--event h2 {
    text-wrap: balance;
  }

  .news__card h2 {
    font-size: 26px;
  }

  .news__when {
    font-size: 15px;
  }

  .news__arrow {
    display: none;
  }

  .news__hint {
    display: inline-flex;
  }
}

@media (min-width: 681px) {
  .news {
    --news-gap: 32px;
    --news-count: 2;
    padding: 112px var(--page-inline) 28px;
  }

  .news__label {
    top: 86px;
    left: var(--page-inline);
    right: var(--page-inline);
  }

  .news__viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .news__scroller {
    width: 100%;
    align-items: stretch;
    gap: var(--news-gap);
    overflow: hidden;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-y;
  }

  .news__scroller::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .news__scroller::after {
    content: none;
    display: none;
  }

  .news__card {
    width: calc((100% - (var(--news-count) - 1) * var(--news-gap)) / var(--news-count));
    flex: 0 0 calc((100% - (var(--news-count) - 1) * var(--news-gap)) / var(--news-count));
    max-width: calc((100% - (var(--news-count) - 1) * var(--news-gap)) / var(--news-count));
    min-width: 0;
    scroll-snap-align: none;
  }

  .news__media {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #000;
  }

  .news__still,
  .news__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center center;
  }

  .news__copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto calc(8px + 2 * 1.35 * 15px) auto auto;
    align-content: start;
    width: auto;
    min-width: 0;
    padding-top: 12px;
    row-gap: 0;
  }

  .news .eyebrow {
    grid-row: 1;
    margin: 0 0 6px;
  }

  .news__card h2 {
    grid-row: 2;
    align-self: start;
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    text-wrap: balance;
  }

  .news__when {
    grid-row: 3;
    align-self: start;
    margin: 0;
    padding-top: 8px;
    line-height: 1.35;
  }

  .news .button {
    grid-row: 4;
    justify-self: start;
    margin-top: 12px;
  }

  .news details.more-info {
    grid-row: 5;
    margin-top: 8px;
  }

  .news__when {
    font-size: 15px;
  }

  .news__arrow {
    position: absolute;
    z-index: 4;
    top: 78px;
  }

  .news__arrow--prev {
    right: calc(var(--page-inline) + 44px);
    left: auto;
  }

  .news__arrow--next {
    right: var(--page-inline);
    left: auto;
  }

  .news.is-window .news__viewport,
  .news.is-window .news__nav {
    width: 100%;
  }
}

@media (min-width: 1100px) {
  .news {
    --news-count: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news__scroller {
    scroll-behavior: auto;
    transition: none;
  }
}
