/* Image Scroll Row - frontend styles */

.isr-wrapper {
	width: 100%;
	max-width: 100%;
	position: relative;
}

.isr-scroll-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	gap: 20px;
	padding-bottom: 12px;
	scrollbar-width: thin;
	scrollbar-color: var( --isr-scrollbar-thumb, #c1c1c1 ) var( --isr-scrollbar-track, transparent );
}

/* WebKit / Blink scrollbar styling */
.isr-scroll-track::-webkit-scrollbar {
	height: var( --isr-scrollbar-height, 6px );
}

.isr-scroll-track::-webkit-scrollbar-track {
	background: var( --isr-scrollbar-track, transparent );
	border-radius: 10px;
}

.isr-scroll-track::-webkit-scrollbar-thumb {
	background-color: var( --isr-scrollbar-thumb, #c1c1c1 );
	border-radius: 10px;
}

.isr-scroll-track.isr-hide-scrollbar {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.isr-scroll-track.isr-hide-scrollbar::-webkit-scrollbar {
	display: none;
	height: 0;
}

/* Auto-scroll uses JS to set scrollLeft every frame; smooth scroll-behavior
   would fight that with its own easing, so switch it off here. */
.isr-scroll-track.isr-auto-scroll {
	scroll-behavior: auto;
}

.isr-item {
	flex: 0 0 auto;
	width: 150px;
	height: 150px;
	line-height: 0;
}

.isr-item a {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.isr-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
	-webkit-user-drag: none;
	user-select: none;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Navigation arrows */
.isr-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.9);
	color: #333333;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.isr-nav svg {
	width: 1em;
	height: 1em;
	display: block;
}

.isr-nav-prev {
	left: 10px;
}

.isr-nav-next {
	right: 10px;
}

.isr-nav:hover:not(:disabled) {
	background-color: #ffffff;
	color: #000000;
}

.isr-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Hidden because the row doesn't overflow - always wins over hover-only. */
.isr-nav.isr-nav-hidden {
	opacity: 0 !important;
	pointer-events: none !important;
}

.isr-wrapper.isr-arrows-hover-only .isr-nav {
	opacity: 0;
	pointer-events: none;
}

.isr-wrapper.isr-arrows-hover-only:hover .isr-nav:not(.isr-nav-hidden) {
	opacity: 1;
	pointer-events: auto;
}
