.smapot-instagram-feed {
	background: var(--main-color-white, #ffffff);
	padding: 0 0 76px;
	color: var(--text-color-black, #222222);
}

.smapot-instagram-feed .smapot-instagram-feed__header {
	max-width: 870px;
	margin: 0 auto 24px;
}

.smapot-instagram-feed .smapot-instagram-feed__account {
	display: flex;
	align-items: center;
	gap: 16px;
}

.smapot-instagram-feed .smapot-instagram-feed__profile-image {
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--main-color-beige, #f2eeec);
}

.smapot-instagram-feed .smapot-instagram-feed__profile-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smapot-instagram-feed .smapot-instagram-feed__account-copy {
	min-width: 0;
	text-align: left;
}

.smapot-instagram-feed .smapot-instagram-feed__account-name {
	margin: 0;
	color: var(--text-color-black, #222222);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.smapot-instagram-feed .smapot-instagram-feed__account-meta {
	margin: 2px 0 0;
	color: var(--text-color-gray, #777777);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.02em;
}

.smapot-instagram-feed .smapot-instagram-feed__description {
	margin: 2px 0 0;
	color: var(--text-color-gray, #777777);
	font-size: 13px;
	line-height: 1.45;
	letter-spacing: 0.02em;
}

.smapot-instagram-feed .smapot-instagram-feed__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 18px;
	max-width: 870px;
	margin: 0 auto;
}

.smapot-instagram-feed .smapot-instagram-feed__card {
	display: block;
	min-width: 0;
	aspect-ratio: 4 / 5;
	border: 1px solid rgba(34, 34, 34, 0.06);
	border-radius: 14px;
	overflow: hidden;
	background: var(--main-color-beige, #f2eeec);
	box-shadow: 0 3px 12px rgba(34, 34, 34, 0.05);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.smapot-instagram-feed .smapot-instagram-feed__media {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.smapot-instagram-feed .smapot-instagram-feed__fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: var(--text-color-gray, #777777);
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

.smapot-instagram-feed .smapot-instagram-feed__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.28s ease, transform 0.4s ease;
}

.smapot-instagram-feed .smapot-instagram-feed__card:hover .smapot-instagram-feed__image {
	opacity: 0.97;
	transform: scale(1.015);
}

.smapot-instagram-feed .smapot-instagram-feed__card:hover {
	box-shadow: 0 6px 18px rgba(34, 34, 34, 0.08);
	transform: translateY(-2px);
}

.smapot-instagram-feed .smapot-instagram-feed__card:focus-visible {
	outline: 3px solid var(--accent-color-1, #e07b37);
	outline-offset: 4px;
}

@media all and (max-width: 768px) {
	.smapot-instagram-feed {
		padding-bottom: 58px;
	}

	.smapot-instagram-feed .smapot-instagram-feed__header {
		margin-bottom: 20px;
	}

	.smapot-instagram-feed .smapot-instagram-feed__account {
		gap: 12px;
	}

	.smapot-instagram-feed .smapot-instagram-feed__profile-image {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
		border-radius: 10px;
	}

	.smapot-instagram-feed .smapot-instagram-feed__account-name {
		font-size: 19px;
		line-height: 1.3;
	}

	.smapot-instagram-feed .smapot-instagram-feed__account-meta,
	.smapot-instagram-feed .smapot-instagram-feed__description {
		font-size: 12px;
		line-height: 1.4;
	}

	.smapot-instagram-feed .smapot-instagram-feed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 10px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.smapot-instagram-feed .smapot-instagram-feed__image,
	.smapot-instagram-feed .smapot-instagram-feed__card {
		transition: none;
	}
}
