/* Everything is scoped to .uap-* to avoid affecting website styles */

.uap-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  pointer-events: none;
}

.uap-overlay.uap-open {
  display: flex;
  pointer-events: auto;
}

.uap-modal {
  position: relative;
  width: min(92vw, 900px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  outline: none;
}

.uap-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 40px;
  text-align: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
}

.uap-content {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
  outline: none;
}

.uap-media {
  width: 100%;
  height: 100%;
  background: #000;
}

.uap-media img,
.uap-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
