/*
 Theme Name:     15zine Child
 Theme URI:      http://themeforest.net/user/cubell
 Description:    15zine Child Theme
 Author:         Cubell
 Author URI:     http://themeforest.net/user/cubell
 Template:       15zine
 Version:        1.3
*/


/* =Theme customization starts here. Any CSS code entered here will overwrite the parent's CSS.
-------------------------------------------------------------- */


/* WooCommerce 3.0 Gallery */
/* reference: https://createandcode.com/broken-photo-gallery-and-lightbox-after-woocommerce-3-0-upgrade/ */
.woocommerce-product-gallery {
	position: relative;
	margin-bottom: 3em
}

.woocommerce-product-gallery figure {
	margin: 0
}

.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2) {
	width: 25%;
	display: inline-block
}

.woocommerce-product-gallery .flex-control-thumbs li {
	list-style: none;
	float: left;
	cursor: pointer
}

.woocommerce-product-gallery .flex-control-thumbs img {
	opacity: .5
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1
}

.woocommerce-product-gallery img {
	display: block
}

.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
	width: 33.3333%
}

.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
	width: 25%
}

.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
	width: 20%
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1em;
	right: 1em;
	z-index: 99;
}

a.woocommerce-product-gallery__trigger {
	text-decoration: none;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: .875em;
	right: .875em;
	display: block;
	height: 2em;
	width: 2em;
	border-radius: 3px;
	z-index: 99;
	text-align: center;
	text-indent: -999px;
	overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	background-color: #ea583a;
	color: #ffffff;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
	background-color: #ea583a;
	border-color: #ea583a;
	color: #f7bdb0;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:before {
	font: normal normal normal 1em/1 FontAwesome;
	font-size: inherit;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: block;
	content: "\f00e";
	line-height: 2;
	text-indent: 0;
}

/* Hide From prices on the print subscription at the top of an entry since they show the wrong ones, but keep the pricing at bottom. */

.postid-427 .summary .price {
	display: none;
}

.postid-427 .summary form .price {
	display: block;
}


/* when viewed on smaller resolution, adjust 4 columns to 2 columns */
@media (min-width: 430px) and (max-width: 1019px) {
	.home .woocommerce ul.products li.product {
	    width: 48% !important;
	}
	.home .woocommerce ul.products li.product:nth-child(2n) {
	    margin-right: 0;
	}
	.home .woocommerce ul.products li.product:nth-child(2n+1) {
	    clear: both;
	}
}
@media (max-width: 429px) {
	.home .woocommerce ul.products li.product {
	    width: 100%;
	    margin-right: 0;
	}
}
