.modal-custom {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 1000;
  /* padding-top: 100px; */
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  transition: visibility 0.25s ease-in-out, opacity 0.25s ease-in-out;
  background-color: rgba(0, 0, 0, 0.6);
  background-color: color-mix(in srgb, var(--background-main) 60%, transparent);
  backdrop-filter: blur(5px);
}

.modal-custom-open {
  visibility: visible;
  opacity: 1;
}

.modal-custom-content {
  background-color: var(--modal-background);
  margin: auto;
  border-radius: 5px;
  /* max-height: calc(100vh - 200px); */
  border: 1px solid var(--modal-border);
  width: 40%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.modal-custom-footer,
.modal-custom-header {
  display: flex;
  padding: 10px 20px;
  color: var(--modal-color);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: normal;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid var(--modal-border);
  height: 45px;
  align-items: center;
}

.modal-custom-header>p {
  margin: 0;
}

.modal-custom-footer {
  font-weight: normal;
  border-bottom: none;
  border-top: 1px solid var(--modal-border);
}

.modal-custom-body {
  max-height: calc(100vh - 245px);
  padding: 14px 20px;
  color: var(--modal-color);
  overflow: auto;
}

.modal-custom-close {
  color: var(--color-secondary);
  font-size: 28px;
  transition: all linear .2s;
  /* font-weight: bold; */
}

.modal-custom-close:hover,
.modal-custom-close:focus {
  color: var(--modal-color);
  text-decoration: none;
  cursor: pointer;
}

/* WITH FORMS */

.modal-custom-body>#form-get-beta {
  /* height: 490px; */
  max-height: calc(100vh - 20px - 43px - 132px - 63px - 52px);
  overflow-y: auto;
}

#modal-video .modal-custom-content {
  width: 90%;
  max-width: 1770px;
}

#modal-video video {
  max-height: calc(100vh - 295px);
}

/* MEDIA QUERIES */

@media (max-height: 850px) {
  .modal-custom-body {
    max-height: calc(100vh - 150px);
  }

  #modal-video video {
    max-height: calc(100vh - 195px);
  }
}

@media (max-width: 1200px) {
  .modal-custom-content {
    width: 50%;
  }
}

@media (max-width: 1000px) {
  .modal-custom-content {
    width: 60%;
  }
}

@media (max-width: 800px) {
  .modal-custom-content {
    width: 70%;
  }
}

@media (max-width: 700px) {
  .modal-custom-content {
    width: 90%;
  }
}