/* ════════════════════════════════════════════════════════
   4. IMAGE BOX STYLE 3
   Card: image top (rounded), title, desc, large number watermark
   Hover: image zooms, number zooms, card lifts
════════════════════════════════════════════════════════ */

.ib3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ib3-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}

.ib3-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
  border-color: transparent;
}

/* Image */
.ib3-img-wrap {
  overflow: hidden;
  border-radius: 12px;
  margin: 12px 12px 0;
  height: 220px;
  position: relative;
}

.ib3-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ib3-card:hover .ib3-img-wrap img {
  transform: scale(1.07);
}

/* Body */
.ib3-body {
  padding: 20px 20px 24px;
  position: relative;
  overflow: hidden;
}

.ib3-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.ib3-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Watermark number */
.ib3-number {
  position: absolute;
  bottom: -8px;
  right: 8px;
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease,
    font-size 0.4s ease;
  will-change: transform;
  user-select: none;
}

.ib3-card:hover .ib3-number {
  transform: scale(1.15) translateY(-4px);
  color: rgba(0, 0, 0, 0.07);
}

/* Responsive */
@media (max-width: 991px) {
  .ib3-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ib3-grid {
    grid-template-columns: 1fr;
  }

  .ib3-img-wrap {
    height: 180px;
  }
}

