#featured
{
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 10px;
	margin: 10px 0;
}

#featured a
{
	position: relative;
	/* Transform so that fixed elements are fixed to this container. Used for category layout */
	transform: rotate(360deg);
}

#featured a::after
{
	content: "";
	display: block;
	padding-top: 67%;
}

#featured a img
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top right;
}


#featured .details
{
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	color: #fff;
	padding: 10px;
	background: rgba(0,0,0,.5);
}

#featured .details::before
{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0));
}

#featured .details > span
{
	position: relative;
}

#featured .details > span:first-child
{
	padding-right: 15px;
}

#featured .title
{
	display: block;
	font-size: 1.2em;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	margin-bottom: 5px;
}

#featured .category
{
	position: fixed;
	top: 10px;
	left: 10px;
	padding: 5px 10px;
	background: #000;
}

.home article > .ad
{
	margin-bottom: 10px;
}

@media (min-width: 620px)
{
	#featured
	{
		grid-template-columns: 1fr 1fr;
	}
	#featured .title
	{
		font-size: 1.5em;
	}
}

@media (min-width: 920px)
{
	#featured
	{
		grid-template-columns: auto 300px;
		grid-template-areas: "main sub1" "main sub2" "main sub3";
	}

	#featured a:first-child
	{
		grid-area: main;
	}

	#featured .details > span:first-child
	{
		padding-right: 0;
	}

	#featured a:not(:first-child) .more
	{
		display: none;
	}

	#featured a:first-child .details
	{
		display: flex;
		justify-content: space-between;
		align-items: flex-end;
	}

	#featured a .title
	{
		font-size: 1em;
	}

	#featured a:first-child .title
	{
		font-size: 2em;
	}
}
