/* === Gallery Block Layout === */
.gallery-block {
  margin-bottom: 3rem;
}

.gallery__header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.gallery__title {
  font-size: 2.6rem;
  margin: 0 0 1.3rem;
  font-weight: 600;
    color: #183029;
}

.gallery__subtitle {
  font-size: 1.4rem;
  color: #183029;
}

/* === Grid === */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === Individual Items === */
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  aspect-ratio: 3 / 2;
}

.gallery__link {
  display: block;
    width: 100%;
  height: 100%;
  line-height: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__link:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
    border-radius: 1px;
}


.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills square neatly, cropping edges */
  border-radius: 1px;
}

/* === Captions (if you add them later) === */
.gallery__caption {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.5rem;
}


.gallery__item.is-hidden { display: none; }
.gallery__actions { margin-top: 1rem; text-align: center; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.btn.btn--light {
  appearance: none; border: 1px solid #ddd; background: #fff; padding: .6rem 1rem;
  border-radius: 1px; cursor: pointer; font-weight: 600;
}
.btn.btn--light:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }


/* === Responsive Adjustments === */
@media (max-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}
