.gbs-gallery {
  margin-top: 24px;
}

.gbs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gbs-gallery-item {
  margin: 0;
  min-width: 0;
}

.gbs-gallery-link {
  display: block;
  border: 1px solid #d6d7db;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(28, 33, 40, 0.06);
  overflow: hidden;
}

.gbs-gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 170px;
  background: #e9ebef;
  overflow: hidden;
}

.gbs-gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.gbs-gallery-link:hover .gbs-gallery-media img,
.gbs-gallery-link:focus-visible .gbs-gallery-media img {
  transform: scale(1.04);
}

.gbs-gallery-caption {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: #2c3440;
  background: #ffffff;
  border-top: 1px solid #eceef2;
}

@media (max-width: 720px) {
  .gbs-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gbs-gallery-media {
    min-height: 220px;
  }
}
