/* ✅ GALERIA PRINCIPAL - CONTAINER */
.galeria-container {
padding: 100px 40px 60px; 
background: linear-gradient(
  to right,
  #EEFFCD 0%,
  #F5FFE6 30%,
  #F8FFF0 50%,
  #F5FFE6 70%,
  #EEFFCD 100%
);

  min-height: 100vh;
}

/* ✅ HEADER E SUBTÍTULO */
.galeria-header {
  text-align: center;
  margin-bottom: 60px;
}

.galeria-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  color: #4E3A0C;
  margin-bottom: 10px;
}

.galeria-header p {
  font-size: 1.2em;
  color: #555;
}

/* ✅ FILTRO - Alinhamento + espaçamento */
.galeria-filtro {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 20px; 
  padding-right: 40px; 
}

.galeria-filtro form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.galeria-filtro label {
  font-weight: bold;
  color: #4E3A0C;
  font-size: 0.95em;
}

.galeria-filtro select {
  padding: 6px 10px;
  font-size: 0.95em;
  border: 2px solid #4E3A0C;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  min-width: 140px;
  appearance: none; 
  background-image: url('data:image/svg+xml;utf8,<svg fill="%234E3A0C" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 30px; 
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.galeria-filtro select:focus {
  outline: none;
  border-color: #8dc63f;
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.3);
}

@media (max-width: 768px) {
  .galeria-filtro {
    justify-content: center;
    padding-right: 0;
  }
}

/* ✅ GRID COM ESPAÇO LATERAL */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ✅ CARD SEM IMAGEM - Placeholder */
.imagem-placeholder {
  width: 100%;
  height: 220px;
  background-color: #ddd;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-size: 1em;
}
.detalhes-placeholder {
  text-align: center;
  padding: 40px 20px;
}

.detalhes-placeholder .imagem-placeholder {
  width: 1000px;   
  height: 600px;
  max-width: 90vw;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-style: italic;
  border-radius: 8px;
  margin: 0 auto 20px; 
}




/* CARTÕES DE PROJETO */
.projeto-card {
  background-color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.projeto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.projeto-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.projeto-info {
  padding: 20px;
  text-align: center;
}

.projeto-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #333;
}

.projeto-info .categoria {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 16px;
}

.btn-ver-mais {
  display: inline-block;
  background-color: #33A33C;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-ver-mais:hover {
  background-color: #2a8c2f;
}

/* DETALHES DO PROJETO - VISUAL FULLSCREEN */
.detalhes-container {
  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;
  padding-top: 150px;
  padding-bottom: 80px;
  text-align: center; 
  position: relative; 
  background-color: #2f2408;
  
}

@media (max-width: 768px) {
  .detalhes-container {
    padding-top: 180px;
 
  }
}

/* SLIDESHOW */
.slideshow-container {
  width: 100%;
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ✅ QUADRO GENÉRICO */
.slideshow-frame {
  overflow: hidden;
  position: relative;
  max-width: 100%;
  max-height: 90vh; 
}

/* ✅ ESPECÍFICO PARA HORIZONTAL */
.slideshow-frame.horizontal {
  aspect-ratio: 16/10;
  width: 100%;
  max-width: 1100px;
}

/* ✅ ESPECÍFICO PARA VERTICAL */
.slideshow-frame.vertical {
  aspect-ratio: 3/4;
  max-width: 850px;
  max-height: 800px;
}

/* ✅ A IMAGEM dentro */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.slide {
  display: none;
}

.slide.active {
  display: block;
  animation: fade 0.5s ease-in-out;
}


@media (max-width: 768px) {
  .slideshow-frame.horizontal {
    aspect-ratio: 4 / 3;  
    width: 100vw;         
   
  }

  .slideshow-frame.vertical {
    width: 75vw;
    max-height: 70vh;
    
  }
}


/* LEGENDA */
.legenda {
  margin-top: 10px;
  font-size: 1em;
  color: #ccc;
  font-style: italic;
}

/* SETAS LATERAIS */
.prev-slide,
.next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 2.5em;
  border-radius: 50%;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease;
}

.prev-slide {
  left: 10px; 
}

.next-slide {
  right: 10px;
}

.prev-slide:hover,
.next-slide:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* PONTINHOS */
.dots-container {
  text-align: center;
  margin: 20px 0;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background: #aaa;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #8dc63f;
}

/* ANIMAÇÃO */
@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  

  .prev-slide,
  .next-slide {
    font-size: 2em;
    padding: 8px 10px;
  }
}




/* BOTÃO VOLTAR */
.voltar-btn {
  margin-top: 15px;
  text-align: center;
}

.btn-voltar {
  background-color: #8dc63f;
  color: #2f2408;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-voltar:hover {
  background-color: #a8e067;
}

/* ANIMAÇÃO */
@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .detalhes-topo h1 {
    font-size: 1.8em;
  }


  .btn-voltar {
    padding: 8px 16px;
    font-size: 0.95em;
  }
  

}