@charset "UTF-8";

.gallery-page {
  padding: 60px 5% 80px;
}

.gallery-page__ttl {
  text-align: center;
  margin-bottom: 50px;
}

/* マソンリー：写真の縦横比を活かしてすっきり並べる（PC3列／タブレット・スマホ2列） */
.gallery-page__grid {
  max-width: 1100px;
  margin: 0 auto;
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  -webkit-column-gap: 18px;
  -moz-column-gap: 18px;
  column-gap: 18px;
}

.gallery-page__item {
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background-color: #f9faea;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
}

.gallery-page__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.gallery-page__item:hover img {
  transform: scale(1.05);
}

@media screen and (max-width: 900px) {
  .gallery-page__grid {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 14px;
    -moz-column-gap: 14px;
    column-gap: 14px;
  }
  .gallery-page__item {
    margin-bottom: 14px;
  }
}

@media screen and (max-width: 560px) {
  .gallery-page__grid {
    -webkit-column-gap: 10px;
    -moz-column-gap: 10px;
    column-gap: 10px;
  }
  .gallery-page__item {
    margin-bottom: 10px;
    border-radius: 12px;
  }
}
