/* all mobile screens (portrait and landscape) */
@media screen and (max-width: 767px) {
	div.grid-container {
		overflow-x:hidden;
		margin-left:auto;
		margin-right:auto;
		padding-left:10px;
		padding-right:10px;
	}
	/* move the wrapper down to make room for the menu button */
	div.wrapper {
		margin-top: 25px;
	}
	/* hide any blocks that shouldn't show on mobile */
	section.hide-on-mobile {
		display: none;
	}
	section.moduleMenu > div {
		position: inherit !important;
	}
	.wrapper nav[role=navigation] {
		display: none;
		left: 0 !important;
		margin: 0;
		overflow: hidden;
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		z-index: 10000;
	}
	.wrapper div#corec-show-menu {
		padding: .7em;
		position: fixed;
		top: 0;
		left: 0;
		background: gray;
		color: #fff;
		cursor: pointer;
		z-index: 100000;
	}
	.wrapper div#corec-show-menu.corec-menu-center {
		display: block;
		width: 97%;
		padding-right: 20px;
	}
	.wrapper div#corec-show-menu.corec-menu-left {
		display: inline-block !important;
	}
	.wrapper div#corec-show-menu.corec-menu-right {
		display: inline-block !important;
		width: auto;
		right: 0;
		left: auto;
	}

	.wrapper div.corec-menu-center + nav[role=navigation] {
		position: absolute !important;
		width: 100%;
	}
	.wrapper div.corec-menu-left + nav[role=navigation] {
		position: fixed !important;
		margin-left: -800px;
	}
	.wrapper div.corec-menu-right + nav[role=navigation] {
		position: fixed !important;
		margin-left: 800px;
	}
	.wrapper div.menu-icon-left {
		float: left;
		padding: 0 .2em 0 .2em;
	}
	.wrapper div.menu-icon-right {
		float: right;
		padding: 0 .2em 0 .2em;
	}
	.wrapper div.menu-text-left {
		float: left;
		padding: 0 .2em 0 .2em;
	}
	.wrapper div.menu-text-right {
		float: right;
		padding: 0 .2em 0 .2em;
	}
	.wrapper div.menu-logo-left {
		float: left;
		padding: 0 .2em 0 .2em;
	}
	.wrapper div.menu-logo-right {
		float: right;
		padding: 0 .2em 0 .2em;
	}
	.wrapper div.menu-center-items {
		text-align: center;
	}
	.wrapper div.menu-logo-center, .wrapper div.menu-text-center, .wrapper div.menu-icon-center {
		display: inline-block;
		padding: 0 .2em 0 .2em;
	}
	.wrapper div.menu-icon-center div {
		float: left;
	}
	.wrapper div.menu-logo-left img, .wrapper div.menu-logo-right img {
		float: left;
		width: auto;
	}
	.wrapper div#corec-show-menu img {
		max-height: 50px;
	}
	.wrapper div.menu-text-center .menu-text-word {
		display: inline-block;
	}

	.wrapper nav[role=navigation] ul.navLv1,
	.wrapper nav[role=navigation] ul.navLv2 {
		float: none;
		position: relative;
		margin: 0 !important;
		padding: 0 !important;
	}
	/** FOR VERTICAL MENUS **/
	.wrapper .grid-33 nav[role=navigation],
	.wrapper .grid-25 nav[role=navigation] {
		position: fixed !important;
	}
	.wrapper .grid-25 nav[role=navigation] ul.navLv1,
	.wrapper .grid-33 nav[role=navigation] ul.navLv1 {
		overflow-y: auto;
	}

	.wrapper nav[role=navigation] ul.navLv2,
	.wrapper .grid-33 nav[role=navigation] ul.navLv2,
	.wrapper .grid-25 nav[role=navigation] ul.navLv2 {
		width: 100%;
		display: none;
		margin: 0;
		position: relative;
		float: left;
	}

	.wrapper nav[role=navigation] > ul > li {
		float:none;
	}
	/* THIS IS DONE IN JAVASCRIPT NOW */
	.wrapper nav[role=navigation] ul li:hover ul.navLv2 {
		display: none;
	}
	.wrapper nav[role=navigation] ul.navLv1 > li:not(.corecMenuAddPage),
	.wrapper nav[role=navigation] ul.navLv1 > li:not(.corecMenuAddPage) > a,
	.wrapper nav[role=navigation] ul.navLv2 > li:not(.corecMenuAddPage),
	.wrapper nav[role=navigation] ul.navLv2 > li:not(.corecMenuAddPage) > a {
		float: none;
		display: block;
		padding: 0;
	}
	.wrapper nav[role=navigation] ul.navLv1 > li:not(.corecMenuAddPage),
	.wrapper nav[role=navigation] ul.navLv2 > li:not(.corecMenuAddPage) {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		clear: both;
	}
	.wrapper nav[role=navigation] ul.navLv1 > li.siteMenuItem:not(.corecMenuAddPage) > a,
	.wrapper nav[role=navigation] ul.navLv2 > li:not(.corecMenuAddPage) > a {
		width: auto;
		padding: 10px;
		text-align: left;
	}
	.wrapper nav[role=navigation] > ul > li > span {
		font-size: 12px !important;
		display: block;
		float :right;
		margin-right: 1em;
	}
	
	.wrapper nav[role=navigation] ul:not(.freezeMenu) li:hover ul.navLv2 {
		display: none;
	}

	.wrapper nav[role=navigation] ul li.siteMenuItem div.hide-on-desktop {
		display: none !important;
	}
	
	.wrapper div.menu-arrow-left {
		display: none;
		width: 0; 
		height: 0; 
		border-top: 17px solid transparent;
		border-bottom: 17px solid transparent; 
		border-right: 17px solid gray;
		float: left;
		margin-left: -17px;
	}
	.wrapper div.menu-arrow-top {
		width: 0; 
		height: 0; 
		border-left: 10px solid transparent;
		border-bottom: 10px solid gray; 
		border-right: 10px solid transparent;
		float: left;
		margin-top: -9px;
		margin-left: 25px;		
	}


	/** THE NAV SEARCH **/
	.wrapper nav[role="navigation"] .navLv1 > .siteMenuSearch:not(.corecMenuAddPage) > a {
		height: auto;
	}
	.wrapper nav[role="navigation"] .navLv1 > .siteMenuSearch:not(.corecMenuAddPage) > a i {
		display: none;
	}
	.wrapper nav[role="navigation"] .navLv1 .siteMenuSearch .menu-search-box,
	.wrapper nav[role="navigation"] .navLv1 .siteMenuSearch:hover .menu-search-box {
		opacity: 1;
		visibility: visible;
		float: none;
		display: block;
		width: auto;
		padding: 0;
		text-align: left;
		position: relative;
		margin: 0;
	}
	.wrapper nav[role="navigation"] .navLv1 .siteMenuSearch .menu-search-box form {
		width: 75%;
		margin: auto;
		float: none;
		display: block;
		padding: 0;
		background-color: transparent;
	}
	.wrapper nav[role="navigation"] .navLv1 .siteMenuSearch:hover .menu-search-box {
	}
	.wrapper nav[role="navigation"] .navLv1 .siteMenuSearch .menu-search-box input[type=text] {
		width: 70%;
		float: none;
		-webkit-appearance: none;
		border-radius: 0;
	}
	.wrapper nav[role="navigation"] .navLv1 .siteMenuSearch .menu-search-box input[type=submit] {
		width: 20%;
		-webkit-appearance: none;
		border-radius: 0;
	}

	/* image slider */
	.wrapper .cc-slides-container .cc-slide-nav-dots {
		display: none !important;
	}
	.wrapper .cc-slide + .cc-slide-nav label, .cc-slide + .cc-slide-nav label i {
		opacity: 0.5;
		font-size: 20px;
	}
	.wrapper .cc-slide-nav label {
		width: 30px;
	}
	.wrapper .cc-slides-container .cc-slide-container .cc-slide-caption {
		padding: .3em;
	}
	
	/* images in body areas */
	.wrapper .mobile-grid-100 span.dragItem.dragLeft,
	.wrapper .mobile-grid-100 span.dragItem.dragRight,
	.wrapper .mobile-grid-100 span.dragItem.dragMiddle  {
		display: block;
		clear: both;
		float: none;
		text-align: center;
		max-width: 100%;
	}
	.wrapper .mobile-grid-100 span.dragItem.dragLeft img,
	.wrapper .mobile-grid-100 span.dragItem.dragRight img,
	.wrapper .mobile-grid-100 span.dragItem.dragMiddle img  {
		max-width: 100%;
		height: auto !important;
	}
	/*
	.mobile-grid-100 span.dragItem.dragMiddle  {
		width: 100% !important;
	}
	.mobile-grid-100 span.dragItem.dragMiddle img  {
		width: 75% !important;
		height: auto !important;
	}
	*/
	span.dragRight {
		display: table !important;
		margin: 0 auto;
		clear: both;
		width: 100% !important;
		text-align: center;
		display: block;
	}
	span.dragLeft {
		display: table !important;
		margin: 0 auto;
		clear: both;
		width: 100% !important;
		text-align: center;
		display: block;
	}
	span.dragMiddle {
		display: table !important;
		margin: 0 auto;
		clear: both;
		width: 100% !important;
		text-align: center;
		display: block;
	}
		
	/* precontent/postcontent images */
	.precontentWrapper .mobile-grid-50 section:not(.moduleSpacer) img,
	.postcontentWrapper .mobile-grid-50 section:not(.moduleSpacer) img,
	.subaWrapper .mobile-grid-50 section:not(.moduleSpacer) img,
	.subbWrapper .mobile-grid-50 section:not(.moduleSpacer) img,
	.subcWrapper .mobile-grid-50 section:not(.moduleSpacer) img,
	.subdWrapper .mobile-grid-50 section:not(.moduleSpacer) img,
	.subeWrapper .mobile-grid-50 section:not(.moduleSpacer) img,
	.subfWrapper .mobile-grid-50 section:not(.moduleSpacer) img,
	.subgWrapper .mobile-grid-50 section:not(.moduleSpacer) img {
		width: 100% !important;
		height: auto !important;
	}
	
	/* force a clear row for mobile browsers*/
	.wrapper .mobile-clear-row {
		clear: both;
		display: block;
		overflow: hidden;
		visibility: hidden;
		width: 0;
		height: 0;
	}
	
	/* module images in 100% wide mobile areas are centered*/
	.mobile-grid-100 .moduleImage:not(.moduleImageFullWidth) > div,
	.mobile-grid-100 .moduleImage:not(.moduleImageFullWidth) > div > a > img,
	.mobile-grid-100 .moduleImage:not(.moduleImageFullWidth) > div > img {
		margin: auto;
		float: none !important;
		max-width: 100%;
		height: auto !important;
	}
	
	/* module spacers are max of 10px high */
	.mobile-grid-100 .moduleSpacer,
	.mobile-grid-50 .moduleSpacer,
	.mobile-grid-33 .moduleSpacer {
		max-height: 10px;
	}
	
	/* remove the full width background images */
	div.screen-width-bg {
		background-image: none !important;
	}
	
	/* TABLE Changes */
	.wrapper table {
		max-width: 100%;
	}
	.wrapper table td {
		display: block;
		width: 100% !important;
		max-width: 100%;
		margin: 0 auto;
	}
	.wrapper table td iframe {
		max-width: 100%;
	}

	/** for sub-navigation section-links module **/
	.corec-show-sub-navigation {
		display: block;
		background: gray;
		cursor: pointer;
		padding: 5px;
		text-align: center;
	}
	.sectionLinks nav {
		display: none;
		left: 0;
		margin: 0;
		overflow: hidden;
		z-index: 10000;
	}
	.sectionLinks nav ul {
		float: none;
		margin: 0;
		padding: 0;
		position: relative;
	}
	.sectionLinks nav ul li {
		margin: 0;
		clear: both;
		display: block !important;
		background-color: gray;
	}
	.sectionLinks nav ul li:hover a {
		color: light gray;
	} 
	.sectionLinks nav ul li a {
		display: block;
		width: auto;
		padding: 5px;
		text-align: left;
	}

	/** account for any iframes in code **/
	div iframe {
		max-width: 100%;
	}

	/** make the image size "contain" **/
	.background-slider li span {
		background-size: contain !important;
	}

	/** for lightbox and gallery **/

	body .corec-lightbox {
		height: 100%;
		margin-top: 10px !important;
	}
	.corec-lightbox #lightbox-container-image-box {
		max-width: 100%;
		height: 80% !important;
		min-height: 100px;
		background-color: transparent;
	}
	.corec-lightbox #lightbox-container-image-data {
		color: #fff;
	}
	.corec-lightbox #lightbox-container-image {
		padding: 1px;
		height: 100%;
	}
	.corec-lightbox #lightbox-container-image-box #lightbox-container-image #lightbox-image {
		width: auto;
		max-height: 97%;
		max-width: 100%;
		height: auto;
	}
	.corec-lightbox #lightbox-container-image-data-box {
		max-width: 95%;
		height: auto !important;
		padding: 0;
		background-color: transparent;
	}
	.corec-lightbox #lightbox-secNav-btnClose {
		background: none repeat scroll 0 0 black;
		margin-top: 0px;
		padding: 1px 4px 3px 4px;
		background: transparent;
		border: none;
		margin-left: -10px;
	}
	.corec-lightbox #lightbox-secNav-btnClose i {
		color: #fff;
		text-shadow: 0px 0px 3px #000;
		font-size: 2em;
	}
	.corec-lightbox #lightbox-nav-btnPrev i.fa {
		margin-left: 10px;
		font-size: 30px;
		margin-top: 40%;
	}
	.corec-lightbox #lightbox-nav-btnNext i.fa {
		margin-right: 10px;
		font-size: 30px;
		margin-top: 40%;
	}
	.corec-lightbox #lightbox-loading {
		margin-top: 100px;
	}
	.wrapper .galleryList #place-holder {
		display: none;
	}
	.wrapper .contentWrapper .galleryList li {
		display: inline-block;
		width: 48%;
		margin-right: 15px !important;
	}
	.wrapper .contentWrapper .galleryList li:nth-child(odd) {
		margin-right: 0 !important;
	}
	.wrapper .galleryList .galleryItemContainer.galleryItem {
		float: none;
		width: 100% !important;
		height:  180px !important;
	}
	.wrapper .galleryList .galleryItemContainer.galleryItem img {
		position: relative !important;
		float: left;
		width: 100% !important;
		height: auto !important;
		left: 0 !important;
	}
	.wrapper div ul.galleryList li > .galleryItemContainer a {
		border: 0;
	}

	/** hide gallery slider thumbnails **/
	.wrapper .gallery-filmstrip {
		display: none;
	}
	.wrapper .gallery-container .gallery-btn {
		opacity: 0.4 !important;
		width: 25px;
		font-size: 20px;
	}
	.wrapper .gallery-container div > img + span {
		bottom: 3px;
	}
	/* for slider images */
	.wrapper .gallery-container .gallery-btn i.fa {
		font-size: 2em;
	}
	.wrapper .gallery-container .gallery-show-image span p {
		font-size: 12px;
		padding: 0;
		margin: 5px 5px;
	}

	/** gallery list display **/
	.wrapper .galleryListPage li {
		width: 47% !important;
		height: auto !important;
	}
	.wrapper .galleryListPage li .galleryItemContainer {
		width: 100% !important;
		height: 140px !important;
	}
	.wrapper .galleryListPage li .galleryItemContainer img {
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		left: 0 !important;
	}
    .wrapper section:not(.moduleSearch) div form:not(.moduleContactFormSubmit) input[type="text"],
    .wrapper section:not(.moduleSearch) div form:not(.moduleContactFormSubmit) textarea {
        max-width: 98% !important;
		-webkit-appearance: none;
		border-radius: 0;
    }

    /** podcast player **/
    li .audiojs {
    	width: 100%;
    }
    li .audiojs .scrubber {
    	width: 40%;
    }

    /** Search Block **/
    .wrapper div .moduleSearch input[type="text"] {
    	width: 65%;
    	margin: 0;
		-webkit-appearance: none;
		border-radius: 0;
    }
    /** Search Block **/
    .wrapper div .moduleSearch input[type="submit"] {
    	width: 20%;
    	margin: 0;
		-webkit-appearance: none;
		border-radius: 0;
    }
}

/* iphone 6 and smaller portrait mode */
@media screen and (max-width: 414px) {
	/** for lightbox and gallery **/

	body .corec-lightbox {
		margin-top: 20px !important;
	}
	.corec-lightbox #lightbox-container-image-box {
		max-width: 100%;
		height: auto !important;
		min-height: 100px;
		width: 100% !important;
	}
	.corec-lightbox #lightbox-container-image-data {
		color: #fff;
	}
	.corec-lightbox #lightbox-container-image {
		padding: 1px;
		height: 100%;
	}
	.corec-lightbox #lightbox-container-image-box #lightbox-container-image #lightbox-image {
		width: 86%;
		max-height: 80%;
		max-width: 100%;
		height: auto;
	}
	.corec-lightbox #lightbox-container-image-data-box {
		max-width: 95%;
		height: auto !important;
		padding: 0;
		background-color: transparent;
		overflow-x: hidden;
	}
	.corec-lightbox #lightbox-secNav-btnClose {
		background: none repeat scroll 0 0 black;
		margin-left: -10%;
		margin-top: -20px;
		padding: 1px 4px 3px 4px;
		background: transparent;
		border: none;
		opacity: 0.7;
	}
	.corec-lightbox #lightbox-secNav-btnClose i {
		color: #fff;
		text-shadow: 0px 0px 3px #000;
		font-size: 20px;
	}
	.corec-lightbox #lightbox-nav-btnPrev i.fa {
		margin-left: 10px;
		font-size: 30px;
	}
	.corec-lightbox #lightbox-nav-btnNext i.fa {
		margin-right: 10px;
		font-size: 30px;
	}
	.corec-lightbox #lightbox-container-image-data #lightbox-image-details {
		padding-left: 5%;
	}
	.wrapper .contentWrapper ul.galleryList li {
		display: block;
		width: 100%;
	}
	.wrapper .galleryList div.galleryItemContainer.galleryItem {
		width: 100% !important;
		height: auto !important;
		float: none;
	}
	.wrapper .galleryList div.galleryItemContainer.galleryItem img {
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		float: left;
	}
	.wrapper div ul.galleryList li > div.galleryItemContainer a {
		border: 0;
	}
	/* for slider images */
	.wrapper .gallery-container .gallery-btn i.fa {
		font-size: 2em;
	}
	.wrapper table td {
		width: 100% !important;
	}

	/** gallery list display **/
	.wrapper .galleryListPage li {
		width: 100% !important;
	}
	.wrapper .galleryListPage li .galleryItemContainer {
		height: auto !important;
	}
    
    /** FORM INFO **/
    .wrapper .left-col-label {
        display: block;
        min-height: 0;
        font-size: 1.1em;
    }
    .wrapper .field-detail input[type="submit"] {
        margin: auto;
        display: block;
        font-size: 1.4em;
        padding: 10px 30px;
		-webkit-appearance: none;
		border-radius: 0;
    }
    .wrapper .field-detail {
        width: auto;
        display: block;
    }
}

/** TABLET PORTRAIT MODE **/
@media only screen and (orientation: portrait) and (min-device-width: 768px) and (max-device-width: 1024px) {
	.wrapper nav[role=navigation] ul.navLv1 > li:not(.corecMenuAddPage) ul {
		display: none;
	}
	.wrapper nav[role=navigation] ul.navLv1 > li:not(.corecMenuAddPage):hover ul {
		display: block;
	}
    .wrapper article td {
        display: inline-block;
    }
    .wrapper section nav[role=navigation] ul.navLv1 > li:not(.corecMenuAddPage) > a {
        font-size: .75em;
    }
    .wrapper .moduleImage img {
        max-width: 100%;
        height: auto !important;
    }
    .wrapper  span.dragItem.dragLeft img, .wrapper span.dragItem.dragRight img, .wrapper span.dragItem.dragMiddle img {
        height: auto !important;
    }
	.wrapper .field-detail input[type="submit"], .wrapper form:not(.moduleContactFormSubmit) input[type="submit"] {
        -webkit-appearance: none;
        border-radius: 0;
	}
	.wrapper .field-detail input[type="submit"], .wrapper form:not(.moduleContactFormSubmit) input[type="submit"] {
        -webkit-appearance: none;
        border-radius: 0;
	}
}

/** TABLET LANDSCAPE MODE **/
@media only screen and (orientation: landscape) and (min-device-width: 768px) and (max-device-height: 1024px) {
	.wrapper nav[role=navigation] ul.navLv1 > li:not(.corecMenuAddPage) ul {
		display: none;
	}
	.wrapper nav[role=navigation] ul.navLv1 > li:not(.corecMenuAddPage):hover ul {
		display: block;
	}
    .wrapper  span.dragItem.dragLeft img, .wrapper span.dragItem.dragRight img, .wrapper span.dragItem.dragMiddle img {
        height: auto !important;
    }
    .wrapper .moduleImage img {
        max-width: 100%;
        height: auto !important;
    }
	.wrapper .field-detail input[type="submit"], .wrapper form:not(.moduleContactFormSubmit) input[type="submit"] {
        -webkit-appearance: none;
        border-radius: 0;
	}
	.wrapper section:not(.moduleSearch) form:not(.moduleContactFormSubmit) input[type="text"], .wrapper section:not(.moduleSearch) form:not(.moduleContactFormSubmit) textarea {
        -webkit-appearance: none;
        border-radius: 0;
 	}
}