.pom-art-craft-photo-gallery {
  box-sizing: border-box;
}

/* Keep the booking panel readable on every Art & Craft page. */
.pom-art-craft-photo-gallery + .pom-dark-cta {
  padding: clamp(32px, 6vw, 68px);
  border-radius: 28px;
  background: #181c19;
  color: #fff;
}

.pom-art-craft-photo-gallery + .pom-dark-cta h2,
.pom-art-craft-photo-gallery + .pom-dark-cta p,
.pom-art-craft-photo-gallery + .pom-dark-cta .section-kicker,
.pom-art-craft-photo-gallery + .pom-dark-cta .pom-text-link {
  color: #fff;
}

.pom-art-craft-photo-gallery .pom-art-craft-gallery-intro {
  max-width: 760px;
  margin: 0 0 26px;
  color: #475569;
}

.pom-art-craft-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pom-art-craft-gallery-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
}

.pom-art-craft-gallery-grid figure:first-child {
  grid-column: span 2;
}

.pom-art-craft-gallery-grid a {
  display: block;
  overflow: hidden;
}

.pom-art-craft-gallery-grid img {
  display: block;
  width: 100%;
  height: 280px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  transition: transform .3s ease;
}

.pom-art-craft-gallery-grid figure:first-child img {
  height: 360px;
}

.pom-art-craft-gallery-grid figure:hover img {
  transform: scale(1.035);
}

.pom-art-craft-gallery-grid figcaption {
  padding: 14px 16px 16px;
  color: #1f2937;
  font-weight: 800;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .pom-art-craft-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pom-art-craft-gallery-grid {
    grid-template-columns: 1fr;
  }

  .pom-art-craft-gallery-grid figure:first-child {
    grid-column: auto;
  }

  .pom-art-craft-gallery-grid img,
  .pom-art-craft-gallery-grid figure:first-child img {
    height: 260px;
  }
}
