/* ── Instagram brand icon (fa-instagram inside widget) ── */

.inst-widget .fa-instagram {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	vertical-align: middle;
	line-height: 1;
	flex-shrink: 0;
}

/* ── Instagram Widget: Header row (always one line) ── */
.inst-widget{
	display: flex;
	flex-direction: column;
}
.inst_carousel{
	margin: 0!important;
}
.inst-feed{
	 margin: 0!important;
	border-radius: .25rem!important;
	border: 1px solid #f2f4f8!important;
}
.swiper-pager{
	display: none!important;
}
.inst-header-row {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 14px;
    flex-wrap: nowrap;
    padding: 25px 5px 20px 25px;
	background: white;

	margin-top: 50px!important;
	border-radius: .25rem;
	border: 1px solid #f2f4f8;
}
@media (max-width: 767px) {
	.inst-header-row{
		padding: 25px 5px 20px 5px;
	}
	.inst-widget .username{
		font-size: 14px;
	}
}
/* Profile photo: max 100px, keep gradient ring */
.inst-header-photo {
	flex-shrink: 0;
	padding: 3px;
}

.inst-header-photo .kj-img-circle {
	width: 94px;
	height: 94px;
	max-width: 94px;
	max-height: 94px;
	object-fit: cover;
	display: block;
}

.inst-header-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* кожен елемент — своя ширина, без розтягування */
	gap: 4px;
	min-width: 0;            /* не дає тексту виходити за межі flex-контейнера */
	overflow: hidden;
}

/* Instagram brand icon from sprite */
.inst-header-brand {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.inst-svg-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	padding: 3px;
	box-sizing: border-box;
	flex-shrink: 0;
}

.inst-svg-icon {
	display: block;
	filter: brightness(0) invert(1); /* робить іконку білою на градієнті */
}

/* Username в хедері — не виходить за екран */
.inst-header-info .username {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
}

/* ── Instagram Widget: Header (generic) ── */

.inst-widget-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.inst-widget-profile-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #444;
}

.inst-widget-profile-link:hover {
	color: #444;
	text-decoration: none;
}

.inst-widget-acc-name {
	font-size: 14px;
	font-weight: 600;
	margin-left: 8px;
}

/* Avatar: Instagram-style gradient ring */
.inst-profile-photo-mini {
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 2px;
	border-radius: 50%;
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.inst-profile-photo{
	margin: 0!important;
	margin-right: 15px !important;
}
.inst-post-counters .fa-heart{
	color:rgb(52, 58, 64);
}
.inst-post-counters .fa-comment{
	color:rgb(52, 58, 64);
}
.inst-profile-photo-mini .kj-img-circle {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	max-width: none;
	margin: 0;
}

/* ── Navigation arrows ── */

.inst-widget-arrows {
	display: flex;
	align-items: center;
}

.inst-arrow-btn {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid #ddd;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #444;
	background: #fff;
	margin-left: 6px;
	transition: border-color .2s, color .2s;
	user-select: none;
}

.inst-arrow-btn:hover {
	border-color: #444;
	color: #444;
}

.inst-arrow-btn .fa {
	font-size: 14px;
	line-height: 1;
}

/* ── Carousel ── */

.inst-widget-carousel {
	overflow: hidden;
}

.inst-widget-slide {
	box-sizing: border-box;
	padding: 0 5px;
}

/* swiper.css sets height:100% on slides — override so they expand to content */
.inst-widget-carousel .swiper-slide {
	height: auto;
}

/* Override float from grid context */
.inst-widget-slide .inst-img-grid {
	float: none;
	width: 100%;
	box-shadow: none;
	aspect-ratio: 1 / 1;
	max-height: 400px;
}

@media (max-width: 767px) {
	.inst-widget-slide .inst-img-grid {
		max-height: 300px;
	}
}

/* ── Square images (height set via JS) ── */

.inst-img-grid {
	display: block;
	position: relative;
	background-size: cover;
	background-position: center center;
}

/* ── Carousel slide image height ── */

.inst_carousel .inst-img-grid {
	height: 300px!important;
}

@media (max-width: 767px) {
	.inst_carousel .inst-img-grid {
		height: 200px!important;
	}
}

/* ── Hover effect (standard, keep as-is) ── */

.inst-img:hover {
	filter: grayscale(0.5);
}

.pos-center {
	color: white;
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	text-align: center;
	height: 20px;
	line-height: 20px;
	margin-top: -10px;
	font-weight: 700;
	display: none;
}

.inst-img:hover .pos-center {
	display: block;
}

/* ── Post type icon (video / carousel) ── */

.postopright {
	position: absolute;
	top: 10px;
	right: 10px;
	color: white;
}

.nowrap {
	white-space: nowrap;
}
