/* Desktop / Default Layout */
.masthead-slideshow__featured-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 0rem 1rem;
  z-index: 20;
  /* Adjust width/max-width for desktop as needed */
  width: auto; 
  border-top-left-radius: 12px; /* if using rounded corners */
}
.feature-container, .masthead-slideshow__featured-overlay > div > div > div{justify-content: flex-start; align-items: stretch; gap: 60px; display: inline-flex;}
.feature-icon{width: 32px; height: 32px; position: relative; overflow: hidden; margin:0 auto; text-align:center; margin-bottom:1rem;}

.feature-item .feature-text {
  text-align:center;color: #172023; font-size: 16px; font-weight: 600; line-height: 1.2; word-wrap: break-word}
.feature-item .feature-price{text-align: center; color:var(--wp--preset--color--accent); font-size: 32px; font-weight: 500; line-height: 36px; word-wrap: break-word; margin-bottom:.625rem;}

.masthead-slideshow__featured-overlay .feature-item:not(:last-child) {
	position: relative;
}

.masthead-slideshow__featured-overlay .feature-item:not(:last-child)::after {
	position: absolute;
	top: 0;
	right: -24px;
	bottom: 0;
	width: 1px;
	background: rgba(0, 0, 0, 0.10);
	content: '';
}

.masthead-slideshow__featured-overlay .feature-item{max-width:300px;}
/* Medium & Small Devices (Tablet/Mobile, e.g., screen widths up to 991px) */
@media screen and (max-width: 991px) {

	.feature-item .feature-text {text-align:left;}
	.feature-icon{margin:0px 0px 1rem!important; text-align:left;}

	.masthead-slideshow {
		display: flex;
		flex-direction: column;
	}

	.masthead-slideshow__track {
		order: 1;
	}

  .masthead-slideshow__featured-overlay {
		position: relative;
		order: 2;
		top: auto;
		z-index: 1;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 2rem;
    border-radius: 0; /* Reset desktop top-left border radius */
  }

	.masthead-slideshow__featured-overlay > div,
	.masthead-slideshow__featured-overlay > div > div {
		width: 100% !important;
		max-width: 100%;
		padding: 0 !important;
		border-radius: 0 !important;
	}

	.masthead-slideshow__featured-overlay > div {
		height: auto !important;
		align-items: stretch !important;
		justify-content: stretch !important;
	}

	.masthead-slideshow__featured-overlay > div > div > div {
		width: 100%;
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
		gap: 1.25rem 2rem !important;
	}

	.masthead-slideshow__featured-overlay > div > div > div > div[style*="rotate(90deg)"] {
		display: none !important;
	}

	.masthead-slideshow__featured-overlay .feature-item {
		flex-direction: column;
		align-items: flex-start;
	}

  .masthead-slideshow__featured-overlay .feature-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0.75rem 0;
		border-bottom: 0;
	}

	.masthead-slideshow__featured-overlay .feature-item:not(:last-child)::after {
		right: -1rem;
	}

	.masthead-slideshow__featured-overlay .feature-item:nth-child(even)::after {
		display: none;
	}
}


.masthead-slideshow {
	--masthead-content-width: 1280px;
	position: relative;
	width: 100%;
	color: #fff;
	background: #172023;
	overflow: hidden;
}

.masthead-slideshow__track {
	position: relative;
}

.masthead-slideshow__track:not(.slick-initialized) .masthead-slideshow__slide:not(:first-child) {
	display: none;
}

.masthead-slideshow__slide {
	position: relative;
	display: flex !important;
	align-items: center;
	min-height: min(100vh, 1080px);
	min-height: min(100svh, 1080px);
	padding: clamp(12rem, 14vh, 10rem) max(6vw, calc((100vw - var(--masthead-content-width)) / 2)) 13rem;
	overflow: hidden;
}

.masthead-slideshow__image,
.masthead-slideshow__scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.masthead-slideshow__image {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

.masthead-slideshow__scrim {
	background: linear-gradient(180deg, rgba(12, 17, 18, 0.4) 0%, rgba(12, 17, 18, 0.25) 48%, rgba(12, 17, 18, 0.0) 100%);
	pointer-events: none;
}

.masthead-slideshow__content {
	position: relative;
	z-index: 1;
	width: min(100%, 1000px);
}

.masthead-slideshow__title {
	max-width: 1000px;
	margin: 0;
	color: inherit;
	font-family: var(--wp--preset--font-family--display, Montserrat, sans-serif);
	font-size: 5.4rem;
	font-weight: 400;
	line-height: 1.02;
	text-wrap: balance;
}

.masthead-slideshow__description {
	max-width: 1000px;
	margin: 1.25rem 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.125rem;
	line-height: 1.6;
}

.masthead-slideshow__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.75rem;
}

.masthead-slideshow__button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
	outline: none;
}

.masthead-slideshow__button--primary {
	border-color: #ffffff;
	background: #ffffff;
	color: #172023;
}

.masthead-slideshow__button--primary:hover,
.masthead-slideshow__button--primary:focus-visible {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: #ffffff;
}

.masthead-slideshow__button--secondary {
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.masthead-slideshow__button--secondary:hover,
.masthead-slideshow__button--secondary:focus-visible {
	border-color: #fff;
	background: #fff;
	color: #172023;
}

.masthead-slideshow .slick-arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	width: 48px;
	height: 48px;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid rgba(255, 255, 255, 0.62);
	border-radius: 50%;
	background: rgba(23, 32, 35, 0.28);
	color: #fff;
	cursor: pointer;
	font-size: 0;
}

.masthead-slideshow .slick-arrow::before {
	font-size: 1.5rem;
	line-height: 1;
}

.masthead-slideshow .slick-prev {
	left: 24px;
}

.masthead-slideshow .slick-prev::before {
	content: "\2190";
}

.masthead-slideshow .slick-next {
	right: 24px;
}

.masthead-slideshow .slick-next::before {
	content: "\2192";
}

.masthead-slideshow .slick-dots {
	position: absolute;
	bottom: 8%;
	left: 17%;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	transform: translateX(-20%);
	list-style: none;
	cursor: pointer;
}

.masthead-slideshow .slick-dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 1);
	cursor: pointer;
	font-size: 0;
	outline:none;
}

.masthead-slideshow .slick-dots .slick-active button {
	background: #e1b77e;
}

.masthead-slideshow .slick-arrow:focus-visible,
.masthead-slideshow .slick-dots button:focus-visible,
.masthead-slideshow__button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 991px) {
	.masthead-slideshow__slide {
		box-sizing: border-box;
		height: clamp(560px, 78svh, 780px);
		min-height: clamp(560px, 78svh, 780px);
		padding: 6rem 80px;
	}

	.masthead-slideshow__title {
		font-size: 4rem;
	}

	.masthead-slideshow__scrim {
		background: linear-gradient(0deg, rgba(12, 17, 18, 0.82) 0%, rgba(12, 17, 18, 0.42) 62%, rgba(12, 17, 18, 0.12) 100%);
	}
}

@media (max-width: 767px) {
	.masthead-slideshow__slide {
		box-sizing: border-box;
		height: clamp(600px, 82svh, 720px);
		min-height: clamp(600px, 82svh, 720px);
		align-items: flex-end;
		padding: 7rem 24px 6rem;
	}

	.masthead-slideshow__scrim {
		background: linear-gradient(0deg, rgba(12, 17, 18, 0.62) 0%, rgba(12, 17, 18, 0.32) 62%, rgba(12, 17, 18, 0.12) 100%);
	}

	.masthead-slideshow__title {
		font-size: 2.75rem;
	}

	.masthead-slideshow__description {
		font-size: 1rem;
	}

	.masthead-slideshow .slick-prev {
		left: 16px;
	}

	.masthead-slideshow .slick-next {
		right: 16px;
	}
}

@media (max-width: 420px) {
	.masthead-slideshow__slide {
		padding-right: 20px;
		padding-left: 20px;
	}

	.masthead-slideshow__title {
		font-size: 2.25rem;
	}

	.masthead-slideshow__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.masthead-slideshow__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.masthead-slideshow__button {
		transition: none;
	}
}


/* ==========================================================================
   Block Editor Canvas Styles (.editor-styles-wrapper)
   ========================================================================== */

/* Main hero wrapper setup inside editor */
.editor-styles-wrapper .hero-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
}

/* 1. Prevent stacking: Hide all slides except the first one in Gutenberg */
.editor-styles-wrapper .hero-slider-wrapper .masthead-slideshow__slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.editor-styles-wrapper .hero-slider-wrapper .masthead-slideshow__slide:first-child {
  display: block; /* Shows only the first slide image as preview */
}

/* 2. Style the background image container */
.editor-styles-wrapper .masthead-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3. Overlay Content Positioning over the image */
.editor-styles-wrapper .hero-slider-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem;
  background: rgba(0, 0, 0, 0.2); /* Matching frontend overlay shade */
}

/* 4. Keep features bar positioned at bottom-right in editor view */
.editor-styles-wrapper .hero-features-bar {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  background: #ffffff;
}