/* Match the existing homepage, with component-scoped rules. */
body.home #masthead { z-index: 2; position: relative; }
.crt-home { position: relative; }
.crt-carousel {
  position: relative;
  box-sizing: border-box;
  height: 100vh;
  height: 100svh;
  min-height: 300px;
  border: 10px solid #fff;
  overflow: hidden;
  background: #e7e7e7;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}
.crt-carousel [hidden] { display: none !important; }
.crt-carousel__slides, .crt-carousel__slide, .crt-carousel__link { position: absolute; inset: 0; }
.crt-carousel__slide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 500ms ease-in-out, visibility 0s 500ms; }
.crt-carousel__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; transition-delay: 0s; }
.crt-carousel__link { display: flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; overflow: hidden; }
.crt-carousel__image { position: absolute; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; transform-origin: center; }
.crt-carousel.is-ready .is-active .crt-carousel__image { animation: crt-home-zoom-in 5s linear both; }
.crt-carousel.is-ready .is-active.is-zoom-out .crt-carousel__image { animation-name: crt-home-zoom-out; }
.crt-carousel.is-paused .crt-carousel__image { animation-play-state: paused !important; }
@keyframes crt-home-zoom-in { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes crt-home-zoom-out { from { transform: scale(1.05); } to { transform: scale(1); } }
.crt-carousel__caption {
  position: relative;
  box-sizing: border-box;
  max-width: calc(100% - 100px);
  padding: 15px;
  border: 5px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.85);
  background-clip: padding-box;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
}
.crt-carousel__caption h2 { margin: 0; padding: 0; color: #94bd0f; font-family: inherit; font-size: 36px; font-weight: 700; line-height: 1; text-wrap: balance; overflow-wrap: break-word; }
.crt-carousel__caption p { margin: 15px 0 0; color: #7d7d7d; font-size: 16px; font-weight: 400; line-height: 1; }
.crt-carousel button { box-sizing: border-box; border: 0; border-radius: 0; box-shadow: none; text-shadow: none; font: inherit; cursor: pointer; }
.crt-carousel__dots { position: absolute; z-index: 3; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; }
.crt-carousel .crt-carousel__dot { display: grid; place-items: center; width: 28px; height: 24px; padding: 0; background: transparent; }
.crt-carousel__dot span { box-sizing: content-box; width: 8px; height: 8px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(0,0,0,.18); }
.crt-carousel__dot[aria-disabled="true"] span { background: #fff; }
.crt-carousel .crt-carousel__pause { position: absolute; z-index: 3; right: 12px; bottom: 12px; width: 44px; height: 44px; padding: 0; color: #fff; font-size: 21px; background: rgba(0,0,0,.45); }
.crt-carousel button:focus-visible, .crt-carousel__link:focus-visible { outline: 3px solid #94bd0f; outline-offset: -3px; }
.crt-carousel__mobile-controls { display: none; }
.crt-home .sponsors-w { box-sizing: border-box; background: white; display: inline-block; padding: 5px; position: absolute; left: 50%; bottom: 0; z-index: 4; transform: translateX(-50%); min-width: 476px; text-align: center; }
.crt-home .sponsor { display: inline-block; margin-right: 30px; }
.crt-home .sponsor img { border: 4px solid rgba(255,255,255,.6); max-height: 80px; }
@media (max-width: 1024px) {
  body.home #masthead { position: absolute; }
  .crt-carousel__caption h2 { font-size: clamp(20px, 3.2vw, 32px); }
}
@media (max-width: 600px) {
  .crt-carousel__dots { display: none; }
  .crt-carousel__caption { max-width: calc(100% - 12px); padding: 14px; }
  .crt-carousel__caption h2 { font-size: 14px; line-height: 1.25; }
  .crt-carousel__caption p { font-size: 12px; line-height: 1.4; }
  .crt-carousel .crt-carousel__pause { bottom: 75px; right: 10px; }
  .crt-carousel__mobile-controls { position: absolute; z-index: 3; bottom: 75px; left: 10px; display: flex; direction: ltr; gap: 4px; }
  .crt-carousel__mobile-controls button { width: 44px; height: 44px; padding: 0; font-size: 28px; line-height: 1; background: rgba(0,0,0,.45); color: #fff; }
  .crt-home .sponsors-w { min-width: 0; width: min(350px, calc(100% - 40px)); display: flex; justify-content: space-around; align-items: center; gap: 8px; }
  .crt-home .sponsor { margin: 0; min-width: 0; }
  .crt-home .sponsor img { max-height: 45px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .crt-carousel__slide { transition: none; }
  .crt-carousel .crt-carousel__image { animation: none !important; transform: none; }
}
