.gallery {
  /*margin: 3rem auto;*/
}
/* Page header */
h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 48px;
  color: #ec4899;
}

/* Category section */
.category {
  margin-bottom: 64px;
}

.category h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.category h2 a {
  color: #ec4899;
  text-decoration: none;
  transition: color 0.3s;
}

.category h2 a:hover {
  text-decoration: underline;
  color: #d02678;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  gap: 16px;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  grid-template-columns: repeat(4, minmax(250px, 1fr));
}

/* Limit max images per row */
@media(min-width: 1200px) {
  .gallery-grid {
    /* grid-template-columns: repeat(6, 1fr); */
    grid-template-columns: repeat(4, 1fr);
  }
}

@media(min-width: 992px) and (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr); /*4*/
  }
}

@media(min-width: 768px) and (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /*3*/
  }
}

@media(max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr); /*2*/
  }
}

/* Gallery item */
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  background-color: rgb(206, 211, 206);
  padding: 12px;
}

/* Gallery item images */
.gallery-item img {
  width: 100%;
  height: 300px;          /* fixed height for all images */
  object-fit: cover;      /* crop/scale to fit nicely */
  display: block;
  border-radius: 0;       /* no rounding */
  border: 1px solid #d1d5db;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect on image */
.gallery-item img:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Image title */
.image-title {
  margin-top: 8px;
  font-size: 0.95rem;
  text-align: center;
  color: #4b5563;
}



.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.gallery-tag {
  padding: 6px 14px;
  background: #ec4899;
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.gallery-tag:hover {
  background: #d02678;
}
