/** * Estilos específicos para a página de galeria */

/* Navegação Fixa - Ajustado para corrigir problemas de alinhamento */
.portfolio-nav {
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--portfolio-border);
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 90%;
  z-index: 1000;
  transition: all 0.3s ease;
  border-radius: 30px;
  padding: 0 1rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
  padding: 0;
}

.portfolio-nav-logo a {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: var(--cor-texto-branco, #fff);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.portfolio-nav-logo img {
  height: 25px;
  width: auto;
}

.portfolio-nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.2rem;
}

.portfolio-nav-links a {
  color: var(--portfolio-text-secondary, #bdbdbd);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 15px;
  font-family: 'Manrope', sans-serif;
}

.portfolio-nav-links a:hover {
  color: var(--cor-texto-branco, #fff);
  background-color: var(--portfolio-primary-transparent, rgba(69, 142, 167, 0.15));
}

/* Overrides para mobile */
@media (max-width: 991px) {
  .portfolio-nav {
    /* Removido o display: flex para permitir que o display: none do portfolio.css funcione corretamente */
    display: none !important; /* Força o menu desktop a ficar escondido no mobile */
  }
  
  .portfolio-nav-links {
    display: none; /* Usar o menu hamburguer em telas menores */
  }
  
  .portfolio-nav .container {
    justify-content: center;
  }
}

/* Estilo do cabeçalho da galeria */
header {  
  display: flex;  
  justify-content: center;  
  align-items: center;  
  flex-direction: column;  
  margin-bottom: 40px;  
  position: relative;  
  width: 100%;  
  padding-top: 100px; /* Espaço para o menu fixo */
}

h1 {  
  text-align: center;  
  margin-top: 20px;  
  margin-bottom: 30px;  
  color: #fff;  
  font-family: 'Sora', sans-serif;  
  font-weight: 600;  
  font-size: 2.5rem;
}

/* Container de thumbnails */
.thumbnail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 15px 50px 0px;
}

.thumbnail {
  flex: 0 0 calc(33.333% - 20px);
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: 0 0;
  background-repeat: no-repeat;
  border-radius: 8px;
  border: 1px solid #333;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.thumbnail:hover {
  transform: translateY(-5px);
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    to bottom,
    #000000,
    #00000037,
    #00000000
  );
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  clip-path: circle(75% at 50% 50%);
}

.thumbnail-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  padding: 8px 0;
  text-align: center;
  color: #fff;
  font-size: 1.65em;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  font-family: 'Sora', sans-serif;
}

/* Estilos para o modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.modal-content-wrapper {
  width: 80%;
  max-width: 1000px;
  height: 90vh;
  overflow-y: auto;
  border: 1px solid #555;
  background-color: #111;
  position: relative;
  border-radius: 8px;
}

.modal-content {
  display: block;
  width: 100%;
  height: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 30px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.526);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}


.close-button:hover,
.close-button:focus {
  color: #bbb;
  text-decoration: none;
}

/* Menu Hamburger para mobile */
.menu-hamburguer {
  display: none; /* Escondido por padrão em desktop */
  position: fixed;
  top: 25px; /* Ajustado para combinar com o menu da página index */
  right: 25px; /* Ajustado para combinar com o menu da página index */
  z-index: 1200;
  width: 30px; /* Reduzido para combinar com o menu da página index */
  height: 22px; /* Altura baseada nas linhas e margens */
  background-color: transparent; /* Remover fundo para mostrar as linhas */
  border: none; /* Remover borda */
  padding: 0; /* Remover padding */
  cursor: pointer;
}

/* Estilos para as linhas do menu hambúrguer */
.hamburguer-linha {
  display: block;
  box-sizing: border-box; /* Garantir cálculo correto */
  width: 100%;
  height: 2px;
  background-color: #bdbdbd; /* Cinza prateado como no original */
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação do menu hambúrguer quando ativo */
.menu-hamburguer.ativo .hamburguer-linha:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-hamburguer.ativo .hamburguer-linha:nth-child(2) {
  opacity: 0;
}

.menu-hamburguer.ativo .hamburguer-linha:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  .menu-hamburguer {
    display: block; /* Garantir que está visível no mobile */
  }
  
  header {
    padding-top: 70px; /* Ajuste para compensar o menu mobile */
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 70%;
  height: 100vh;
  background-color: rgba(15, 15, 15, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1100;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  padding: 80px 20px 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.ativo {
  transform: translateX(0);
  visibility: visible;
}

/* Responsividade */
@media (max-width: 992px) {
  .thumbnail {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .thumbnail-title {
    font-size: 1.4em;
  }
   
  header {    
    margin-bottom: 30px;    
    padding-top: 70px;  
  }
   
  h1 {    
    font-size: 1.8em;    
    margin-top: 20px;  
  }
   
  .thumbnail {    
    flex: 0 0 calc(50% - 15px);  
  }
   
  .thumbnail-title {    
    font-size: 1.2em;  
  }
}

@media (max-width: 600px) {  
  header {    
    margin-bottom: 20px;  
  }
   
  h1 {    
    font-size: 1.5em;  
  }
   
  .thumbnail {    
    flex: 0 0 calc(100% - 20px);  
  }
   
  .modal-content-wrapper {    
    width: 95%;    
    height: 85vh;  
  }
   
  .close-button {    
    font-size: 30px;    
    top: 10px;    
    right: 20px;  
  }
} 