/* ── 카드 래퍼 ── */
.y-repo {
  width: 100%;
  background: #fff;
  overflow: hidden;
}

/* ── 상단 헤더 ── */
.y-repo h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 20px;
  line-height: 1;
  margin: 0; /* h2 기본 여백 제거 */
}
.y-repo h2 .title {
  display: inline-block;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  color: #111;
  letter-spacing: 0.02em;
}

/* y-reportage title 스타일 (데스크톱) */
.y-reportage .top .title {
  font-size: 24px;
  font-weight: 900;
  color: #24b1c1;
}

.y-repo-more {
  font-size: 12px;
  font-weight: 500;
  color: #5A5A5A;
  flex-shrink: 0;
}
.y-repo-head {
  display: block;
  text-decoration: none;
}
.y-repo-head:hover .y-repo-more {
  color: #333;
}

/* ── 사진 영역 ── */
.y-repo-photo {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ccc;
}
.y-repo-photo-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.y-repo-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.y-repo-photo:hover .y-repo-photo-link img {
  transform: scale(1.04);
}

/* ── 사진 위 그라디언트 + 제목 ── */
.y-repo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 33%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  overflow: hidden;
  pointer-events: none;
}
.y-repo-overlay .headline {
  width: 100%;
  min-width: 0;
}
.y-repo-tit {
  pointer-events: auto;
  font-size: 18px !important;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  letter-spacing: -0.02em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.y-repo-tit:hover {
  color: #fff !important;
  text-decoration: none;
}

/* ── 모바일 스타일 (768px 이하) ── */
@media (max-width: 768px) {
  /* 모바일 상단 헤더 타이틀 크기 */
  .y-reportage .top .title {
    font-size: 20px;
  }

  /* 모바일 사진 위 카드 제목 크기 */
  .y-repo-tit {
    font-size: 16px !important;
  }
}