/* Post card (layout D) visuals - shared by home, category/tag/date/search archives and the author page */

.gridlove-post {
	background-color: #0f0f2b;

	/* Smooth scaling (chrome) */
	backface-visibility: hidden;
	will-change: transform;
	transition: transform .2s ease, box-shadow .2s ease;
}

.gridlove-post:hover {
	transform: scale(1.04);
	box-shadow: 0 7px 9px 0 rgba(0, 0, 0, .15) !important;
}

.gridlove-post-d .entry-image {
	width: 100%;
	height: inherit;
}

.gridlove-post-d .entry-image a {
	display: block;
	width: 100%;
	height: inherit;
}

.gridlove-post-d .entry-image a::after {
  content: '';
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;

  background: rgba(0, 0, 0, 0.4) !important;

  will-change: background;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.gridlove-post-d .entry-image img {
	overflow: hidden;
	text-indent: -9999px;
}

.gridlove-post-d:hover .entry-image a::after {
  background: transparent !important;
}

.gridlove-post .gridlove-cat,
.gridlove-cover-single .gridlove-cat {
	background: rgba(255, 255, 255, 0);
	border: 1px solid #fff;
}

.gridlove-post .gridlove-cat {
	opacity: .5;
}

.gridlove-post:hover .gridlove-cat {
	opacity: 1 !important;
}

.gridlove-cat:hover {
	background: #fff !important;
	color: #111 !important;
}

@media screen and (max-width: 480px) {

	.gridlove-post {
		transition: unset;
	}

	.gridlove-post:hover {
		transform: scale(1);
		box-shadow: 0px 2px 6px rgb(0, 0, 0, .16);
	}

}
