/* Oak Picture Slider Container */
.ops-slider-widget-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

/* Main Display Viewport */
.ops-main-image-container {
	position: relative;
	width: 100%;
	height: 600px; /* Default fallback height */
	border-radius: 40px; /* Default fallback border-radius */
	overflow: hidden;
	box-sizing: border-box;
	background-color: #f7f7f7;
}

.ops-main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.3s ease-in-out;
}

/* Fading states for image switch transition */
.ops-main-image.ops-fade-out {
	opacity: 0.1;
}

.ops-main-image.ops-fade-in {
	opacity: 1;
}

/* Navigation Arrows */
.ops-nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	outline: none;
	width: 44px; /* Default size (24px arrow + 20px padding) */
	height: 44px; /* Default size (24px arrow + 20px padding) */
	background-color: rgba(0, 0, 0, 0.4); /* Default background color */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.3s ease, background-color 0.2s ease;
	padding: 0;
}

.ops-main-image-container:hover .ops-nav-arrow {
	opacity: 1;
}

.ops-nav-arrow.prev {
	left: 20px;
}

.ops-nav-arrow.next {
	right: 20px;
}

.ops-nav-arrow svg {
	width: 24px; /* Default arrow size */
	height: 24px; /* Default arrow size */
	fill: #ffffff; /* Default arrow color */
	display: block;
}

/* Thumbnails Navigation Row */
.ops-thumbnails-container {
	display: flex;
	flex-direction: row;
	width: 100%;
	box-sizing: border-box;
	margin-top: 30px; /* Default margin below main image */
	gap: 20px; /* Default gap between thumbnails */
	overflow-x: auto;
	flex-wrap: nowrap;
	-webkit-overflow-scrolling: touch;
}

/* Hide scrollbars for a clean layout */
.ops-thumbnails-container::-webkit-scrollbar {
	display: none;
}
.ops-thumbnails-container {
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;  /* Firefox */
}

/* Thumbnail Card */
.ops-thumbnail {
	flex: 0 0 calc( ( 100% - ( ( var(--ops-thumbs-to-show, 4) - 1 ) * var(--ops-thumbs-gap, 20px) ) ) / var(--ops-thumbs-to-show, 4) ) !important;
	min-width: calc( ( 100% - ( ( var(--ops-thumbs-to-show, 4) - 1 ) * var(--ops-thumbs-gap, 20px) ) ) / var(--ops-thumbs-to-show, 4) ) !important;
	max-width: calc( ( 100% - ( ( var(--ops-thumbs-to-show, 4) - 1 ) * var(--ops-thumbs-gap, 20px) ) ) / var(--ops-thumbs-to-show, 4) ) !important;
	flex-shrink: 0;
	height: 140px; /* Default thumbnail height */
	border-radius: 30px; /* Default thumbnail border radius */
	opacity: 0.7; /* Default opacity */
	cursor: pointer;
	overflow: hidden;
	box-sizing: border-box;
	position: relative;
	transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
	border: 2px solid transparent;
}

.ops-thumbnail-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}

/* Subtle zoom effect on hover */
.ops-thumbnail:hover .ops-thumbnail-img {
	transform: scale(1.06);
}

.ops-thumbnail:hover, .ops-thumbnail.active {
	opacity: 1 !important;
	border: 2px solid #2B2B2B; /* Default active border */
}

/* Responsive Styles */
@media (max-width: 1024px) {
	/* Add padding for active borders when scrolling */
	.ops-thumbnails-container {
		padding-bottom: 8px;
	}
	
	/* Sizing handled dynamically via CSS variables */
	
	/* Navigation arrows always visible on touch screens */
	.ops-nav-arrow {
		opacity: 0.8;
	}
}
