#content .canvas {width: 100%;}
.product_images {
width: 100%;
height: 100%;
min-height: 300px;
margin: 0 0 50px 0;
text-align: center;
background: transparent;
}
.product_images img {
max-width: 100% !important;
}
.product_images ul, .product_images li {
line-height: 0;
}
.product_images.loading li img {
visibility: visible;
}
.product_images .flex-viewport ul li {
cursor: e-resize;
}
.product_images .flex-viewport ul li.solo {
cursor: default;
}
.product_images .flex-control-nav {
width: 100%;
position: absolute;
bottom: 22px;
left: -4px;
}
.product:hover .product_images .flex-control-nav {
display: block;
}
.product_images .flex-control-nav li {
margin: 3px !important;
display: block;
*display: block;
float: left;
}
.product_images .flex-control-nav.flex-control-paging li a {
width: 4px;
height: 4px;
/*display: block;*/
border: 1px solid #666;
opacity: .7;
box-shadow: none;
background: transparent;
}
.product_images .flex-control-nav.flex-control-paging li a:hover {
background: #fff;
}
.product_images .flex-control-nav.flex-control-paging li a.flex-active {
margin-top: 1px;
cursor: default;
border: none;
background: #000;
}
.spinner {
opacity: .5;
height: 40px;
width: 40px;
position: absolute;
top: 110px;
left: 50%;
margin: 0 auto 0 -20px;
-webkit-animation: rotation 1s infinite linear;
-moz-animation: rotation 1s infinite linear;
-o-animation: rotation 1s infinite linear;
animation: rotation 1s infinite linear;
border-left: 2px solid #999;
border-right: 2px solid #999;
border-bottom: 2px solid #999;
border-top: 2px solid #666;
border-radius: 100%;
}
@-webkit-keyframes rotation {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(359deg);
}
}
@-moz-keyframes rotation {
from {
-moz-transform: rotate(0deg);
}
to {
-moz-transform: rotate(359deg);
}
}
@-o-keyframes rotation {
from {
-o-transform: rotate(0deg);
}
to {
-o-transform: rotate(359deg);
}
}
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
.custom section.content h1 {
display: none;
}
.gallery_menu { text-align: center; display: inline-block; width: 100%;
position: relative; z-index: 99;
margin: 0 0 10px;
}
.gallery_menu ul {padding: 0;}
.gallery_menu ul li { display: inline;
font-size: 18px;
padding: 0 10px;
}
#custom_gallery2, #custom_gallery3, #custom_gallery4, #custom_gallery5, #custom_gallery6, #custom_gallery7 {display: none;}
#custom_gallery, #custom_gallery2, #custom_gallery3, #custom_gallery4, #custom_gallery5, #custom_gallery6, #custom_gallery7 {
position: relative;
left: 0;
margin: auto;
max-width: 1100px;
right: 0;
padding: 0 15px;
}
.active { pointer-events: none; cursor: default; text-decoration: underline !important;}
.product_images .flex-control-nav { bottom: 0;}
#page_body {width: 100%; max-width: 100%;}
.keyline { display: none !important; }
#content_header {
margin-top: -50px;
}
#content_header h1 {
margin: 0 0 10px;
}
.flex-control-paging li a {
background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);
box-shadow: 0 0 3px rgba(255, 255, 255, 0.3) inset;
}
.flex-control-nav {
position: relative;
text-align: left;
}
.product_images .flex-control-nav {
width: 100%;
position: relative;
}
.product_images li img { max-height: 100%; opacity: 0; }
.product_images li { opacity: 1; max-width: 100%; }
.product_images li { margin: 0;}

.product_images .flex-control-nav.flex-control-paging li a {
height: 8px;
width: 8px;
text-indent: -9999px;
border-radius: 50%;
cursor:pointer;
display: inline-block;
}
.page.custom {
max-width: 100% !important;
margin: 0;
}
.page.custom ol, .page.custom ul, .product_detail .description ol, .product_detail .description ul {
padding-left: 0;
}
.buy {
display: block;
margin: 0 auto;
}
@media screen and (max-width: 765px) {
.page.custom {
margin: 0;
}
}

$(document).ready(function(){
loadImages($('#custom_gallery'));
function loadImages(galleryEl) {
galleryEl.find('img.load').each(function(){
$(this).attr('src', $(this).attr('id'));
$(this).removeClass('load');
});
galleryEl.imagesLoaded(afterLoad);
}
function afterLoad() {
$(this).find('.spinner').fadeOut();
$(this).find('.product_images.galy').flexslider({
animation: 'slide',
easing: 'swing',
animationSpeed: 500,
directionNav: false,
slideshow: true,
smoothHeight: true,
useCSS: false
});
$(this).find('.slides img').attr('style','opacity: 1');
setTimeout(function(){
$('.main .page').height(0);
}, 1000);
}
$('.link').click(function(evt){
evt.preventDefault();
evt.stopPropagation();
var currentGal = $('.link.active').attr('href');
$('.link.active').removeClass('active');
$('#' + currentGal).fadeOut(400);
$('#' + $(this).attr('href')).fadeIn();
$(this).addClass('active');
loadImages($('#' + $(this).attr('href')));
setTimeout(function(){
$(window).trigger('resize');
}, 700);
});
if ('ontouchstart' in document.documentElement) {
console.log('touchstart');
} else {
$('.product_images.galy').click(function(event) {
event.preventDefault();
$(this).flexslider('next');
});
}
});