.inspry-modal {
  display: none;
  text-align: left;
  position: absolute;
}

.inspry-modal.is-open {
  display: block;
}

.inspry-modal__overlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: sw-resize;
}

.inspry-modal__container {
  background-color: #fff;
  margin: 1rem;
  padding: 1px;
  width: 100%;
  max-width: 40rem;
  max-height: 90vh;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  box-sizing: border-box;
  cursor: default;
}

.inspry-modal__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-block: 3rem;
}

.inspry-modal__button {
  border: 1px solid #fff;
  background-color: #D71921;
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: bold;
  font-family: 'Druk Medium Italic';
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.inspry-modal__button:focus,
.inspry-modal__button:active,
.inspry-modal__button:hover {
  color: #fff;
  outline: none;
  text-decoration: none;
}

.inspry-modal__button:focus-visible {
  outline: 2px solid #D71921;
  outline-offset: 5px;
}

.inspry-modal__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
}

.inspry-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  aspect-ratio: 1;
  margin-left: 1rem;
  font: inherit;
  color: inherit;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.inspry-modal__header .inspry-modal__close::before {
  content: '\2715';
  font-size: 2rem;
  color: #ccc;
}

.inspry-modal__content {
}

.inspry-modal__content {
  text-align: center;
}

.inspry-modal__content > p {
  padding-inline: 0.75rem;
  text-wrap: balance;
}

.inspry-modal__content * + * {
  margin-top: 1.5em;
}

@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

.inspry-modal[aria-hidden='false'] .inspry-modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.inspry-modal[aria-hidden='false'] .inspry-modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.inspry-modal[aria-hidden='true'] .inspry-modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.inspry-modal[aria-hidden='true'] .inspry-modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.inspry-modal .inspry-modal__container,
.inspry-modal .inspry-modal__overlay {
  will-change: transform;
}

.inspry-modal__image--mobile {
  width: 100%;
  height: auto;
  margin-top: 0;
}

@media (width < 62rem) {
  .inspry-modal__image:not(.inspry-modal__image--mobile) {
    display: none;
  }
}

@media (width >= 62rem) {
  .inspry-modal__image--mobile {
    display: none;
  }

  .inspry-modal__actions,
  .inspry-modal p {
    display: none;
  }
}
