/* Modal styles */

#modal-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--black-a80);
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: all 0.25s ease;
}

body.modal-open #modal-overlay {
  visibility: visible;
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  width: 98vw;
  height: fit-content;
  max-height: 80vh;
  border-radius: 1rem;
  overflow-y: auto;
  margin: auto;
  padding: 1.25rem;
  z-index: 120;
  background-color: var(--canvas-white);
  visibility: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.25s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

.modal-close-icon {
  stroke: var(--black);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-center .modal-body {
  align-items: center;
  text-align: center;
}

.modal-row {
  /* align-items: center; */
  gap: 1.5rem;
}

.modal-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-col-sm {
  flex-grow: 1;
  align-items: center;
}

.modal-col-lg {
  flex-grow: 2;
  margin: auto 0;
}

.modal-img {
  width: 14rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.modal-mt {
  margin-top: 0.75rem;
}

.modal-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--scholars-slate);
}

.modal-company {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--black);
  margin-top: -0.35rem;
}

.modal-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.modal-icon-btn {
  color: var(--legacy-blue);
}

.modal-icon-btn:hover, .modal-icon-btn:focus {
  color: var(--scholars-slate);
}

.modal-icon-btn .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.modal-body-icon {
  width: 5rem;
  height: 5rem;
  color: var(--legacy-blue);
  margin-bottom: 0.5rem;
}

.modal-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  padding-right: 2rem;
}

.modal-center .modal-heading {
  padding-left: 2rem;
}

.modal-subheading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
}

.modal-divider {
  width: 100%;
  height: 1px;
  background-color: var(--legacy-blue-ad0);
  margin: 1rem 0;
}

.modal-btn-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-btn {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 99rem;
  cursor: pointer;
}

.modal-btn-primary {
  background-color: var(--scholars-slate);
  color: var(--white);
}

.modal-btn-secondary {
  background-color: var(--horizon-blue);
  color: var(--black);
}

/* width >= 400px */
@media (min-width: 25rem) {
}

/* width >= 640px */
@media (min-width: 40rem) {
  .modal {
    width: 36rem;
    padding: 1.75rem;
  }
}

/* width >= 768px */
@media (min-width: 48rem) {
}

/* width >= 1024px */
@media (min-width: 64rem) {
  .modal {
    width: 48rem;
    max-height: 95vh;
  }

  .modal-row {
    flex-direction: row;
    /* align-items: center; */
    gap: 2.5rem;
  }

  .modal-sm {
    width: 36rem;
  }

  .modal-close-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* width >= 1280px */
@media (min-width: 80rem) {
  .modal {
    width: 64rem;
    padding: 2.25rem;
  }

  .modal-heading {
    font-size: 2rem;
  }

  .modal-close-btn {
    right: 1rem;
    top: 1rem;
  }
}

/* width >= 1536px */
@media (min-width: 96rem) {
}

/* width >= 1920px */
@media (min-width: 120rem) {
}
