html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: Arial, sans-serif;
}

picture {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100dvh;
  background: #000;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-position: center center;
}

/* MOBILE */
@media (max-width: 768px) {
  .bg {
    object-fit: cover;
    object-position: center center;
  }
}

/* DESKTOP */
@media (min-width: 769px) {
  .bg {
    object-fit: contain;
    object-position: center center;
  }
}

#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  transition: .4s;
  pointer-events: auto;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card {
  background: #f5efe7;
  width: min(100vw, 420px);
  aspect-ratio: 1;
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  margin: 20px;
}

.small {
  letter-spacing: .3em;
  font-size: .75rem;
}

h1 {
  font-family: Georgia, serif;
  font-weight: 400;
}

p {
  color: #555;
  line-height: 1.5;
}

a {
  background: #111;
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
}

#close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: none;
  background: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  touch-action: manipulation;
  z-index: 2;
}

#close:hover {
  background: rgba(0,0,0,.08);
}

#close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
