/* ============================================================
   Interactive Gallery Section — ig-section
   ============================================================ */

/* ─── Variables ─── */
.ig-section {
  --ig-transition: 0.5s ease;
  --ig-gap: 20px;
  --ig-cols: repeat(3, 1fr);
  --ig-item-height: clamp(23.688rem, 21.6705rem + 8.6079vw, 32rem);
}

/* ─── Section ─── */
/* .ig-section {
  padding: 50px 0;
} */

/* ─── Grid ─── */
.ig-grid {
  display: grid;
  grid-template-columns: var(--ig-cols);
  gap: var(--ig-gap);
}

/* ─── Item ─── */
.ig-item {
  position: relative;
  width: 100%;
  height: var(--ig-item-height);
  overflow: hidden;
}

.ig-item--tall {
  grid-row: span 2;
  height: var(--ig-item-height);
}

/* ─── Image ─── */
.ig-item__image {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.ig-item__image img {
  width: 100%;
  height: 100%;
  transition: transform var(--ig-transition);
  object-fit: cover;
}

.ig-item__full-link {
  display: block;
}

/* ─── Details Card ─── */
.ig-card {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 242px;
  height: 100px;
  display: flex;
  padding: 10px;
  cursor: pointer;
  transition: bottom var(--ig-transition);
  z-index: 2;
}

.ig-card__thumb {
  width: 30%;
  height: 100%;
  object-fit: cover;
  margin-left: 10px;
  margin-right: auto;
  border-radius: 5px;
}

.ltr .ig-card__thumb {
  margin-right: 10px;
  margin-left: 0;
}

.ig-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ig-card__category {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 2px;
}

.ig-card__name {
  font-size: 18px;
  margin-bottom: 4px;
  word-break: normal;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  display: -webkit-box !important;
  margin-bottom: 0;
  overflow: hidden;
}

.ig-card__price,
.ig-card__sale {
  margin: 0;
  font-size: 14px;
}

/* ─── Banner ─── */
.ig-banner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.ig-banner__title {
  font-weight: 700;
  font-size: clamp(2.25rem, 2.0828rem + 0.7643vw, 3rem);
}

.ig-banner__subtitle {
  font-weight: 400;
  font-size: clamp(1.55rem, 1.5054rem + 0.2038vw, 1.75rem);
  padding-inline: 62px;
}

.ig-banner__btn {
  cursor: pointer;
  padding: 4px 31px;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1887rem + 0.2803vw, 1.525rem);
  outline: none;
}

/* ─── Hover — Desktop only ─── */
@media (min-width: 769px) {
  .ig-item:hover .ig-item__image img {
    transform: scale(1.8);
  }

  .ig-item:hover .ig-card {
    bottom: 15%;
  }

  .ig-item--tall {
    height: 681px;
  }
}

/* ─── Tall item breakpoints ─── */
@media (min-width: 930px) {
  .ig-item--tall {
    height: 700px;
  }
}
@media (min-width: 1024px) {
  .ig-item--tall {
    height: 714px;
  }
}
@media (min-width: 1124px) {
  .ig-item--tall {
    height: 734px;
  }
}
@media (min-width: 1260px) {
  .ig-item--tall {
    height: 757px;
  }
}
@media (min-width: 1360px) {
  .ig-item--tall {
    height: 775px;
  }
}
@media (min-width: 1500px) {
  .ig-item--tall {
    height: 787px;
  }
}

/* ─── Mobile (≤ 768px) ─── */
@media (max-width: 768px) {
  .ig-grid {
    grid-template-columns: 1fr;
  }

  .ig-card {
    bottom: 15%;
  }

  .ig-card__name {
    font-size: 16px;
  }
  .ig-card__category {
    font-size: 14px;
  }

  .ig-banner__subtitle {
    font-size: 14px;
  }
}

/* ─── Small Mobile (≤ 480px) ─── */
@media (max-width: 480px) {
  .ig-item:first-of-type,
  .ig-item:last-of-type {
    height: 195px !important;
  }
}
