.mod-oo-popup__dialog {
  max-width: 1040px;
  width: calc(100% - 2rem);
  margin: 1rem auto;
}

.mod-oo-popup .modal-content {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 0;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.mod-oo-popup .row.g-0 {
  align-items: stretch;
}

.mod-oo-popup__media {
  min-height: 500px;
  height: 100%;
}

.mod-oo-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobil billede */
.mod-oo-popup__media--mobile {
  height: 130px;
  overflow: hidden;
}

.mod-oo-popup__media--mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mod-oo-popup__content {
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 2rem 2.25rem;
  line-height: 1.4;
}

.mod-oo-popup__content p {
  margin-bottom: 0.5rem;
}

.mod-oo-popup__body {
  width: 100%;
}

.mod-oo-popup__body h2 {
  font-size: 2.1rem;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.mod-oo-popup__body p {
  font-size: 1.08rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.mod-oo-popup__body .btn {
  min-width: 180px;
}

/* Luk-knap */
.mod-oo-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1055;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.55) !important;
  background-image: none !important;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 1 !important;
  filter: none !important;

  color: #fff;
  cursor: pointer;
}

/* Fjern Bootstrap ikon */
.mod-oo-popup__close.btn-close {
  background-image: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Lav eget kryds */
.mod-oo-popup__close::before,
.mod-oo-popup__close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

.mod-oo-popup__close::before {
  transform: rotate(45deg);
}

.mod-oo-popup__close::after {
  transform: rotate(-45deg);
}

.mod-oo-popup__close:hover,
.mod-oo-popup__close:focus {
  background: rgba(0, 0, 0, 0.75) !important;
  opacity: 1 !important;
  outline: none;
}

.mod-oo-popup__close:focus-visible {
  box-shadow:
    0 0 0 0.2rem rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Tablet */
@media (max-width: 991.98px) {
  .mod-oo-popup__dialog {
    max-width: 680px;
    width: calc(100% - 1.5rem);
    margin: 0.75rem auto;
  }

  .mod-oo-popup__content {
    min-height: auto;
    padding: 1.5rem;
  }

  .mod-oo-popup__body {
    text-align: center;
  }

  .mod-oo-popup__body h2 {
    font-size: 1.75rem;
  }

  .mod-oo-popup__body p {
    font-size: 1rem;
  }

  .mod-oo-popup__body .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Mobil */
@media (max-width: 575.98px) {
  .mod-oo-popup__dialog {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto !important;
  }

  .mod-oo-popup .modal-content {
    border-radius: 1rem;
    max-height: calc(100dvh - 24px);
    overflow: hidden;
  }

  .mod-oo-popup .row.g-0 {
    display: block;
  }

  .mod-oo-popup__media,
  .mod-oo-popup__media--mobile {
    min-height: 0;
    height: 240px;
    overflow: hidden;
  }

  .mod-oo-popup__media img,
  .mod-oo-popup__media--mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mod-oo-popup__content {
    min-height: auto;
    padding: 1rem 1rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mod-oo-popup__body {
    text-align: center;
  }

  .mod-oo-popup__body h2 {
    font-size: 1.55rem;
    margin-bottom: 0.65rem;
  }

  .mod-oo-popup__body p {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
  }

  .mod-oo-popup__body .btn {
    width: 100%;
    min-width: 0;
  }

  .mod-oo-popup__content .d-grid {
    gap: 10px;
  }

  .mod-oo-popup__close {
    top: 10px;
    right: 10px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
  }
}