/*
	Project List
===============================*/
#home-link {
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 30px;
}

#home-link:hover {
	color: #B61F24;
	text-decoration: underline;
	cursor: pointer;
}

#project-container {
	margin-top: 40px;
	margin-bottom: 40px;
}

.projects {
	width: 100%;
	padding-top: 100%;
	position: relative;
	margin-bottom: 35px;
}

.projects .project-thumb-cont {
	position: absolute;
	top:0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.project-thumb {
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: auto 100%;
	background-repeat: no-repeat;	
	transition: transform .5s;
}

a.project-link:hover .project-thumb {
	transform: scale(1.2);
}

.projects .project-info {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px 10px;
	background-color: #B61F24;
	color: #fff;
}

.projects .project-info h5,
.projects .project-info p {
	color: white;
	margin-bottom: 0;
}

.projects .project-info h5 {
	margin-bottom: .5rem;
}

a#home-link {
	color: #383838;
}

/*
	Project Detail
===============================*/

.banner-image {
	background-image: url('https://images.pexels.com/photos/544966/pexels-photo-544966.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	padding-top: 35%;
}

#project-title {
	padding: 20px 25px;
	background-color: #B61F24;
	color: red;
}

#project-title .section-header {
	color: #fff;
	font-size: 1.2rem;
	left: 50px;
	margin-bottom: 0;
}

#project-title .section-header::before {
	background-color: #fff;
	width: 20px;
	height: 20px;
	left: -40px;
	bottom: calc(50% - 10px);
}

#project-info {
	padding: 0 35px;
}

ul#project-services li {
	margin-left: -20px;
}

ul#project-services li a {
	color: #000;
}

#back-link {
	padding: 20px 25px;
	border: 1px solid #B61F24;
	color: #B61F24;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 50px;
}

#back-link:hover {
	color: white;
	background-color: #B61F24;
	cursor: pointer;
}

#back-link span::before,
#home-link span::before {
	font-family: 'Material Icons';
	content: '\e317';
	font-size: 1rem;
	margin-right: 15px;
}

#project-gallery-title {
	margin: 30px 0;
	font-size: 1.3rem;
	left: 40px;
	margin-bottom: 0;
}

#project-gallery-title::before {
	width: 20px;
	height: 20px;
	left: -40px;
	bottom: calc(50% - 10px);
}

.project-gallery {
	margin-top: 40px;
}

.project-gallery figcaption {
	display: none;
}

.project-gallery figure {
	width: calc(33.33% - 30px);
	padding-top: calc(33.33% - 30px);
	margin: 0 15px;
	position: relative;
	overflow: hidden;
	border: 0;
	margin-bottom: 2rem;
}

.project-gallery figure img {
	position: absolute;
	width: auto;
	height: 100%;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

/*
  Pagination
*/
ul.pagination {
  margin: -10px 0 30px 15px;
}

li.page-item {
  padding: 0 10px;
}

li.page-item:first-child {
  padding-left: 0;
}

li.page-item:last-child {
  padding-right: 0;
}

li.page-item a.page-link {
  color: #383838;
  border: 0;
}

li.page-item a.page-link:hover {
  background-color: #B61F24;
  color: white;
}

li.page-item.disabled span.page-link {
  border: 0 !important;
}

li.page-item.active .page-link {
  background-color: white;
  color: #B61F24;
  border: 0;
}

@media (max-width: 768px) {
	#project-info {
		padding: 0;
		margin-bottom: 40px;
	}
}

@media (max-width: 576px) {
	.project-gallery figure {
		width: calc(50% - 23px);
		padding-top: calc(50% - 23px);
		margin: 0 10px;
		margin-bottom: 20px;
	}

	.banner-image {
		padding-top: 100%;
	}
}

/* service */
.service-carousel .carousel-item {
	padding-top: 75% !important;
}

.service-carousel-cont {
	padding-left: 0 !important;
}

#service-info {
	margin-top: auto;
}

@media (max-width: 768px) {
	.service-carousel-cont {
		padding: 0 !important;
	}

	#service-info {
		padding: 0 !important;
		margin-top: 40px;
	}
}