/* desktop */
@media (min-width: 922px) {
	.entry-header {
		margin-left: 34em;
	}

	header.entry-header h1.entry-title {
		/*font-size: 3rem !important;*/
	}

	.variations_form {
		margin-top: -3rem;
	}

	/* Summary short description */ 
	div.summary.entry-summary 
	div.woocommerce-product-details__short-description {
		margin-top: -1.4rem !important;
	}
	/* END summary short description */ 

	.woocommerce-js div.product div.summary {
		margin-bottom: 0em !important;
	}

	.woocommerce-product-gallery {
		margin-top: -80px;
	}

	div.flex-viewport div.woocommerce-product-gallery__wrapper 
	div.woocommerce-product-gallery__image.flex-active-slide 
	a img {
		object-fit: scale-down !important;
		cursor: zoom-in !important;		
	}

	/* added space between the gallery and the product variation dropdown(s) */
	.woocommerce #content .ast-woocommerce-container div.product div.images, 
	.woocommerce .ast-woocommerce-container div.product div.images, 
	.woocommerce-page #content .ast-woocommerce-container div.product div.images, 
	.woocommerce-page .ast-woocommerce-container div.product div.images {
		width: 29% !important;
	}
	
	/* centers images */
	.woocommerce div.product.ast-product-gallery-layout-vertical .flex-viewport {
		width: 86% !important;	
	}
}

/* hide gallery images without */
.woocommerce-product-gallery__image {
	/*visibility: hidden;*/
}
/* show gallery images with */
.woocommerce-product-gallery__image.flex-active-slide {
	visibility: visible;
}

/* post added to cart css helper class added checkout cbw_add_notice_body_class */
body.single-product.has-wc-notice .entry-header {
	margin-left: 0 !important;
}

/* Product added to cart message */
/* fix */
.woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 6rem;
}

@media (max-width: 923px) {
	.woocommerce-notices-wrapper:not(:empty) {
		margin-bottom: 2rem;
	}
}
/*End Product added to cart message */

/* Little image rail */
.woocommerce-js div.product div.images {	
	display: flex !important;
}

.flex-control-thumbs {
	width: 90%;
	position: absolute;
	bottom: -75px; 
	text-align: center;
	display:flex;
	flex-wrap:nowrap;
	padding-bottom:10px;
}

.flex-control-thumbs li {
	margin: 0 6px;
	display: inline-block;
	zoom: 1;
}

.flex-control-thumbs li,
.flex-control-thumbs li:first-child {
	vertical-align: top;
	min-width: 100px;
}

.flex-control-thumbs img {
	display: block;
	opacity: 0.8;
	cursor: pointer;
	height: 60px !important;
	width: 60px !important;
}

.woocommerce-js div.product div.images .flex-control-thumbs {
	overflow: visible !important;
}

.flex-control-thumbs li	 {
	margin-right: -2em !important;	
}
/* END Little image rail */

/* Main Image Rail and product images */	

/* not first but other active children */
div.flex-viewport div.woocommerce-product-gallery__wrapper 
div.woocommerce-product-gallery__image.flex-active-slide 
a img {
	object-fit: scale-down !important;
	cursor: zoom-in !important;		
}

.wp-post-image {
	max-height: 300px !important;
}

.woocommerce-product-gallery__image .flex-active-slide {
	width: 389px !important;
}

@media (max-width: 1459px) {
	div.woocommerce-product-gallery__image.flex-active-slide > a > img {
		width: 80% !important;
	}
}

.flex-viewport {
	margin-right: 100px;
	height: 350px !important;
}

@media only screen and (max-width: 600px) {
	.flex-viewport {
		height: 350px !important;	
	}
}

@media only screen and (max-width: 600px) {
	.woocommerce-product-gallery__wrapper .wp-post-image {
		max-height: 300px !important;
	}
}
/* END Main Image Rail and product images */	


/* Responsive Design */

@media (max-width: 1500px) {
	.flex-control-thumbs li {
		margin-right: -1.3em !important;
	}
}

@media (max-width: 922px) {
	.flex-control-nav {
		display: none !important;
	}
}

/* without this the container cuts out the side of the image at this breakpoint */
@media (max-width: 1458px) {
	.woocommerce div.product.ast-product-gallery-layout-vertical .flex-viewport {
		width: auto !important;
	}
	.flex-viewport {
		margin-right: 0px !important;
	}
}

@media (max-width: 1549px) {
	.flex-control-thumbs li {
		margin-right: -3em !important;
	}
	.flex-control-thumbs img {
		width: 50px !important;
		height: 50px !important;
	}
}

/* Header Responsive Design */
@media(max-width: 1550px) {
	.entry-header {
		margin-left: 32em;
	}
}

@media (max-width: 1440px) {
	header.entry-header {
		margin-left: 29em;
	}
}

@media (max-width: 1400px) {
	header.entry-header {
		margin-left: 28.5em;
	}
}

@media (max-width: 1300px) {
	header.entry-header {
		margin-left: 26em;
	}
}

@media (max-width: 1200px) {
	header.entry-header {
		margin-left: 24em;
	}
}

@media (max-width: 1100px) {
	header.entry-header {
		margin-left: 20em;
	}
}

@media (max-width: 1000px) {
	header.entry-header {
		margin-left: 20em;
	}
}
@media (max-width: 922px) {
	header.entry-header {
		margin-left: 0px;
	}
}
/* END Header Responsive Design */

/* Gallery rail image responsive design */

/* TODO find right break point*/
/* not a preset but is nice for split screen */
@media only screen and (max-width: 921px) and (min-width: 678px) {
	.woocommerce-js div.product div.images img {
		width: 40% !important;
	}
}

@media only screen and (max-width: 1225px) and (min-width: 929px) {
	.flex-control-thumbs img {
		width: 40px !important;
		height: 40px !important;
	}
	.flex-control-thumbs li {
		margin-right: -4em !important;
	}
}

/* END Gallery rail image responsive design */

/*END Responsive Design*/
