.image-scrolling-content {
    overflow-x: hidden; /* Hide scrollbar */
    white-space: nowrap;
}

.image-scrolling-content .scroll-wrapper {
    display: flex;
    align-items: center;
    overflow-x: hidden;
    height: 114px;
    gap: 8px;
    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 112px;
	padding: 8px;
	border-radius: 10px;
	background-color: var(--gc-color-surface-subtle);
	box-sizing: border-box;
}

.image-scrolling-content .scroll-wrapper .set-text-link {
	flex: 0 0 190px;
	color: #064184;
	min-width: 190px;
	text-decoration: none;
}

.image-scrolling-content .scroll-wrapper .set-text-link figure[is-text] {
	background: #fff;
	border: 1px solid #e5ebf0;
	border-radius: 12px;
	box-shadow: var(--gc-shadow);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 72px;
	margin: 0;
	overflow: hidden;
	padding: 10px 12px;
	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.25;
	max-width: 100%;
	text-align: center;
	white-space: normal;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-series,
.image-scrolling-content .scroll-wrapper .set-text-link .set-title {
	display: block;
	font-size: 13px;
	font-weight: normal;
	width: 100%;
}

.image-scrolling-content .scroll-wrapper .set-text-link .set-series {
	color: #777;
}

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

.image-scrolling-content .scroll-wrapper .set-text-link .set-name.is-single .set-series {
	color: #064184;
	font-size: 13px;
	font-weight: normal;
}

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

.image-scrolling-content .scroll-wrapper .set-text-link:hover figure[is-text],
.image-scrolling-content .scroll-wrapper .set-text-link:focus figure[is-text] {
	border-color: #bfd3e2;
	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: 0.62;
}

.image-scrolling-content .scroll-wrapper .image-link figure[is-selected] {
	background: var(--gc-color-primary-soft);
	border-color: var(--gc-color-border-strong);
	box-shadow: var(--gc-shadow);
}

.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 .image-link figure .release-date {
	align-items: center;
	background-color: transparent;
	box-sizing: border-box;
	color: #064184;
	display: flex;
	font-size: 11px;
	gap: 6px;
	justify-content: center;
	line-height: normal;
	padding: 0;
	position: static;
	width: 100%;
	white-space: nowrap;
}

.image-scrolling-content .scroll-wrapper .image-link figure .release-date time {
	color: inherit;
	font-style: normal;
}
