/* Mobile */

.popular-post-tabs {
	display: grid;
	min-height: 400px;
	place-items: center;
}

.popular-post-tabs h2 {
	font-size: 40px;
	margin: 0 auto 50px;
}

.popular-post-tabs .titles {
	text-align: center;
}

.popular-post-tabs .titles li {
	margin: 20px;
	font-size: 20px;
	font-weight: bold;
}

.popular-posts {
    display: block;
    width: 100%;
	/height: 650px;
    overflow: visible;
    margin: 0 auto;
    position: relative;
}

.popular-posts ul {
    top: 0;
    left: -2em;
    list-style: none;
}

 .popular-posts ul li {
    text-align: center;
    width: 180px;
    font-size: .8em;
    text-align: center;
    margin-top: 0.7em;
    list-style-type: none;
}

.tab-item {
    margin-top: 20px;
}

.tab-item section {
	background: #fff;
	display: inline-block;
	padding: 10px 30px 40px;
	margin: -140px 20px 0 50px;
	width: 80%;
}

.popular-posts p.excerpt {
	font-size: 16px;
}

.popular-posts .read-more {
    text-align: center;
    width: 110px;
}

/* Desktop */
@media only screen and (min-width: 959px) {
	.popular-posts {
		height: 480px;
		overflow: hidden;
	}
	.popular-post-tabs {
		grid-template-columns: 1fr 1.5fr;
	}
	.popular-post-tabs .titles a.highlight {
		position: relative;
	}

	.popular-post-tabs .titles a.highlight::after {
		 content:'';
		 display: block;
		 width: 120px;
		 border-bottom: 2px solid #000;
		 height: 3px;
		 position: absolute;
		 right: -140px;
		 top: 12px;
		 z-index: 1;
	} 
	.tab-item section {
		background: #fff;
		display: inline-block;
		margin-left: -46px;
		padding: 10px 30px 40px;
		margin-top: 60px;
		width: 260px;
	}
	
	.popular-posts #tab-1:focus,
	.popular-posts #tab-2:focus,
	.popular-posts #tab-3:focus,
	.popular-posts #tab-4:focus {
		outline: none;
	}

	.popular-posts .read-more {
		display: inline;
	}

	.popular-posts #tab-1,
	.popular-posts #tab-2,
	.popular-posts #tab-3,
	.popular-posts #tab-4 {
		padding-top: 40px;
	}

	.popular-posts #tab-4 {
		margin-top: 40px;
	    margin-bottom: 40px;
	    overflow: visible;    
	}

	.popular-posts div:not(:target), .popular-posts div:target ~ div#tab-4 {
		z-index: 2;
	}

	 .popular-posts div#tab-4 {
	    z-index: 1;
	}	
}


