/* =========================
   Font – Capture It (Regular)
   ========================= */
@font-face {
  font-family: 'Capture It';
  src: url('../fonts/capture_it/Capture_it.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Wrapper
   ========================= */
.mt-post-cover {
  position: relative;
  width: 100%;

  /* 1408x736 oranı */
  aspect-ratio: 1408 / 736;

  overflow: hidden;

  /* container-based scaling (Figma match) */
  container-type: inline-size;

  background: #0b1220; /* flash önler */
}

/* Bootstrap 4'te rounded-3 yok -> helper */
.mt-post-cover--radius {
  border-radius: 12px;
  overflow: hidden; /* overlay+img birlikte kırpılsın */
}

/* Link wrapper */
.mt-post-cover__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Image */
.mt-post-cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   Overlay (only default cover)
   ========================= */
.mt-post-cover.is-default-cover .mt-post-cover__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: grid;
  place-items: center;
  text-align: center;

  pointer-events: none;

  /* Figma safe area hissi */
  padding-inline: 6%;
  padding-block: 6%;
}

/* =========================
   Title
   60px @ 1408px reference => 60/1408 = 0.042613636...
   container query unit: 1cqw = container width / 100
   => font-size = 100cqw * 0.04261
   ========================= */
.mt-post-cover.is-default-cover .mt-post-cover__title {
  font-family: 'Capture It', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400; /* Regular */

  font-size: calc(100cqw * 0.04261);
  line-height: 1.02;

  /* Capture It geniş bir font -> hafif tracking */
  letter-spacing: 0.02em;

  margin: 0;
  max-width: 100%;

  color: #ffffff;

  text-shadow:
    0 8px 22px rgba(0,0,0,0.45),
    0 2px 6px rgba(0,0,0,0.35);

  /* En fazla 2 satır: poster hissi bozulmasın */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  overflow-wrap: anywhere;
  hyphens: none;
}

/* =========================
   Fallback (cqw desteklemeyen tarayıcılar)
   ========================= */
@supports not (font-size: 1cqw) {
  .mt-post-cover.is-default-cover .mt-post-cover__title {
    font-size: clamp(22px, 4.2vw, 56px);
  }
}

/* =========================
   Mobile fine-tuning
   ========================= */
@media (max-width: 768px) {
  .mt-post-cover.is-default-cover .mt-post-cover__title {
    font-size: clamp(20px, 6vw, 34px);
    line-height: 1.05;
    transform: translateY(-1px);
  }
}