@media (min-width: 500px) and (max-width: 785px){
	.ngg-gallery-thumbnail-box {
		width: 50%;
		float: left;
	}
	#ngg-image-1 {
		padding-top: 15px !important;
	}
}

@media (max-width: 785px){

	* { box-sizing: border-box; }	
	ul { margin: 0; }

	#wrapper, #branding, #access, #access .menu, #access ul ul, #access ul ul a, #main, #container, .entry-content, #colophon {
		width: 100%;
		overflow: hidden;
		padding: 0;
		margin: 0;
	}

	#header { 
		padding: 0px;
		height auto;
		position: relative;
	}

	#branding{
		height: 60px;
		border-bottom: 1px #ccc solid;
	}

	.menu-toggle { display: inline-block; }

	.menu-toggle:before {
		content: "\f05e";
		color: #001323;
		font-family: 'icomoon';
		font-size: 30px;
		padding: 15px 18px;
		line-height: 100%;
		display: inline-block;
		z-index: 100;
	}

	#branding a {
		max-width: 80vw;
		max-height: 60px;
		display: inline-block;
		float: right;
		z-index: 90;
	}

	#branding a img{
		padding: 0;
		width: auto;
		max-width: 84vw;
		height: auto;
		max-height: 58px;
		border: none;
		position: absolute;
		top: 50%;
		-webkit-transform: translate(-100%, -50%);
		-moz-transform: translate(-100%, -50%);
		-o-transform: translate(-100%, -50%);
		transform: translate(-100%, -50%);
	}

	#access {
		position: absolute;
		background: rgba(0,0,0,.5);
	}

	#access .menu {
		display: none;
		position: absolute;
		background: white;
		z-index: 100;
	}
  
  #access .menu > ul {
    display: block; 
  }

	#access .menu li {
		width: 100%;
		text-align: center;
	}

	#access li:hover > a{
		background: #fff;
		color: #000;
	}
	#access ul li:hover > ul {
		display: none;
	}
	#access ul li.active > ul  {
		display: block;
	}

	#access .menu a {
		line-height: 45px;
	}

	.page_item_has_children > a:after {
		font-family: 'icomoon';
		content: "\e601";
		display: inline-block;
	}

	#access ul ul {
		position: relative;
		top: 0;
	}

	#content {
		margin: 15px;
	}

	.promo_slider { height: auto !important; }

	.promo_slider img {
		max-width: 100%;
		height: auto;
	}

	#slideshow { float: none; }
	.advance-link img { width: 100%; }
	#thumbs {
	    margin: 0;
		float: 0;
		width: 100%;
	}
    .thumbs {
		display: flex;
		flex-wrap: wrap;
	}
	#thumbs li {
		height: auto;
        flex: 1 0 25%;
        max-width: 25%;
	}
	#thumbs img {
		width: 100%;
		height: auto;
		margin: 0;
	}

	.nav-controls {
		position: relative;
	}
	.nav-controls a {
		position: absolute !important;
	}
	.nav-controls a.prev {
		left: 10px !important;
		right: auto !important;
	}
	.nav-controls a.next {
		right: 10px !important;
		left: auto !important;
	}

	#thumbs {
		position: relative;
		padding-bottom: 50px;
	}

	#thumbs li br { display: none; }

	.bottom.pagination {
		clear:both;
		padding: 0;
		margin: 0 auto;
		max-width: 200px;
		padding-top: 20px;
		xleft: 50%;
		xposition: absolute;
		xbottom: 0px;
		xtransform: translate(-50%, 0)
	}

	#links a {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
	}

	#filter p {
		margin-bottom: 5px;
	}
	#filter p:nth-child(odd) {
		padding-right: 0px;
	}

	#ngg-image-0{
		padding-top: 15px !important;
	}

	.ngg-gallery-thumbnail a {
		color: white;
		text-decoration: none;
	}

	.ngg-gallery-thumbnail a.image-hover:after { opacity: 0; }

	.ngg-gallery-thumbnail.active img { display: none; }
	.ngg-gallery-thumbnail span { 
		font-weight: bold;
		display: inline !important;
	}

	#biography p {
		width: 100% !important;
	}

	#couture-caption {
		width: 100% !important;
		margin-bottom: 5px !important;
	}

	#footer {
		margin: 0;
		padding: 15px;
		text-align: center;
	}

	#site-info {
		float: none;
	}

	.clearfix:after {
		visibility: hidden;
		display: block;
		font-size: 0;
		content: " ";
		clear: both;
		height: 0;
	}
	.clearfix { display: inline-block; }
	/* start commented backslash hack \*/
	* html .clearfix { height: 1%; }
	.clearfix { display: block; }
	/* close commented backslash hack */


}