.container-trabajos {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 100px;
  width: 100%;
  background-color: #ffffff;
}

.trabajos-tittle {
  font-size: 30px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

.trabajos-img{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  width: 100%;
  overflow: hidden;
  justify-items: center;
} 

.trabajos-img img{
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  height: 400px;
  object-fit: cover;
}

.img-wrapper {
  width: 100%;
  max-width: 300px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
  transform-origin: center center;
}

.img-wrapper:hover img {
  transform: scale(2.5);
}

.trabajos-img.collapsed {
  max-height: 860px;
}

.trabajos-img.expanded {
  max-height: none;
}

.trabajos-button{
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.trabajos-button button{
  margin-top: 40px;
  width: 200px;
  padding: 12px;
  color: white;
  background: #E8AE30;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trabajos-button button:hover{
  background: #272525;
}

@media only screen and (min-width: 769px) {
  .img-wrapper:hover img {
    transform: scale(2.5);
  }
}

@media only screen and (max-width: 768px) {
  .container-trabajos {
    padding: 40px 50px;
  }
  
  .trabajos-tittle {
    font-size: 28px;
  }
  
  .trabajos-img{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  } 
  
  .img-wrapper {
    max-width: 100%;
    height: 350px;
  }
  
  .trabajos-img img{
    max-width: 100%;
    height: 350px;
  }
  
  .img-wrapper:hover img {
    transform: none;
  }
  
  .trabajos-img.collapsed {
    max-height: 740px;
  }
}

@media only screen and (max-width: 480px) {
  .container-trabajos {
    padding: 40px 20px;
  }
  
  .trabajos-tittle {
    font-size: 26px;
  }
  
  .trabajos-img{
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  
  .img-wrapper {
    max-width: 80%;
    height: 400px;
  }
  
  .trabajos-img img{
    height: 400px;
  }
  
  .trabajos-img.collapsed {
    max-height: 1260px;
  } 
}