/*------------------ 
 RESPONSIVE STYLES
------------------*/

@media only screen and ( min-width: 1023px ) and ( max-width: 1335px ) {

  #wrapper,
  #twitter-feed-inner,
  .twitterBody {
    width: 988px;
  }
  
  #main,
  #container,
  #branding,
  #access .menu {
    width: 928px;
  }
  
  #header-search-panel .widget {
    width: 970px;
  }
  #header-search-panel #s {
    width: 925px;
  }
  
  body.home #widgets-middle.wrapper-1col {
    width: 620px;
    float: none;
  }
  
  body.home #widgets-bottom.wrapper-2col {
    width: 310px;
  }
  body.home #widgets-bottom.wrapper-2col .full-width .widget {
    width: auto;
  }
  
  body.home #text-5 {
    float: right;
  }
  
  body.home .widget_rss .rss-aggregator {
    height: 140px;
  }
  
  /* MAP WIDGET PAGES */
  
  #content .custom-location-widgets {
    width: auto;
    margin-right: 0;
  }
  
  #content .custom-location-widgets .summary-info {
    float: left;
    padding-left: 10px;
    border-left: 1px solid #eda397;
    padding-top: 0;
    border-top: 0;
    margin-top: 0;
  }
  
  #content .custom-location-widgets .summary-info:first-child {
    padding-left: 0;
    border-left: 0;
  }
  
  #content .custom-location-widgets.three-cols .summary-info {
    width: 188px;
  }
  #content .custom-location-widgets.four-cols .summary-info {
    width: 153px;
  }

  body.page-id-701 #content .widgets .widget {
    width: 277px;
    min-height: 400px;
  }
  /*
  #content #map-wrapper {
    width: 100%;
    float: none;
    margin-left: 0;
  }
  */
  
  body.page-template-onecolumn-page-php #content .widget #map-wrapper {
  	float: right;
  	margin-left: 20px;
  	width: 650px;
  }
  
  body.single-extreme-energies #content #map-wrapper {
    width: 100%;
  }
  
  body.custom-homepage-template #content #map-wrapper {
  	width: 500px;
  }
  
  body.custom-post-layout #content .entry-title {
    width: 400px;
  }
  body.custom-post-layout #content .quick-post-title {
    width: auto;
  }
  
  #content #tribe-bar-collapse-toggle {
  	background: transparent !important;
  }
  #content #tribe-bar-views .tribe-bar-views-list {
    left: 1px;
  }
  
  body.page-id-1242 #tertiary {
		width: 928px;
	}
	
	#content .resource-wrapper .rightcol {
		width: 218px;
	}
	
	#header #twitter-feed  {
    margin-top: -10px;
    width: 370px;
  }
  
  /* GALLERIA */
  
  .galleria.fullwidth.twelve,
  .galleria.fullwidth.folio,
  .galleria.fullwidth.classic {
    width: 610px;
  }
  .galleria.fullwidth.twelve {
    height: 458px;
  }
  .galleria.fullwidth.classic {
    height: 431px;
  }
  
  .galleria.fullwidth.twelve .galleria-theme-twelve .galleria-info-text {
    width: 600px;
  }
  .galleria.large {
	  margin: 0 0 20px 0;
	  float: none;
	}
	.galleria.folio .galleria-image {
	  width: 193px;
	}
	body.single-quick-post .entry-content {
	  margin-bottom: 50px;
	}
	body.single-quick-post .hentry .social4i {
	  right: auto;
	  top: auto;
	  left: 0;
	  bottom: -45px;
	}
	
	#content .table-wrapper {
	  clear: both;
	}
	
	#content #planning_table tr th, 
  #content #planning_table tr td, 	
  #content #permits_table tr th,
  #content #permits_table tr td,
  /*
  #content #incidents_table tr th, 
  #content #incidents_table tr td */ {
  	padding: 5px 4px 8px;
  	text-align: center;
  }
  
  #content table tr th.th-open, 
  #content table tr td.td-open,
  #content table tr th.th-active, 
  #content table tr td.td-active {
    display: none;
  }
  
  body.single-region #content #planning_table tr th, 
  body.single-region #content #permits_table tr th,
  body.single-region #content #planning_table tr td, 
  body.single-region #content #permits_table tr td {
    padding-left: 0;
    padding-right: 0;
  }
  
  #content #planning_table tr th, 
  #content #permits_table tr th /*,
  #content #incidents_table tr th */ {
  	padding-bottom: 22px;
  }
  
	.tablesorter .header,
	.tablesorter .tablesorter-header,
	.tablesorter .headerSortUp,
	.tablesorter .tablesorter-headerSortUp,
	.tablesorter .tablesorter-headerAsc,
	.tablesorter .headerSortDown,
	.tablesorter .tablesorter-headerSortDown,
	.tablesorter .tablesorter-headerDesc {
		background-position: center bottom;
	}
	body.custom-homepage-template .tablesorter .header,
	body.custom-homepage-template .tablesorter .tablesorter-header,
	body.custom-homepage-template .tablesorter .headerSortUp,
	body.custom-homepage-template .tablesorter .tablesorter-headerSortUp,
	body.custom-homepage-template .tablesorter .tablesorter-headerAsc,
	body.custom-homepage-template .tablesorter .headerSortDown,
	body.custom-homepage-template .tablesorter .tablesorter-headerSortDown,
	body.custom-homepage-template .tablesorter .tablesorter-headerDesc,
	
	body.post-type-archive-incident .tablesorter .header,
	body.post-type-archive-incident .tablesorter .tablesorter-header,
	body.post-type-archive-incident .tablesorter .headerSortUp,
	body.post-type-archive-incident .tablesorter .tablesorter-headerSortUp,
	body.post-type-archive-incident .tablesorter .tablesorter-headerAsc,
	body.post-type-archive-incident .tablesorter .headerSortDown,
	body.post-type-archive-incident .tablesorter .tablesorter-headerSortDown,
	body.post-type-archive-incident .tablesorter .tablesorter-headerDesc {
		background-position: right 6px;
	}
	
	body.custom-post-layout #content #map-wrapper,
	body.custom-post-layout #content .event-image {
	  width: 390px !important;
	}
	body.custom-post-layout #content #featured {
	  width: 240px;
	}
	/*
	body.single-region #container,
	body.single-region #content {
	  width: 370px;
	}
	
	body.single-region .custom-location-widgets {
	  margin-right: 20px;
	}
	
	body.single-region #content #featured {
	  width: 100%;
	}
	
	body.single-region #content #map-wrapper {
	  width: 370px !important;
	}
	
	body.single-region #content .table-open {
	  width: 928px;
	  margin-left: -280px;
	}
	*/
	body.single-region #content table tr th.th-open,
	body.single-region #content table tr td.td-open {
		display: none;
	} 
	
	#content .planning-links {
	  margin-left: 0;
	}
  
  #content p.point-left,
  #content p.point-right,
  #content p.point-down {
    width: 225px;
  }
  
  #footer-widget-area .widget-area {
    width: 215px;
  }
  
  #content .entry-content img,
  #content .entry-content .wp-caption {
    max-width: 610px !important;
  }
  #content .entry-content img {
    height: auto;
  }
  #cboxLoadedContent #content .entry-content img {
    max-width: 100% !important;
  }
  #content .tribe-events-single ul.tribe-related-events .tribe-related-events-thumbnail img {
    height: 140px;
  }
  body.page-template-onecolumn-page-php #content .entry-content img, 
  body.page-template-onecolumn-page-php #content .entry-content .wp-caption {
    max-width: 100% !important;
  }
  
  #content .entry-content #region_map {
    height: 695px;
  }
  
  body.page-template-nosidebarpage #content .galleria.large {
    /*
    width: 450px;
    height: 338px;
    */
    width: 350px;
    height: 263px;
    margin-left: 20px;
    float: right;
  }

  
  #content .left-2col {
    width: 906px;
  }
  
  body.single-region #gallery-wrapper,
  body.single-region #gallery.widget,
  body.single-region #gallery li.gallery-li,
  body.single-region #gallery img.gallery-img,
  body.single-region #gallery a.gallery-link {
    width: 390px;
    height: 208px;
  }
  
  .listing-item,
  .listing-item:nth-child(odd) {
    float: none;
    width: auto;
    margin-right: 0;
    clear: both;
  }
  
  .display-posts-listing img {
    float: right;
    margin: 0 0 40px 15px;
  }
  
  body.page #content .entry-content .display-posts-listing .excerpt {
    float: none;
    width: auto;
  }
  
  body.home #region-map {
    padding-bottom: 8px;
  }
  
  body.custom-homepage-template #active-sites-widget li:last-child {
    display: none;
  }
  
  #content .sm-buttons img {
    width: 185px;
  }
  
  #incidents_table th.field,
  #incidents_table td.field {
    display: none;
  }
  
  body.single-project .custom-location-widgets {
    width: 286px;
  }

  body.custom-homepage-template.single-project #gallery-wrapper,
  body.custom-homepage-template.single-project #gallery.widget,
  body.custom-homepage-template.single-project #gallery li.gallery-li,
  body.custom-homepage-template.single-project #gallery img.gallery-img,
  body.custom-homepage-template.single-project #gallery a.gallery-link {
    width: 306px;
    height: 163px;
  }
  
  #content .res-list {
    width: 438px;
  }
  
  #calendar .fc-row.fc-widget-header {
    border: 0 !important;
    margin: 0 !important;
  }
  #calendar .fc-scroller.fc-day-grid-container {
    overflow: visible !important;
    height: auto !important;
  }
}

@media only screen and ( max-width: 1022px ) {
  body.custom-post-layout #event-summary.custom-location-widgets {
    width: auto;
    float: none;
    clear: both;
    margin-bottom: 20px;
  }

  #content #event-summary.custom-location-widgets.four-cols .summary-info {
    width: auto;
  }

  #content #event-summary.custom-location-widgets .summary-info h3 {
    line-height: 1.2em;
    margin-bottom: 10px;
  }

  #content #event-summary.custom-location-widgets .summary-info ul {
    list-style: none;
    margin: 0;
  }

  #content #event-summary.custom-location-widgets .summary-info li {
    float: left;
    margin: 0 20px 5px 0;
  }

  #content #event-summary.img-container p {
    margin: 0;
  }

  #content #event-summary.custom-location-widgets .summary-info .more {
    clear: both;
    font-size: 13px;
    margin-bottom: 0;
  }
}

@media only screen and ( min-width: 705px ) and ( max-width: 1022px ) {
  
  #wrapper,
  #twitter-feed-inner,
  .twitterBody {
    width: 675px;
  }
  
  #main,
  #container,
  #branding {
    width: 610px;
  }
  
  #access {
    top: 85px;
  }
  
  #access,
  #access .menu-header {
    width: 630px;
  }
  
  #site-description {
    margin-top: 8px;
  }
  #site-description img {
    width: 375px;
  }
  
  #header-search-panel .widget {
    width: 652px;
  }
  #header-search-panel #s {
    width: 608px;
  }
  
  #footer {
    width: 652px;
  }
  
  #content {
    margin: 0;
  }
  
  #container,
  body.home #container {
    margin-right: 0;
  }
  
  body.home #widgets-middle.wrapper-1col {
    width: 610px;
    margin-right: 0;
  }


  body.home #widgets-middle.wrapper-1col #sticky-posts-2,
  body.home #widgets-middle.wrapper-1col #featured_resources,
  body.home #widgets-middle.wrapper-1col #text-5 {
    float: none;
    overflow: hidden;
  }
  body.home #widgets-middle.wrapper-1col #region-map {
    margin-right: 0;
    float: right;
  }
  body.home #widgets-middle.wrapper-1col #text-5 {
    width: 100%;
    -moz-box-sizing: border-box;
	  -webkit-box-sizing: border-box;
	  box-sizing: border-box;
  }
  
  body.home #widgets-middle.wrapper-1col #query-posts-8 {
    width: 588px;
  }
  body.home #widgets-middle.wrapper-1col #query-posts-8 li {
    float: left;
    margin-right: 20px;
  }

  body.home #widgets-bottom.wrapper-2col .full-width .widget {
    width: 588px;
    margin-right: 0;
  }
  
  #primary,
  #tertiary {
    float: left;
    margin-right: 10px;
    width: 292px;
  }
  
  #secondary,
  #quarterly {
    float: none;
  }
  
  #primary .widget-container,
  #tertiary .widget-container {
    width: 270px;
  }
  
  #tertiary {
    clear: left;
  }
  
  #header {
    min-height: 120px;
  }
  
  #header #twitter-feed {
    margin-top: 5px;
    width: 100%;
  }

  #site-description {
    margin-top: 6px;
    clear: left;
  }

  
  #site-description p {
    /*
    background-image: url(../images/subtitle-anodyne-red-narrow.png);
    */
    background-size: 330px auto;
    width: 330px;
    height: 22px;
  }
  
  #access .menu-header li, div.menu li {
    margin-right: 0;
  }
  
  /* MAP WIDGET PAGES */
  
  #content .custom-location-widgets {
    width: auto;
    margin-right: 0;
  }
  
  #content .custom-location-widgets .summary-info {
    float: left;
    padding-left: 10px;
    border-left: 1px solid #eda397;
    padding-top: 0;
    border-top: 0;
    margin-top: 0;
  }
  
  #content .custom-location-widgets .summary-info:first-child {
    padding-left: 0;
    border-left: 0;
  }
  
  #content .custom-location-widgets.three-cols .summary-info {
    width: 188px;
  }
  #content .custom-location-widgets.four-cols .summary-info {
    width: 138px;
  }
  /*
  #content #map-wrapper {
    width: 100%;
    float: none;
    clear: both;
    margin-left: 0;
  }
  */
  body.custom-post-layout #content #map-wrapper,
  body.custom-post-layout #content .event-image {
	  width: 390px !important;
	}
  
  body.page-id-701 #content .widgets .widget {
    width: 273px;
    min-height: 400px;
  }
  
  #content .table-wrapper.half-width,
  #content .table-wrapper.half-width table {
    width: 100%;
    margin-left: 0;
  }
  
  #content #planning_table tr th, 
  #content #permits_table tr th,
  #content #planning_table tr td, 
  #content #permits_table tr td,
  #content #incidents_table tr td, 
  #content #incidents_table tr th {
  	padding: 5px 5px 8px;
  	text-align: center;
  }
  
  #content #planning_table tr th, 
  #content #permits_table tr th,
  #content #incidents_table tr th {
  	padding-bottom: 22px;
  }
  
	.tablesorter .header,
	.tablesorter .tablesorter-header,
	.tablesorter .headerSortUp,
	.tablesorter .tablesorter-headerSortUp,
	.tablesorter .tablesorter-headerAsc,
	.tablesorter .headerSortDown,
	.tablesorter .tablesorter-headerSortDown,
	.tablesorter .tablesorter-headerDesc {
		background-position: center bottom;
	}
	body.custom-homepage-template .tablesorter .header,
	body.custom-homepage-template .tablesorter .tablesorter-header,
	body.custom-homepage-template .tablesorter .headerSortUp,
	body.custom-homepage-template .tablesorter .tablesorter-headerSortUp,
	body.custom-homepage-template .tablesorter .tablesorter-headerAsc,
	body.custom-homepage-template .tablesorter .headerSortDown,
	body.custom-homepage-template .tablesorter .tablesorter-headerSortDown,
	body.custom-homepage-template .tablesorter .tablesorter-headerDesc {
		background-position: right 6px;
	}
	
	#content #incidents_table tr th.field,
  #content #incidents_table tr td.field,
  #content #incidents_table tr th.stage,
  #content #incidents_table tr td.stage {
    display: none;
  }
  
  body.media-hq #main li.post-0 {
  	width: 265px;
  }
  
  body.media-hq #main li a.box,
  body.media-hq #main li a.box .inner {
  	width: 285px;
  }
  
  #content #tribe-bar-collapse-toggle {
  	background: transparent !important;
  }

	body.tribe-mobile #main {
  	padding-top: 20px !important;
  }
  
  body.page-id-1242 #tertiary {
		width: 610px;
	}
	
	#content .resource-wrapper .rightcol {
		width: 228px;
	}
	
	/* CUSTOM POST LAYOUT */
	body.custom-post-layout #container,
	body.custom-post-layout #content {
	  margin: 0;
	}
	body.custom-post-layout #content .entry-title {
	  width: 360px;
	}
	body.custom-post-layout #content .quick-post-title {
	  width: auto;
	}
	#content .planning-links {
	  margin-left: 0;
	}
	/*
	body.custom-post-layout #content #map-wrapper {
    width: 100%;
    margin-left: 0;
    float: none;
  }
  */
  
  body.single-extreme-energies #content #map-wrapper,
  body.page-template-onecolumn-page-php #content #map-wrapper {
    width: 100%;
  }
  
  body.custom-post-layout #content #featured {
	  width: 100%;
	}
	body.custom-post-layout #content #featured img {
	  width: 150px;
	  height: 150px;
	}
	
	body.custom-post-layout .custom-location-widgets {
	  width: 286px;
	  float: right;
	}
	
	body.custom-post-layout #primary, 
	body.custom-post-layout #secondary, 
	body.custom-post-layout #tertiary, 
	body.custom-post-layout #quarterly {
	  width: 292px;
	}
	
	body.custom-post-layout #primary .widget-container, 
	body.custom-post-layout #secondary .widget-container, 
	body.custom-post-layout #tertiary .widget-container, 
	body.custom-post-layout #quarterly .widget-container {
	  width: 270px;
	}
	/*
	body.single-region #container,
	body.single-region #content {
	  width: 610px;
	}
	
	body.single-region .sidebar-container {
	  float: left;
	  display: none;
	}
	*/
	
	/* GALLERIA */
  
  .galleria.fullwidth.twelve,
  .galleria.fullwidth.folio,
  .galleria.fullwidth.classic {
    width: 610px;
  }
  .galleria.fullwidth.twelve {
    height: 458px;
  }
  .galleria.fullwidth.classic {
    height: 431px;
  }
  .galleria.fullwidth.twelve .galleria-theme-twelve .galleria-info-text {
    width: 600px;
  }
  .galleria.large {
	  margin: 0 0 20px 0;
	  float: none;
	}
	.galleria.folio .galleria-image {
	  width: 193px;
	}
	body.single-quick-post .entry-content {
	  margin-bottom: 50px;
	}
	body.single-quick-post .hentry .social4i {
	  right: auto;
	  top: auto;
	  left: 0;
	  bottom: -45px;
	}
	
	#content .table-wrapper {
	  clear: both;
	}
	
  #content table tr th.th-open, 
  #content table tr td.td-open,
  #content table tr th.th-active, 
  #content table tr td.td-active {
    display: none;
  }
	
	#content .table-wrapper .th-loc,
	#content .table-wrapper .td-loc {
		max-width: 70px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	#content .table-wrapper.half-width {
	  min-width: 0;
	}
	
	body.single #content .entry-content .excerpt, 
	.page-summary {
    width: 260px;
  }
  body.single-fracking-impacts #content .entry-content .excerpt {
    width: auto;
  }
  
  #content p.point-left,
  #content p.point-right,
  #content p.point-down {
    width: 225px;
  }
  
  #footer-widget-area .widget-area {
    width: 301px;
  }
  
  #footer-widget-area #third.widget-area {
    clear: left;
  }
  
  #content .entry-content img,
  #content .entry-content .wp-caption {
    max-width: 610px !important;
  }
  #cboxLoadedContent #content .entry-content img {
    max-width: 100% !important;
  }
  #content .entry-content img {
    height: auto;
  }
  #content .tribe-events-single ul.tribe-related-events .tribe-related-events-thumbnail img {
    height: 140px;
  }
  
  body.page-template-nosidebarpage #content .galleria.large {
    width: 350px;
    height: 263px;
    margin-left: 20px;
    float: right;
  }

  #content .left-2col {
    width: 588px;
  }
  
  .custom-location-widgets .related .wrapper {
  	overflow-y: auto;
  	max-height: 115px;
	}
	
	body.single-region #gallery-wrapper,
  body.single-region #gallery.widget,
  body.single-region #gallery li.gallery-li,
  body.single-region #gallery img.gallery-img,
  body.single-region #gallery a.gallery-link {
    width: 608px;
    height: 325px;
  }
  
  .listing-item,
  .listing-item:nth-child(odd) {
    float: none;
    width: auto;
    margin-right: 0;
    clear: both;
  }
  
  .display-posts-listing img {
    float: right;
    margin: 0 0 40px 15px;
  }
  
  body.page #content .entry-content .display-posts-listing .excerpt {
    float: none;
    width: auto;
  }
  
  body.home #featured-video {
    width: 588px;
  } 
  body.home .widget_rss .rss-aggregator {
    height: 260px;
  }
  
  body.custom-homepage-template #active-sites-widget li:last-child {
    display: none;
  }
  
  body.custom-homepage-template #primary,
  body.custom-homepage-template #secondary {
    width: 300px;
  }
  
  body.custom-homepage-template #primary .widget-container,
  body.custom-homepage-template #primary .widget,
  body.custom-homepage-template #secondary .widget-container,
  body.custom-homepage-template #secondary .widget {
    width: 278px;
  }
  
  #content .sm-buttons img {
    width: 185px;
  }
  
  body.single-project #content {
    margin-bottom: 10px;
  }
  /*
  body.single-project #summary-container #gallery-wrapper {
    float: right;
    margin-right: 12px;
  }
  */
  body.single-project #gallery-wrapper, 
  body.single-project #gallery.widget, 
  body.single-project #gallery li.gallery-li, 
  body.single-project #gallery img.gallery-img, 
  body.single-project #gallery a.gallery-link {
    width: 608px;
    height: 325px;
  }
  
  body.single-project #summary-container .summary {
    width: 278px;
    margin-right: 10px;
  }
  
  body.single-project #quarterly {
    width: 610px;
  }
  body.single-project #quarterly .widget-container {
    width: 278px;
    float: left;
  }
  body.single-project #quarterly .widget-container:nth-child(odd) {
    margin-right: 10px;
  }
  
  body.single-project .custom-location-widgets {
    width: 588px;
  }
  
  #content .res-list {
    width: 448px;
  }
  
  #primary .widget-container, 
  #primary .related-posts, 
  #primary .widget_archive {
    width: 270px;
  }
  
  #active-sites-widget span.titleblock {
    width: 180px;
  }
  
  #calendar .fc-row.fc-widget-header {
    border: 0 !important;
    margin: 0 !important;
  }
  #calendar .fc-scroller.fc-day-grid-container {
    overflow: visible !important;
    height: auto !important;
  }
}

@media only screen and ( max-width: 803px ) {
  
  #content .tribe-events-single ul.tribe-related-events li {
    float: left;
    padding: 0;
  }
  #content .tribe-events-single ul.tribe-related-events li .tribe-related-event-info {
    width: auto;
  }
  #content .tribe-events-single ul.tribe-related-events .tribe-related-events-thumbnail {
    float: none;
    width: auto;
    margin-bottom: 10px;
  }
  
  #content .res-list {
    width: 448px;
  }
}

@media only screen and ( max-width: 704px ) {
  
  #wrapper {
    width: 475px;
  }
  
  #main,
  #container,
  #content,
  #access .menu {
    width: 410px;
  }
  
  #site-description {
    margin-top: 8px;
  }
  #site-description img {
    width: 375px;
  } 
  
  #header form {
    position: absolute;
    top: 50px;
    left: -239px;
  }
  
  #header form fieldset {
    text-align: center;
  }
  
  #header #emailtext {
    width: 118px;
  }
  
  #header-search-panel .widget {
    width: 452px;
    -webkit-border-top-left-radius: 10px;
    -moz-border-radius-topleft: 10px;
    border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 0;
    -moz-border-radius-topright: 0;
    border-top-right-radius: 0;
  }
  #header-search-panel #s {
    width: 410px;
  }
  
  #twitter-feed-inner,
  .twitterBody,
  #twitter-feed ul {
    width: 100%;
  }
  
  #twitter-feed ul {
    padding-right: 60px !important;
    box-sizing: border-box;
  }
  
  #twitter-feed #twitter-close {
    margin-right: 6px;
  }
  
  #footer {
    width: 452px;
  }
  
  #main {
    -webkit-border-top-left-radius: 10px !important;
    -moz-border-radius-topleft: 10px !important;
    border-top-left-radius: 10px !important;
  }
  
  #main,
  #access .et_mobile_menu > .menu {
    -webkit-border-top-right-radius: 0 !important;
    -moz-border-radius-topright: 0 !important;
    border-top-right-radius: 0 !important;
  }
  
  #content {
    margin: 0;
  }
  
  #branding {
    width: 100%;
  }
  
  #container,
  body.home #container {
    margin-right: 0;
  }
  
  #access {
    left: auto;
    right: 0;
    top: 50px;
    width: 240px;
    z-index: 500;
  }
  
  #access .menu {
    display: none;
  }
  
  #access #et_mobile_nav_menu {
    display: block;
  }
  
  #header {
    min-height: 85px;
  }
  
  #site-title img {
    height: 39px;
  }
  
  #site-description {
    margin-top: 10px;
    display: none;
  }
  
  #site-description img {
    width: 375px;
  }
  
  .new-social-media-links li {
    margin-right: 7px;
  }
  
  .new-social-media-links li a {
    width: 37px;
    height: 37px;
    background-size: 185px 74px;
  }
  
  .new-social-media-links li.facebook a {
    background-position: 0 0;
  }
  .new-social-media-links li.facebook a:hover {
    background-position: 0 -37px;
  }
  .new-social-media-links li.twitter a {
    background-position: -37px 0;
  }
  .new-social-media-links li.twitter a:hover {
    background-position: -37px -37px;
  }
  .new-social-media-links li.email a {
    background-position: -74px 0;
  }
  .new-social-media-links li.email a:hover {
    background-position: -74px -37px;
  }
  .new-social-media-links li.search a {
    background-position: -111px 0;
  }
  .new-social-media-links li.search a:hover {
    background-position: -111px -37px;
  }
  .new-social-media-links li.phone a {
    background-position: -148px 0;
  }
  .new-social-media-links li.phone a:hover {
    background-position: -148px -37px;
  }
  
  img.post-image {
    width: 100% !important;
    height: auto;
    margin-left: 0;
  }
  
  #primary,
  #secondary,
  #tertiary,
  #quarterly {
    width: 410px;
    float: none;
  }
  #primary .widget-container,
  #secondary .widget-container,
  #tertiary .widget-container,
  #quarterly .widget-container {
    width: 388px;
  }
  
  #content .video-container,
  #content .gallery {
    width: 100%;
    margin: 0 0 20px 0;
    -moz-box-sizing: border-box;
	  -webkit-box-sizing: border-box;
	  box-sizing: border-box;
  }
  
  /* GALLERIA */
  
  .galleria.fullwidth.classic {
    width: 410px;
    height: 290px;
  }
  #cboxLoadedContent .galleria.fullwidth.classic {
    width: 410px;
    height: 290px;
  }
  #content .galleria-theme-classic .galleria-thumbnails .galleria-image {
    width: 60px;
    height: 40px;
  }
  #content .galleria-theme-classic .galleria-thumbnails-container {
    bottom: 0;
  }
  
  .galleria.fullwidth.folio,
  #cboxLoadedContent .galleria.fullwidth.folio {
    width: 410px;
  }
  #cboxLoadedContent .galleria.folio .galleria-image,
	.galleria.folio .galleria-image {
	  width: 126px;
	  height: auto;
	}
	
	
	.quick-post-content {
	  position: static;
	}
	.quick-post-title {
	  position: relative;
	  padding: 0 63px 0 0;
	  background: transparent;
	}
	.quick-post-title .more-arrow {
	  right: -10px;
	  top: 9px;
	}
	.quick-post-inner {
	  width: 100%;
	}
	.quick-post-inner-inner,
	.quick-post-button {
	  margin-bottom: 10px;
	}
	
	body.single-quick-post .entry-content {
	  margin-bottom: 50px;
	}
	
	body.single-quick-post .hentry .social4i {
	  right: auto;
	  top: auto;
	  left: 0;
	  bottom: -45px;
	}
  
  .galleria.medium.twelve,
  .galleria.large.twelve,
  .galleria.fullwidth.twelve {
    width: 410px;
    height: 308px;
  }
  
  #cboxLoadedContent .galleria.fullwidth.twelve {
    width: 400px;
    height: 300px;
  }
  #cboxLoadedContent .galleria.fullwidth.twelve .galleria-info-text {
    width: 390px;
  }
  
  .galleria.medium .galleria-theme-twelve .galleria-info-text {
    width: 400px;
  }
  .galleria.large .galleria-theme-twelve .galleria-info-text,
  .galleria.fullwidth .galleria-theme-twelve .galleria-info-text,
  .galleria.medium.inline .galleria-theme-twelve .galleria-info-text, 
  .galleria.medium.block .galleria-theme-twelve .galleria-info-text,
  .galleria.large.inline .galleria-theme-twelve .galleria-info-text, 
  .galleria.large.block .galleria-theme-twelve .galleria-info-text {
    width: 394px;
  }
  .galleria.medium .galleria-theme-twelve .galleria-info,
  .galleria.large .galleria-theme-twelve .galleria-info,
  .galleria.fullwidth .galleria-theme-twelve .galleria-info {
    overflow: visible;
  }
  .galleria.large .galleria-theme-twelve .galleria-info-text,
  .galleria.fullwidth .galleria-theme-twelve .galleria-info-text {
    background-color: rgba(0, 0, 0, 0.8);
    bottom: 30px;
    left: -70px;
    line-height: 1.5em;
    padding: 7px 8px;
    position: absolute;
    font-size: 13px;
  }
  
  .galleria.block .galleria-theme-twelve .galleria-info-title {
    font-size: 10px;
    line-height: 1.7em;
    padding: 2px 0;
  }
  
  .galleria.block .galleria-theme-twelve .galleria-info-description {
    font-size: 13px;
    line-height: 1.3em;
    padding: 0;
  }
  
  #cboxLoadedContent #content .quick-post-inner p {
    font-size: 13px;
  }
  
  body.home .wrapper-2col,
  body.home .wrapper-1col {
    width: 410px;
  }
  
  body.home .wrapper-1col {
    margin-right: 0;
  }
  
  body.home .wrapper-2col .half-width .widget,
  body.home .wrapper-2col .full-width .widget, 
  body.home .wrapper-1col .full-width .widget {
    width: 388px;
    min-height: 0;
  }
  
  body.home .widget_wysiwyg_widgets_widget img {
    margin-top: 0;
  }
  
  /* MAP WIDGET PAGES */
  
  #content .custom-location-widgets {
    width: auto;
    margin-right: 0;
  }
  
  #content .custom-location-widgets .summary-info {
    float: left;
    padding-left: 10px;
    border-left: 1px solid #eda397;
    padding-top: 0;
    border-top: 0;
    margin-top: 0;
  }
  
  #content .custom-location-widgets .summary-info:first-child {
    padding-left: 0;
    border-left: 0;
  }
  
  #content .custom-location-widgets.three-cols .summary-info,
  #content .custom-location-widgets.four-cols .summary-info  {
    width: 188px;
    margin-bottom: 10px;
  }
  
  #content .custom-location-widgets.three-cols .summary-info:nth-child(3),
  #content .custom-location-widgets.four-cols .summary-info:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    clear: left;
  }
  
  #content #map-wrapper {
    width: 100%;
    float: none;
    clear: both;
    margin-left: 0;
  }

  #content .table-wrapper.half-width,
  #content .table-wrapper.half-width table {
    width: 100%;
    margin-left: 0;
  }
  
  #content #planning_table tr th, 
  #content #permits_table tr th,
  #content #planning_table tr td, 
  #content #permits_table tr td,
  #content #incidents_table tr td, 
  #content #incidents_table tr th {
  	padding: 5px 3px 8px;
  	text-align: center;
  }
  
  #main table tr th.th-id, 
  #main table tr td.td-id {
    max-width: 80px;
  }
  
  #content #planning_table tr th, 
  #content #permits_table tr th,
  #content #incidents_table tr th {
  	padding-bottom: 22px;
  }
  
	.tablesorter .header,
	.tablesorter .tablesorter-header,
	.tablesorter .headerSortUp,
	.tablesorter .tablesorter-headerSortUp,
	.tablesorter .tablesorter-headerAsc,
	.tablesorter .headerSortDown,
	.tablesorter .tablesorter-headerSortDown,
	.tablesorter .tablesorter-headerDesc {
		background-position: center bottom;
	}
	body.custom-homepage-template .tablesorter .header,
	body.custom-homepage-template .tablesorter .tablesorter-header,
	body.custom-homepage-template .tablesorter .headerSortUp,
	body.custom-homepage-template .tablesorter .tablesorter-headerSortUp,
	body.custom-homepage-template .tablesorter .tablesorter-headerAsc,
	body.custom-homepage-template .tablesorter .headerSortDown,
	body.custom-homepage-template .tablesorter .tablesorter-headerSortDown,
	body.custom-homepage-template .tablesorter .tablesorter-headerDesc {
		background-position: right 6px;
	}
	
	#content .table-wrapper {
	  clear: both;
	}
	
	#content table tr th.th-open,
	#content table tr td.td-open,
	#content table tr th.th-close,
	#content table tr td.td-close,
	#content table tr th.th-stage,
	#content table tr td.td-stage,
	#content table tr th.th-active,
	#content table tr td.td-active {
		display: none;
	} 
	
	#content .table-wrapper .th-loc,
	#content .table-wrapper .td-loc {
		max-width: 70px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
  
  body.page-id-701 #content .widgets .widget {
    width: 388px;
    min-height: 1px;
  }
  
  .post-image {
    width: 100% !important;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  body.media-hq #main li.post-0 {
  	width: 390px;
  	height: auto;
  }
  body.media-hq #main li a.box,
  body.media-hq #main li a.box .inner {
  	width: 410px;
  }
  body.media-hq #main li a.box {
  	background-size: 100%;
	}
	body.media-hq #main li a.box:hover {
  	background-size: auto; 
	}
	
	#content #event_datepickers tr td:first-child {
		width: 100px;
	}
	
	#content #tribe-bar-collapse-toggle {
  	background: transparent !important;
  }
  
  body.tribe-mobile #main {
  	padding-top: 20px !important;
  }
  
  body.page-id-1242 #tertiary {
		width: 100%;
	}

	#content .resource-wrapper .rightcol {
		width: 100%;
		margin-top: 20px;
	}
	
	#content .resource-wrapper .inner {
		margin-right: 0
	}
	
	#content .resource-wrapper .inner,
	#content .resource-wrapper .inner img,
	#content .resource-wrapper .inner .wp-caption {
		width: 100% !important;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
	}
	
	#content .resource-wrapper .inner .wp-caption img {
		border-right: 1px solid #EDA397;
		padding-right: 10px;
		background-color: #fff;
	}
	
	#content .link-search, 
	#content .link-add {
		width: 100% !important;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		margin-left: 0;
	}
	
	body.single #content .entry-content .excerpt, 
	.page-summary {
	  -moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		width: 100%;
		margin-left: 0;
	}
	
	/* CUSTOM POST LAYOUT */
	body.custom-post-layout #container,
	body.custom-post-layout #content {
	  margin: 0;
	}
	body.custom-post-layout #content .entry-title {
	  width: 350px;
	}
	body.custom-post-layout #content .quick-post-title {
	  width: auto;
	}
	
	body.custom-post-layout #content #map-wrapper {
    width: 100%;
    margin-left: 0;
    float: none;
    clear: both;
  }
  body.custom-post-layout #content #featured img {
	  width: 100px;
	  height: 100px;
	}

  #content .feed-link {
    padding-right: 0;
    padding-bottom: 12px;
    position: relative;
  }
  #content .planning-links {
	  margin-left: 0;
	}
  
  #content .feed-link p {
	  position: absolute;
	  left: 8px;
    height: 32px;
    padding: 0;
    text-indent: -1000em;
    width: 28px;
	}
	#content .feed-link a {
	  display: block;
	  width: 37px;
	  height: 37px;
	}
	
	.custom-location-widgets,
	body.custom-post-layout .custom-location-widgets {
	  width: 388px;
	  float: none;
	}
	
	body.custom-post-layout #primary, 
	body.custom-post-layout #secondary, 
	body.custom-post-layout #tertiary, 
	body.custom-post-layout #quarterly {
	  width: 410px;
	  float: none;
	}
	
	body.custom-post-layout #primary .widget-container, 
	body.custom-post-layout #secondary .widget-container, 
	body.custom-post-layout #tertiary .widget-container, 
	body.custom-post-layout #quarterly .widget-container {
	  width: 388px;
	}
	
	body.custom-post-layout #content #featured {
    width: 100%;
  }
  body.custom-post-layout #content #featured img {
	  width: 150px;
	  height: 150px;
	}
	
	body.custom-homepage-template #content {
	  width: 388px;
	}
  
	#region_map_wrapper {
	  background-size: 100% 475px;
	  width: 100%;
	}
	
	#region_map {
	  width: 100%;
	  height: 475px;
	}
	
  body.page-id-68254 #region_map_arrow {
    width: 130px;
    height: 113px;
    top: 35px;
    left: 10px;
    background-image: url(../images/arrow_text_bubble_2_med.gif);
  }
  
	#content .social4i .social4in {
	  width: 100%;
	}
	
	.wp-caption {
	  width: 100%;
	  -moz-box-sizing: border-box;
	  -webkit-box-sizing: border-box;
	  box-sizing: border-box;
	}
	
	#content p.point-left,
  #content p.point-right,
  #content p.point-down {
    background: none;
    padding: 0;
    text-align: left !important;
    width: 100%;
    float: none !important;
  }
  
  body.postid-6172 .entry-content img {
    width: 100% !important;
    height: auto !important;
  }
  
  body.postid-6172 .entry-content div {
    float: none !important;
  }
  
  body.postid-6172 .entry-content .spacer {
    margin: 0 !important;
  }
  
  #content .navlink {
    width: 100%;
    -moz-box-sizing: border-box;
	  -webkit-box-sizing: border-box;
	  box-sizing: border-box;
  }
  
  #content .navlink.previous {
    margin-bottom: 20px;
  }
  #content .navlink.next a {
    background-position: 382px 4px;
  }
  
  #footer-widget-area .widget-area {
    width: 422px;
  }
  
  #site-info {
    margin-left: 95px;
    margin-bottom: 15px;
  }
  
  #site-generator {
    text-align: center;
    float: none;
  }
  
  #content .entry-content img,
  #content .entry-content .wp-caption {
    width: 410px !important;
  }
  
  #cboxLoadedContent #content .entry-content img {
    width: auto !important;
  }
  
  #content #captchaimage img {
    width: auto !important;
    height: auto !important;
  }
  
  #content .entry-content img.icon {
    width: auto;
  }
  
  #content .entry-content img {
    height: auto;
  }
  #content .tribe-events-single ul.tribe-related-events .tribe-related-events-thumbnail img {
    height: 100px;
  }
  #content .entry-content .cat-list img {
    width: auto !important;
  }
  
  #content .entry-content #map img {
    width: auto !important;
  }
  
  body.page-template-nosidebarpage #content .galleria.large {
    width: 410px;
    height: 308px;
    margin-left: 0;
    float: none;
  }
  
  .left-2col {
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topright: 5px;
    border-top-right-radius: 5px;
  }
  
  #gallery-wrapper,
	#gallery.widget,
	#gallery li.gallery-li,
	#gallery img.gallery-img,
	#gallery a.gallery-link {
		width: 408px !important; 
		height: 218px !important;
	}

	#gallery .gallery-text {
		width: 388px;
	}
	
	#gallery .upw-posts {
		height: 190px;
		overflow: hidden;
	}

  #gallery .upw-posts article:nth-child(5),
  #gallery .upw-posts article:nth-child(6),
  #gallery .upw-posts article:nth-child(7),
  #gallery .upw-posts article:nth-child(8) {
  	display: none;
  }
  
  .listing-item,
  .listing-item:nth-child(odd) {
    float: none;
    width: auto;
    margin-right: 0;
    clear: both;
  }
  
  .display-posts-listing img {
    float: right;
    margin: 0 0 20px 15px;
  }
  
  body.page #content .entry-content .display-posts-listing .excerpt {
    float: none;
    width: auto;
  }
  
  body.home .widget_rss .rss-aggregator {
    height: 260px;
  }
  
  #content .key-block img {
    width: auto !important;
  }
  
  #content .res-list {
    width: 248px;
  }
  
  body.custom-homepage-template #main .feed-link {
    overflow: hidden;
    margin-right: 0;
  }
  
  body.custom-homepage-template #main .planning-links.double p {
    line-height: 0.9em;
    font-size: 18px;
  }
  
  #active-sites-widget span.titleblock {
    width: 298px;
  }
  
  #primary.homepage-widgets .widget,
  #secondary.homepage-widgets .widget {
    width: 388px;
  }
  
  body.home #map-wrapper {
    width: 410px !important;
  }
  
  body.custom-homepage-template #main #planning_table tr th, 
  body.custom-homepage-template #main #permits_table tr th {
    padding-bottom: 20px;
    background-position: center bottom;
  }
  
  #content #incidents_table tr th.field,
  #content #incidents_table tr td.field,
  #content #incidents_table tr th.stage,
  #content #incidents_table tr td.stage,
  #content #incidents_table tr th.company,
  #content #incidents_table tr td.company {
    display: none;
  }
  
  #content #incidents_table p {
    font-size: 13px;
  }
  
  #content .sm-buttons img {
    width: 120px !important;
  }
  
  body.single-project #title-container .widget .entry-title {
    float: none;
  }
  body.single-project #title-container .widget .social4i {
    float: left !important;
  }
  body.single-project #content {
    margin-bottom: 10px;
  }
  
  #cboxLoadedContent .quick-post-title {
    padding: 2px 63px 0 0;
    margin-bottom: 5px;
  }
  #cboxLoadedContent .quick-post-inner-inner {
    padding: 0;
  }
  #cboxLoadedContent .quick-post-button {
    padding-left: 0;
    margin-top: 0;
  }
  #cboxLoadedContent .quick-post-title,
  body.custom-homepage-template #cboxLoadedContent .quick-post-title {
    font-size: 20px !important;
  }
  
  #cboxLoadedContent .quick-post-title .more-arrow {
    top: 7px;
  }
  
  #primary .widget-container, 
  #primary .related-posts, 
  #primary .widget_archive {
    width: 386px;
  }
  
  #active-sites-widget span.titleblock {
    width: 296px;
  }
  
  #calendar .fc-row.fc-widget-header {
    border: 0 !important;
    margin: 0 !important;
  }
  #calendar .fc-scroller.fc-day-grid-container {
    overflow: visible !important;
    height: auto !important;
  }
  #content .fc-content {
    font-size: 11px;
    line-height: 1.2em;
  }
  
  .quick-post-title,
  .quick-post-inner-inner,
  .quick-post-button {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
  }
  
  body.quick-post #cboxLoadedContent {
    overflow: hidden !important;
  }
  
  #content .eventnav .widget-container {
    margin: 0 0 20px 0;
    float: none;
    width: auto;
  }
  #content .eventnav .widget-container:last-child {
    margin-bottom: 0;
  }
  
  /* incident single */
	
	html.display-header body.single-incident #content .incident-summary {
    width: 100%;
  }
	
	html.display-header body.single-incident #content .incident-summary .infobox {
    float: none;
    overflow: hidden;
    border-left: 1px solid #ffbb87;
  }
  
  html.display-header body.single-incident #content .incident-summary .infobox .title,
  html.display-header body.single-incident #content .incident-summary .fullwidth .title {
    width: 30%;
  }
  
  html.display-header body.single-incident #content .incident-summary .infobox .descr,
  html.display-header body.single-incident #content .incident-summary .fullwidth .descr {
    width: 70%;
  }
  
}

@media screen and (max-width: 635px) {
  #wpadminbar {
    position: fixed !important;
  }
}

@media only screen and ( max-width: 513px ) {
  
  #wrapper {
    width: 340px;
  }
  
  #main,
  #container,
  #content,
  #access .menu {
    width: 280px;
  }
  
  #footer {
    width: 322px;
  }
  
  #site-title {
    margin: 0 auto;
    width: 210px;
    float: none;
  }
  
  #site-title img {
    width: 210px;
    height: auto;
  }
  
  #site-description img {
    display: none;
  }
  
  #header {
    min-height: 200px;
  }
  
  #access #et_mobile_nav_menu a.mobile_nav {
    top: 10px;
  }
  
  #header-search-panel .widget {
    width: 322px;
    -webkit-border-top-right-radius: 10px;
    -moz-border-radius-topright: 10px;
    border-top-right-radius: 10px;
  }
  #header-search-panel #s {
    width: 250px;
  }
  
  #header .header-search-area {
    position: static;
    width: 213px;
    margin: 10px auto 0;
  }
  
  #header .header-search-area #s {
    width: 40%;
  }
  
  #header form {
    position: relative;
    left: auto;
    top: -5px;
  }
  
  #access {
    width: 160px;
    top: 140px;
  }
  
  #access .mobile_nav {
    width: 292px !important;
    padding: 8px 20px 8px 8px !important;
    text-align: center !important;
    -webkit-border-radius: 10px !important;
    -moz-border-radius: 10px !important;
    border-radius: 10px !important;
  }
  
  #access .mobile_nav > span {
    top: 12px;
    right: 9px;
  }
  
  #access .et_mobile_menu {
    top: 41px;
  }
  
  #main,
  #access .et_mobile_menu > .menu {
    -webkit-border-top-right-radius: 10px !important;
    -moz-border-radius-topright: 10px !important;
    border-top-right-radius: 10px !important;
  }
  
  #primary,
  #secondary,
  #tertiary,
  #quarterly {
    width: 280px;
    float: none;
  }
  #primary .widget-container,
  #secondary .widget-container,
  #tertiary .widget-container,
  #quarterly .widget-container {
    width: 258px;
  }
  
  body.home .wrapper-2col,
  body.home .wrapper-1col {
    width: 280px;
  }
  
  body.home .wrapper-2col .half-width .widget,
  body.home .wrapper-2col .full-width .widget, 
  body.home .wrapper-1col .full-width .widget {
    width: 258px;
  }
  
  body.home .widget_wysiwyg_widgets_widget img {
    width: 100%;
  }
  
  #content .custom-location-widgets.three-cols .summary-info,
  #content .custom-location-widgets.four-cols .summary-info {
    width: 123px;
  }
  
  .custom-location-widgets,
	body.custom-post-layout .custom-location-widgets {
	  width: 258px;
	  float: none;
	}
  
  #access .et_mobile_menu > .menu {
    margin-top: 19px;
  }
  
  #content #planning_table tr th.th-open,
  #content #permits_table tr th.th-open,
  #content #planning_table tr td.td-open,
  #content #permits_table tr td.td-open,
  #content #incidents_table tr th.company,
  #content #incidents_table tr td.company,
  #content #incidents_table tr th.region,
  #content #incidents_table tr td.region,
  #content #incidents_table tr th.type,
  #content #incidents_table tr td.type {
    display: none;
  }
  
  body.page-id-701 #content .widgets .widget {
    width: 258px;
  }
  body.media-hq #main li.post-0 {
    width: 260px;
  }
  body.media-hq #main li a.box,
  body.media-hq #main li a.box .inner {
  	width: 280px;
  }
  
  body.media-hq #main .s4fbshare {
    display: none;
  }
  
  body.media-hq #main li a.box {
  	background-size: auto; 
	}
	
	#content #event_datepickers tr td:first-child {
		width: 150px;
	}
	
	#content .chosen-container {
		width: 150px !important;
	}
	
	#content table tr th.th-lic,
	#content table tr td.td-lic,
	#content table tr th.th-more,
	#content table tr td.td-more,
	#content table tr th.th-status,
	#content table tr td.td-status {
		display: none;
	} 
	
  /* incident lightbox */
	
	html.display-modal body.single-incident #wrapper,
  html.display-modal body.single-incident #main {
    width: 400px;
  }
  
  html.display-modal body.single-incident #content .incident-summary {
    width: 370px;
  }
	
	html.display-modal #content .incident-summary .infobox {
    float: none;
    overflow: hidden;
    border-left: 1px solid #ffbb87;
  }
  
  html.display-modal #content .incident-summary .infobox .descr,
  html.display-modal #content .incident-summary .fullwidth .descr {
    width: 268px;
  }
  
  html.display-modal body.single-incident #outer {
    min-height: 300px;
  }

  html.display-modal body.single-incident #container, 
  html.display-modal body.single-incident #content {
    width: 385px;
  }
  
  html.display-modal body.single-incident #main,
  html.display-modal body.single-incident .entry-content .inner {
    height: auto;
  }

  html.display-modal body.single-incident #content .social4i {
    width: 370px;
  }
  
  html.display-modal body.single-incident #content .entry-title {
    font-size: 22px;
  }
	
	/* GALLERIA */
  
  .galleria.fullwidth.classic {
    width: 280px;
    height: 198px;
  }
  #cboxLoadedContent .galleria.fullwidth.classic {
    width: 350px;
    height: 240px;
  }
  #content .galleria-theme-classic .galleria-thumbnails .galleria-image {
    width: 60px;
    height: 40px;
  }
  #content .galleria-theme-classic .galleria-thumbnails-container {
    bottom: 0;
  }
  
	.galleria.fullwidth.folio {
    width: 280px;
  }
  #cboxLoadedContent .galleria.fullwidth.folio {
    width: 360px;
  }
	.galleria.folio .galleria-image {
	  width: 130px;
	  height: auto;
	}
	#cboxLoadedContent .galleria.folio .galleria-image {
	  width: 110px;
	}
	.galleria-folio .quick-post-title .more-arrow {
	  right: -20px;
	}
	
	#content .galleria.small {
	  width: 100%;
	  margin: 0 0 20px 0;
	}
	#content .galleria.twelve.fullwidth,
	#content .galleria.twelve.fullwidth .galleria-container {
	  height: 260px !important;
	}
	
	.galleria .galleria-theme-twelve .galleria-info-text {
    width: 262px;
  }
  
  
  .galleria.medium.twelve,
  .galleria.large.twelve,
  .galleria.fullwidth.twelve {
    width: 280px;
    height: 210px;
  }
  
  .galleria.medium .galleria-theme-twelve .galleria-info-text {
    width: 270px;
  }
  
  #cboxLoadedContent .galleria.fullwidth.twelve {
    width: 350px;
    height: 263px;
  }
  #cboxLoadedContent .galleria-theme-twelve .galleria-info-text {
    width: 350px;
  }
  #cboxLoadedContent .galleria .galleria-theme-twelve .galleria-info-text {
    width: 348px;
  }
  
  .galleria.large .galleria-theme-twelve .galleria-info-text,
  .galleria.fullwidth .galleria-theme-twelve .galleria-info-text,
  .galleria.medium.inline .galleria-theme-twelve .galleria-info-text, 
  .galleria.medium.block .galleria-theme-twelve .galleria-info-text,
  .galleria.large.inline .galleria-theme-twelve .galleria-info-text, 
  .galleria.large.block .galleria-theme-twelve .galleria-info-text {
    width: 264px;
  }
	
	/* CUSTOM POST LAYOUT */
	
	body.custom-post-layout #content .entry-title {
	  width: 220px;
	}
	body.custom-post-layout #content .quick-post-title {
	  width: auto;
	}
	
	.custom-location-widgets {
	  width: 258px;
	  float: none;
	}
	
	body.custom-post-layout #primary, 
	body.custom-post-layout #secondary, 
	body.custom-post-layout #tertiary, 
	body.custom-post-layout #quarterly {
	  width: 280px;
	  float: none;
	}
	
	body.custom-post-layout #primary .widget-container, 
	body.custom-post-layout #secondary .widget-container, 
	body.custom-post-layout #tertiary .widget-container, 
	body.custom-post-layout #quarterly .widget-container {
	  width: 258px;
	}
	
	body.custom-homepage-template #content {
	  width: 258px;
	}

	#region_map_wrapper {
	  background-size: 100% 324px;
	  height: 324px;
	}
	#region_map {
	  height: 324px;
	}
	body.page-id-68254 #region_map_arrow {
    width: 100px;
    height: 87px;
    top: 10px;
    left: 0;
    background-image: url(../images/arrow_text_bubble_2_sm.gif);
  }
  
  #content .widget .controls .hidecontrols {
    display: none;
  }
  
  #content .social4i .s4plusone {
	  display: none;
	}

  #content .navlink.next a {
    background-position: 252px 4px;
  }
  
  #footer-widget-area .widget-area {
    width: 292px;
  }
  
  #site-info {
    margin-left: 35px;
  }
  
  #content .entry-content img,
  #content .entry-content .wp-caption {
    max-width: 280px !important;
  }

  #cboxLoadedContent #content .entry-content img {
    max-width: 100% !important;
  }

  #content .tribe-events-single ul.tribe-related-events .tribe-related-events-thumbnail img {
    max-width: 100px !important;
    width: 100px !important;
  }
    
  body.page-template-nosidebarpage #content .galleria.large {
    width: 280px;
    height: 210px;
  }
  
  #gallery-wrapper,
	#gallery.widget,
	#gallery li.gallery-li,
	#gallery img.gallery-img,
	#gallery a.gallery-link {
		width: 278px !important; 
		height: 190px !important;
	}
	
	#gallery .gallery-text {
		width: 258px;
	}
	
	#gallery .upw-posts {
		height: 170px;
	}
	
	#gallery .upw-posts article {
  	width: 100%;
  }
	
  #gallery .upw-posts article:nth-child(3),
  #gallery .upw-posts article:nth-child(4) {
  	display: none;
  }
  
  .listing-item,
  .listing-item:nth-child(odd) {
    margin-bottom: 30px;
  }
  
  .display-posts-listing img {
    float: none;
    margin: 0 0 10px 0;
    width: 100%;
  }
  
  #content .tribe-events-single ul.tribe-related-events li {
    float: none;
    width: auto;
    margin: 0;
  }
  #content .tribe-events-single ul.tribe-related-events li .tribe-related-event-info {
    width: 60%;
    padding: 0;
    float: left;
  }
  #content .tribe-events-single ul.tribe-related-events .tribe-related-events-thumbnail {
    float: left;
    width: 35%;
    margin: 0 5% 0 0;
  }
  
  #content .cat-list .wrapper {
    width: auto;
  }
  
  body.custom-homepage-template #main .feed-link {
    width: 213px;
  }
  
  #active-sites-widget span.titleblock {
    width: 168px;
  }
  
  #primary.homepage-widgets .widget,
  #secondary.homepage-widgets .widget {
    width: 258px;
  }
  
  body.home #wysiwyg_widgets_widget-9 img {
    width: auto;
  }
  
  body.home #map-wrapper {
    width: 280px !important;
  }
  
  body.custom-homepage-template #main table .th-action,
  body.custom-homepage-template #main table .td-action {
    display: none;
  }
  
  #main .planning-live h2 {
    line-height: 25px;
  }
  
  #content .sm-buttons img {
    width: 260px !important;
  }
  
  #primary .widget-container, 
  #primary .related-posts, 
  #primary .widget_archive {
    width: 258px;
  }
  
  #content .entry-content .link-add input, 
  #content .entry-content .link-add select {
    width: 160px;
  }
  
  .gform_wrapper.gf_browser_chrome .gform_body {
    width: 100% !important;
  }
}

@media only screen and ( max-width: 412px ) {
  
  /* incident lightbox */
	
	html.display-modal body.single-incident #wrapper,
  html.display-modal body.single-incident #main {
    width: 300px;
  }
  
  html.display-modal body.single-incident #content .incident-summary {
    width: 270px;
  }
  
  html.display-modal #content .incident-summary .infobox .descr,
  html.display-modal #content .incident-summary .fullwidth .descr {
    width: 168px;
  }
  
  html.display-modal body.single-incident #outer {
    min-height: 200px;
  }

  html.display-modal body.single-incident #container, 
  html.display-modal body.single-incident #content {
    width: 285px;
  }

  html.display-modal body.single-incident #content .social4i {
    width: 270px;
  }
  
}

@media only screen and ( max-width: 315px ) {
  #map .showstuff,
  #map #controls {
    display: none;
  }
}