/* project tiles */
.g-project-tile {
	margin: 15px 0;
	min-height: 390px;
	padding-top: 10px;
	text-align: center;
}

.g-project-tile--img {
	display: block;
	min-height: 400px;
	position: relative;
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-ms-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}

.g-project-tile--img img {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.g-project-tile:hover .g-project-tile--img {
	margin-top: -10px;
	margin-bottom: 10px;
}

.g-project-tile--title a {
	color: #5e5e60;
	font-size: 1.2em;
	font-weight: 400;
	text-align: center;
	display: block;
}

.g-project-tile--title a:hover {
	text-decoration: none;
}

/* Services Tiles */
.g-service-tile {
	margin-top: 30px;
	margin-bottom: 70px;
	min-height: 350px;
}
.g-service-tile a {
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-ms-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}
.g-service-tile--image a {
	display: block;
	max-width: 120px;
}

.g-service-tile:hover .g-service-tile--image a {
	margin-top: -10px;
	margin-bottom: 10px;
}

.g-service-tile--title h4 a {
	margin: 16px 0 13px;
	color: #444a4f;
}

.g-service-tile--title h4 a:hover {
	color: #e6413c;
	text-decoration: none;
}

/* Image pop up */
.img-popup {
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-ms-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}

.img-popup:hover {
	margin-top: -10px;
	margin-bottom: 10px;
}

/* Action Buttons */
.sidebar-contact > a.contact-dog > span,
.action-btn {
	width: 64px;
	height: 64px;
	display: inline-block;
	background-color: #fff;
	margin: 2px;
	border-radius: 50%;
	border: 2px solid #e4e4e4;
	position: relative;
	-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);
}

.sidebar-contact:hover > a.contact-dog > span,
.action-btn:hover {
	background-color: #444a4f;
	border-color: #fff;
	-webkit-box-shadow: 0 3px 3px 0 rgba(0,0,0,0.14), 0 1px 7px 0 rgba(0,0,0,0.12), 0 3px 1px -1px rgba(0,0,0,0.2);
	box-shadow: 0 3px 3px 0 rgba(0,0,0,0.14), 0 1px 7px 0 rgba(0,0,0,0.12), 0 3px 1px -1px rgba(0,0,0,0.2);
}

.sidebar-contact > a.contact-dog > span:before,
.sidebar-contact > a.contact-dog > span:after,
.action-btn,
.action-btn.btn-close:before,
.action-btn.btn-close:after,
.action-btn.btn-prev:before,
.action-btn.btn-prev:after,
.action-btn.btn-next:before,
.action-btn.btn-next:after {
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-ms-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}

.sidebar-contact > a.contact-dog > span:before,
.sidebar-contact > a.contact-dog > span:after,
.action-btn.btn-close:before,
.action-btn.btn-close:after,
.action-btn.btn-prev:before,
.action-btn.btn-prev:after,
.action-btn.btn-next:before,
.action-btn.btn-next:after {
	content: " ";
	position: absolute;
	left: 50%;
	background: #444a4f;
	height: 3px;
}

.sidebar-contact:hover > a.contact-dog > span:before,
.sidebar-contact:hover > a.contact-dog > span:after,
.action-btn.btn-close:hover::before,
.action-btn.btn-close:hover::after,
.action-btn.btn-prev:hover::before,
.action-btn.btn-prev:hover::after,
.action-btn.btn-next:hover::before,
.action-btn.btn-next:hover::after {
	background: #fff;
}

.sidebar-contact > a.contact-dog > span:before,
.sidebar-contact > a.contact-dog > span:after,
.action-btn.btn-prev:before,
.action-btn.btn-prev:after,
.action-btn.btn-next:before,
.action-btn.btn-next:after {
	width: 15px;
}

.action-btn.btn-close:before,
.action-btn.btn-close:after {
	top: 50%;
	width: 30px;
}

.sidebar-contact > a.contact-dog > span:before,
.sidebar-contact:hover > a.contact-dog > span::before,
.action-btn.btn-prev:after,
.action-btn.btn-next:before,
.action-btn.btn-prev:hover::after,
.action-btn.btn-next:hover::before {
	top: 41%;
}

.sidebar-contact > a.contact-dog > span:after,
.sidebar-contact:hover > a.contact-dog > span::after,
.action-btn.btn-next:after,
.action-btn.btn-prev:before,
.action-btn.btn-next:hover::after,
.action-btn.btn-prev:hover::before {
	top: 59%;
}

.sidebar-contact > a.contact-dog > span:after,
.action-btn.btn-close:before,
.action-btn.btn-next:after,
.action-btn.btn-prev:after {
	-moz-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
	-webkit-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
	-o-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
	-ms-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
	transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

.sidebar-contact > a.contact-dog > span:before,
.action-btn.btn-close:after,
.action-btn.btn-next:before,
.action-btn.btn-prev:before {
	-moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	-o-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.sidebar-contact:hover > a.contact-dog > span::after,
.action-btn.btn-close:hover::before,
.action-btn.btn-next:hover::after,
.action-btn.btn-prev:hover::after {
	-moz-transform: translateX(-50%) translateY(-50%) rotate(-225deg);
	-webkit-transform: translateX(-50%) translateY(-50%) rotate(-225deg);
	-o-transform: translateX(-50%) translateY(-50%) rotate(-225deg);
	-ms-transform: translateX(-50%) translateY(-50%) rotate(-225deg);
	transform: translateX(-50%) translateY(-50%) rotate(-225deg);
}

.sidebar-contact:hover > a.contact-dog > span::before,
.action-btn.btn-close:hover::after,
.action-btn.btn-next:hover::before,
.action-btn.btn-prev:hover::before {
	-moz-transform: translateX(-50%) translateY(-50%) rotate(225deg);
	-webkit-transform: translateX(-50%) translateY(-50%) rotate(225deg);
	-o-transform: translateX(-50%) translateY(-50%) rotate(225deg);
	-ms-transform: translateX(-50%) translateY(-50%) rotate(225deg);
	transform: translateX(-50%) translateY(-50%) rotate(225deg);
}

/* Contact Dog */
.sidebar-contact > a {
	display: inline-block;
	width: 202px;
	float: left;
	height: 177px;
	max-width: 100%;
	position: relative;
	font-weight: 400;
	color: #444a4f;
	font-size: 22px;
	font-size: 1.5em;
	line-height: 1.2;
}

.sidebar-contact > a:hover {
	text-decoration: none;
}

.sidebar-contact:hover > a {
	text-decoration: none;
	color: #571531;
}

a.contact-dog {
	background-image: url(../img/dog_contact-sprite.png);
	background-repeat: no-repeat;
	background-position: 0 0;
	background-size: 100%;
}

a.contact-dog:before {
	content: " ";
	position: absolute;
	top: 0;
	left: 0;
	width: 202px;
	height: 177px;
	background-image: url(../img/dog_contact-sprite.png);
	background-repeat: no-repeat;
	background-position: 0 -179px;
	background-size: 100%;
	z-index: 1;
	overflow: hidden;
	opacity: 0;
	-webkit-transition: opacity 0.5s;
	-moz-transition: opacity 0.5s;
	-o-transition: opacity 0.5s;
	transition: opacity 0.5s;
}

.sidebar-contact:hover a.contact-dog::before {
	opacity: 1;
}

a.contact-text {
	padding-top: 44px;
}

.sidebar-contact > a.contact-dog > span {
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 2;
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
	.g-project-tile {
		min-height: initial;
		margin: 5px 0 15px;
		padding-top: 0;
	}
	.g-project-tile--img {
		min-height: 210px;
	}
}

@media only screen and (max-width: 400px) {
	.g-project-tile { min-height: 280px }
	.g-project-tile--img { min-height: 210px }
}
