/**
 * FutbolFirst — Image Band widget styles
 *
 * BEM block: .ffcw-ib
 *
 * Layout relies on Swiper for horizontal scroll/swipe.
 * Per-panel and per-device styles are injected by Elementor via its CSS engine
 * using the .elementor-repeater-item-{id} and .elementor-element-{id} selectors.
 */

/* =============================================================================
   Root wrapper
   ========================================================================== */

.ffcw-ib {
	position: relative;
	overflow: hidden; /* clip swiper content to widget bounds */
}

/* =============================================================================
   Swiper container
   ========================================================================== */

.ffcw-ib__swiper {
	overflow: hidden;
	width: 100%;
}

/* =============================================================================
   Panel (swiper-slide)
   ========================================================================== */

.ffcw-ib__item {
	position: relative;
	height: 560px; /* default — overridden by the panel_height responsive control */
	overflow: hidden;
	box-sizing: border-box;
	flex-shrink: 0;
}

/* =============================================================================
   Background image layer
   ========================================================================== */

.ffcw-ib__image-bg {
	position: absolute;
	inset: 0;
	background-size: cover;          /* default — overridden per-item/per-device */
	background-position: center center; /* default — overridden per-item/per-device */
	background-repeat: no-repeat;    /* default — overridden per-item */
	z-index: 0;
}

/* =============================================================================
   Overlay layer (colour / gradient — set via Group_Control_Background per item)
   ========================================================================== */

.ffcw-ib__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	/* background set by Elementor via .elementor-repeater-item-{id} selector */
}

/* =============================================================================
   Title wrapper (flex container that positions the title within the panel)
   ========================================================================== */

.ffcw-ib__title-wrap {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;   /* main-axis = vertical → justify-content moves title up/down */
	justify-content: flex-end; /* default: bottom — overridden per-item/per-device by title_v_align */
	/* no align-items: stretch default → title takes full width, text-align handles H alignment */
	padding: 24px; /* default — overridden per-item/per-device by item_padding control */
	box-sizing: border-box;
}

/* =============================================================================
   Title text
   ========================================================================== */

.ffcw-ib__title {
	margin: 0;
	width: 100%; /* ensures text-align works as expected */
	color: #ffffff; /* default — overridden by global/per-item colour controls */
	/* typography set by Group_Control_Typography */
}

/* =============================================================================
   Navigation arrow container
   ========================================================================== */

.ffcw-ib__nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 560px; /* synced with panel height via Elementor selectors */
	z-index: 10;
	pointer-events: none;
	/* display overridden per-device by the arrows_display responsive control */
}

/* =============================================================================
   Navigation buttons
   ========================================================================== */

.ffcw-ib__nav-btn {
	position: absolute;
	pointer-events: auto;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	/* vertical position — default centred, overridden by arrow_v_position control */
	top: 50%;
	transform: translateY(-50%);
	/* size — overridden by arrow_size control */
	width: 52px;
	height: 52px;
	box-sizing: border-box;
	/* background — overridden by arrow_bg Group_Control_Background */
	background: rgba(0, 0, 0, 0.4);
	/* border — overridden by arrow_border Group_Control_Border */
	border: none;
	/* border-radius — overridden by arrow_border_radius control (default: circle) */
	border-radius: 50%;
	padding: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	/* icon colour via currentColor — overridden by arrow_icon_color control */
	color: #ffffff;
	/* box-shadow — overridden by arrow_shadow Group_Control_Box_Shadow */
}

.ffcw-ib__nav-btn:hover {
	opacity: 0.8;
}

.ffcw-ib__nav-btn--prev {
	left: 16px; /* default — overridden by arrow_offset responsive control */
}

.ffcw-ib__nav-btn--next {
	right: 16px; /* default — overridden by arrow_offset responsive control */
}

/* Swiper disabled state (at first/last slide) */
.ffcw-ib__nav-btn.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* =============================================================================
   Arrow icon inside the button
   ========================================================================== */

.ffcw-ib__arrow-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	pointer-events: none;
}

.ffcw-ib__arrow-icon svg {
	/* size overridden by arrow_icon_size control */
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}

.ffcw-ib__arrow-icon img {
	display: block;
	object-fit: contain;
	flex-shrink: 0;
}

/* Flip the previous arrow (mirror horizontally) */
.ffcw-ib__arrow-icon--flipped svg,
.ffcw-ib__arrow-icon--flipped img {
	transform: scaleX(-1);
}
