/* ===== ギャラリー（グリッド） ===== */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

#gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(100,150,255,0.4);
  cursor: pointer;
  transition: transform 0.3s;
}

#other-gallery img,
#collab-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ←比率そのままキープ */
  border-radius: 12px;
}


#gallery img:hover {
  transform: scale(1.02);
}


/* ===== 見出し（区切り） ===== */
.section-title {
  text-align: center;
  font-size: 28px;
  margin: 40px auto 20px;
  font-weight: bold;
  color: #4773cc;
  text-shadow: 1px 1px 3px rgba(64, 107, 198, 0.3);
}

/* ===== 写真の並び（最大3枚） ===== */
/* .photo-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap; /* スマホで折り返し */
  /* margin-bottom: 35px; */
/* } */

.photo-row {
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.photo-row img {
  width: 200px;
  height: auto; /* 比率維持 */
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(100,150,255,0.4);
  cursor: pointer;
  transition: transform 0.3s;
}


.photo-row img {
  width: 200px;
  max-width: 90vw;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(100,150,255,0.4);
  cursor: pointer;
  transition: transform 0.3s;
}

.photo-row img:hover {
  transform: scale(1.04);
}


/* ===== ライトボックス ===== */
#lightbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
}

#lightbox.show {
  display: flex;
  cursor: zoom-out;
}

#lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
  animation: fadeZoom 0.2s ease;
  cursor: pointer;
}

/* 拡大時のふわっとアニメーション */
@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
