.modal_container {
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  backdrop-filter: blur(5px);
  overflow-y: auto;
  padding: 40px 20px;
}
.modal_container.is_open {
  display: flex;
  animation: fadeInBackdrop 0.3s ease-in-out;
}

.modal_container.is_open .modal_content {
  margin-top: 20px;
  margin-bottom: 20px;
}
.is_open .modal_content {
  animation: openModal 0.3s forwards ease-in-out;
}
.modal_content {
  background: rgba(34, 42, 54, 0.95);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 600px;
  height: auto;
  padding: 40px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  overflow: visible;
}
/* Hex SVG code */

.hexMask {
  display: flex;
  width: 290px;
  height: 290px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

.modal_foto {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.hexMask > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.modal_content .hexMask > img {
  object-fit: contain;
}

.modal_content .hexMask {
  width: 180px;
  height: 180px;
  -webkit-mask-image: url("../images/global/masks/hexMask.svg");
  -moz-mask-image: url("../images/global/masks/hexMask.svg");
  mask-image: url("../images/global/masks/hexMask.svg");
  -webkit-mask-size: 100%;
  mask-size: 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: rgba(0, 150, 255, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.modal_name {
  color: #4e93cf;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 20px 0 10px 0;
  text-align: center;
}
.modal_cargo {
  color: #d1d5db;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
  text-align: center;
}
.modal_sobre {
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: visible;
  margin-top: 10px;
}


.fechar {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 99999;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  border: 2px solid rgba(78, 147, 207, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fechar:hover {
  background: #4e93cf;
  border-color: #4e93cf;
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(78, 147, 207, 0.6);
}

.fechar:active {
  transform: rotate(360deg) scale(0.95);
  box-shadow: 0 2px 6px rgba(78, 147, 207, 0.4);
}

@keyframes openModal {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInBackdrop {
  from {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
  to {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
  }
}

@media screen and (max-width: 768px) {
  .modal_content {
    width: 95%;
    max-width: 500px;
    padding: 30px 25px;
  }
  
  .modal_content .hexMask {
    width: 150px;
    height: 150px;
  }
  
  .modal_name {
    font-size: 24px;
    margin: 15px 0 8px 0;
  }
  
  .modal_cargo {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .modal_sobre {
    font-size: 1.2rem;
    line-height: 1.5;
  }
}

@media screen and (max-width: 576px) {
  .modal_content {
    width: 95%;
    padding: 25px 20px;
  }
  
  .modal_content .hexMask {
    width: 120px;
    height: 120px;
  }
  
  .modal_name {
    font-size: 22px;
    margin: 12px 0 6px 0;
  }
  
  .modal_cargo {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .modal_sobre {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  .fechar {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 375px) {
  .modal_content {
    padding: 20px 15px;
  }
  
  .modal_content .hexMask {
    width: 100px;
    height: 100px;
  }
  
  .modal_name {
    font-size: 20px;
  }
  
  .modal_cargo {
    font-size: 13px;
  }
  
  .modal_sobre {
    font-size: 1rem;
  }
}