.wwl-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin: 20px auto;
  padding: 0 20px;
}

@media (min-width: 800px) {
  .wwl-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .wwl-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1600px) {
  .wwl-gallery { grid-template-columns: repeat(4, 1fr); }
}

.wwl-gallery__item {
  display: flex;
  flex-direction: column; /* stack image + label */
  align-items: center;
  justify-content: center;
  padding: 15px;
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.wwl-gallery__item img {
  max-width: 100%;
  max-height: calc(100% - 40px); /* leave room for label */
  object-fit: contain;
  object-position: center;
  display: block;
}

.wwl-gallery__item--hor {
  grid-column: span 2;
}

.wwl-gallery__item--vert {
  grid-row: span 2;
}

.wwl-gallery__item--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.wwl-basic-banner {
  width: 100%;
  height: 200px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wwl-basic-banner p {
  margin: 0;
  color: #000;
}

.wwl-gallery__label {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  flex-shrink: 0;     /* label never shrinks away */
}
