/* Grid */
.tts-grid {
	display: grid;
	grid-template-columns: repeat(var(--tts-cols, 3), minmax(0, 1fr));
	gap: 30px;
	margin: 0 0 30px;
}

.tts-card {
	text-align: center;
}

.tts-image {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 15px;
	border: 0;
	background: #e9e9e9;
	cursor: pointer;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 0;
}

.tts-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.tts-image:hover img,
.tts-image:focus img {
	transform: scale(1.04);
}

.tts-placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.tts-name {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
}

.tts-designation {
	font-size: 14px;
	text-transform: uppercase;
	line-height: 1.8;
}

.tts-line {
	display: block;
	width: 40px;
	height: 2px;
	margin: 12px auto 0;
	background: #777;
}

.tts-popup-data {
	display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
	.tts-grid {
		grid-template-columns: repeat(min(var(--tts-cols, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tts-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 25px;
	}
}

/* Popup */
.tts-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 50px 15px;
	overflow-y: auto;
	background: rgba(0, 0, 0, .75);
}

.tts-overlay.tts-active {
	display: flex;
}

.tts-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: auto;
	background: #fff;
	text-align: left;
}

.tts-close {
	position: absolute;
	top: -34px;
	right: 0;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.tts-modal-head {
	position: relative;
	background: #222;
}

.tts-modal-head img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

.tts-modal-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 20px 14px;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
}

.tts-modal-title h3 {
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 400;
}

.tts-modal-title div {
	font-size: 14px;
	text-transform: uppercase;
}

.tts-modal-body {
	padding: 20px;
	font-size: 16px;
	line-height: 1.6;
}

.tts-meta {
	margin: 0 0 15px;
	padding: 0;
	list-style: none;
}

.tts-meta li {
	margin: 0 0 4px;
}

.tts-content p {
	margin: 0 0 10px;
}

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