.cGalleryAlbums_recent {
	margin: 0;
	padding: 0;
	padding-inline-start: 208px;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 4px;
	height: 204px;
	position: relative;
	overflow: hidden;
}

.cGalleryAlbums_recent > li {
	height: 100px;
	position: relative;
}

	.cGalleryAlbums_recent .ipsImageBlock{
		height: 100%;
	}
	
		.cGalleryAlbums_recent .ipsImageBlock__footer{
			justify-self: end;
			padding: .5em;
		}

		.cGalleryAlbums_recent .ipsImageBlock__footer::before{
			display: none;
		}

	.cGalleryAlbums_recent > li:first-child {
		width: 204px;
		height: 204px;
		overflow: hidden;
		position: absolute;
		inset-inline-start: 0;
	}

/* Restyle the above for the sidebar */
.ipsWidget_vertical .cGalleryAlbums_recent{
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	height: auto;
}

	.ipsWidget_vertical .cGalleryAlbums_recent > li:first-child,
	.ipsWidget_vertical .cGalleryAlbums_recent > li:first-child a,
	.ipsWidget_vertical .cGalleryAlbums_recent > li,
	.ipsWidget_vertical .cGalleryAlbums_recent > li a{
		width: auto;
		height: auto;
		position: static;
	}

	.ipsWidget_vertical .cGalleryAlbums_recent > li{
		flex: 0 0 calc(33.3% - 4px);
		max-width: 120px; /* Used if a widget stretches to 100% of the viewport one it wraps */
	}

		/* Since results are unlimited, display a maximum of 12 using css */
		.ipsWidget_vertical .cGalleryAlbums_recent > li:nth-child(12) ~ li{
			display: none;
		}


	.ipsWidget_vertical .cGalleryAlbums_recent > li a::before{
		content: '';
		display: block;
		padding-top: 100%;
	}

/* General style which creates the square thumb container */
.cGalleryTrimmedImage {
	background-color: #333;
	background-size: cover;
	background-position: 50%;
	background-repeat: no-repeat;
	overflow: hidden;
	border: .5px solid #333;
}

	.cGalleryTrimmedImage img {
		display: none;
	}

.cGalleryThumb {
	max-width: 170px;
	max-height: 170px;
}

.cGalleryAlbumThumb {
	width: 280px;
	height: 235px;
}

@media screen and (max-width: 767px) {
	.ipsApp .cGalleryAlbums_recent {
		margin-bottom: 3px;
	}

	.cGalleryAlbums_recent {
		height: 134px;
		padding-inline-start: 138px;
		grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
	}

	.cGalleryAlbums_recent > li:first-child {
		width: 134px;
		height: 134px;
	}

	.cGalleryAlbums_recent > li {
		height: 65px;
	}

	.cGalleryAlbums_recent + ul.ipsList_inline {
		padding-inline-start: 4px;
	}
}