/* Popup z bannerem koncertu jazzowego – wspólny dla strony głównej i podstron */
.jazz-event-banner {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: jazzBannerFadeIn 0.28s ease both;
}

.jazz-event-banner__box {
  position: relative;
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #0b0b0b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  animation: jazzBannerScaleIn 0.34s cubic-bezier(.2, .8, .2, 1) both;
}

.jazz-event-banner__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  object-fit: contain;
}

.jazz-event-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font: 400 32px/42px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.jazz-event-banner__close:hover,
.jazz-event-banner__close:focus-visible {
  background: #fff;
  transform: scale(1.07);
}

.jazz-event-banner--closing {
  animation: jazzBannerFadeOut 0.22s ease both;
}

.jazz-event-banner--closing .jazz-event-banner__box {
  animation: jazzBannerScaleOut 0.22s ease both;
}

@keyframes jazzBannerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes jazzBannerFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes jazzBannerScaleIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes jazzBannerScaleOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.985); }
}

@media (max-width: 767px) {
  .jazz-event-banner {
    padding: 6px;
  }

  .jazz-event-banner__box {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 7px;
  }

  .jazz-event-banner__image {
    max-height: calc(100vh - 12px);
  }

  .jazz-event-banner__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jazz-event-banner,
  .jazz-event-banner__box,
  .jazz-event-banner--closing,
  .jazz-event-banner--closing .jazz-event-banner__box {
    animation: none;
  }
}
