/* Advantages gallery – carousel + lightbox (overrides legacy strip / Avada CSS) */
.dor-advantages .dor-adv-strip,
.dor-adv-strip.dor-adv-carousel-ready {
	margin-top:    25px !important;
	background:    #ffffff !important;
}

.dor-adv-strip.dor-adv-carousel-ready {
	display:        block !important;
	column-count:   unset !important;
	grid-template-columns: unset !important;
	width:          100% !important;
	max-width:      100% !important;
	margin-left:    0 !important;
	margin-right:   0 !important;
	left:           auto !important;
	right:          auto !important;
	position:       relative !important;
	overflow:       visible !important;
	min-height:     0 !important;
	padding:        8px 52px 28px !important;
	box-sizing:     border-box !important;
}

.dor-adv-strip.dor-adv-carousel-ready img {
	flex:       none !important;
	filter:     none !important;
	transform:  none !important;
}

.dor-adv-carousel {
	position: relative;
}

.dor-adv-carousel__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	background: #ffffff;
}

.dor-adv-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.dor-adv-carousel__track {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	direction: rtl;
	align-items: stretch;
	background: #ffffff;
}

.dor-adv-carousel__slide {
	flex: 0 0 calc(48% - 8px);
	min-width: 340px;
	scroll-snap-align: start;
	display: flex;
}

.dor-adv-carousel__open {
	display:    block;
	width:      100%;
	height:     100%;
	margin:     0;
	padding:    0;
	border:     none;
	background: #ffffff;
	cursor:     pointer;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dor-adv-carousel__open:hover {
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	transform: translateY(-2px);
}

/* Desktop – tall elongated slides */
@media (min-width: 861px) {
	.dor-adv-strip.dor-adv-carousel-ready {
		padding: 12px 56px 32px !important;
	}

	.dor-adv-carousel__slide {
		flex: 0 0 calc(25% - 11px);
		min-width: 0;
	}

	.dor-adv-carousel__open {
		height: 380px;
	}

	.dor-adv-carousel__open img {
		display: block !important;
		width: 100% !important;
		height: 380px !important;
		max-width: 100% !important;
		margin: 0 !important;
		object-fit: cover !important;
		object-position: center center !important;
		border-radius: 12px !important;
		filter: none !important;
		transform: none !important;
	}
}

.dor-adv-carousel__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	background: #ffffff;
	color: #3a3a3a;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* chevron עדין – רק ראש, בלי פס */
.dor-adv-carousel__btn::before {
	content: '';
	display: block;
	width: 9px;
	height: 9px;
	border: solid currentColor;
	border-width: 0 0 1.5px 1.5px;
}

.dor-adv-carousel__btn--left::before {
	transform: rotate(45deg);
	margin-left: 3px;
}

.dor-adv-carousel__btn--right::before {
	border-width: 1.5px 1.5px 0 0;
	transform: rotate(45deg);
	margin-right: 3px;
}

.dor-adv-carousel__btn:hover {
	background: #e9a825;
	border-color: #e9a825;
	color: #ffffff;
}

/* חיצים – מיקום פיזי (לא מושפע מ-RTL) */
.dor-adv-carousel__btn--left {
	left:  4px;
	right: auto;
}

.dor-adv-carousel__btn--right {
	right: 4px;
	left:  auto;
}

/* רקע לבן – ביטול אפור Avada (#f1f5f9) בין ובאחורי התמונות */
body .fusion-fullwidth.dor-advantages.fusion-builder-row-5,
body .fusion-builder-row-5.dor-advantages,
body .fusion-builder-row-5.dor-s.dor-advantages,
.dor-advantages,
.dor-advantages.fusion-fullwidth,
.dor-advantages .fusion-builder-row,
.dor-advantages .fusion-column-wrapper,
.dor-advantages .fusion-text,
.dor-advantages .dor-adv-strip,
.dor-adv-strip.dor-adv-carousel-ready,
.dor-adv-carousel,
.dor-adv-carousel__viewport,
.dor-adv-carousel__track,
.dor-adv-carousel__slide,
.dor-adv-carousel__open {
	background:       #ffffff !important;
	background-color: #ffffff !important;
}

/* Lightbox */
.dor-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.9);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dor-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.dor-lightbox__dialog {
	position: relative;
	max-width: min(96vw, 1100px);
	max-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dor-lightbox__img {
	display: block;
	max-width: min(96vw, 1100px);
	max-height: 92vh;
	width: auto;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.dor-lightbox__close,
.dor-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: rgba(255, 255, 255, 0.95);
	color: #3a3a3a;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 24px;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dor-lightbox__nav {
	font-size: 0;
	line-height: 0;
}

.dor-lightbox__nav::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border: solid currentColor;
	border-width: 0 0 1.5px 1.5px;
}

.dor-lightbox__nav--prev::before {
	transform: rotate(45deg);
	margin-left: 3px;
}

.dor-lightbox__nav--next::before {
	border-width: 1.5px 1.5px 0 0;
	transform: rotate(45deg);
	margin-right: 3px;
}

.dor-lightbox__close {
	top: -52px;
	left: 0;
}

.dor-lightbox__nav--prev {
	right: -56px;
	top: 50%;
	transform: translateY(-50%);
}

.dor-lightbox__nav--next {
	left: -56px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 860px) {
	/* Mobile: 2 תמונות במרכז + מעט peek מהצדדים */
	.dor-adv-strip.dor-adv-carousel-ready {
		padding: 8px 40px 28px !important;
	}

	.dor-adv-carousel {
		position: relative;
	}

	.dor-adv-carousel__btn {
		width: 34px;
		height: 34px;
		z-index: 8;
		top: 50%;
		transform: translateY(-50%);
		box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
	}

	.dor-adv-carousel__btn::before {
		width: 8px;
		height: 8px;
		border-width: 0 0 1.5px 1.5px;
	}

	.dor-adv-carousel__btn--right::before {
		border-width: 1.5px 1.5px 0 0;
	}

	.dor-adv-carousel__btn--left {
		left:  4px;
		right: auto;
	}

	.dor-adv-carousel__btn--right {
		right: 4px;
		left:  auto;
	}

	.dor-adv-carousel__viewport {
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 3vw;
	}

	.dor-adv-carousel__track {
		gap: 10px;
	}

	.dor-adv-carousel__track::before,
	.dor-adv-carousel__track::after {
		display: none !important;
		flex: 0 0 0 !important;
		min-width: 0 !important;
		content: none !important;
	}

	.dor-adv-carousel__slide {
		flex: 0 0 44vw;
		min-width: 0;
		scroll-snap-align: start;
		display: flex;
	}

	.dor-adv-carousel__open {
		height: auto !important;
		aspect-ratio: 3 / 4;
		width: 100%;
	}

	.dor-adv-carousel__open img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		min-height: 100% !important;
		margin: 0 !important;
		object-fit: cover !important;
		object-position: center center !important;
		border-radius: 12px !important;
	}

	.dor-lightbox__nav--prev {
		right: 8px;
	}

	.dor-lightbox__nav--next {
		left: 8px;
	}

	.dor-lightbox__close {
		top: 12px;
		left: 12px;
	}
}
