/*
 * PRABOA Connect — Instagram feed block.
 * No background, fonts or colours of its own: it inherits the theme's
 * typography, uses the theme's spacing presets, and the Follow link uses the
 * theme's button style (wp-element-button). Re-point with CSS variables:
 * .praboa-ig { --praboa-ig-gap: …; --praboa-ig-radius: …; }
 */
.praboa-ig {
	--praboa-ig-gap: var( --wp--preset--spacing--20, 12px );
	--praboa-ig-radius: 10px;
}
.praboa-ig-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var( --praboa-ig-gap );
	/* Two columns on phones; the block's setting (default 3) from 600px. */
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}
@media ( min-width: 600px ) {
	.praboa-ig-grid {
		grid-template-columns: repeat( var( --praboa-ig-cols, 3 ), minmax( 0, 1fr ) );
	}
}
.praboa-ig-grid > li {
	margin: 0;
	padding: 0;
}
.praboa-ig-item {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var( --praboa-ig-radius );
	background: rgba( 0, 0, 0, 0.06 );
	box-shadow: 0 1px 3px rgba( 16, 24, 74, 0.08 );
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.praboa-ig-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, filter 0.25s ease;
}
/* Subtle hover: a slight lift and zoom. */
.praboa-ig-item:hover,
.praboa-ig-item:focus-visible {
	box-shadow: 0 6px 18px rgba( 16, 24, 74, 0.18 );
	transform: translateY( -2px );
}
.praboa-ig-item:hover img,
.praboa-ig-item:focus-visible img {
	transform: scale( 1.04 );
	filter: saturate( 1.08 );
}
.praboa-ig-item:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}
@media ( prefers-reduced-motion: reduce ) {
	.praboa-ig-item,
	.praboa-ig-item img {
		transition: none;
	}
	.praboa-ig-item:hover,
	.praboa-ig-item:focus-visible,
	.praboa-ig-item:hover img,
	.praboa-ig-item:focus-visible img {
		transform: none;
	}
}
/* Video / album marker, top-right, like Instagram's own grid. */
.praboa-ig-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	background: #fff;
	filter: drop-shadow( 0 1px 2px rgba( 0, 0, 0, 0.5 ) );
	-webkit-mask: var( --praboa-ig-icon ) center / contain no-repeat;
	mask: var( --praboa-ig-icon ) center / contain no-repeat;
}
.praboa-ig-badge.is-video {
	--praboa-ig-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5z'/%3E%3C/svg%3E" );
}
.praboa-ig-badge.is-album {
	--praboa-ig-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zM2 7v13a2 2 0 0 0 2 2h13v-2H4V7z'/%3E%3C/svg%3E" );
}
.praboa-ig-follow {
	margin-top: var( --wp--preset--spacing--40, 32px );
	justify-content: center;
}
/* Fallback when Instagram isn't connected or can't be reached. */
.praboa-ig-fallback {
	text-align: center;
}
.praboa-ig-fallback p {
	margin: 0;
}
.praboa-ig-fallback .praboa-ig-follow {
	margin-top: var( --wp--preset--spacing--30, 20px );
}
/* Editor-only explanation above the preview. */
.praboa-ig-notice {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
	color: #1e1e1e;
	font-size: 13px;
	line-height: 1.5;
}
