/**
 * Home page "Software" block for gioxx.org — arrow carousel with infinite loop.
 * The markup lives in the content of page 1282 (HTML only, no <style>/<script>).
 */

.wpsp-grid.sw-shell,
.sw-shell {
	position: relative;
	display: block;
	margin: 0 0 3rem;
}

/* Scroller: no padding, hidden scrollbar, smooth snap. */
.sw-grid {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	box-sizing: border-box;
}
.sw-grid::-webkit-scrollbar {
	display: none;
}

.sw-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: max-content;
}

/* Arrow wrapper: creates no box, the buttons position against .sw-shell. */
.sw-navwrap {
	display: contents;
}

.sw-nav {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	z-index: 20;
	color: #fff;
	font: 700 1.7rem/1 "Roboto", sans-serif;
	background: rgba(0, 0, 0, .3);
	transition: background .15s;
}
.sw-nav:hover {
	background: rgba(0, 0, 0, .58);
}
.sw-prev {
	left: 0;
}
.sw-next {
	right: 0;
}

/* Poster cards. */
.sw-cover {
	position: relative;
	flex: 0 0 200px;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: linear-gradient(180deg, var(--sw-a), var(--sw-b));
	text-decoration: none;
	transition: none;
}
.sw-cover::before {
	content: "";
	position: absolute;
	inset: -25%;
	background-image: var(--sw-icon);
	background-repeat: no-repeat;
	background-position: center 40%;
	background-size: 240px;
	opacity: .18;
	filter: blur(3px);
	transform: rotate(-10deg);
}
.sw-cover img {
	position: relative;
	z-index: 1;
	display: block;
	margin: 16% auto 0;
	width: 45%;
	max-width: 90px;
	transition: transform .25s ease;
}
.sw-cover:hover img {
	transform: scale(1.18);
}
.sw-cover .sw-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: .9rem .9rem 1.1rem;
	background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0));
}
.sw-cover .sw-title {
	display: block;
	font-family: "Roboto", sans-serif;
	color: #fff;
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.25;
}
.sw-cover .sw-sub {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: "Roboto", sans-serif;
	color: rgba(255, 255, 255, .75);
	font-size: .7rem;
	line-height: 1.3;
	margin-top: .2rem;
}
.sw-cover:hover {
	z-index: 10;
}
.sw-grid:hover .sw-cover:not(:hover) {
	filter: brightness(.55);
}

@media (prefers-reduced-motion: reduce) {
	.sw-grid {
		scroll-behavior: auto;
	}
}
@media (max-width: 700px) {
	.sw-nav {
		width: 34px;
		font-size: 1.3rem;
	}
}
