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

.image-scrolling-content .scroll-wrapper {
    display: flex;
    align-items: center;
    overflow-x: hidden; /* Ensure scrollbar is not visible */
    height: 140px;
}

.image-scrolling-content .scroll-wrapper .image-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.image-scrolling-content .scroll-wrapper .image-link[is-text] {
	background-color: #f0f2f5;
	padding: 10px;
	border-radius: 10px;
}

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

.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: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: -10px;
}

/* Apply grayscale and reduce opacity for not-selected images */
.image-scrolling-content .scroll-wrapper .image-link figure[not-selected] {
    filter: grayscale(100%); /* Convert image to grayscale */
    opacity: 0.6; /* Reduce opacity to enhance the effect */
}

.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 {
    position: absolute; /* Position the text over the image */
    bottom: -18px; /* Distance from the bottom of the figure */
    left: 58%; /* Center horizontally */
    transform: translateX(-50%); /* Precise horizontal centering */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: white; /* White text color */
    padding: 5px 10px; /* Padding around the text */
    border-radius: 20px; /* Rounded corners for the background */
    font-size: 0.9em; /* Adjust font size as needed */
    box-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Subtle shadow for depth */
}