/* =========================================
   AI.door
   TAICHI MESSAGE
   ========================================= */


/* -----------------------------------------
   Section spacing
   ----------------------------------------- */

#main > .inner > section.taichi-message {
	padding-top: 11em;
	padding-bottom: 10em;
}


/* -----------------------------------------
   Section title
   ----------------------------------------- */

.message-section-title {
	max-width: 900px;
	margin: 0 auto 5.5em auto;
	text-align: center;
}

.message-section-title h2 {
	display: inline-block;
}


/* -----------------------------------------
   Card wrapper
   ----------------------------------------- */

.message-card-wrap {
	width: 100%;
	max-width: 680px;

	margin: 0 auto;

	display: flex;
	justify-content: center;
}


/* -----------------------------------------
   Card
   ----------------------------------------- */

.message-card {
	position: relative;

	display: block;

	width: 100%;
	max-width: 520px;

	overflow: hidden;

	border: 0;
	border-radius: 0.2em;

	background: #111;

	text-decoration: none;
}


/* -----------------------------------------
   Image
   ----------------------------------------- */

.message-card img {
	display: block;

	width: 100%;
	height: 360px;

	object-fit: cover;
	object-position: center center;

	transition:
		transform 0.5s ease,
		filter 0.5s ease;
}


/* -----------------------------------------
   Overlay
   ----------------------------------------- */

.message-card-overlay {
	position: absolute;

	left: 0;
	right: 0;
	bottom: 0;

	display: flex;
	align-items: flex-end;

	min-height: 48%;

	padding: 2.5em 2.5em 2.3em 2.5em;

	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.82) 0%,
			rgba(0, 0, 0, 0.48) 50%,
			rgba(0, 0, 0, 0) 100%
		);
}


/* -----------------------------------------
   Overlay text
   ----------------------------------------- */

.message-card-text {
	width: 100%;
	color: #fff;
}

.message-card-text h3 {
	margin: 0 0 0.8em 0;

	color: #fff;

	font-size: 1.45em;
	line-height: 1.2;

	letter-spacing: 0.04em;
}

.message-card-text p {
	margin: 0 0 1.4em 0;

	color: rgba(255, 255, 255, 0.88);

	font-size: 0.9em;
	line-height: 1.75;
}

.message-read {
	display: inline-block;

	color: #fff;

	font-size: 0.7em;
	font-weight: 600;

	letter-spacing: 0.14em;
}


/* -----------------------------------------
   Hover
   ----------------------------------------- */

.message-card:hover img {
	transform: scale(1.025);
	filter: brightness(0.92);
}

.message-card:hover .message-read {
	text-decoration: underline;
}


/* =========================================
   Tablet
   ========================================= */

@media screen and (max-width: 980px) {

	#main > .inner > section.taichi-message {
		padding-top: 13em;
		padding-bottom: 8em;
	}

	.message-section-title {
		margin-bottom: 4.5em;
	}

	.message-card {
		max-width: 480px;
	}

	.message-card img {
		height: 340px;
	}

}


/* =========================================
   Smartphone
   ========================================= */

@media screen and (max-width: 736px) {

	#main > .inner > section.taichi-message {
		padding-top: 9em;
		padding-bottom: 6.5em;
	}

	.message-section-title {
		margin-bottom: 3.5em;
	}

	.message-card-wrap {
		max-width: 100%;
	}

	.message-card {
		width: 82%;
		max-width: 360px;
	}

	.message-card img {
		height: 300px;
	}

	.message-card-overlay {
		padding: 2em 1.6em 1.8em 1.6em;
	}

	.message-card-text h3 {
		font-size: 1.2em;
	}

	.message-card-text p {
		font-size: 0.8em;
		line-height: 1.65;
	}

	.message-read {
		font-size: 0.66em;
	}

}