/* ==========================================================================
   Agua de Baleares: Instagram Feed Widget
   ========================================================================== */

.elementor-widget-abw-instagram-feed,
.elementor-widget-abw-instagram-feed > .elementor-widget-container {
	width: 100%;
}

/* ── Slider container ───────────────────────────────────────────────────────── */

.abw-ig-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* ── Track ──────────────────────────────────────────────────────────────────── */

.abw-ig-track {
	display: flex;
	gap: var(--abw-ig-gap, 12px);
	transition: transform 0.35s ease;
	will-change: transform;
	width: 100%;
}

/* ── Slide ──────────────────────────────────────────────────────────────────── */

.abw-ig-slide {
	flex-shrink: 0;
	min-width: 0;
}

.abw-ig-slide-inner {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1/1;
	display: block;
	width: 100%;
	background: #f0f0f0;
}

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

.abw-ig-slide-inner:hover img {
	transform: scale(1.04);
}

/* ── Caption ────────────────────────────────────────────────────────────────── */

.abw-ig-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 8px 12px;
	background-color: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 0.8em;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.abw-ig-slide-inner:hover .abw-ig-caption {
	opacity: 1;
	transform: translateY(0);
}

/* ── Video badge ────────────────────────────────────────────────────────────── */

.abw-ig-video-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	pointer-events: none;
}

.abw-ig-video-badge svg {
	width: 12px;
	height: 12px;
}

/* ── Arrows ─────────────────────────────────────────────────────────────────── */

.abw-ig-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	line-height: 0;
	z-index: 2;
	color: inherit;
	padding: 8px;
	border-radius: 50%;
}

.abw-ig-arrow-prev { left: 0; }
.abw-ig-arrow-next { right: 0; }

.abw-ig-arrow svg {
	display: block;
	width: 20px;
	height: 20px;
}

/* ── Dots ───────────────────────────────────────────────────────────────────── */

.abw-ig-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
}

.abw-ig-dot {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.35;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: opacity 0.2s;
}

.abw-ig-dot.is-active {
	opacity: 1;
}

/* ── Loading ────────────────────────────────────────────────────────────────── */

.abw-ig-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 40px 0;
	width: 100%;
}

.abw-ig-loading span {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.3;
	animation: abw-ig-pulse 1.2s ease-in-out infinite;
}

.abw-ig-loading span:nth-child(2) { animation-delay: 0.2s; }
.abw-ig-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes abw-ig-pulse {
	0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
	40%            { opacity: 1;   transform: scale(1.3); }
}

.abw-ig-loading[hidden],
.abw-ig-error[hidden] {
	display: none !important;
}

/* ── Error ──────────────────────────────────────────────────────────────────── */

.abw-ig-error {
	padding: 16px;
	text-align: center;
	opacity: 0.6;
}
