@use "global/acms-common" as acms;
@use "global/common" as global;

/* ------------------------------
　　エントリーサマリー（サムネイル表示）
------------------------------ */
.thumbnail {
	margin: 0 -5px 30px;
	padding: 0;

	& li {
		display: block;
		margin: 0 0 25px;
		padding-right: 5px;
		padding-left: 5px;
		list-style-type: none;
	}

	& a {
		@include global.text-decoration-none;
		@include global.link-color(#FFFFFF);

		&:hover {
			.thumbnail-img-outer {
				opacity: global.$opacity-hover;
			}
		}
	}
}

.thumbnail-inner {
	display: block;
	width: 100%;
	height: 100%;
}

.thumbnail-img-outer {
	@include global.transition-opacity;
}

.thumbnail-img-outer {
	width: 100%;
	height: 0;
	margin: 0 0 5px;
	padding: calc(100% / 2 * 0.5625); /* 画像が16:9になる高さ */
}

.thumbnail-img {
	@include global.transition-opacity;
}

.thumbnail-date {
	margin-top: 0;
	margin-bottom: 5px;
	color: global.$text-color-light;

	@include acms.font-size(14);
}

.thumbnail-title {
	margin-top: 0;
	margin-bottom: 0;
	color: global.$text-color-base;
	font-weight: bold;

	@include acms.font-size(14);
}

.thumbnail-text {
	padding-right: 5px;
	padding-left: 5px;
}

@media screen and (max-width: acms.$breakpoint-md-max) {
	.thumbnail-date {
		font-size: 10px;
	}

	.thumbnail-title {
		font-size: 12px;
	}
}
