/* Instagram最新投稿 */
#instagram .instagram-heading {
	position: relative;
	margin-bottom: 18px;
}

#instagram .instagram-heading h2 {
	margin-bottom: 0;
}

#instagram .instagram-heading > a {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	color: #8b4668;
	text-decoration: none;
}

#instagram .instagram-heading > a:hover {
	text-decoration: underline;
}


.instagram-feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.instagram-feed li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.instagram-feed a {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #eee;
}

.instagram-feed img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.instagram-feed a:hover img {
	transform: scale(1.04);
	opacity: 0.88;
}

.instagram-media-type {
	position: absolute;
	top: 7px;
	right: 7px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 7px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.66);
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

.instagram-loading {
	aspect-ratio: 1 / 1;
	background:
		linear-gradient(
			100deg,
			#eeeeee 20%,
			#f8f8f8 40%,
			#eeeeee 60%
		);
	background-size: 200% 100%;
	animation: instagramLoading 1.2s linear infinite;
}

.instagram-error {
	margin: 15px 0 0;
	text-align: center;
}

@keyframes instagramLoading {
	from { background-position: 100% 0; }
	to   { background-position: -100% 0; }
}

@media screen and (max-width: 640px) {
	#instagram .instagram-heading > a {
		position: static;
		display: block;
		margin-top: 6px;
		text-align: right;
		transform: none;
	}
}