.ig-test-page {
  background: #f7f7f2;
  color: #333;
  min-height: 100vh;
  padding-bottom: 72px;
}

.ig-test-hero {
  min-height: 42vh;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 120px 7vw 48px;
  background:
    linear-gradient(rgba(18, 28, 18, 0.18), rgba(18, 28, 18, 0.44)),
    url("img/photo_01+.jpg") center / cover no-repeat;
  color: #fff;
}

.ig-test-hero h1 {
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
}

.ig-test-hero p {
  max-width: 680px;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.ig-test-hero .ig-test-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ig-feed-section {
  width: min(1120px, calc(100% - 40px));
  margin: 56px auto 0;
}

.ig-feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.ig-feed-heading h2 {
  color: #558b2f;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
}

.ig-feed-heading a {
  color: #558b2f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.ig-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ig-feed-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(35, 35, 25, 0.12);
}

.ig-feed-card a {
  color: inherit;
  text-decoration: none;
}

.ig-feed-media {
  aspect-ratio: 1 / 1;
  background: #e5e1d8;
  overflow: hidden;
}

.ig-feed-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.ig-feed-card:hover .ig-feed-media img {
  transform: scale(1.035);
}

.ig-feed-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ig-feed-caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: 6.4em;
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.ig-feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.ig-feed-username {
  color: #558b2f;
  font-weight: 700;
}

.ig-feed-state {
  padding: 32px 24px;
  border: 1px solid #ded8cb;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

@media screen and (max-width: 900px) {
  .ig-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .ig-test-hero {
    min-height: 34vh;
    padding: 92px 24px 36px;
  }

  .ig-feed-section {
    width: min(100% - 28px, 1120px);
    margin-top: 36px;
  }

  .ig-feed-heading {
    align-items: start;
    flex-direction: column;
  }

  .ig-feed-heading h2 {
    font-size: 24px;
  }

  .ig-feed-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ig-feed-caption {
    min-height: auto;
  }
}
