.ig-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 614px;
  margin: 0;
  border: 1px solid #dbdbdb;
  background: #fff;
  border-radius: 3px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #111;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.ig-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ig-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efefef;
  color: #444;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.ig-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ig-username {
  color: #111;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.ig-username:hover {
  text-decoration: underline;
}

.ig-timestamp {
  font-size: 12px;
  color: #8e8e8e;
}

.ig-media {
  width: 100%;
  background: #f3f3f3;
  display: block;
}

.ig-media .ig-media-elem {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
}

.ig-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.ig-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}

.ig-left-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ig-btn {
  background: transparent;
  border: none;
  padding: 6px 6px 6px 0;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
}

.ig-btn svg {
  display: block;
}

.ig-stats {
  padding: 0 12px;
  font-size: 14px;
  color: #111;
}

.ig-caption {
  padding: 8px 12px 14px 12px;
  font-size: 14px;
  color: #111;
  line-height: 1.3;
}

.ig-caption-username {
  font-weight: 600;
  margin-right: 8px;
  text-decoration: none;
  color: #111;
}

.ig-caption-text {
  color: #111;
}

.ig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid #efefef;
  font-size: 12px;
  color: #8e8e8e;
}

.ig-permalink {
  color: #8e8e8e;
  text-decoration: none;
}

.ig-permalink:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ig-card {
    margin: 0.75rem;
    border-radius: 2px;
  }

  .ig-media-fallback {
    height: 260px;
  }
}
