.image-scrolling-content {
	overflow: hidden;
	border-radius: 0 0 20px 20px;
    white-space: nowrap;
}

.image-scrolling-content .scroll-wrapper {
    display: flex;
    align-items: center;
    overflow-x: hidden;
    height: 114px;
    gap: 8px;
	margin-bottom: 4px;
    padding: 0 10px;
    box-sizing: border-box;
}

.image-scrolling-content .scroll-wrapper .image-link {
    display: inline-block;
}

.image-scrolling-content .scroll-wrapper .image-link[is-text] {
	flex: 0 0 auto;
	min-width: max-content;
	padding: 8px;
	border-radius: 10px;
	background-color: var(--gc-color-surface-subtle);
	box-sizing: border-box;
}

.image-scrolling-content .scroll-wrapper .set-text-link {
	display: flex;
	position: relative;
	flex: 0 0 auto;
	flex-direction: column;
	color: #064184;
	min-width: 220px;
	overflow: hidden;
	border: 1px solid #e5ebf0;
	border-radius: 12px;
	background: linear-gradient(145deg, #fff 0%, var(--gc-color-surface-subtle) 100%);
	box-shadow: var(--gc-shadow);
	box-sizing: border-box;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.image-scrolling-content .scroll-wrapper .set-scroll-item {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 220px;
	min-height: 100px;
}

.image-scrolling-content .scroll-wrapper .set-text-link figure[is-text] {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 72px;
	min-width: 220px;
	margin: 0;
	overflow: hidden;
	padding: 10px 14px;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-name {
	display: block;
	font: inherit;
	line-height: 1.2;
	max-width: 100%;
	min-width: 0;
	text-align: left;
	white-space: nowrap;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-label {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-icon {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-series,
.image-scrolling-content .scroll-wrapper .set-text-link .set-title {
	display: block;
	white-space: nowrap;
	width: 100%;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-series {
	margin-bottom: 3px;
	color: var(--gc-color-text-muted);
	letter-spacing: .01em;
	text-transform: none;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-title {
	color: #064184;
	letter-spacing: -.01em;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-name.is-single .set-series {
	color: #064184;
	letter-spacing: -.01em;
	text-transform: none;
}

.image-scrolling-content .scroll-wrapper .set-text-link:hover {
	transform: none;
}

.image-scrolling-content .scroll-wrapper .set-text-link:hover,
.image-scrolling-content .scroll-wrapper .set-text-link:focus {
	border-color: #bfd3e2;
	background: #f5f9fc;
	box-shadow: var(--gc-shadow);
}

.image-scrolling-content .scroll-wrapper .set-text-link:focus {
	outline: none;
}

.image-scrolling-content .scroll-wrapper .set-text-link:focus-visible figure[is-text] {
	outline: 2px solid #2b78b9;
	outline-offset: 3px;
}

.image-scrolling-content .scroll-wrapper .image-link:first-child {
    margin-left: 0;
}

.image-scrolling-content .scroll-wrapper .image-link:last-child {
    margin-right: 0;
}


/* Revert to full color and opacity on hover for not-selected images */
.image-scrolling-content .scroll-wrapper .image-link:hover figure[not-selected] {
    filter: none; /* Remove grayscale filter */
    opacity: 1; /* Restore full opacity */
}

.image-scrolling-content .scroll-wrapper .image-link:not(.set-text-link):not([is-text]):hover {
    transform: scale(1.05);
}

.image-scrolling-content .scroll-wrapper .image-link figure {
	margin: 0 10px;
	text-align: center;
	cursor: pointer;
    position: relative; /* Ensure the figure can contain absolutely positioned elements */
}

.image-scrolling-content .scroll-wrapper .image-link figure[has-release-date] {
	top: 0;
	justify-content: space-between;
	padding-bottom: 9px;
}

/* Apply grayscale and reduce opacity for not-selected images */
.image-scrolling-content .scroll-wrapper .image-link figure[not-selected] {
    filter: none;
	opacity: 1;
}

.image-scrolling-content .scroll-wrapper .image-link figure[is-selected] {
	background: transparent;
	box-shadow: none;
}

.image-scrolling-content .scroll-wrapper .set-text-link:has(figure[is-selected]) {
	border-color: #e5ebf0;
	background: #f5f9fc;
	box-shadow: var(--gc-shadow);
}

.image-scrolling-content .scroll-wrapper .set-text-link:has(figure[is-selected])::after {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2b78b9;
	box-shadow: 0 0 0 3px rgba(43, 120, 185, .1);
	content: "";
}

.image-scrolling-content .scroll-wrapper .set-text-link:has(figure[is-selected]) .set-series {
	color: #60788d;
}

.image-scrolling-content .scroll-wrapper .set-text-link:has(figure[is-selected]) .set-title,
.image-scrolling-content .scroll-wrapper .set-text-link:has(figure[is-selected]) .set-name.is-single .set-series {
	color: #064184;
}

.image-scrolling-content .scroll-wrapper .set-text-link:has(figure[is-selected]) > .release-date {
	border-top-color: rgba(43, 120, 185, .14);
	opacity: 1;
}

.image-scrolling-content .scroll-wrapper .set-text-link:has(figure[is-selected]) > .release-date span::before {
	background-color: #5d86a8;
}

.image-scrolling-content .scroll-wrapper .set-text-link:has(figure[is-selected]) > .release-date time {
	color: #3f6687;
}

.image-scrolling-content .scroll-wrapper .image-link figure[without-caption] {
	display: flex;
	flex-direction: row;
	align-items: center;
	min-width: 210px;
	max-width: 210px;
}

.image-scrolling-content .scroll-wrapper .image-link figure[without-caption] .icon {
	margin-right: 6px;
}

.image-scrolling-content .scroll-wrapper .image-link figure[without-caption] .scroll-image  {
	max-height: 100px;
	max-width: 180px;
}

.image-scrolling-content .scroll-wrapper .image-link figure[with-caption] {
	display: flex;
	flex-direction: row;
	align-items: center;
	border : 1px solid grey;
	border-radius: 10px;
	padding: 4px 10px; /* 4px to avoid having border hover search sub icons (cards views)*/
	min-width: 300px;
	max-width: 300px;
}

.image-scrolling-content .scroll-wrapper .image-link figure[with-caption] .icon {
	margin-right: 6px;
}

.image-scrolling-content .scroll-wrapper .image-link figure[with-caption] figcaption {
	text-align: left;
	margin-left: 4px;
}

.image-scrolling-content .scroll-wrapper .image-link figure[with-caption] .scroll-image  {
	max-height: 50px;
	max-width: 100px;
}

.image-scrolling-content .scroll-wrapper .image-link figure .scroll-image {
    padding: 0;
    display: block;
    transition: opacity 0.3s ease, filter 0.3s ease; /* Ensure smooth transition for filter */
}

.image-scrolling-content .scroll-wrapper .image-link figure .scroll-image:after {
	content: attr(alt);
	display: block;
	color: black; /* Or any color you prefer */
}
.image-scrolling-content .scroll-wrapper .image-link figure .icon {
	max-width: 30px;
	max-height: 20px;
}

.image-scrolling-content .scroll-wrapper .set-text-link > .release-date {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	gap: 6px;
	justify-content: flex-start;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 14px;
	padding: 6px 0 7px;
	border-top: 1px solid rgba(43, 120, 185, .13);
	position: static;
	text-transform: none;
	width: auto;
	white-space: nowrap;
}

.image-scrolling-content .scroll-wrapper .set-text-link > .release-date span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #64798c;
}

.image-scrolling-content .scroll-wrapper .set-text-link > .release-date span::before {
	display: inline-block;
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	background-color: #2b78b9;
	content: "";
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.image-scrolling-content .scroll-wrapper .set-text-link > .release-date time {
	color: #064184;
	font-size: 90%;
	font-style: normal;
	letter-spacing: 0;
	text-transform: none;
}

.image-scrolling-content .scroll-wrapper .set-text-link > .release-date.is-standard {
	border-top-color: rgba(43, 120, 185, .09);
	opacity: .58;
}

.image-scrolling-content .scroll-wrapper .set-text-link > .release-date.is-standard time {
	color: var(--gc-color-text-muted);
}

.image-scrolling-content .scroll-wrapper .set-text-link > .release-date.is-standard span::before {
	width: 12px;
	height: 12px;
	background-color: var(--gc-color-text-muted);
}
