/* The TOP's information slider (index.php .topslides, the client's 2026-11-16 requests) between the venue cards and the
   video. slick (header.php) moves it in centre mode, as the client's reference: the centre banner at full size, the side
   ones at 85% (88% on phones) and 45% opacity, both changing in the 0.5 s of the move (same easing as the track), so a
   banner grows as it reaches the centre. The banners keep their square corners. The whole carousel stays in the column
   (the client's choice of the same day, 案A): the centre banner takes about 65% of it and the side ones show at its
   edges, where slick's list clips them. A div, not a section, so it does not get the cream box of #contents section;
   the top margin copies .topvideo's. top.css styles every .slick-dots for the 2025 slider: over the picture's bottom,
   where the 芝公園 banner has its names. Here the dots go below the pictures. The class is not .topslider: header.php's
   topslider.js (2025) still starts any .topslider. */
.topslides {
  /* the centre banner's width, a share of the column (#contents, common.css: 900px, 96% from 980px down): about
     65%, 73% on phones so the banners' text stays readable. index.php's sizes attribute and the arrows follow it (change
     them together). */
  --tcm-slide-w: 585px;
  --tcm-slide-gap: 16px;
  --tcm-slide-side: 0.85;
  margin-top: calc((20 / 1440) * 100vw);
}
.topslides__stage {
  position: relative;
}
/* Before slick starts, or where it does not run, only the first banner shows and no arrow: header.php loads slick on
   is_home() only, and the search page renders this template too. */
.topslides__list:not(.slick-initialized) > .topslides__item + .topslides__item,
.topslides__list:not(.slick-initialized) ~ .topslides__arrow {
  display: none;
}
.topslides__item a,
.topslides__item img {
  display: block;
}
.topslides__item img {
  width: 100%;
  height: auto;
}
.topslides .slick-slide {
  width: var(--tcm-slide-w);
  margin: 0 calc(var(--tcm-slide-gap) / 2);
  opacity: 0.45;
  transform: scale(var(--tcm-slide-side));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.topslides .slick-slide.slick-center {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .topslides .slick-slide {
    transition: none;
  }
}
.topslides__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 9, 40, 0.55);
  cursor: pointer;
}
.topslides__arrow:hover {
  background: rgba(0, 9, 40, 0.85);
}
.topslides__arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}
/* on the centre banner's edges */
.topslides__arrow--prev {
  left: calc(50% - var(--tcm-slide-w) / 2 - 22px);
}
.topslides__arrow--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}
.topslides__arrow--next {
  right: calc(50% - var(--tcm-slide-w) / 2 - 22px);
}
.topslides__arrow--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}
.topslides__arrow:focus-visible,
.topslides .slick-dots button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.topslides .slick-dots {
  position: static;
  display: flex;
  justify-content: center;
  gap: 14px;
  width: auto;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.topslides .slick-dots li {
  width: 12px;
  height: 12px;
  margin: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}
.topslides .slick-dots li.slick-active {
  background-color: #fff;
}
.topslides .slick-dots li button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 0;
  cursor: pointer;
}
@media (max-width: 980px) {
  .topslides {
    --tcm-slide-w: 62vw;
  }
}
/* Phones: swipe, the dots, or a tap on a side banner; the arrows would sit on the banners' text. !important: slick shows
   its arrows with an inline display: inline-block. */
@media (max-width: 678px) {
  .topslides {
    --tcm-slide-w: 70vw;
    --tcm-slide-gap: 8px;
    --tcm-slide-side: 0.88;
    margin-top: calc((12 / 750) * 100vw);
  }
  .topslides__arrow {
    display: none !important;
  }
  .topslides .slick-dots {
    gap: 12px;
    margin-top: 10px;
  }
}
