
/* BeatlesAustralia — On This Day popup */

.ba-otd-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.ba-otd-overlay.ba-otd-visible {
  opacity: 1;
  visibility: visible;
}

.ba-otd-popup {
  position: relative;
  width: min(560px, 100%);
  max-height: min(76vh, 680px);
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 14px;
  background: #fff;
  color: #222;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  font-family: inherit;
  transform: translateY(10px);
  transition: transform .2s ease;
}

.ba-otd-visible .ba-otd-popup {
  transform: translateY(0);
}

.ba-otd-kicker {
  padding: 22px 54px 2px 24px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ba-otd-popup h2 {
  margin: 0;
  padding: 0 54px 18px 24px;
  font-size: 1.7rem;
  line-height: 1.15;
}

.ba-otd-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font-size: 30px;
  line-height: 34px;
  cursor: pointer;
}

.ba-otd-close:hover,
.ba-otd-close:focus {
  background: rgba(0,0,0,.07);
  outline: none;
}

.ba-otd-scroll {
  max-height: calc(min(76vh, 680px) - 160px);
  overflow-y: auto;
  padding: 0 24px 4px;
  overscroll-behavior: contain;
}

.ba-otd-event {
  padding: 15px 0;
  border-top: 1px solid rgba(0,0,0,.11);
}

.ba-otd-event:first-child {
  border-top: 0;
  padding-top: 0;
}

.ba-otd-meta {
  margin-bottom: 5px;
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ba-otd-event-title {
  margin-bottom: 5px;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
}

.ba-otd-event-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ba-otd-details {
  color: #666;
  font-size: .9rem;
  line-height: 1.45;
}

.ba-otd-dismiss {
  display: block;
  width: calc(100% - 48px);
  margin: 14px 24px 22px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 600px) {
  .ba-otd-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .ba-otd-popup {
    width: 100%;
    max-height: 82vh;
    border-radius: 14px 14px 10px 10px;
  }

  .ba-otd-kicker {
    padding-top: 20px;
  }

  .ba-otd-popup h2 {
    font-size: 1.45rem;
  }

  .ba-otd-scroll {
    max-height: calc(82vh - 160px);
  }
}
