/* Instagram Feed pentru Elementor - stiluri frontend */

.ief-wrap {
	position: relative;
	width: 100%;
}

.ief-feed {
	--ief-columns: 3;
	--ief-gap: 10px;
	box-sizing: border-box;
}

.ief-feed * {
	box-sizing: border-box;
}

/* ---------- Grilă ---------- */
.ief-grid {
	display: grid;
	grid-template-columns: repeat(var(--ief-columns), 1fr);
	gap: var(--ief-gap);
}

/* ---------- Carusel ---------- */
.ief-carousel {
	display: flex;
	gap: var(--ief-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.ief-carousel::-webkit-scrollbar {
	display: none;
}

.ief-carousel .ief-item {
	flex: 0 0 calc((100% - (var(--ief-columns) - 1) * var(--ief-gap)) / var(--ief-columns));
	scroll-snap-align: start;
}

/* ---------- Element (imagine) ---------- */
.ief-item {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f0f0f0;
	text-decoration: none;
}

.ief-rounded .ief-item {
	border-radius: 10px;
}

.ief-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ief-item:hover .ief-img {
	transform: scale(1.06);
}

/* ---------- Badge video ---------- */
.ief-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	background: rgba(0, 0, 0, 0.45);
	padding: 5px 7px;
	border-radius: 50%;
	pointer-events: none;
}

/* ---------- Overlay caption ---------- */
.ief-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	text-align: center;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ief-item:hover .ief-overlay {
	opacity: 1;
}

.ief-caption {
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
}

/* ---------- Butoane navigare carusel ---------- */
.ief-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #222;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.ief-nav:hover {
	background: #fff;
}

.ief-prev {
	left: -6px;
}

.ief-next {
	right: -6px;
}

.ief-nav[disabled] {
	opacity: 0.35;
	cursor: default;
}

/* ---------- Mesaje ---------- */
.ief-empty {
	padding: 16px;
	color: #666;
	text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.ief-grid {
		grid-template-columns: repeat(min(var(--ief-columns), 3), 1fr);
	}
}

@media (max-width: 480px) {
	.ief-grid {
		grid-template-columns: repeat(min(var(--ief-columns), 2), 1fr);
	}
	.ief-nav {
		width: 34px;
		height: 34px;
		font-size: 18px;
	}
}
