h2 {
	text-align: left;
}
#companies {
	margin-top:20px;
	text-align: center;
}
#company-image {
	display: block;
	margin: 10px auto;
	max-width: 100%;
}
#company-details {
	background-color: #ECEDE6;
	background-repeat: no-repeat;
	background-position: 0px 0px;
	background-size: contain;
	padding: 10px 10px 10px 50px;
	margin-top: 10px;
	td {
		padding: 1px 5px;
		margin: 10px;
	}
}
.callout {
	text-align: center;
	margin: 10px;
	button {
		font-weight: bold;
		text-transform: uppercase;
	}
}
.company-title {
	display: block;
	font-size: 20px;
	font-size: max(12px, min(40px, 1.176rem));
	padding: 5px 0px;
	line-height: 26px;
	line-height: max(12px, min(46px, 1.529rem));
}
#company-category-page {
	padding-left: 20px;
	padding-right: 20px;
	> p {
		line-height: 25px;
		line-height: max(12px, min(45px, 1.471rem));
	}
}
/* search */
#company-search-form {
	background-color: #ECEDE6;
	padding: 10px;
	margin: 10px 0px;
	ul#id_letter {
		list-style-type: none;
		padding-left: 0px;
		li {
			display: inline;
			padding: 0px 3px;
		}
	}
}
input[type="checkbox"] {
    display: initial;
}
/* end search */
/* categories */
.company-category-thumbnail {
	max-width: 210px;
	width: 100%;
	height: 260px;
	display: inline-block;
	text-align: center;
	margin: 5px 5px;
	img {
		width: 100%;
		height: 100%;
		display: inline-block;
	}
	div {
		position: absolute;
		bottom: 0px;
		left: 0px;
		width: 100%;
		height: 40px;
		background-color: rgba(255,255,255,.8);
		color: black;
		line-height:15px;
		padding: 5px;
		&:nth-child(3) {
			opacity: 1;
			color: black;
		}
	}
	&:hover div {
		background-color: rgba(22,101,53,.8);
	}
}

/* company category gallery thumbnails */
.company-category-gallery-thumbnail {
	display: inline-block;
	vertical-align: top;
	max-width: 200px;
	width: 100%;
	height: 260px;
	text-align: center;
	margin: 0px;
	text-decoration: none;
	word-wrap: break-word;
	div:nth-of-type(1) {
		padding: 0px;
		height: 160px;
		> img {
			height: 100%;
			max-width: 100%;
			width: 100%;
		}
	}
	div:nth-of-type(2) {
		padding-top: 10px;
		> span {
			color: black;
			text-decoration: none;
			font-size: 17px;
			font-size: max(12px, min(37px, 1rem));
			line-height: 26px;
			line-height: max(12px, min(46px, 1.529rem));
		}
	}
}
/* end company category gallery thumbnails */

/* end categories */

/* companies */
	#featured-company-thumbnail {
		width: 100%;
		padding: 20px;
		text-decoration: none;
		color: black;
		border: 1px solid gray;
		display: block;
		> a {
			display: block;
			width: 100%;
			height: 400px;
			text-align: center;
			> img {
				height: 100%;
				max-width: 100%;
				max-height: 100%;
				display: inline-block;
			}
		}
	}
	.company-thumbnail,
	.no-company-thumbnail {
		padding: 20px;
		text-decoration: none;
		color: black;
		border: 1px solid gray;
		margin: 5px 5px;
		vertical-align: top;
		overflow: hidden;
		font-size: 16px;
		font-size: max(12px, min(36px, 0.941rem));
		line-height: 1.3em;
		line-height: max(12px, min(36px, 1.3em));
		height: 500px;
	}
	.company-thumbnail {
		> a {
			display: block;
			width: 100%;
			height: 250px;
			> img {
				max-width: 100%;
				max-height: 100%;
				height: auto;
				display: inline-block;
			}
		}
		> div {
			width: 100%;
		}
	}
	.company-thumbnail-with-image {
		/*width: 100%;*/
		height: auto;
		max-width: 435px;
		display: inline-block;
		text-align: center;
	}
	.flexslider a.company-category-thumbnail {
		position: relative;
		margin: 0px;
	}
	@media (min-width: 500px) and (max-width: 729px) {
		#companies-5across .col-sm-6{
			width: 50%;!important
		}
		.no-company-thumbnail{
			height: 250px;
			width: 435px;
		}
	}
	@media (min-width: 730px) and (max-width: 990px) {
		#companies-5across .col-sm-6{
			width: 33.3%;!important;
		}
		.company-thumbnail {
			width: 48%;
			height: 400px;
		}
		.no-company-thumbnail{
			height: 250px;
			width: 48%;
		}
	}
	@media (min-width: 991px) and (max-width: 1200px) {
		.company-thumbnail {
			width: 48%;
			height: 500px;
		}
		.no-company-thumbnail{
			height: 250px;
			width: 48%;
		}
	}
	@media (min-width: 1201px) and (max-width: 1329px)  {
		.company-thumbnail {
			width: 48%;
			/*max-width: 30%;!important;*/
			height: 450px;
		}
		.no-company-thumbnail{
			height: 250px;
			width: 48%;
		}
	}
	@media (min-width: 1330px) {
		#companies-5across .col-xl-3{
			width: 20%;!important;
		}
		.company-thumbnail {
			height: 500px;
			width: 30%;!important;
		}
		.no-company-thumbnail{
			height: 250px;
			width: 30%;!important;
		}
	}
/* end companies */
/* gallery */
	#company-gallery.carousel.slide {
		display: inline-block;
		width:100%;
		height:440px;
		text-align:center;
	}
	#company-gallery .carousel-inner, #company-gallery .item, #company-gallery .item a, #company-gallery {
		margin: 0 auto;
		max-height: 100%;
		max-width: 100%;
		height: 100%;
	}
	.item img {
		margin: 0 auto;
		max-height: 100%;
		max-width: 100%;
		height: 100%;
		object-fit: contain;
	}
	.carousel-thumbnails img {
		width: 100px;
		height: 100px;
		display: inline-block;
		margin: 10px 5px;
		cursor: pointer;
		object-fit: cover;
	}
/* end gallery */
/* contact form */
	#contact-form td {
		padding: 10px;
	}
	#id_newsletters li, #id_categories li {
		list-style-type: none;
	}
	select#id_floorplans {
		width: 100%;
	}
/* contact form */
	.horizontal-line {
		font-family: "Roboto";
		overflow: hidden;
		border-bottom: none;
	}
	h2 {
		overflow: hidden;
	}
	.horizontal-line:after {
		content:"";
		display: inline-block;
		height: 0.5em;
		vertical-align: bottom;
		width: 100%;
		margin-right: -100%;
		margin-left: 10px;
		border-top: 2px solid;
	}