body.site-popup-open {
  overflow: hidden;
}

.site-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.site-popup[hidden] {
  display: none;
}

.site-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.site-popup.is-visible .site-popup__backdrop {
  opacity: 1;
}

.site-popup__panel {
  position: relative;
  z-index: 1;
  width: min(80vw, 1000px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.site-popup__panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-popup__media {
  background: none;
}

.site-popup__image-link,
.site-popup__image-wrap {
  display: block;
  width: 100%;
  text-decoration: none;
  background: none;
}

.site-popup__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 12px;
  background: none;
}

.site-popup__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0 0.15rem;
  background: none;
}

.site-popup__hide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #f2f2f2;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}

.site-popup__hide input {
  width: 16px;
  height: 16px;
  accent-color: #f5c518;
}

.site-popup__close {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.site-popup__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 600px) {
  .site-popup {
    padding: 0.75rem;
  }

  .site-popup__panel {
    width: 80vw;
  }

  .site-popup__close {
    width: 100%;
    max-width: 280px;
  }
}
