/* DDE Instagram Feed — operator-grade layout, brand-aligned, zero third-party chrome. */

.ddp-ig-feed {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
}

.ddp-ig-feed__item {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: #0a0a0a;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	text-decoration: none !important;
}

.ddp-ig-feed__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.25s ease, transform 0.4s ease;
}

.ddp-ig-feed__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ddp-ig-feed__item:hover img {
	opacity: 0.92;
	transform: scale(1.03);
}

/* Subtle indicator for video / carousel items. */
.ddp-ig-feed__item.is-video::after,
.ddp-ig-feed__item.is-carousel::after {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 14px;
	line-height: 1;
	padding: 4px 6px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	border-radius: 3px;
	pointer-events: none;
}

.ddp-ig-feed__item.is-video::after {
	content: "▶";
}

.ddp-ig-feed__item.is-carousel::after {
	content: "⧉";
}

/* Empty state. */
.ddp-ig-feed--empty {
	text-align: center;
	color: #6b7280;
	padding: 24px;
	font-style: italic;
}

/* Responsive — drop to 3 columns on tablet, 2 on mobile. */
@media (max-width: 1024px) {
	.ddp-ig-feed {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
}

@media (max-width: 600px) {
	.ddp-ig-feed {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

/* Full-width / wide-aligned variants (when used inside a wp-block-cover or alignfull container). */
.alignwide .ddp-ig-feed,
.alignfull .ddp-ig-feed {
	max-width: 100%;
}
