/* Modals and overlay */
.overlay {
	background-color: rgba(0,0,0,0.9);
	display: none;
		width: 100%;
		height: 100%;
	position: fixed;
		top: 0;
		left: 0;
		z-index: 1005;
}
.modal {
	background-color: #fff;
	color: #000;
	display: block;
	padding: 1rem;
	position: fixed;
		z-index: 1006;
}
.modal h1 {
	font-weight: 700;
	margin-bottom: 1em;
}
.modal p {
	margin-bottom: 1em;
}
.modal ul {
	list-style-type: square;
	margin: 0 0 1em 2em;
}
.modalX {
	color: #000;
	display: block;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1em;
	position: absolute;
		top: .5rem;
		right: .75rem;
}
.modal a {
	text-decoration: none;
}
.modal a:hover, .modal a:active {
	color: #192475;
	text-decoration: underline;
}
.modalX:hover {
	color: #192475;
	cursor: pointer;
}

/* Vehicle list */
#carList {
	font-size: 13px;
	margin: auto;
	margin-bottom: .5rem;
	margin-top: 3rem;
	position: relative;
}
#carList ul, #carList li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#clHeader {
	background-color: #333;
	border: 1px solid #333;
	color: #fff;
	display: block;
		width: 100%;	
	font-weight: 700;
	padding: 0;
	text-align: left;
}
#carList header ul li, #carList .table .row ul li {
	display: inline-block;
		vertical-align: top;
	padding: .75rem;
}

#carList .table {
	border: 1px solid #999;
	border-top-width: none;
	display: block;
		width: 100%;
		max-height: 540px;
	overflow-x: hidden;
	overflow-y: scroll;
}
#carList .table .row:nth-child(even) {
	background-color: rgba( 255,255,255,0.2 );
}
#carList .photos {
	width: calc( 25% - 2rem );
}
#carList .photos img {
	width: 100%;
	height: auto;
}
#carList .year {
	width: calc( 25% - 2rem );
}
#carList .make {
	width: calc( 25% - 2rem );
}
#carList .model {
	width: calc( 25% - 2rem );
}
/*
#carList .mileage {
	text-align: right;
	width: 55px;
}
#carList .details {
	width: 150px;
}
#carList .table .row ul li.details ul, #carList .table .row ul li.details ul li {
	list-style: none;
	padding: 0;
}
#carList .table .row ul li.details ul li {
	display: list-item;
	margin-left: 1em;
	padding: 0;
}
#carList .table .row ul li.details ul li::first-letter {
	margin-left: -1em;
}
#carList .stock {
	width: 50px;
}
#carList .title {
	width: 50px;
}
#carList .price {
	text-align: right;
	width: 50px;
} */
#car-ct {
	position: absolute;
	top: 0;
	right: 0;
}


.p-link:hover, .modalX:hover {
	cursor: pointer;
}


#clBox {
	background-color: transparent;
	color: #fff;
	display: block;
		width: 100%; /* Fallback for Safari */
		width: calc( 100% - 2rem );
		height: 100%;  /* Fallback for Safari */
		height: calc( 100% - 2rem );
	padding: 1rem;
	position: absolute;
}
#clTitle {
	font-size: 1em;
}
#clPhotos, #photos {
	width: 800px;
	max-width: 80%;
	height: auto;
	margin: auto;
}
#clPhotos img, #photos img {
	width: 100%;
	height: auto;
}
#clDetails {
	padding-top: 1em;
	text-align: center;
}

.modalX {
	color: #ccc;
}
.modalX:hover {
	color: #fff;
}

/* Slideshow overrides */
#photos {
	position: relative;
}
.slidesjs-navigation {
	position: absolute;
		bottom: 10px;
		z-index: 200;
}
.slidesjs-previous {
	left: 10px;
}
.slidesjs-next {
	left: 30px;
}
.slidesjs-play, .slidesjs-stop {
	left: 50px;
}
ul.slidesjs-pagination {
	list-style-type: none;
	position: absolute;
		bottom: 0px;
		right: 10px;
		z-index: 200;
}

/* YouTube videos */
#vidLink {
	font-size: 2em;
	text-align: center;
}
#vidLink:hover {
	color: #999;
	cursor: pointer;
}
#videoBox {
	display: block;
		width: 800px;
		max-width: 80%;
	margin: auto;
}
#videoBox iframe {
	width: 100%;
	height: 100%;
}

@media screen and (max-width: 999px) {
	#clInstructions {
		width: 90%;  /* Fallback for Safari */
		width: calc( 100% - 150px );
	}
	#clHeader {
		display: none;
	}
	#carList .table {
		border-top-width: 1px;
	}
	#carList .table .row {
		padding-bottom: 1em;
		position: relative;
	}
	#carList .table .row ul li {
		display: block;
		line-height: 1.2em;
		margin-left: 120px;
		padding: 0 1em;
	}
	#carList .photos {
		margin-left: 0;
		position: absolute;
			left: -120px;
			top: 1em;
	}
	#carList .year, #carList .make, #carList.model, #carList .mileage, #carList .details, #carList .stock, #carList .title, #carList .price {
		width: auto;
	}
	#carList .table .row ul li.year, #carList .table .row ul li.make, #carList .table .row ul li.model {
		display: inline-block;
		font-weight: 700;
		padding: 0;
		margin: .8em .3em 0 0;
	}
	#carList .table .row ul li.year {
		margin-left: 120px;  /* Fallback for Safari */
		margin-left: calc( 120px + 1em );
	}
	#carList .mileage {
		text-align: left;
	}
	#carList .mileage:before {
		content: "Mileage: ";
	}
	#carList .details {
		display: block;
		
	}
	#carList .table .row ul li.details ul, #carList .table .row ul li.details ul li {
	}
	#carList .table .row ul li.details ul li {
	}
	#carList .table .row ul li.details ul li::first-letter {
	}
	#carList .stock:before {
		content: "Stock #: ";
	}
	#carList .title:before {
		content: "Title: ";
	}
	#carList .price {
		font-weight: 700;
		position: absolute;
			left: -90px;
			top: 90px;
		text-align: center;
	}
}
@media screen and (max-width: 499px) {
	#clInstructions {
		width: auto;
	}
	#car-ct {
		top: -1.9rem;
	}
	#carList .table .row ul li {
		margin-left: 0;
	}
	#carList .table .row ul li.photos {
		width: auto;
		margin: auto;
		padding-top: 1em;
		position: relative;
			left: auto;
			top: auto;
	}
	#carList .table .row ul li.year {
		margin-left: 1em;
	}
	#carList .price {
		position: absolute;
			left: auto;
			right: 10px;
			top: auto;
			bottom: 1em;
		text-align: right;
	}
}