/*
* Copyright 2016 Seven Spikes Ltd. All rights reserved. (http://www.nop-templates.com)
* http://www.nop-templates.com/t/licensinginfo
*/

@media all and (max-width: 1000px) {

#sevenspikes-cloud-zoom:before {
	display: none;
}
#sevenspikes-cloud-zoom img {
	position: static;
}

}

@media all and (min-width: 1001px) {

/* Initial positions until the cloud zoom initializes, so that the image does not jump until the wrap elemet is added, because currently the image is position through this wrap element */
#sevenspikes-cloud-zoom .cloud-zoom {
    position: relative;
}
#sevenspikes-cloud-zoom .cloud-zoom img {
    position: static;
}

/* theme overwritting styles */

.gallery {
    position: relative;
    overflow: visible;
	font-size: 0;
}
.gallery .picture-wrapper {
	/*** !!! set line-height to the appropriate height  !!! ***/
	line-height: 600px;
}
.gallery .picture-wrapper .picture:before {
	display: none;
}

/* main picture styles */

#sevenspikes-cloud-zoom {
	margin: 0 auto;
	overflow: visible;
	text-align: center;
	font-size: 0;
}
#sevenspikes-cloud-zoom:before {
	display: none;
}
#wrap {
	display: inline-block;
	max-width: 100%;
	vertical-align: middle;
	line-height: 0;
}
#wrap a {
	display: inline-block !important;
	max-width: 100%;
	vertical-align: middle;
	line-height: 0;
}
#wrap img {
	position: static !important;
}

/* This is the overlay element. */

#wrap > .mousetrap {
	right: 0;
	bottom: 0;
	margin: auto;
}
.cloud-zoom-lens {
	margin: 0;
	border: none;
	background-color: #fff;
	cursor: crosshair;
}

/* This is the zoom window. */

#cloudZoomWindowElement {
	left: 0;
	top: 0;
	z-index: 1;
}
#cloud-zoom-big {
	border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
    z-index: 1000; 
}
.overview #cloud-zoom-big {
	position: static !important; /* fix for the zoom window so that its wrapper takes the dimensions */
}

/* This is for the title text. */

.cloud-zoom-title {
	background-color: #000;
	padding: 5px;
	text-align: center;
	font-size: 11px;
	line-height: normal;
	font-weight: bold;
	color: #fff;
}

/* This is the loading message. */

.cloud-zoom-loading {
	background: #000;
	padding: 3px;
	font-size: 12px;
	line-height: normal;
	color: #fff;
}

/* with product ribbons enabled */

.gallery .ribbon-wrapper {
	/*never display as inline or inline-block*/
	vertical-align: middle;
	line-height: 0;
}
.gallery .ribbon-wrapper:hover .ribbon-position {
	opacity: 0;
}

}

@media all and (max-width: 1281px) {

    .product-essential {
        margin-top: 82px;
        background-color: #fff;
    }
    .gallery {
        display: inline-block;
        margin-bottom: 0;
    }
    .overview {
        padding-top: 30px;
        background-color: #f8f8f8;
    }
    .previous-product, 
    .next-product {
        top: -78px;
    }

}

@media all and (min-width: 1281px) {
    .gallery .picture-wrapper {
        line-height: 320px;
    }
    .picture-wrapper {
        margin-left: 130px;
    }
}