/**
 * YouTube フィード
 * PC: 2列 / SP: 1列（隙間なし）
 */

.yt-feed {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	width: 100%;
}

.yt-feed__item {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.yt-feed__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.yt-feed__play {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.yt-feed__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yt-feed__playIcon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.65);
	border-radius: 50%;
	pointer-events: none;
}

.yt-feed__playIcon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.yt-feed__play:hover .yt-feed__playIcon {
	background: rgba(43, 56, 99, 0.85);
}

.yt-feed__embed {
	position: absolute;
	inset: 0;
}

.yt-feed__embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.yt-feed__title {
	margin: 0;
	padding: 12px 14px 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: inherit;
	background: #fff;
}

.yt-feed__empty {
	margin: 0;
	padding: 16px 0;
	font-size: 14px;
	color: #666;
}

/* WORKS：アップロード動画のサムネ表示 */
.yt-feed--works .yt-feed__thumb--video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.yt-feed--works .yt-feed__embed video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.yt-feed__pagination {
	margin-top: 24px;
}

@media (min-width: 960px) {
	.yt-feed {
		grid-template-columns: repeat(2, 1fr);
	}
}
