.atm-xmas {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: rgba(28, 18, 16, 0.72);
  opacity: 1;
  transition: opacity 0.28s ease;
}

.atm-xmas[hidden] {
  display: none;
}

.atm-xmas.is-closing {
  opacity: 0;
}

.atm-xmas__card {
  position: relative;
  display: inline-block;
  max-width: min(960px, calc(100vw - 32px));
  line-height: 0;
}

.atm-xmas__card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 72px);
  box-shadow: 0 22px 50px rgba(28, 18, 16, 0.45);
}

.atm-xmas__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid #5c1818;
  border-radius: 999px;
  background: #fff8ee;
  color: #5c1818;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(28, 18, 16, 0.28);
}

.atm-xmas__close:hover,
.atm-xmas__close:focus-visible {
  background: #ffffff;
  color: #3d1010;
}

.atm-xmas__close:focus-visible {
  outline: 3px solid #fff8ee;
  outline-offset: 2px;
}

.atm-xmas__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.atm-xmas-open,
html.atm-xmas-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .atm-xmas {
    transition: none;
  }
}
