.cc_kciijg29_category_images .kombos-category-images {
  width: 100%;
}

/* Mobile-first: base = mobile (375px) */
.cc_kciijg29_category_images .kombos-category-images__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* --- Heading block --- */
.cc_kciijg29_category_images .kombos-category-images__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.cc_kciijg29_category_images .kombos-category-images__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--kc-brand);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Thin rules either side of the eyebrow — a quiet editorial touch. */
.cc_kciijg29_category_images .kombos-category-images__eyebrow::before, .cc_kciijg29_category_images .kombos-category-images__eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.cc_kciijg29_category_images .kombos-category-images__title {
  margin: 0;
  color: var(--kombos-gray-900);
}

.cc_kciijg29_category_images .kombos-category-images__subtitle {
  margin: 0;
  max-width: 34rem;
  color: var(--kombos-gray-500);
}

/* --- Plain column grid (mosaic turned off) --- */
.cc_kciijg29_category_images .kombos-category-images__grid {
  display: grid;
  grid-template-columns: repeat(var(--mobile-cols, 1), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.75rem;
}

/* --- Mosaic --- */
.cc_kciijg29_category_images .kombos-category-images__grid--bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 10.5rem;
}

/* Tiles fill their grid area, whatever ratio the editor picked for the
   plain grid. The ratio is an inline style, hence the !important. */
.cc_kciijg29_category_images .kombos-category-images__grid--bento .kombos-category-image-item__img-wrap {
  aspect-ratio: auto !important;
  height: 100% !important;
}

/* Each tile sits inside display:contents wrappers from the renderer, so
   position is set on the item through its wrapper's index. */
.cc_kciijg29_category_images .kombos-category-images__grid--bento
  > *
  > :nth-child(1)
  > .kombos-category-image-item {
  grid-column: 1 / -1;
  grid-row: span 2;
}

.cc_kciijg29_category_images .kombos-category-images__grid--bento-4
  > *
  > :nth-child(4)
  > .kombos-category-image-item {
  grid-column: 1 / -1;
}

.cc_kciijg29_category_images .kombos-category-images__grid--bento-3
  > *
  > :nth-child(n + 2)
  > .kombos-category-image-item {
  grid-row: span 1;
}

/* ===== Tablet (>=768px) ===== */
@media (min-width: 768px) {
  .cc_kciijg29_category_images .kombos-category-images__container {
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .cc_kciijg29_category_images .kombos-category-images__grid {
    gap: 1rem;
  }

  .cc_kciijg29_category_images .kombos-category-images__grid--bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(11rem, 20vw, 18.5rem);
  }

  .cc_kciijg29_category_images .kombos-category-images__grid--bento
    > *
    > :nth-child(1)
    > .kombos-category-image-item {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .cc_kciijg29_category_images .kombos-category-images__grid--bento-4
    > *
    > :nth-child(4)
    > .kombos-category-image-item {
    grid-column: 3 / 5;
  }

  /* Three tiles: showcase left, two wide tiles stacked on the right. */
  .cc_kciijg29_category_images .kombos-category-images__grid--bento-3
    > *
    > :nth-child(n + 2)
    > .kombos-category-image-item {
    grid-column: 3 / 5;
  }
}

/* ===== Desktop (>=1024px) ===== */
@media (min-width: 1024px) {
  .cc_kciijg29_category_images .kombos-category-images__container {
    gap: 2.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .cc_kciijg29_category_images .kombos-category-images__grid {
    grid-template-columns: repeat(var(--desktop-cols, 4), minmax(0, 1fr));
    gap: 1.25rem;
  }

  .cc_kciijg29_category_images .kombos-category-images__grid--bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== Row layout (mosaic off): many compact portrait cards =====
   Phones get a swipeable strip; tablets three columns; desktop uses the
   editor's column count. Card ratio is fixed to 4:5 so the row stays even. */
.cc_kciijg29_category_images .kombos-category-images__grid--row {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 42%;
  grid-auto-rows: auto;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Let the strip run to the screen edge while the first card lines up. */
  margin-right: -1rem;
  padding-right: 1rem;
}

.cc_kciijg29_category_images .kombos-category-images__grid--row::-webkit-scrollbar {
  display: none;
}

.cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item {
  height: auto;
  border-radius: 10px;
  scroll-snap-align: start;
}

.cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item__img-wrap {
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
}

/* Compact cards: just the name, no arrow or "Keşfet" line. The name sits
   at text-md size (the card's own class is sized for big tiles). */
.cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item__arrow, .cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item__cta {
  display: none;
}

.cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item__label {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item__scrim {
  height: 45%;
}

.cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item__content {
  padding: 0.75rem 0.875rem;
}

@media (min-width: 768px) {
  .cc_kciijg29_category_images .kombos-category-images__grid--row {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
    gap: 1rem;
  }

  .cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item__content {
    padding: 1rem 1.125rem;
  }
}

@media (min-width: 1024px) {
  .cc_kciijg29_category_images .kombos-category-images__grid--row {
    grid-template-columns: repeat(var(--desktop-cols, 6), minmax(0, 1fr));
    gap: 1.25rem;
  }

  .cc_kciijg29_category_images .kombos-category-images__grid--row .kombos-category-image-item__label {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}
