.instagram-post {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  height: 250px;
}

.instagram-post:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.2);
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.instagram-post:hover img {
  transform: scale(1.05);
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
  opacity: 1;
}

.instagram-overlay a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 20px;
  border: 2px solid #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.instagram-overlay a:hover {
  background: #fff;
  color: #004AAD;
}

.instagram-caption {
  padding: 15px;
  font-size: 13px;
  color: #333;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
