﻿.elastislide-horizontal ul.min-items-unreached {
	max-height: initial !important;
}
.elastislide-horizontal ul.min-items-unreached li {
	width: 25% !important;
	max-width: initial !important;
	max-height: initial !important;
}

/* Ratings Gallery */
.es-gallery .elastislide-wrapper {
	box-shadow: none;
	margin: 20px 0;
	min-height: 40px;
}
.es-gallery .elastislide-horizontal {
    padding: 0;
}
.es-gallery .elastislide-carousel {
    margin-left: -15px;
    margin-right: -15px;
}
.es-gallery .elastislide-carousel ul li {
    padding-left: 15px;
    padding-right: 15px;
}
.es-gallery .elastislide-carousel ul li a img {
    border: 0;   
}
.es-gallery .preview {
    background-color: #eeefef;
    text-align: center;
    position: relative;
}
.es-gallery .preview img {
    max-width: 100%;
    display: inline-block;
}
.es-gallery .preview a.preview-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40%;
}
.es-gallery .preview a.preview-nav.preview-prev {
    left: 0;
}
.es-gallery .preview a.preview-nav.preview-next {
    right: 0;
}
.es-gallery .preview a.preview-nav > span {
    position: absolute;
    visibility: hidden;
    top: 50%;
    width: 36px;
    height: 34px;
    margin-top: -18px;
    cursor: pointer;
    z-index: 8040;
    background: url('/js/fancybox/fancybox_sprite.png');
}
.es-gallery .preview a.preview-nav.preview-next > span {
    background-position: 0 -72px;
    right: 10px;
}
.es-gallery .preview a.preview-nav.preview-prev > span {
    background-position: 0 -36px;
    left: 10px;
}
.es-gallery .preview a.preview-nav:hover > span {
    visibility: visible;
}

.es-gallery .elastislide-wrapper nav span {
    width: 22px;
    height: 37px;
    background: transparent url('/img/elastislide-nav.png') no-repeat 0 0;
    border-radius: 0;
    left: -26px;
    margin-top: -19px
}
.es-gallery .elastislide-horizontal nav span.elastislide-next {
    left: auto;
    right: -26px;
    background-position: -22px 0;
}

	@media (max-width: 767px) {
		.es-gallery .elastislide-wrapper nav span {
			left: 0;
			background-color: #fff;
			padding: 5px;
		}
		.es-gallery .elastislide-horizontal nav span.elastislide-next {
			right: 0;
			background-color: #fff;
			padding: 5px;
		}
	}
	@media (min-width: 0) {
		.es-gallery .preview img {
			max-height: 281px;
		}
	}

	@media (min-width: 768px) {
		.es-gallery .preview img {
			max-height: 467px;
		}
	}
	@media (min-width: 992px) {
		.es-gallery .preview img {
			max-height: 400px;
		}
	}

	@media (min-width: 1200px) {
		.es-gallery .preview img {
			max-height: 487px;
		}
	}