/* Instagramフィードウィジェット用スタイル */
/* 既存サイトのCSSファイルに追記するか、<style>タグで<head>内に読み込んでください */

#instagram-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

#instagram-feed .ig-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

#instagram-feed .ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#instagram-feed .ig-item:hover img {
  transform: scale(1.05);
}

#instagram-feed .ig-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 40px 0;
}

/* スマホ表示では2列に */
@media (max-width: 600px) {
  #instagram-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}
