/* Responsive Thumbnail Slider - Modern Engine styles */

.rts-modern-slider {
	position: relative;
	width: 100%;
	margin: 0 auto 19px;
	box-sizing: border-box;
}

.rts-modern-viewport {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.rts-modern-track {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	will-change: transform;
}

.rts-modern-slide {
	position: relative;
	box-sizing: border-box;
	flex-shrink: 0;
	margin-right: 0;
}

/* The visible "framed card" look lives here, not on .rts-modern-slide itself — Legacy's
   equivalent wrapper (.v-wrap) has 5px padding between the image and the border, which is
   what actually makes the border/shadow visible as a frame instead of a flush 1px line
   sitting directly against the image edge. Border/shadow/radius are set per-slider via
   an inline style attribute (see PHP render); these are just safe fallbacks. */
.rts-modern-slide-inner {
	display: block;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 5px;
	overflow: hidden;
	border: 1px solid #cccccc;
	box-shadow: 0 0 5px #cccccc;
	border-radius: 5px;
}

.rts-modern-slide-inner img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
}

/* Crop mode: image fills the box, cropping overflow (matches Pro's server-side hard crop). */
.rts-modern-crop-on .rts-modern-slide-inner img {
	object-fit: cover;
}

/* No-crop mode: image fits within the box without cropping, letterboxed and centered
   (matches Pro's server-side non-crop resize, which can be smaller than the box in one axis). */
.rts-modern-crop-off .rts-modern-slide-inner img {
	object-fit: contain;
	background: #fff;
}

.rts-modern-slide a {
	display: block;
}

.rts-modern-caption {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 6px 8px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	box-sizing: border-box;
}

.rts-modern-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 34px;
	height: 34px;
	line-height: 32px;
	text-align: center;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
}

.rts-modern-arrow:hover {
	background: rgba(0, 0, 0, 0.75);
}

.rts-modern-prev {
	left: 8px;
}

.rts-modern-next {
	right: 8px;
}

.rts-modern-pager {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.rts-modern-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: #ccc;
	cursor: pointer;
	padding: 0;
}

.rts-modern-dot-active {
	background: #666;
}

@media (max-width: 480px) {
	.rts-modern-arrow {
		width: 28px;
		height: 28px;
		line-height: 26px;
		font-size: 12px;
	}
}
