#tm-main.map-main {
	margin-top: 20px;
	margin-bottom: 20px;
}

#tm-main.map-main div.project-wrapper {
	margin-bottom: 0;
	padding-bottom: 0;
}
#map-container {
	width: 100%;
	position: relative;
	clear: both;
}

.scaling-svg-container {
	position: relative; 
	height:0; 
	width: 100%; 
	padding: 0;
	padding-bottom: 100%; 
	/* over-ride this inline for aspect ratio other than square */
}
.scaling-svg {
	position: absolute; 
	height: 100%; 
	width: 100%; 
	left: 0; 
	top:0;
}

#map-container #map-controls {
	position: absolute;
	left: 7px;
	top: 7px;
	background: #f4f4f4;
	padding: 9px 11px 10px 11px;
}

#map-container #map-controls a#plus {
	background: url(/wp-content/themes/ripta_theme/assets/images/dtc-images/sprite_zoom_icons.png) no-repeat 0 0;
	display: block;
	height: 31px;
	width: 31px;
	cursor: pointer;
}

#map-container #map-controls a#plus:hover {
	background-position: 0px -31px;
}


#map-container #map-controls a#minus {
	background: url(/wp-content/themes/ripta_theme/assets/images/dtc-images/sprite_zoom_icons.png) no-repeat -31px 0px;
	display: block;
	height: 31px;
	width: 31px;
	margin-top: 10px;
	cursor: pointer;
}

#map-container #map-controls a#minus:hover {
	background-position: -31px -31px;
}

.station-hover {
	fill: #777777 !important;
	cursor: pointer;
}

.station-selected {
	fill: #777777 !important;
}

/*-------------------STATION DETAIL / OVERLAY -----------------*/

.overlay {
	/*overflow-x: hidden;
	overflow-y: auto;*/
	max-width: 636px;
	position: absolute;
	visibility: hidden;
	left: 0;
	outline: 0 none;	
	top: 0;
	z-index: 20;
	padding: 1em;
	margin: 1em;
	border: 1px solid #cccccc;
}

.overlay-background {
	background: none repeat scroll 0 0 #ffffff;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	opacity: 1;
	height: 780px;
}

.overlay-container {
	margin: 0px auto;
	position: relative;
}

.overlay .overlay-close {
	background: url(/wp-content/themes/ripta_theme/assets/images/dtc-images/close_icon.png) no-repeat 0px 0px transparent;
	border: 0;
	height: 36px;
	overflow: hidden;
	position: absolute;
	right: 10px;
	z-index: 11;
	text-indent: 200%;
	top: 10px;
	width: 34px;
	cursor: pointer;
}
.overlay .overlay-close:hover {
	background-position: 0px -36px;
}

.overlay-scale {
	opacity: 0;
	transform: scale(0.9);
	transition: transform 0.2s ease 0s, opacity 0.2s ease 0s, visibility 0s ease 0.2s;
}

.overlay-scale.open {
	opacity: 1;
	transform: scale(1);
	transition: transform 0.4s ease 0s, opacity 0.4s ease 0s;
	visibility: visible;
}

.overlay-spinner-container {
	display: none;
	position: fixed;
	z-index: 999;
	height: 2em;
	width: 2em;
	margin: auto;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

.overlay-spinner {
	-webkit-animation: load8 1.1s infinite linear;
	animation: load8 1.1s infinite linear;
	border-color: #aab2b9 #aab2b9 #aab2b9 #283139;
	border-style: solid;
	border-width: 2px;
	margin: 0 auto;
	position: relative;
}

.overlay-spinner, .overlay-spinner::after {
	border-radius: 50%;
	height: 36px;
	width: 36px;
}

.overlay .name {
	font-weight: bold;
}

.overlay .description {
	padding-top: 1em;
}

.overlay .media {
	padding-top: 1em;
	margin: 0 auto;
}
.overlay .media .slides {
	text-align: center;
}

.overlay .media .slides img {
	width: 100%;
	/*display: block;*/
	max-width: 636px;
}


@media screen and (max-width: 500px) {
	.overlay {
		overflow: auto;
	}
	.overlay-background {
		height: 830px;
	}
}