/*
 * Styling for the custom bits added after the WordPress migration:
 * - the contact form's inline success/error message (kontakt/)
 * - the Instagram feed grid, which replaced the Spotlight plugin widget (joribaphotos/)
 */

/* --- Contact form feedback --- */
.contact-form-message {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95em;
}
.contact-form-message--success {
  background: #eaf7ec;
  color: #1e4620;
  border: 1px solid #b9ddbc;
}
.contact-form-message--error {
  background: #fbeaea;
  color: #5c1a1a;
  border: 1px solid #e3b3b3;
}
.wpforms-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Instagram feed --- */
.instagram-feed {
  max-width: 900px;
  margin: 0 auto;
}
.instagram-feed-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.instagram-feed-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.instagram-feed-follow-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 3px;
  background: #f9c349;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: opacity 0.15s ease;
}
.instagram-feed-follow-btn:hover {
  opacity: 0.85;
}
.instagram-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .instagram-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.instagram-feed-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: #eee;
}
.instagram-feed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.instagram-feed-item:hover img {
  transform: scale(1.04);
}
.instagram-feed-status {
  text-align: center;
  color: #777;
  font-size: 0.9em;
}
.instagram-feed-more {
  display: block;
  margin: 22px auto 0;
  padding: 10px 26px;
  border: 0;
  border-radius: 3px;
  background: #f9c349;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.instagram-feed-more:hover { opacity: 0.85; }
.instagram-feed-more:disabled { opacity: 0.6; cursor: default; }
.instagram-feed-more:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
