/***
 *
 * Oregon Gutter Service - Custom Gallery by Media Category styles
 * Displays only on pages where gallery is present
 *
 ***/

.ogs-gallery .gallery-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.ogs-gallery .gallery-item {
	flex: 0 0 25%;
	box-sizing: border-box;
}


.page .ogs-gallery-fourths h2 {
	margin-bottom: 10px !important;
}



.isMobilePhone .ogs-gallery-fourths a, .isMobilePhone .ogs-gallery-fourths a:link {
    border-bottom: none !important;
}
.isMobilePhone .ogs-gallery a, .isMobilePhone .ogs-gallery a:link {
    border-bottom: none !important;
    padding-bottom: 2px !important;
}





@media only screen and (min-width: 841px) and (max-width: 1240px) {

	.ogs-gallery .gallery-item {
		flex: 0 0 33%;
	}

	.ogs-gallery-fourths .one_fourth {
		flex: 0 0 30.666%;
	}

	.ogs-gallery-fourths .one_fourth {
		width: 48% !important;
		clear: none !important;
		margin-right: 4% !important;
	}
	.ogs-gallery-fourths .one_fourth:nth-of-type(3n) {
		margin-right: 0 !important;
	}


}

@media only screen and (min-width: 600px) and (max-width: 840px) {

	.ogs-gallery .gallery-item {
		flex: 0 0 50%;
	}
	.ogs-gallery-fourths .one_fourth {
		flex: 0 0 48%;
	}

	.ogs-gallery-fourths .one_fourth {
		width: 48% !important;
		clear: none !important;
		margin-right: 4% !important
	}
	.ogs-gallery-fourths .one_fourth:nth-of-type(2n) {
		margin-right: 0 !important;
	}

}



@media only screen and (max-width: 599px) {

	.ogs-gallery .gallery-item {
		flex: 0 0 100%;
	}
	.ogs-gallery-fourths .one_fourth {
		width: 100% !important;
		clear: both !important;
		margin-right: 0% !important
	}

	.ogs-gallery .gallery-item .gallery-icon.portrait img,
	.gallery.ogs-gallery .gallery-item img, .gallery.ogs-gallery .gallery-item img.thumbnail {
		width: 100%;
	}


}

@media only screen and (min-width: 1641px) and (max-width: 2040px) {

	.ogs-gallery .gallery-item {
		flex: 0 0 20%;
	}

}


@media only screen and (min-width: 2041px) and (max-width: 2440px) {

	.ogs-gallery .gallery-item {
		flex: 0 0 16.666%;
	}

}

@media only screen and (min-width: 2441px) and (max-width: 2840px) {

	.ogs-gallery .gallery-item {
		flex: 0 0 14.285%;
	}

}

@media only screen and (min-width: 2841px) {

	.ogs-gallery .gallery-row {
		max-width: 3000px;
		margin: 0 auto;
	}

	.ogs-gallery .gallery-item {
		flex: 0 0 12.5%;
	}

}



/*** Gallery Term Nav Menu ***/
.ogs-gallery-tax-page {
    align-items: stretch;
    display: flex;
    flex-direction: column;
	position: relative;
}

h2.term-h2 {
	padding: 40px;
	border-bottom: 2px solid #064172;
	margin: 0;
    font-weight: bold;
    line-height: 1.1em;
    font-size: 24px;
}

.category-menu.side-nav {
	width: 300px;
	position: absolute;
	top: 0;
	left: 0;
	background: #ccc;
    background: -moz-linear-gradient(23deg, #a4a4a4 0%, #fcfcfc 100%);
    background: -webkit-linear-gradient(23deg, #a4a4a4 0%,#fcfcfc 100%);
    background: linear-gradient(72deg, #a4a4a4 0%,#fcfcfc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a4a4', endColorstr='#fcfcfc',GradientType=1 );
    box-sizing: border-box;
	border-right: 4px solid #064172;
    align-items: flex-start;
	display: flex;
    height: 100%;
	z-index: 999;
}

.category-menu.side-nav .inner-category-menu {
    overflow-y: scroll;
    overflow-x: hidden;
	height: 100%;
}

.category-menu.side-nav.menu-opened {
	left: 0;
}

.category-menu.side-nav.menu-closed {
	left: -301px;
}

.term-menu.side-nav-ul {
	list-style-type: none;
	margin: 0;
}

.term-menu.side-nav-ul li {
	margin: 0;
	border-bottom: 1px solid #999;
}

#page .term-menu.side-nav-ul li a {
	display: block;
	padding: 10px 20px 9px 40px;
	border-bottom: 1px solid transparent;
	border-top: 1px solid transparent;
	color: #064172;
	font-weight: bold;
}

#page .term-menu.side-nav-ul li a:hover {
	color: #333;
	border-bottom: 1px solid #064172;
	border-top: 1px solid #064172;
	background-color: #84bae6;
}

.ogs-gallery-tax-page #ogs-side-menu-nav-opener {
	background-color: #064172;
    position: absolute;
    right: -83px;
    height: 100px;
    width: 83px;
}

.ogs-gallery-tax-page #menu-label {
    color: white;
    position: absolute;
    top: 0;
    width: 65px;
    text-align: center;
    cursor: pointer;
    height: auto;
    left: 9px;
}

.term-hamburger {
    padding: 11px 15px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, -webkit-filter;
    transition-property: opacity, filter;
    transition-property: opacity, filter, -webkit-filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.ogs-gallery-tax-page .term-hamburger {
    float: right;
    top: 34px;
    position: relative;
    right: 8px;
}



.minimize-section {
    display: block;
    width: 25px;
    height: 25px;
    background: transparent url(/images/arrow-down-icon.png);
    background-size: 25px 25px;
    float: right;
	position: relative;
	right: -25px;
}


.min-open {
    background: transparent url(/images/arrow-down-icon.png);
	background-size: 25px 25px;
}
.min-close {
    background: transparent url(/images/arrow-up-icon.png);
	background-size: 25px 25px;
}
