.igfeed-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 340px;
	margin: 0;
	padding: 22px 18px 16px;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	color: #1b2430;
}

.igfeed-card--flat {
	box-shadow: none;
}

.igfeed-card *,
.igfeed-card *::before,
.igfeed-card *::after {
	box-sizing: border-box;
}

.igfeed-card__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #3a4250;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
}

.igfeed-card__icon {
	display: block;
	flex: 0 0 auto;
}

.widget_igfeed .igfeed-card h2.igfeed-card__title {
	margin: 14px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #1b2430;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	text-transform: none;
}

.igfeed-card__lead {
	margin: 10px 0 0;
	color: #7d8798;
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.45;
}

.widget_igfeed a.igfeed-card__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 9px 16px 9px 12px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background-image:
		linear-gradient(#fff, #fff),
		linear-gradient(90deg, #f9ce34, #ee2a7b, #6228d7, #f58529, #f9ce34);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	background-size: auto, 300% 100%;
	background-position: 0 0, 0% 50%;
	color: #1b2430;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
}

.widget_igfeed a.igfeed-card__button:hover,
.widget_igfeed a.igfeed-card__button:focus {
	color: #1b2430;
	text-decoration: none;
}

.widget_igfeed a.igfeed-card__button:hover,
.widget_igfeed a.igfeed-card__button:focus-visible {
	animation: igfeed-border-flow 1.4s linear infinite;
}

@keyframes igfeed-border-flow {
	0% {
		background-position: 0 0, 0% 50%;
	}

	100% {
		background-position: 0 0, 100% 50%;
	}
}

.widget_igfeed a.igfeed-card__button:focus-visible {
	outline: 2px solid #6228d7;
	outline-offset: 3px;
}

.igfeed-card__arrow {
	display: flex;
	margin-left: 2px;
	transition: transform 0.25s ease;
}

.widget_igfeed a.igfeed-card__button:hover .igfeed-card__arrow,
.widget_igfeed a.igfeed-card__button:focus-visible .igfeed-card__arrow {
	transform: translateX(5px);
}

.igfeed-card__photos,
.igfeed-card .igfeed--embed {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 18px;
}

.igfeed-card__photo {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 18px;
	background: #d9dde3;
}

.widget_igfeed a.igfeed-card__photo {
	text-decoration: none;
}

.igfeed-card__photo:focus-visible {
	outline: 2px solid #1b2430;
	outline-offset: 3px;
}

.igfeed-card__photo img,
.igfeed-card__fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.igfeed-card__photo img {
	display: block;
	max-width: none;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.45s ease;
}

.igfeed-card__photo:hover img,
.igfeed-card__photo:focus-visible img {
	transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
	.igfeed-card__photo img {
		transition: none;
	}

	.igfeed-card__photo:hover img,
	.igfeed-card__photo:focus-visible img {
		transform: none;
	}

	.igfeed-card__arrow {
		transition: none;
	}

	.widget_igfeed a.igfeed-card__button:hover .igfeed-card__arrow,
	.widget_igfeed a.igfeed-card__button:focus-visible .igfeed-card__arrow {
		transform: none;
	}

	.widget_igfeed a.igfeed-card__button:hover,
	.widget_igfeed a.igfeed-card__button:focus-visible {
		animation: none;
	}
}

.igfeed-card__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #262626;
	color: #fff;
	font-size: 0.85rem;
	text-align: center;
}

.igfeed-card__chip {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 20px);
	padding: 7px 12px 7px 8px;
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.46);
	color: #fff;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1;
	backdrop-filter: blur(8px);
}

.igfeed-card__chip-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.igfeed-card__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.igfeed-card .igfeed--embed .instagram-media {
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.igfeed-card .igfeed--embed iframe {
	max-width: 100% !important;
}

.igfeed-card__notice {
	margin: 16px 0 0;
	color: #7d8798;
	font-size: 0.875em;
}

.igfeed-popup[hidden] {
	display: none;
}

.igfeed-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.igfeed-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.62);
}

.igfeed-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	max-height: min(90vh, 860px);
	overflow: auto;
	padding: 56px 16px 16px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.igfeed-popup button.igfeed-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #2b3038;
	color: #fff;
	line-height: 0;
	cursor: pointer;
	box-shadow: none;
	appearance: none;
}

.igfeed-popup button.igfeed-popup__close svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.igfeed-popup__frame iframe {
	display: block;
	width: 100%;
	height: min(70vh, 640px);
	min-height: 420px;
	border: 0;
	border-radius: 12px;
	background: #fafafa;
}

.igfeed-popup__url {
	display: block;
	margin-top: 12px;
	color: #5c6570;
	font-size: 0.8rem;
	line-height: 1.4;
	word-break: break-all;
}

body.igfeed-popup-open {
	overflow: hidden;
}
