/* === ESTILO GERAL === */

.container_portfolio {
  padding: 5em 0 1em 0;
  width: 100%;
  background: black;
  display: flex;
  justify-content: center;
}

.portfolio-header {
  max-width: 1000px;
  width: 90%;
  color: aliceblue;
  text-align: center;
}

.portfolio-nav {
  max-width: 250px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.btn-nav {
  background-color: #7c7065;
  color: rgb(255, 255, 255);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

.btn-nav:hover {
  background-color: #c01f27;
  color: aliceblue
}

.lora-portfolio {
  color: aliceblue;
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-size: 50px;
  font-weight: 500;
  margin-bottom: 1rem;
  font-style: normal;
}

.montserrat-portfolio {
  color: aliceblue;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 150;
  line-height: 1.6;
  font-style: normal;
}


  
  .gallery_portfolio {
    background: rgb(0, 0, 0);
    position: relative;
    width: 100%;
    display: flex;
    padding: 5em 2em;
    z-index: 1;
    align-items: flex-start; /* alinha o minimapa ao topo */
    min-height: 100vh; /* garante que a secção tem altura mínima */
  }
  
  .minimap {
    position: sticky;
    top: 0;
    width: 20%;
    height: 100vh;
    padding: 2em 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .images_portfolio {
    position: relative;
    top: 0;
    width: 80%;
  }
  
  .img {
    position: relative;
    width: 500px;
    height: 400px;
    border-radius: 40px;
    overflow: hidden;
    margin: 75px auto;
  }
  
/* Regra apenas para imagens dentro dos blocos grandes */
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .img_thumbnail {
    position: relative;
    width: 40px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0.5;
  }
  
  /* === ESTILO DO LIGHTBOX === */
  .glightbox-container {
    background-color: rgba(0, 0, 0, 0.85);
  }
  
  .glightbox-slide img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: auto;
  }
  
  .glightbox-clean .gslide-media {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  
  /* === MEDIA QUERY PARA MOBILE === */
  @media (max-width: 768px) {
    /* Corrige o layout da galeria para coluna */
    .gallery_portfolio {
      flex-direction: column;
      padding: 2em 1em;
      z-index: 0;
    }
  
    /* Oculta o minimap no mobile */
    .minimap {
      display: none;
    }
  
    .images_portfolio {
      width: 100%;
    }
  
    /* Corrige o container da imagem */
    .img {
      width: 100%;
      height: auto;
      max-width: 100%;
      margin: 2em 0;
      border-radius: 20px;
    }
  
    /* Corrige o corte nas imagens */
    .img img {
      width: 100%;
      height: auto !important;
      object-fit: cover; /* ou 'contain', se preferires mostrar tudo */
    }
  
    /* Reforço global para anular o height: 100% do desktop */
    img {
      height: auto !important;
    }
  
    /* Ajustes de tipografia */
    .lora-portfolio {
      font-size: 28px;
    }
  
    .montserrat-portfolio {
      font-size: 16px;
    }
  }
  
  
  