
.holiday {
  text-align: center;
}

.holiday__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ydb-ink);
}

.holiday__note {
  margin: 12px 0 18px;
}

.holiday__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.holiday__button {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid var(--ydb-ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ydb-ink);
}

.holiday__button[hidden] {
  display: none;
}

.holiday__button:hover,
.holiday__button:focus-visible {
  background-color: var(--ydb-ink);
  color: var(--ydb-cream);
}

.divider {
  height: 0;
  margin: var(--divider-gap, 56px) 0;
  border: 0;
  border-top: 1px solid var(--ydb-green);
}


.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: var(--ydb-scrim);
  timeline-scope: --lb;
}

.lightbox:has(.lightbox__slide:target) {
  display: block;
}

.lightbox__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-timeline: --lb x;
}

.lightbox__track::-webkit-scrollbar { display: none; }

.lightbox__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  padding: 24px 64px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
}

.lightbox__image {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

.lightbox__dismiss {
  position: absolute;
  inset: 0;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 18px;
  font: 400 40px/1 sans-serif;
  text-decoration: none;
  color: var(--ydb-white);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .9);
  font: 400 28px/38px sans-serif;
  text-align: center;
  text-decoration: none;
  color: var(--ydb-ink);
}

.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }

.lightbox__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.lightbox__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .4);
}

.lightbox__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--ydb-white);
  opacity: 0;
}

@keyframes lightbox-dot-first   { from { opacity: 1; } to { opacity: 0; } }
@keyframes lightbox-dot-second  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-hide-start  { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@keyframes lightbox-hide-end    { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }

@supports (animation-timeline: scroll()) {
  .lightbox__dot--first::after  { animation: lightbox-dot-first linear both;  animation-timeline: --lb; }
  .lightbox__dot--second::after { animation: lightbox-dot-second linear both; animation-timeline: --lb; }
  .lightbox__arrow--prev { animation: lightbox-hide-start linear both; animation-timeline: --lb; animation-range: 0% 5%; }
  .lightbox__arrow--next { animation: lightbox-hide-end linear both;   animation-timeline: --lb; animation-range: 95% 100%; }
}

@media only screen and (max-width: 640px) {
  .lightbox__arrow { display: none; }
  .lightbox__slide { padding: 16px 12px 48px; }
}
