/* ===== HEADER ===== */

.ig-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ig-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.ig-title {
  font-size: 18px;
  font-weight: 600;
}

.ig-follow {
  border: 1px solid #7bb661;
  color: #7bb661;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.ig-follow:hover {
  background: #7bb661;
  color: #fff;
}

/* ===== GRID ===== */

.ig-widget {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .ig-widget {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ig-widget {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ITEM ===== */

.ig-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

/* ===== BACKGROUND ===== */

.ig-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transition: 0.3s;
}

/* ===== HOVER ===== */

.ig-item:hover .ig-bg {
  transform: scale(1.05);
  filter: unset;
}
/* ===== OVERLAY ===== */

.ig-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px;
  color: #fff;

  display: flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

/* ===== PLAY ICON ===== */

.ig-play {
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== TITLE ===== */

.ig-title {
  font-size: 14px;
  line-height: 1.3;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
