

.seg-gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: flex-start !important; /* stops a parent flex column from stretching this to fill its height */
	gap: 12px;
	width: 100% !important;
	height: auto !important;
	box-sizing: border-box;
}


.seg-gold-bg {
	width: 65%!important;
	max-width: 100%;
	background: #D4AF37;
	border-radius: 24px;
	padding: 24px;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
}


.seg-main-image {
	height: auto !important;
}

.seg-main-img {
	height: auto !important;
	position: static !important;
}


.seg-main-image {
	position: relative !important;
	width: 100% !important;
	min-width: 0;
	max-width: 700px;
	height: 400px;
	overflow: visible;
	border-radius: 20px;
}


.seg-main-image .seg-nav-prev {
	left: -60px !important; 
	right: auto !important;
}

.seg-main-image .seg-nav-next {
	right: -60px !important; 
	left: auto !important;
}

.seg-main-img {
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}

.seg-main-img.is-active {
	display: block;
}

.seg-main-image .seg-nav {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 40px !important;
	height: 40px !important;
	max-width: 40px;
	min-width: 40px;
	margin: 0 !important;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
	padding: 0;
	box-sizing: border-box;
	z-index: 5;
}

.seg-main-image .seg-nav:hover {
	background: rgba(0, 0, 0, 0.7);
}


.seg-thumbs {
	display: flex;
	width: 100%;
	max-width: 700px; /* matches Main Image Max Width so thumbnails align under the image */
	gap: 10px;
}

.seg-thumb {
	flex: 1 1 0;
	max-width: 300px;
	height: 175px; /* overridden by the widget's Thumbnail Height control */
	padding: 0;
	border: 4px solid transparent;
	border-radius: 20px;
	background: none;
	cursor: pointer;
	opacity: 0.65;
	overflow: hidden;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	line-height: 0;
}


.seg-thumb:hover,
.seg-thumb:focus {
	background-color: #D4AF37 !important;
}

.seg-thumb:hover {
	opacity: 0.9;
}

.seg-thumb.is-active {
	opacity: 1;
	border-color: #016634!important;
}

.seg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 17px;
}

.seg-gallery, .seg-gold-bg {
	height: auto !important;
	min-height: 0 !important;
}


.seg-thumbs {
	width: calc(80% - 48px) !important; /* matches gold-bg's 80% width minus its 24px+24px padding */
	max-width: 700px;
	margin: 0 auto !important;
}

.seg-thumb {
	max-width: none !important;
}

/*TABLET*/
@media (max-width: 1024px) {
	.seg-gold-bg {
		padding: 20px 50px;
	}

	.seg-main-image {
		height: 300px;
	}

	.seg-main-image .seg-nav-prev {
		left: -44px !important;
	}

	.seg-main-image .seg-nav-next {
		right: -44px !important;
	}

	.seg-thumbs {
		width: calc(80% - 100px) !important; /* matches gold-bg's 80% width minus its 50px+50px padding */
		max-width: 700px;
		margin: 0 auto !important;
	}

	.seg-thumb {
		max-width: none !important; /* was capped at 150px — now stretches to fill the row evenly */
	}
}


/* Phone */
@media (max-width: 480px) {
	.seg-gallery {
		display: block !important;
		width: 100% !important;
	}

	.seg-gold-bg {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		background: none !important;
		padding: 0 !important;
		border-radius: 0 !important;
	}

	.seg-main-image {
		display: block !important;
		position: relative !important;
		width: 96% !important;
		max-width: 96% !important;
		margin: 0 auto 20px auto !important; /* added 20px bottom space */
		height: auto !important;
		min-width: 0;
	}

	.seg-main-img {
		display: none;
		width: 100% !important;
		height: auto !important; /* was: 100% */
		object-fit: contain; /* was: cover — shows the full image instead of cropping */
	}

	.seg-main-img.is-active {
		display: block !important;
	}
	.seg-main-image .seg-nav {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px;
		max-width: 32px;
		background: rgba(0, 0, 0, 0.45) !important; 	
}

	.seg-main-image .seg-nav:hover {
		background: rgba(0, 0, 0, 0.7) !important;
	}
	.seg-main-image .seg-nav-prev {
		left: -10px !important;
	}

	.seg-main-image .seg-nav-next {
		right: -10px !important;
	}

	.seg-thumbs {
		width: 96% !important;
		max-width: 96% !important;
		margin: 0 auto !important;
		flex-wrap: wrap;
		justify-content: center;
	}

	.seg-thumb {
		flex: 1 1 70px;
		max-width: 90px;
		height: 60px;
	}
}