:root {
  --festival-accent-sky-color: #a0b2c3;
}

.festival-page-image-frame {
  overflow-x: clip;
}

/* Keep lazy SSR template copy out of view until its festival adapter is ready. */
astro-island[component-url*="FloatingPillNavbar"]:not([data-festival-header-locale]) > *,
.mobile-nav-pill:not([data-festival-header-locale]),
astro-island[component-url*="ServicesSection"]:not([data-festival-about-ready="true"]) > *,
astro-island[component-url*="StatsCounter"]:not([data-festival-stats-locale]) > *,
astro-island[component-url*="TechStackGrid"]:not([data-festival-partners-locale]) > *,
astro-island[component-url*="AccentBanner"]:not([data-festival-accent-locale]):not([data-festival-second-accent-locale]) > *,
astro-island[component-url*="WhyChooseUs"]:not([data-festival-why-locale]) > *,
astro-island[component-url*="IndustryShowcase"]:not([data-festival-history-locale]) > *,
astro-island[component-url*="DashboardDemo"]:not([data-festival-programme-locale]) > *,
astro-island[component-url*="ContactCTA"]:not([data-festival-contact-locale]) > *,
astro-island[component-url*="Footer"]:not([data-festival-footer-locale]) > * {
  opacity: 0;
  pointer-events: none;
}

.festival-emblem {
  object-fit: contain !important;
  padding: 1px;
}

astro-island[data-festival-page-locale^="/festival:"] [data-team-avatar] > div {
  width: 5.5rem;
  height: 5.5rem;
}

astro-island[data-festival-partners-locale] .animate-marquee > .group > div {
  width: 5.5rem;
  height: 5.5rem;
}

astro-island[data-festival-partners-locale] .animate-marquee > .group > div img {
  width: 3rem;
  height: 3rem;
}

@media (min-width: 768px) {
  astro-island[data-festival-page-locale^="/festival:"] [data-team-avatar] > div {
    width: 7rem;
    height: 7rem;
  }

  astro-island[data-festival-partners-locale] .animate-marquee > .group > div {
    width: 7rem;
    height: 7rem;
  }

  astro-island[data-festival-partners-locale] .animate-marquee > .group > div img {
    width: 4rem;
    height: 4rem;
  }
}

.festival-hero-logo-contrast {
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65)) !important;
}

.festival-hero-zoom-out {
  animation: festival-hero-zoom-out 5s ease-out both;
  transform-origin: center center;
  will-change: transform, opacity;
}

@keyframes festival-hero-zoom-out {
  0% {
    opacity: 0.78;
    transform: scale(1.08);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .festival-hero-zoom-out {
    animation: none;
  }
}

.festival-desktop-pill {
  gap: 0.65rem !important;
}

.festival-desktop-pill.festival-rtl,
.mobile-nav-pill.festival-rtl {
  flex-direction: row-reverse;
}

.festival-desktop-pill .nav-text-glow {
  gap: clamp(0.75rem, 1.35vw, 1.5rem) !important;
}

.festival-language-switcher {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 9999px;
  color: #05060a;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 700;
  gap: 0.18rem;
  height: 2.5rem;
  padding: 0 0.42rem;
}

.festival-language-switcher a {
  align-items: center;
  border-radius: 9999px;
  display: inline-flex;
  height: 1.75rem;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0 0.28rem;
}

.festival-language-switcher a:hover,
.festival-language-switcher a:focus-visible {
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.festival-language-switcher a[aria-current="page"] {
  background: #05060a;
  color: #fff;
}

.festival-language-switcher > span {
  opacity: 0.32;
}

.festival-register {
  border-radius: 9999px !important;
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 2.5rem;
  padding-inline: 0.9rem !important;
  text-decoration: none;
  white-space: nowrap;
  width: auto !important;
}

.festival-menu-languages {
  left: 1.5rem;
  position: absolute;
  top: 1.5rem;
  z-index: 20;
}

.festival-fullscreen-menu.festival-rtl .festival-menu-languages {
  left: auto;
  right: 1.5rem;
}

.festival-fullscreen-menu.festival-rtl > button[aria-label] {
  left: 1.5rem !important;
  right: auto !important;
}

.festival-fullscreen-menu.festival-rtl nav,
.festival-fullscreen-menu.festival-rtl nav a {
  direction: rtl;
  text-align: right;
}

.festival-mobile-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  :root {
    --festival-accent-sky-color: #7795b5;
  }
}

@media (max-width: 1024px) {
  .festival-desktop-pill .nav-text-glow {
    gap: 0.7rem !important;
  }

  .festival-desktop-pill .nav-text-glow a,
  .festival-register {
    font-size: 0.7rem !important;
  }

  .festival-register {
    padding-inline: 0.68rem !important;
  }
}
