* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
  max-width: 100vw;   
}

 body,
   h1,
   h2,
   h3,
   h4,
   h5,
   h6 {
       font-family: "Lato", sans-serif;
   }

   body,
   html {
       height: 100%;
       color: #777;
       line-height: 1.8;
       margin: 0;
       padding: 0;
   }

   .navbar {
       display: flex;
       justify-content: space-between;
       background-color: transparent;
       padding: 0.5em 1em;
       position: fixed;
       width: 98%;
       top: 0;
       z-index: 1000;
       box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   }

   .navbar a {
       text-decoration: none;
       padding: 0.5em 1em;
       color: #000000;
       font-weight: bold;
       transition: background-color 0.3s;
       
   }


   .navbar a:hover {
       background-color: rgb(71, 71, 73);
       color: rgb(25, 25, 25);
   }


   .centered {
       text-align: center;
   }

   .button {
       padding: 0.5em 1.5em;
       background-color: lightgrey;
       border: none;
       border-radius: 5px;
       cursor: pointer;
       transition: background-color 0.3s;
   }

   .button:hover {
       background-color: rgb(71, 71, 73);
       color: rgb(25, 25, 25);
   }


   .wide {
       letter-spacing: 0.1em;
   }

   .padding-large {
       padding: 32px;
   }
    
  .padding-64 {
    padding: 10%;
    }

   .padding-65 {
      margin-bottom: none;
      margin-left: 10%;
      margin-right: 10%;
      margin-top: 10%;
   }

   #foto-perfil {
    max-width: 60%;
    height: auto;
   }

 .sobre-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sobre-imagem {
  text-align: center;
  flex: 1 1 300px;
}

.sobre-imagem img {
  max-width: 65%;
  height: auto;
}

.sobre-texto {
  flex: 1 1 400px;
  display: flex;
  text-align: justify;
  min-height: 100%;
}


   .image {
       max-width: 80%;
       height: auto;
       display: block;
       margin: 0 auto;
   }

   .image-hover-opacity {
       transition: opacity 0.3s;
   }

   .image-hover-opacity:hover {
       opacity: 0.7;
   }

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

   .modal-content {
       position: relative;
       margin: auto;
       padding: 1em;
       max-width: 90%;
       background: white;
       border-radius: 8px;
   }

   .modal-close {
       position: absolute;
       top: 10px;
       right: 10px;
       cursor: pointer;
   }

   
   .row {
       display: flex;
       flex-wrap: wrap;
       margin: 0 -16px;
   }

   .col {
       flex: 1;
       padding: 16px;
   }

   .parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
}

.parallax-small {
    height: 70vh; 
}

.parallax-overlay {
  position: absolute;
  inset: 0; 
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1); 
  z-index: 1;
}

#tituloportfolio {
  font-size: 35px;
  color: white;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 10px;
  padding: 0 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
  z-index: 2;
}


@media (max-width: 600px) {
  #tituloportfolio {
    font-size: 20px;
    letter-spacing: 2px;
  }
}

   .parallax {
       background-attachment: fixed;
       background-position: center;
       background-repeat: no-repeat;
       background-size: cover;
   }

   .parallax-small {
       min-height: 60%;
 
    }
.parallax-large {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: scroll; 
  overflow: hidden;
}

   .opacity-min {
       opacity: 0.6;
   }

   .opacity {
       opacity: 0.9;
   }


   @media screen and (max-width: 600px) {
       .navbar {
           display: none ;
       }

       .navbar a {
           display: none;
       }
   

    }

    
#tituloportfolio {
    padding: 5%;
    font-size: 35px;  
    color: white;    
    text-align: center;  
    text-transform: uppercase; 
    letter-spacing: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    width: 100%;
}


@media (max-width: 600px) {
  #tituloportfolio {
    font-size: 24px;
    letter-spacing: 2px;
    padding: 5%;
  }
}
#titulord {
    font-size: 35px;  
    color: white;    
    text-align: center;  
    text-transform: uppercase; 
    letter-spacing: 10px;
}

#tituloinicio {
    font-size: 35px;  
    color: white;    
    text-align: center;  
    text-transform: uppercase; 
    letter-spacing: 10px;
    
}

.link1 {
    color:#000000;
    text-decoration:none;
}
.linkrd {
    color:#000000

}
.hidden-content {
    text-align: center;
    display: none;
    margin-top: 10px;
  }
  .toggle-link {
    text-align: center;
    cursor: pointer;
    color: black;
    text-decoration: underline;
  }

.texto {
  text-align: center;
  
}
#summaries {
    text-align: left;
}   
.row7 {
  flex-shrink: 0;
  width: 65vw; 
  height: auto;
  display: flex;

}  
 .col {
  width: 23%;
  aspect-ratio: 1 / 1; 
  position: relative;
}

.flip-card {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-card-front-size {
    width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-card-back {
  background-color: #111;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: justify;
  font-size: 0.9em;
  padding-left: 5%;
  padding-right: 5%;
  box-sizing: border-box;
}

.no-flip {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: none; 
}

.no-flip img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

.scroll-row1 {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
}

.scroll-row2 {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
  margin-bottom: 4rem;
}
.scroll-row1::-webkit-scrollbar {
  display: none;
}
.scroll-row2::-webkit-scrollbar {
  display: none;
}
 .scroll-row1 img {
  flex-shrink: 0;
  width: 50vw; 
  height: auto;
  scroll-snap-align: start;
  object-fit: cover;
}
 .scroll-row2 img {
   flex-shrink: 0;
  width: 50vw; 
  height: auto;
  scroll-snap-align: start;
  object-fit: cover;
}

  @media (min-width: 768px) {
    .scroll-row1 {
      display: none;
    }
    .scroll-row2 {
      display: none;
    }
    .photo-grid {
      display: grid;
    }
  }  

  @media (max-width: 767px) {
    .photo-grid {
      display: none;
    }    
    .row {
  display: none;
}
  .col {
  display: none;
}
.gallery-grid {
  display: none;
}
.gallery-item {
  display: none;
}
.flip-card-back3 {
  display:none;
}
.padding-row {
  display:none;
}  
  }  
@media (max-width: 767px) {
.flip-card-touch {
  aspect-ratio: 1/1;

  height: 70vw;
  perspective: 1000px;
  scroll-snap-align: start;
}

.flip-card-touch-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.flip-card-touch.flipped .flip-card-touch-inner {
  transform: rotateY(180deg);
}

.flip-card-touch-front,
.flip-card-touch-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-card-touch-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flip-card-touch-front {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flip-card-touch-back {
  background-color: #111;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
  font-size: 0.9em;
  padding: 1em;
  box-sizing: border-box;         
  word-break: break-word;   
  height: 70vw;
  aspect-ratio: 1/1;          
}
}

.quadrado-imagem {
  height: 70vw;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  
}

.fotoparadamobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flip-card3 {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.flip-card-inner3 {
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card:hover .flip-card-inner3 {
  transform: rotateY(180deg);
}

/* Frente do card */
.flip-card-front3,
.flip-card-back3 {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
  overflow: hidden;
}

/* Frente */
.flip-card-front3 {
  background-color: #fff;
}

/* Verso */
.flip-card-back3 {
 background-color: #111;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: justify;
  font-size: 0.9em;
  padding-left: 5%;
  padding-right: 5%;
  box-sizing: border-box;
}

.flip-button3 {
  display: flex;
  justify-content: center;   
  align-items: center;        
  white-space: nowrap;       
  border: none;
  background-color: #333;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;               
  text-align: center;
  height: 30px;     
  font-size: 0.rem;
}

.flip-button3:hover {
  background-color: #777574;
}

.scroll-row1-mobile{
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .quadrado-imagem {
    flex-shrink: 0;
    width: 70vw;
    height: auto;
  }

  .fotoparadamobile img {
    width: 70vw;
    height: auto;
    object-fit: cover;
    display: block;
  }
}
 .padding-row{
  padding-top: none;
  padding-left: 10%;
  padding-right: 10%;
  padding-bottom: 10%;
  }