/* --- Nav Menu --- */
@media all and (max-width: 768px) {
	iframe, .mainContent img {
		max-width: 100%!important;
	}
	nav a {
		font-size: 1.2em;
		line-height: 2;
	}
}

/* -- Ribbon Image --- */
@media screen and (max-width: 810px) {
	.ribbon {
		position: relative;
	}
}
@media all and (max-width: 360px){
	.ribbon img {
		max-width: 100%;
	}
}


/* -- RESPONSIVE OBITS -- */

@media all and (max-width: 767px) {
	.obituary .obit-item .obit-aside,
	.obituary .obit-item .obit-content {
		width: 100%!important;
		float: none!important;
	}
	.obituary .obit-item .obit-content div:nth-child(1) {
		clear: both;
	}
	.obit-item .obit-aside img.obit-photo {
		width: 40%;
		float: left;
	}
	.obit-links {
		width: 56%;
		float: right;
		clear: none!important;
	}

	/* -- OBIT PAGE -- */
	.sitelink {
		display: block;
		line-height: 2.3;
	}
	.obit-listbox .obit-list .obit-item {
		text-align: center;
	}
	.obit a {
		display: block;
	}
	img.obit-photo, div.obit-photo {
		float: none;
		padding: 2em;
	}
	.obit-results-header .small, .obit-listbox-header small {
		display: block;
		color: black!important;
		line-height: 2;
	}
	.obit-searchbar {
		text-align: center;
	}
	.obit-searchbar .search-by-local {
		float: none!important;
	}
	.obit-searchbar .search-button {
		padding: 1em;
	}


	/* -- OBIT HOMEPAGE -- */
	.vertical-welcome-obits .obituary .obit-item .obit-aside,
	.vertical-welcome-obits .obituary .obit-item .obit-content {
		width: 100%!important;
		float: none!important;
	}
	.vertical-welcome-obits .obituary .obit-item .obit-content div:nth-child(1) {
		clear: both;
	}
	.vertical-welcome-obits .obit-item .obit-aside img.obit-photo {
		width: 40%;
		float: left;
	}
	.obit-links {
		width: 56%;
		float: right;
		clear: none!important;
	}

}
@media all and (max-width: 440px) {
	.obit-item .obit-aside img.obit-photo {
		width: 100%;
		float: none;
	}
	.obit-links {
		width: 100%;
		float: none;
		clear: both!important;
	}
}

/* -- RESPONSIVE LOCATIONS/STAFF/HISTORY/ADDITIONAL PAGES -- */

@media all and (min-width: 769px) {
	.who-we-are-tab-section .tab-pane h3 {
		display: table;
	}
	.who-we-are-tab-section .tab-pane h5 {
		display: table;
		padding-bottom: .5em;
	}
}

@media all and (max-width: 767px) {

	#mobile-subnav {
		font-size: 90%;
		padding: 0;
		font-weight: bold;
		margin-bottom: 1.5em;	
	}

	#mobile-subnav li.active a:before {
		content: " > ";
		font-weight: bold;
	}

	.tab-pane h5 { display: inline-block; }

	#map_canvas {
		height: 335px!important;
		width: 100%!important; 
	}

	.nav > li > a > img.location-tn {
		max-width: 100px;
		float: left;
		margin: 2px 10px 2px 0;
	}

	.who-we-are-tab-section ul li:last-child a, 
	.who-we-are-tab-section ul li:last-child.active a {
		border: solid 1px #d1c59e;
	}

	.who-we-are-tab-section:not(.tab-section) ul li a, 
	.who-we-are-tab-section:not(.tab-section) ul li.active a {
		padding: 5px 5px;
	}

	.who-we-are-tab-section { 
		border: none;
		background-color: transparent;
	}

	img.who-we-are-photo {
		float: none!important;
		margin-top: 10px;
		margin-left: 0;
		margin-right: 0;
	}

	.common-framed-container .content .content-item p {
		padding-top: 10px;
	}

	.content .pull-right, .content .pull-left {
		float: none!important;
	}

	.who-we-are-tab-section .tab-content,
	.who-we-are-tab-section.tab-section .tab-pane,
	.who-we-are-tab-section .location-info,
	.who-we-are-tab-section .locations-map {
		width: 100%;
		margin-bottom: 2em;
	}

	.who-we-are-tab-section.tab-section .tab-pane {
		padding: 1em;
	}

	.who-we-are-tab-section.tab-location a {
		display: flex;
		flex: 1; -ms-flex: 1;
		flex-direction: row;
		align-items: flex-start;
	}

	.who-we-are-tab-section.tab-section,
	.who-we-are-tab-section.tab-section .navbar-nav {
		margin: 0;
	}

	nav.who-we-are-tab-section.tab-section {
		margin-bottom: 15px;
		width: 100%;
	}

	.who-we-are-tab-section ul li {
		border: 1px solid #d1c59e;
		white-space: normal;
	}

	.who-we-are-tab-section ul li.active {
		border: none;
	}
}

/* --- RESPONSIVE STAFF PAGE --- */

#staff-accordion .btn-link:focus, .btn-link:hover {
	text-decoration: none!important;
	outline: none;
}

@media all and (max-width: 768px) {
	#staff-accordion .btn { padding: 0!important; }
	#staff-accordion .team-circle-mobile {
		float: left;
		margin-right: 1em;
		border-radius: 50%;
	}
}

/* -- RESPONSIVE CALLOUTS --- */

@media all and (max-width: 768px) {
	.callout a {
		display: block;
		text-align: center;		
	}
}

/* --- RESPONSIVE FOOTER --- */	

@media all and (max-width: 768px) {	
	footer {	
		text-align: center;	
		font-size: 1.2em;	
		line-height: 2;	
	}	
	footer nav < li {	
		display: inline-block;	
		padding-right: 20px;	
	}	
}

/* ---- SMALLER DEVICES --- */

@media all and (max-width: 768px) {

	.secondary-inline-nav {
		display: block;
		padding-bottom: 1em;
	}
}

@media all and (max-width: 420px) {

	h4.team-mobile {
		font-size: 1.4em;
		white-space: break-spaces;
	}
	h4.team-mobile br { display: none; }

	.secondary-inline-nav { margin-left: 0; }
	.secondary-inline-nav a {
		margin-left: 0;
		white-space: nowrap;
		line-height: 2;
		padding: 10px;
	}

	.common-layout { padding: 10px; }
	.common-layout .container-control { padding: 10px!important; }
	.common-framed-container { padding: 0!important; border: none; margin: 10px 5px; }
	.common-framed-container .content .content-item { padding: 10px!important; }
	.common-framed-container .content .content-item .col-md-6 { padding: 0!important; }
	.common-framed-container .content .content-item address.well p { padding: 0!important; margin: 10px 0!important; }
	.common-framed-container .content .content-item address.well img { width: 100%; margin: 0!important; }

	#carousel-location .carousel-inner img.location-photo { width: 46%!important; margin-bottom: 10px; }

	h1, h2 { padding-left: 10px; }
	.content-item > h5 { padding: 10px 15px 0; }
}

/* -- Global Responsive Conversion Container Fluid Control -- */

.container { min-width: 992px !important; }

@media all and (max-width: 992px) {	
	.container { min-width: 100%!important; }	
}

.container-control {	
	max-width: 1170px!important; 	
	margin-left: auto!important; 	
	margin-right: auto!important;	
}

.container-control {	
	padding-right: 15px!important;	
	padding-left: 15px!important;	
}

.common-layout .container-control {	
	background-color: #FFF!important;	
	padding-bottom: 20px!important;	
}

@media all and (max-width: 1170px) {	
	.container-control { max-width: 100%!important; }
}