/* Overlay base */
.overlay {
  position: fixed;
  display: none; /* nascosto di default */
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Contenuto */
.overlay-content {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  outline: none;
}

/* Bottone chiusura */
.close-btn {
  position: absolute;
  top: -40px;
  right: -10px;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0 8px;
}

/* Click fuori dal video (opzionale, stilizzato come area "trasparente") */
.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
}
  