/**
 * 파일 위치: assets/css/meak_feed.css
 * 역할: 결연 소식(인스타그램형) 공용 스타일.
 *
 * 결연교회 지도(`/public_meakchurch_map`)와 회원수첩 '나의 결연'(`/online/alliance`)이
 * 같은 카드·캐러셀·프로필 마크업을 쓰므로 **두 화면이 이 파일 하나를 함께 싣는다**
 * (한쪽 인라인 style 에 두면 다른 쪽에서 카드가 통째로 깨진다).
 */

/* ── 소식 (인스타그램형) ───────────────────────────── */
.mk-feed { max-width: 600px; margin: 0 auto; }
.mk-post {
border-bottom: 1px solid #eef1f6;
background: #fff;
padding-bottom: 0.75rem;
}
.mk-post-head {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.6rem 0.9rem;
}
.mk-avatar {
flex: 0 0 auto;
width: 2.25rem;
height: 2.25rem;
border-radius: 50%;
object-fit: cover;
background: #e9edf3;
display: flex;
align-items: center;
justify-content: center;
color: #6c757d;
font-size: 0.85rem;
font-weight: 700;
overflow: hidden;
}
.mk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mk-avatar-sm { width: 1.75rem; height: 1.75rem; font-size: 0.72rem; }
/* 부트스트랩에는 min-width 유틸이 없다. flex 자식의 text-truncate 가 동작하려면 필요하다. */
.min-width-0 { min-width: 0; }
.mk-post-org { font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
.mk-post-sub { color: #8b96a5; font-size: 0.75rem; line-height: 1.25; }
/* 캐러셀은 라이브러리 없이 CSS scroll-snap 으로 만든다 — 모바일에서 손가락 스와이프가
   그대로 동작하고, 무한스크롤로 카드가 계속 추가돼도 초기화·정리할 인스턴스가 없다. */
.mk-carousel { position: relative; background: #000; }
.mk-carousel-track {
display: flex;
overflow-x: auto;
scroll-snap-type: x mandatory;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}
.mk-carousel-track::-webkit-scrollbar { display: none; }
.mk-carousel-slide {
flex: 0 0 100%;
scroll-snap-align: center;
aspect-ratio: 1 / 1;
}
.mk-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-carousel-count {
position: absolute;
top: 0.6rem;
right: 0.6rem;
padding: 0.1rem 0.5rem;
border-radius: 1rem;
background: rgba(0, 0, 0, 0.6);
color: #fff;
font-size: 0.72rem;
font-weight: 600;
}
.mk-carousel-dots {
position: absolute;
right: 0;
bottom: 0.5rem;
left: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 0.25rem;
pointer-events: none;
}
.mk-carousel-dot {
width: 0.35rem;
height: 0.35rem;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transition: background 0.15s ease;
}
.mk-carousel-dot.is-active { background: #fff; }
.mk-carousel-nav {
position: absolute;
top: 50%;
z-index: 2;
display: none;
width: 1.9rem;
height: 1.9rem;
transform: translateY(-50%);
align-items: center;
justify-content: center;
border: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.85);
color: #212529;
}
.mk-carousel-nav.mk-carousel-prev { left: 0.5rem; }
.mk-carousel-nav.mk-carousel-next { right: 0.5rem; }
.mk-post-actions {
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.5rem 0.65rem 0.15rem;
}
.mk-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.35rem;
	border: 0;
	background: none;
	color: #212529;
	line-height: 1;
	flex-direction: column;
}
.mk-icon-btn i{font-size: 1.35rem; font-weight: bold!important;}

.mk-icon-btn:disabled { opacity: 1; }
.mk-icon-btn.is-active { color: #e0245e; }
.mk-icon-btn.mk-save-btn.is-active { color: #212529; }
.mk-post-body { padding: 0 0.9rem; }
.mk-post-likes { font-size: 0.85rem; font-weight: 700; }
.mk-post-caption {
margin-top: 0.2rem;
font-size: 0.9rem;
line-height: 1.45;
white-space: pre-wrap;
word-break: break-word;
}
/* '더 보기' 전에는 2줄만 보여준다(인스타그램과 같은 접힘). */
.mk-post-caption.is-clamped {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.mk-link-btn {
padding: 0;
border: 0;
background: none;
color: #8b96a5;
font-size: 0.85rem;
}
.mk-post-comment {
margin-top: 0.15rem;
font-size: 0.85rem;
line-height: 1.45;
word-break: break-word;
}
.mk-post-time { margin-top: 0.35rem; color: #98a2b3; font-size: 0.72rem; }
.mk-feed-empty { padding: 3rem 1.5rem; text-align: center; color: #8b96a5; }
.mk-feed-sentinel { height: 1px; }
.mk-comment-item { display: flex; gap: 0.6rem; padding: 0.6rem 0; }
.mk-comment-body { flex: 1 1 auto; min-width: 0; }
.mk-composer-thumb {
position: relative;
flex: 0 0 auto;
width: 5.5rem;
height: 5.5rem;
border-radius: 0.5rem;
overflow: hidden;
background: #eef2f7;
}
.mk-composer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-composer-thumb-remove {
position: absolute;
top: 0.15rem;
right: 0.15rem;
width: 1.35rem;
height: 1.35rem;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
border: 0;
border-radius: 50%;
background: rgba(0, 0, 0, 0.6);
color: #fff;
font-size: 0.7rem;
line-height: 1;
}
.mk-sheet { height: 85vh; height: 85dvh; border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.mk-tag-chip {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.15rem 0.55rem;
border-radius: 1rem;
background: #eef3ff;
color: var(--bs-primary);
font-size: 0.78rem;
font-weight: 600;
}
.mk-tag-chip-muted { background: #f1f3f6; color: #6c757d; }
.mk-tag-chip-remove {
padding: 0;
border: 0;
background: none;
color: inherit;
font-size: 0.7rem;
line-height: 1;
}
/* ── 교회 프로필 (인스타그램 프로필형) ───────────────── */
.mk-profile-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2px;
}
.mk-profile-cell {
position: relative;
aspect-ratio: 1 / 1;
border: 0;
padding: 0;
background: #eef2f7;
overflow: hidden;
}
.mk-profile-cell img { width: 100%; height: 100%; object-fit: cover; }
.mk-profile-cell-text {
display: flex;
align-items: center;
justify-content: center;
padding: 0.4rem;
color: #6c757d;
font-size: 0.72rem;
line-height: 1.3;
text-align: center;
word-break: break-word;
overflow: hidden;
}
.mk-profile-cell-multi {
position: absolute;
top: 0.25rem;
right: 0.3rem;
color: #fff;
font-size: 0.75rem;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
/* 소식 캡션의 교회명은 눌러서 프로필을 여는 버튼이다. */
.mk-org-link {
padding: 0;
border: 0;
background: none;
color: inherit;
font-weight: 700;
}
