.dialog-container,
.dialog-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.dialog-container {
  z-index: 999;
  display: flex;
}

.dialog-container[aria-hidden='true'] {
  display: none;
}


.dialog-content {
  margin: auto;
  position: relative;
  background-color: white;
  animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
  padding: 1em;
    width: 90%;
    z-index: 2;
    max-width: 1200px;
  border-radius: 5px;
  border-radius: 40px;
box-shadow: 5px 5px 24px rgba(0, 0, 0, 0.3);
255, 1);
}
.team-grid .dialog-content {
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

@media screen and (min-width: 700px) {
  .dialog-content {
    padding: 2em;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(10%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dialog-overlay,
  .dialog-content {
    animation: none;
  }
}



.dialog-close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  border: 0;
  padding: 0.25em;
  background-color: transparent;
  font-size: 1.5em;
  width: 1.5em;
  height: 1.5em;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  border-radius: 50%;
}

.dialog-close:hover {
  background-color: rgb(50 50 0 / 0.15);
}

@media screen and (min-width: 700px) {
  .dialog-close {
    top: 1em;
    right: 1em;
  }
}

.dialog-overlay {
  background-color: rgb(255 255 255 / 0.9);
  animation: fade-in 200ms both;
}

.dialog-container, .dialog-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

* {
  box-sizing: border-box;
}


.team-grid .close-button {
  background: transparent;
  border: 0;
  position: absolute;
  right: 20px;
  top: 20px;
  transition: .3s ease-in-out;
  z-index: 15;
/*   background: #fff; */
}

.close-button svg {
  pointer-events: none;
}


.close-button:hover {
opacity: .7;
} 


.open-modal {
  padding: 0;
  background: transparent;
  text-decoration: underline;
  color: #e30a7d;
  border: 0;
  
}

.open-modal:hover , .share-profile-btn {
  text-decoration: none;
}



.no-scroll {
overflow: hidden;
}