@charset "utf-8";
/* --- Responsive Jewellery Gallery --- */

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  box-sizing: border-box;
}

/* --- Each gallery item --- */
.gallery {
  margin: 10px;
  border: 1px solid #333;
  flex: 1 1 calc(25% - 40px); /* 4 per row on desktop */
  max-width: 300px;
  text-align: center;
  background-color: #222;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.gallery:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

/* --- Image inside gallery --- */
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* --- Description text --- */
.desc {
  padding: 10px;
  font-size: 16px;
  color: #ffcc00;
  text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .gallery {
    flex: 1 1 calc(45% - 40px); /* 2 per row on tablets */
  }
}

@media (max-width: 576px) {
  .gallery {
    flex: 1 1 100%; /* 1 per row on phones */
    max-width: 100%;
    margin: 5px 0;
  }

  .gallery img {
    height: auto; /* allow natural image height on small screens */
  }
}
