// Portfolio wrapper
.img-wrapper {
	position: relative;
	border-radius: $border-radius;
	overflow: hidden;
	margin-bottom: 30px;
	display: block;
	display: block;
	img {
		position: relative;
		width: 100%;
		z-index: 8;
	}

	.overlay {
		background: rgba($primary,.7);
		position: absolute;
		left: 0;
		bottom: 100%;
		width: 100%;
		height: 100%;
		z-index: 9;
		visibility: hidden;
		opacity: 0;
		@include custom-transition(all,.4);

		.overlay-infos {
			position: absolute;
			top: 0%;
			left: 50%;
			transform: translate(-50%,-50%);
			@include custom-transition(all,.3);
			transition-delay: .2s;
			color: $white;

			h5 {
				margin-bottom: 15px;
			}

			a {
				display: inline-block;
				@include circle(35);
				border: 2px solid $white;
				line-height: 35px;
				text-align: center;
				color: $white;
				text-decoration: none;

				&:hover {
					background: $white;
					color: $primary;
				}
			}
		}
	}

	&:hover,
	&:active {

		.overlay {
			bottom: 0;
			visibility: visible;
			opacity: 1;

			.overlay-infos {
				top: 50%;
			}
		}
	}
}


// cards
.card {
	box-shadow: 2px 3px 10px rgba($gray-400,.3);

	.post-details {
		@include d-flex;
		justify-content: space-between;
		max-width: 250px;
		margin-bottom: 15px;

		a {
			opacity: .6;
			color: #444;
			font-size: 15px;

			i {
				padding-right: 5px;
			}
		}
	}
}


// Custom cards
.custom-card {
	border-radius: $border-radius;
	@include custom-transition(all,.3);

	.card-body {
		padding: 55px 0;

		i {
			display: block;
			font-size: 40px;
			margin-bottom: 18px;
			color: $primary;			
		}

	}

	&:hover,
	&:active {
		background: $primary;
		color: $white;

		i {
			color: $white;
		}
	}
}

// Testmonial cards
.testmonial-card {
	background: $white;
	box-shadow: 2px 3px 10px rgba($gray-400,.3);
	border-radius: $border-radius;
	max-width: 700px;
	margin: 10px auto;
	padding: 20px 15px;

	img {
		@include circle(80);
		box-shadow: 2px 3px 10px rgba($gray-400,.3);
		margin-bottom: 30px;
	}

	.title {
		margin-top: 30px;
		font-size: 20px;
	}
}
