/* ==========================================================================
   RS SinkIn Case — Front-end Styles
   ========================================================================== */

/* ---------- Wrapper ---------- */
.rs-sinkincase-wrapper {
	overflow: hidden;
	position: relative;
}

/* ---------- Card ---------- */
.rs-sinkincase-card {
	padding: 60px 0;
	border-bottom: 1px solid #CACACA;
}

.rs-sinkincase-card:last-child {
	border-bottom: none;
}

.rs-sinkincase-card-inner {
	display: flex;
	align-items: center;
	gap: 60px;
}

/* ---------- Text block ---------- */
.rs-sinkincase-text {
	flex: 0 0 350px;
	position: relative;
}

.rs-sinkincase-title {
	font-size: 28px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 16px 0;
	padding: 0;
}

.rs-sinkincase-title a {
	color: #5F5E5B;
	text-decoration: none;
}

.rs-sinkincase-title a:hover {
	color: #333;
}

/* Stretched link — entire card clickable, gallery stays interactive. */
.rs-sinkincase-title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.rs-sinkincase-card {
	position: relative;
	cursor: pointer;
}

.rs-sinkincase-excerpt {
	font-size: 16px;
	font-weight: 400;
	color: #888;
	line-height: 2;
	margin: 0;
}

/* ---------- Gallery / Swiper ---------- */
.rs-sinkincase-gallery {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 2; /* Above stretched link so Swiper is interactive. */
	clip-path: inset(-10px -100vw -10px 0); /* Clip left overflow (loop clones), allow right (peek). */
}

.rs-sinkincase-swiper {
	overflow: visible !important;
}

.rs-sinkincase-slide {
	width: 500px;
	flex-shrink: 0;
}

.rs-sinkincase-slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
}

/* ---------- Pagination ---------- */
.rs-sinkincase-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 40px 0 20px;
}

.rs-sinkincase-page-info {
	font-size: 15px;
	color: #5F5E5B;
	min-width: 60px;
	text-align: center;
}

/* ---------- Blocksy button / link reset ---------- */
.rs-sinkincase-wrapper button,
.rs-sinkincase-wrapper a {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.rs-sinkincase-wrapper button:hover,
.rs-sinkincase-wrapper button:focus,
.rs-sinkincase-wrapper button:active,
.rs-sinkincase-wrapper a:hover,
.rs-sinkincase-wrapper a:focus,
.rs-sinkincase-wrapper a:active,
.rs-sinkincase-wrapper a:visited {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Re-apply pagination button styles after reset. */
.rs-sinkincase-prev,
.rs-sinkincase-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px !important;
	font-size: 15px;
	font-weight: 500;
	color: #5F5E5B;
	cursor: pointer;
	border: 1px solid #CACACA !important;
	border-radius: 4px !important;
	transition: color 0.2s, border-color 0.2s;
	line-height: 1.4;
}

.rs-sinkincase-prev:hover,
.rs-sinkincase-next:hover {
	color: #333;
	border-color: #888 !important;
}

.rs-sinkincase-prev:disabled,
.rs-sinkincase-next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	color: #AAA;
	border-color: #E0E0E0 !important;
}

/* ---------- Loading state ---------- */
.rs-sinkincase-list.is-loading {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s;
}

/* ---------- Empty ---------- */
.rs-sinkincase-empty {
	text-align: center;
	color: #888;
	padding: 60px 0;
	font-size: 16px;
}

/* ==========================================================================
   Mobile — ≤ 767px
   ========================================================================== */
@media (max-width: 767px) {
	.rs-sinkincase-card {
		padding: 32px 0;
	}

	.rs-sinkincase-card-inner {
		flex-direction: column;
		gap: 24px;
		align-items: stretch;
	}

	.rs-sinkincase-text {
		flex: none;
		width: 100%;
	}

	.rs-sinkincase-title {
		font-size: 22px;
	}

	.rs-sinkincase-excerpt {
		font-size: 15px;
		line-height: 1.8;
	}

	.rs-sinkincase-gallery {
		width: 100%;
	}

	.rs-sinkincase-slide {
		width: 75vw;
	}

	.rs-sinkincase-pagination {
		padding: 24px 0 12px;
	}

	.rs-sinkincase-prev,
	.rs-sinkincase-next {
		padding: 8px 16px !important;
		font-size: 14px;
	}
}
