/* Estilos base */

.instagram-feed-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.feed-title {
  color: #262626;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Grid para los posts */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Estilo de cada post */
.instagram-post {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.instagram-post:hover {
  transform: translateY(-2px);
}

.instagram-post img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.instagram-post p {
  padding: 12px;
  margin: 0;
  color: #262626;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.instagram-post a {
  display: block;
  padding: 8px 12px 12px;
  color: #00376b;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.instagram-post a:hover {
  text-decoration: underline;
}

/* Mensaje de error */
.error-message {
  grid-column: 1 / -1;
  padding: 20px;
  background: #ffefef;
  border: 1px solid #ffdbdb;
  border-radius: 8px;
  color: #ed4956;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
}