/* ───── KARAFT collection-collage (Prestige Allure clone) ─────
   Row of image tiles with overlaid centered category labels. Prestige Allure
   shows a tall WOMEN tile beside a stacked MEN / ACCESSORIES column. */

.kf-collage { padding: var(--section-gap, 96px) 0; }

.kf-collage__head { margin-bottom: 48px; }

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

/* Exactly 3 tiles → first tile spans two columns + full height, the
   remaining two stack in the right-hand column (matches home-03). */
.kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) .kf-collage__tile:first-child {
  grid-row: 1 / span 2;
}

.kf-collage__tile {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.kf-collage__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 218px;
  overflow: hidden;
}
.kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) .kf-collage__tile:first-child .kf-collage__media {
  min-height: 460px;
}

.kf-collage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.kf-collage__tile:hover .kf-collage__img { transform: scale(1.05); }

.kf-collage__placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

.kf-collage__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.4s ease;
}
.kf-collage__tile:hover .kf-collage__overlay { background: rgba(0, 0, 0, 0.28); }

.kf-collage__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
  color: var(--color-dark-fg);
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .kf-collage__grid,
  .kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) .kf-collage__tile:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) .kf-collage__tile:first-child .kf-collage__media {
    min-height: 420px;
  }
}
@media (max-width: 600px) {
  .kf-collage { padding: 64px 0; }
  .kf-collage__head { margin-bottom: 32px; }
  .kf-collage__grid,
  .kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) .kf-collage__tile:first-child {
    grid-column: 1 / -1;
  }
  .kf-collage__media,
  .kf-collage__grid:has(.kf-collage__tile:nth-child(3):last-child) .kf-collage__tile:first-child .kf-collage__media {
    min-height: 340px;
  }
}
