/* objects page*/

.title2 {text-align: center;
  font-size: 48px;
  padding: 2em 0em 1em 0em;
  background-color: hwb(84 78% 18%);
  margin: 0px;
}

.object-gallery {display: grid;
  background-color: hwb(84 78% 18%);
  gap: 2rem;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  align-items: center;
  padding: 80px;
  margin: 0;
  box-sizing: border-box;
  max-width: 100vw;
}

.object-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1; 
  border-radius: 4px;
  object-fit: cover;
  object-position: center;   /* centrering */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.object-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.intros {
  display: flex;
  align-self: center;
  text-align: center;
  max-width: 100vw;
  padding: 0em 8em;
  font-size: 25px;
  line-height: 1.5;
}

@media screen and (max-width: 1280px) {
  .object-gallery {
    grid-template-columns: repeat(5, 1fr);
    padding: 50px;
  }
}

@media screen and (max-width: 1024px) {
  .object-gallery {
    grid-template-columns: repeat(5, 1fr);
    padding: 50px;
  }
}

@media screen and (max-width: 768px) {
  .object-gallery {
    grid-template-columns: repeat(3, 1fr);
    padding: 20px;
  }
}

@media screen and (max-width: 480px) {
  .object-gallery {
    grid-template-columns: repeat(1, 1fr);
    padding: 20px;
  }
}
