/* ToB LP download modal */
.tob-lp-modal[hidden] {
  display: none;
}

.tob-lp-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10000;
}

.tob-lp-modal__backdrop {
  background: rgba(0, 0, 0, 0.58);
  inset: 0;
  position: absolute;
}

.tob-lp-modal__dialog {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  line-height: 0;
  max-height: calc(100vh - 40px);
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.tob-lp-modal__link {
  display: block;
}

.tob-lp-modal__image {
  display: block;
  height: auto;
  max-height: calc(100vh - 40px);
  max-width: 500px;
  object-fit: contain;
  width: 100%;
}

.tob-lp-modal__close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: #333;
  cursor: pointer;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  position: absolute;
  right: -16px;
  top: -16px;
  width: 40px;
  z-index: 2;
}

.tob-lp-modal__close:hover,
.tob-lp-modal__close:focus {
  background: #f1f1f1;
}

.tob-lp-modal__close:focus-visible {
  outline: 3px solid #40dfef;
  outline-offset: 2px;
}

.tob-lp-modal__sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 768px) {
  .tob-lp-modal {
    align-items: flex-end;
    padding: 0 0 12px;
  }

  .tob-lp-modal__dialog {
    max-height: none;
    max-width: 640px;
    width: 100%;
  }

  .tob-lp-modal__image {
    max-height: none;
    max-width: none;
    width: 100%;
  }

  .tob-lp-modal__close {
    right: 8px;
    top: -48px;
  }
}
