.hero-ad-slot[hidden],
.now-ad-slot[hidden],
.section-ad-slot[hidden] { display: none; }

.hero-ad-slot,
.now-ad-slot,
.section-ad-slot {
  display: block;
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.ad-carousel__viewport { width: 100%; overflow: hidden; touch-action: pan-y; }
.ad-carousel__track {
  --ad-visible: 1;
  display: flex;
  align-items: stretch;
  transition: transform 420ms cubic-bezier(.22, .8, .25, 1);
  will-change: transform;
}

.ad-carousel__slide {
  flex: 0 0 calc(100% / var(--ad-visible));
  min-width: 0;
  box-sizing: border-box;
  padding: 0 6px;
  display: grid;
  place-items: center;
  background: #fff;
}

.ad-carousel__slide picture,
.ad-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.ad-carousel__controls {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-carousel__arrow,
.ad-carousel__dot { pointer-events: auto; border: 0; cursor: pointer; }
.ad-carousel__arrow {
  width: 36px;
  height: 48px;
  padding: 0;
  border-radius: 0 6px 6px 0;
  background: rgba(7, 26, 45, .72);
  color: #fff;
  font: 32px/1 Arial, sans-serif;
  opacity: .16;
  transition: opacity 160ms ease, background 160ms ease;
}

.ad-carousel__arrow--next { border-radius: 6px 0 0 6px; }
.ad-carousel:hover .ad-carousel__arrow,
.ad-carousel:focus-within .ad-carousel__arrow { opacity: .9; }
.ad-carousel__dots {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 6px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.ad-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: rgba(7, 26, 45, .28);
}

.ad-carousel__dot[aria-current="true"] { background: #8da622; }
.section-ad-slot {
  width: 100%;
  padding: 28px max(35px, calc((100vw - 1200px) / 2));
  border-radius: 0;
  background: #f7f7f4;
}

.section-ad-slot .ad-carousel__viewport { width: min(1200px, 100%); margin: 0 auto; }
.section-ad-slot .ad-carousel__slide { aspect-ratio: 6 / 1; }
.now-ad-slot .ad-carousel__slide { aspect-ratio: 3 / 1; }

@media (min-width: 801px) {
  .feed { padding-top: clamp(225px, 17vw, 320px); }
  .hero-ad-slot { display: none !important; }
  .feed > .intro {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: clamp(24px, 3vw, 58px);
    width: 100%;
    margin: 0 0 28px;
    align-items: center;
  }

  .feed > .intro p { margin: 0; text-align: right; }
  .now-ad-slot { width: 100%; margin: 22px 0 28px; }
  .now-ad-slot[hidden] + .feed-grid { margin-top: 0; }
}

@media (max-width: 800px) {
  .feed { padding-bottom: 0; }
  .hero-ad-slot,
  .now-ad-slot,
  .section-ad-slot {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: #fff;
  }

  .hero-ad-slot .ad-carousel__slide,
  .now-ad-slot .ad-carousel__slide,
  .section-ad-slot .ad-carousel__slide { aspect-ratio: 3 / 1; padding: 0; }
  .feed > .intro {
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    right: auto;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    margin: 12px 0 26px;
    align-items: center;
  }

  .feed > .intro p {
    display: block;
    margin: 0;
    max-width: none;
    font-size: 9px;
    line-height: 1.5;
    text-align: right;
  }

  .now-ad-slot { width: calc(100% + 30px); margin: 34px -15px 0; }
  .ad-carousel__arrow { width: 30px; height: 42px; font-size: 27px; opacity: .72; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-carousel__track { transition: none; }
}
