.tp-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);
}

.tp-cols-1 { grid-template-columns: 1fr; }
.tp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 782px) {
	.tp-grid { grid-template-columns: 1fr; }
}

.tp-card {
	position: relative;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 24px 22px 20px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
}

.tp-stars {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
	font-size: 20px;
	line-height: 1;
}

.tp-star {
	color: #d9d9d9;
}

.tp-star-on {
	color:#daa14c;
}

.tp-content {
	color: #555;
	font-size: 15px;
	font-style: italic;
	line-height: 1.6;
	margin-bottom: 12px;
	white-space: pre-line;
}

/* Trim to 5 lines. */
.tp-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tp-readmore {
	align-self: flex-start;
	color: #333!important;
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
	margin-bottom: 16px;
	cursor: pointer;
}

.tp-readmore:hover {
	color:#333!important;
}

.tp-person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f0f0f0;
}

.tp-person-photo img,
.tp-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.tp-person-info {
	display: flex;
	flex-direction: column;
}

.tp-name {
	font-weight: 700;
	color: #222;
}

.tp-role {
	font-size: 13px;
	color: #888;
}

.tp-date {
	font-size: 13px;
	color: #999;
}

/* ---- Modal ---- */
.tp-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.tp-modal.tp-open {
	display: block;
}

.tp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.tp-modal-box {
	position: relative;
	max-width: 560px;
	width: calc(100% - 40px);
	margin: 8vh auto 0;
	background: #fff;
	border-radius: 14px;
	padding: 34px 30px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: tp-pop 0.18s ease-out;
}

@keyframes tp-pop {
	from { transform: translateY(12px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.tp-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
}

.tp-modal-stars {
	font-size: 22px;
	line-height: 1;
	margin-bottom: 14px;
}

.tp-modal-stars .tp-stars {
	margin-bottom: 0;
}

.tp-modal-content {
	color: #333;
	font-size: 16px;
	font-style: italic;
	line-height: 1.7;
	margin: 8px 0 20px;
	max-height: 55vh;
	overflow-y: auto;
}

.tp-modal-date {
	font-size: 13px;
	color: #999;
}

.tp-modal-person {
	display: flex;
	align-items: center;
	gap: 12px;
	border-top: 1px solid #f0f0f0;
	padding-top: 16px;
}

.tp-modal-photo img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.tp-modal-person-info {
	display: flex;
	flex-direction: column;
}

.tp-modal-name {
	font-weight: 700;
	color: #222;
}

.tp-modal-role {
	font-size: 13px;
	color: #888;
}

body.tp-no-scroll {
	overflow: hidden;
}
