.az-hero-slider {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.az-hero-slider .az-hero-swiper,
.az-hero-slider .swiper-wrapper,
.az-hero-slider .swiper-slide {
	height: 100%;
	width: 100%;
}

.az-hero-slide,
.az-hero-slider .swiper-slide {
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	height: 100%;
	flex-shrink: 0;
	overflow: hidden;
}

.az-hero-slide-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.az-hero-media {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
}

.az-hero-image {
	background-size: cover;
	background-position: center;
}

/* iframe base (JS will resize with px) */
.az-hero-iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;

	opacity: 0;
	transition: opacity .15s ease;
}

.az-hero-iframe.is-ready {
	opacity: 1;
	left: 0 !important;
	scale: 1.3;
}

/* Content */
.az-hero-content {
	position: absolute;
	left: 5%;
	top: 44%;
	z-index: 3;
	max-width: 780px;
	color: #fff;
}

.az-hero-caption {
	margin: 0 0 10px 0;
	padding: 0;
	border: 0;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.05;

	opacity: 0;
	transform: translateY(50px);
	transition: all .7s cubic-bezier(.32,.34,0,1.62) .25s;
}

.az-hero-desc {
	font-size: 18px;
	line-height: 1.5;
	max-width: 680px;

	opacity: 0;
	transform: translateY(40px);
	transition: all .7s cubic-bezier(.32,.34,0,1.62) .35s;
}

.az-hero-btn {
	display: inline-block;
	margin-top: 18px;
	padding: 12px 20px;
	border: 2px solid #fff;
	color: #fff;
	text-decoration: none;

	opacity: 0;
	transform: translateY(30px);
	transition: all .7s cubic-bezier(.32,.34,0,1.62) .45s;
}

.swiper-slide-active .az-hero-caption,
.swiper-slide-active .az-hero-desc,
.swiper-slide-active .az-hero-btn {
	opacity: 1;
	transform: translateY(0);
}

/* Pagination */
.az-hero-pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 7;
	text-align: center;
}

/* Modal */
.az-hero-modal {
	position: absolute;
	inset: 0;
	z-index: 50;
	display: none;
}
.az-hero-modal.is-open { display: block; }

.az-hero-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.75);
}

.az-hero-modal-inner {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(960px, 92vw);
	aspect-ratio: 16/9;
	background: #000;
}

.az-hero-modal-frame,
.az-hero-modal-frame iframe {
	width: 100%;
	height: 100%;
	display: block;
}

.az-hero-modal-close {
	position: fixed;
	right: 4vw;
	top: 4vh;
	z-index: 60;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 38px;
	line-height: 1;
	cursor: pointer;
}

/* fallback image for video slides */
.az-hero-video-fallback{
	background-size: cover;
	background-position: center;
	z-index: 1;
	width: 100%;
	height: 100%;
	opacity: 1;
}

/* Hide fallback ONLY when iframe has loaded (JS adds video-ready on load) */
.az-hero-slide.video-ready .az-hero-video-fallback{
	opacity: 0;
	transition: opacity .25s ease;
}

/* ---------- Navigation Arrows (Prev/Next) ---------- */
.az-hero-nav{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 8;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: rgba(0,0,0,.45);
	cursor: pointer;
	user-select: none;

	display: flex;
	align-items: center;
	justify-content: center;

	transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.az-hero-prev{ left: 18px; }
.az-hero-next{ right: 18px; }

.az-hero-nav:hover{
	background: rgba(0,0,0,.65);
	transform: translateY(-50%) scale(1.05);
}

/* Our arrow icon */
.az-hero-nav::before{
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
}

.az-hero-prev::before{
	transform: rotate(135deg);
	margin-left: 2px;
}
.az-hero-next::before{
	transform: rotate(-45deg);
	margin-right: 2px;
}

/* ✅ FIX DOUBLE ARROW:
   Swiper adds its own arrow via ::after (and/or background-image). Remove it. */
.az-hero-nav::after,
.az-hero-prev::after,
.az-hero-next::after,
.swiper-button-prev::after,
.swiper-button-next::after{
	content: none !important;
}

.swiper-button-prev,
.swiper-button-next{
	background-image: none !important;
}

/* Disabled */
.az-hero-nav.swiper-button-disabled,
.az-hero-nav[aria-disabled="true"]{
	opacity: .35;
	pointer-events: none;
}


/* ---------- Per-slide content alignment ---------- */
.az-hero-slide.az-align-left .az-hero-content{
	left: 5%;
	right: auto;
	text-align: left;
	align-items: flex-start;
}

.az-hero-slide.az-align-center .az-hero-content{
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	text-align: center;
	align-items: center;
}

.az-hero-slide.az-align-right .az-hero-content{
	right: 5%;
	left: auto;
	text-align: right;
	align-items: flex-end;
}

/* Make sure button follows alignment */
.az-hero-content{
	display: flex;
	flex-direction: column;
}

/* Keep your original vertical positioning */
.az-hero-content{
	top: 44%;
}


/* Allow Beaver Builder editor to click/drag/select modules */
.fl-builder-edit .az-hero-slider,
.fl-builder-edit .az-hero-slider * {
	pointer-events: none !important;
}

/* But allow editing toolbar (BB overlays) to remain clickable */
.fl-builder-edit .fl-module-controls,
.fl-builder-edit .fl-module-controls * {
	pointer-events: auto !important;
}




@media only screen and (max-width: 1600px) and (min-width: 1200px) {
    
    .az-hero-iframe.is-ready {
	
	scale: 1.6;
    }

}


/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 980px) {
    
    	.az-hero-iframe.is-ready {
	scale: 2.4;
}
}


/* Optional: smaller arrows on mobile */
@media (max-width: 767px){
	.az-hero-nav{
		width: 40px;
		height: 40px;
		opacity: .9;
	}
	.az-hero-prev{ left: 10px; }
	.az-hero-next{ right: 10px; }
	.az-hero-iframe.is-ready {
	scale: 6;
}

.az-hero-content {
	top: 25%;
}


.az-hero-content {
	left: 5%;
	transform: none;
	width: 90%;
}

}


/* Mobile screen size */
@media (max-width: 480px) {
    
}

/* Responsive nav control (JS adds these classes) */
.az-hero-slider.az-hide-arrows .az-hero-nav{ display:none !important; }
.az-hero-slider.az-hide-bullets .az-hero-pagination{ display:none !important; }

/* Prevent any child expanding slide width */
.az-hero-slide * { max-width: 100%; }
