.work_modal,
.contact_modal,
.about_modal {
  z-index: 100;
  width: 70vw;
  max-width: 60rem;
  position: fixed;
  top: 5rem;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(50px);
  border-radius: 10px;
  overflow-y: auto;
  outline: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 1px 5px 3px rgba(154, 160, 185, 0.26), 0 15px 30px rgba(166, 173, 201, 0.134);
  display: none;

  @media (max-width: 768px) {
    width: 100%;
    margin-top: 0;
    bottom: 0.1rem;
    border-radius: 10px 10px 0 0;

  }
}

.about_header{
  display: flex;
  justify-content: left;
  align-items: center;

  @media (max-width: 768px) {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.about_header p{
  line-height: 0.5rem;
}

.about_header h2{
  color: black;
  font-size: 2rem;
}

.about_info {
  margin-left: 2rem;

  @media (max-width: 768px){
    margin: 0;
    text-align: center;
  }
}

.circle {
  height: 10rem;
  width: 10rem;
  background-color:dimgray;
  border-radius: 50%;
  display: inline-block;
  margin: 1rem;
  overflow: hidden;
  outline: solid 2px gray;
  box-shadow: 0px 0px 24px 7px rgb(156, 164, 255, 0.4);

}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.5);

}

.about_container li {
  font-family: 'Inter';
  line-height: 1.75rem;
  font-weight: 300;
}

.about_container h2 {
  margin-top: 1rem;
  font-size: 1.75rem;
  color: black;
}

.about_container p{
  margin-left: 1rem;
  margin-right: 1rem;
}

.about_container h3 {
  margin-top: 1.5rem;
  margin-left: 1rem;
  font-family: 'Inter';
  font-size: 1.25rem;
}

.work_topbar,
.contact_topbar,
.about_topbar {
  z-index: 5;
  position: sticky;
  top: 0;
  padding: 1px 1rem;
  width: 100%;
  height: 3rem;
  background: linear-gradient(90deg, #0D00FF, #76CFFF);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.work_topbar p,
.contact_topbar p,
.about_topbar p {
  color: white;
  font-weight: 500;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.work_close,
.contact_close,
.about_close {
  z-index: 6;
  font-size: 3rem;
  cursor: pointer;
  color: red;
}


/*work modal*/

.work_modal_content {
  margin: 1rem;
}

.work_container .disclaimer{
  padding: 0;
  text-align: center;
  margin-top: 5rem;
  font-size: 0.8rem;
}

.img-container {
  columns: 3;
  gap: 10px;

  @media (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 10px;
  }
}

.img-container img {
  border-radius: 15px;
  width: 100%;
  display: flex;
  padding: 5px;
  cursor: pointer;
  transition: all 0.12s ease-in-out;

  @media (max-width: 768px) {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    padding: 0px;
    border-radius: 5px;
  }
}

.img-container img:hover {
  transform: scale(1.05);
}

.popup-img {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,.8);
  z-index: 100;
  display: none;
}

.popup-img span{
  position: absolute;
  top:0; right: 2rem;
  font-size: 5rem;
  font-weight: bolder;
  color: red;
  cursor: pointer;
  z-index: 100;

  @media (max-width: 768px){
    font-size: 4rem;
    right: 1rem;
  }
}

.popup-img img{
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80vh;
  object-fit: cover;

  @media (max-width: 768px){
    max-width: 95%;
  }
}


/*contact modal*/

.contact_modal_content {
  margin: 1rem;
}