/* WebPort Instagram Feed — 最低限の見た目（設定画面で読み込みを止められる）
   列・間隔・比率・角丸は、設定 → Instagram フィード → カスタマイズ の値が CSS 変数で入る（wpigf_grid_style()） */
.wpigf__grid {
	display: grid;
	grid-template-columns: repeat(var(--wpigf-cols, 3), 1fr);
	gap: var(--wpigf-gap, 8px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpigf__item {
	position: relative;
	margin: 0;
	line-height: 0;
}

.wpigf__item a {
	display: block;
	overflow: hidden;
	border-radius: var(--wpigf-radius, 0);
	transition: opacity 0.25s ease;
}

.wpigf__item img {
	width: 100%;
	height: auto;
	aspect-ratio: var(--wpigf-ratio, 1);
	object-fit: cover;
	margin: 0;
	transition: transform 0.4s ease;
}

/* マウスを乗せたとき */
.wpigf--hover-fade .wpigf__item a:hover {
	opacity: 0.8;
}

.wpigf--hover-zoom .wpigf__item a:hover img {
	transform: scale(1.06);
}

/* 動画・複数枚の目印 */
.wpigf__item--video::after,
.wpigf__item--carousel_album::after {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 1rem;
	height: 1rem;
	content: "";
	background: center / contain no-repeat;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
	pointer-events: none;
}

.wpigf__item--video::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M4 2.5v11l9-5.5z'/%3E%3C/svg%3E");
}

.wpigf__item--carousel_album::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M4 1h11v11h-2V3H4z'/%3E%3Cpath fill='%23fff' d='M1 4h11v11H1z'/%3E%3C/svg%3E");
}

.wpigf--no-badge .wpigf__item::after {
	display: none;
}

.wpigf__more {
	margin: 1.5rem 0 0;
	text-align: center;
}

/* タブレット */
@media (max-width: 1024px) {
	.wpigf__grid {
		grid-template-columns: repeat(var(--wpigf-cols-tab, var(--wpigf-cols, 3)), 1fr);
	}
}

/* デスクトップ・タブレットとモバイルで投稿数が違うとき、多いほうの余りを隠す */
@media (min-width: 768px) {
	.wpigf__item--hide-pc {
		display: none;
	}
}

/* モバイル */
@media (max-width: 767px) {
	.wpigf__grid {
		grid-template-columns: repeat(var(--wpigf-cols-sp, 3), 1fr);
		gap: var(--wpigf-gap-sp, 4px);
	}

	.wpigf__item--hide-sp {
		display: none;
	}
}
