.insta-section {
  max-width: 1400px;
  margin: 0px auto;
  padding: 0 20px;
  text-align: center;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.insta-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 1 / 1;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.6s ease;
}

.insta-item:hover img {
  transform: scale(1.08);
}

/* Smooth shadow overlay */
.insta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  border-radius: 8px;
  pointer-events: none;
}

/* Instagram circle wrapper */
.insta-icon {
  position: absolute;
  bottom: 10px;      /* move slightly closer to edge */
  right: 10px;
  width: 28px !important;   /* smaller circle */
  height: 28px !important;  /* smaller circle */
  border: 1.5px solid #fff !important; /* thinner border */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  z-index: 2 !important;
}

/* The actual FA icon */
.insta-icon i {
  font-family: "Font Awesome 6 Brands" !important;
  color: #fff !important;
  font-size: 14px !important;   /* smaller icon */
  line-height: 1 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .insta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
