.thumbnail.gallery-preview {
    padding: 10px;
}

.gallery-preview .image {
    display: inline-block;
    width: 100%;
    text-align: center;
    height: 240px;
    position: relative;
}
.gallery-preview .image img,
.owl-carousel .owl-item .gallery-preview img
{
    display: inline-block;
    /*height: 100%;*/
    max-height: 100%;
    width: auto;
    max-width: 100%;
    border: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.gallery-preview h3 {
    font-size: 1.2em;
    height: 38px;
    overflow: hidden;
    text-align: center;
}
.gallery-preview h3 a {
    text-decoration: none;
}

.gallery-item {
    margin-bottom: 30px;
}
.gallery-item h1 {
    font-size: 2em;
    margin: 0 0 30px 0;
}
/*.gallery-item dl.parameters {*/

/*}*/
.gallery-item .parameters > dt,
.gallery-item .parameters > dd,
.gallery-item .parameters > div.col-sm-6
{
    /*display: inline-block;*/
    /*width: 50%;*/
    /*float: left;*/
    /*text-align: left;*/
    padding: 10px 15px;
    color: #777;
    font-size: 0.9em;
}
.gallery-item .parameters > div:nth-child(3n-1) {
    color: #222;
    font-size: 1.1em;
}
/*.gallery-item dl.parameters dt:before {*/
    /*display: table;*/
    /*content: " ";*/
/*}*/
/*.gallery-item dl.parameters dd:after {*/
    /*content: '';*/
    /*clear: both;*/
/*}*/

.owl-carousel.gallery-item-carousel .owl-item.image-wrap-496,
.owl-carousel.product-item-carousel .owl-item.image-wrap-496
{
    display: inline-block;
    height: 496px;
    width: 100%;
   /* line-height: 496px; */
    vertical-align: middle;
    text-align: center;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}
.owl-carousel.gallery-item-carousel .owl-nav .owl-prev,
.owl-carousel.product-item-carousel .owl-nav .owl-prev
{
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 40px;
    top: 50%;
    margin-top: -20px;
    left: 0;
    font-size: 30px;
    text-align: center;
    line-height: 40px;
    vertical-align: middle;
}
.owl-carousel.gallery-item-carousel .owl-nav .owl-prev:before,
.owl-carousel.product-item-carousel .owl-nav .owl-prev:before
{
    content: '\f104';
    font-family: 'FontAwesome';
}
.owl-carousel.gallery-item-carousel .owl-nav .owl-next,
.owl-carousel.product-item-carousel .owl-nav .owl-next
{
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 40px;
    top: 50%;
    margin-top: -20px;
    right: 0;
    font-size: 30px;
    text-align: center;
    line-height: 40px;
    vertical-align: middle;
}
.owl-carousel.product-item-carousel .owl-nav .owl-next:before,
.owl-carousel.gallery-item-carousel .owl-nav .owl-next:before
{
    content: '\f105';
    font-family: 'FontAwesome';
}
.owl-carousel.gallery-item-carousel .owl-item.image-wrap-496 a,
.owl-carousel.product-item-carousel .owl-item.image-wrap-496 a
{
    display: inline-block;
    vertical-align: middle;
}
.owl-carousel.gallery-item-carousel .owl-item.image-wrap-496 img,
.owl-carousel.product-item-carousel .owl-item.image-wrap-496 img
{
    max-height: 496px;
    max-width: 100%;
    display: inline-block;
    /*height: 100%;*/
    width: auto;
}

.owl-carousel.gallery-item-carousel .owl-thumbs-wrapper,
.owl-carousel.product-item-carousel .owl-thumbs-wrapper
{
    position: relative;
    overflow: hidden;
    height: 65px;
    margin-bottom: 10px;
}

.owl-carousel.gallery-item-carousel .owl-thumbs-wrapper .owl-thumbs-wrapper-inner,
.owl-carousel.product-item-carousel .owl-thumbs-wrapper .owl-thumbs-wrapper-inner
{
    overflow-y: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.owl-carousel.gallery-item-carousel .owl-thumbs-wrapper .owl-thumbs,
.owl-carousel.product-item-carousel .owl-thumbs-wrapper .owl-thumbs
{
    transition: all 0.3s ease-in-out;
}
.owl-carousel.gallery-item-carousel .owl-thumbs,
.owl-carousel.product-item-carousel .owl-thumbs
{
    display: block;
    text-align: center;
    position: static;
    bottom: 0;
    padding: 0;
    left: 0;
    margin: 0 0 20px 0;
    max-height: 55px;
    overflow: hidden;
    background-color: transparent;
}
.owl-thumbs button.owl-thumb-item {
    display: inline-block;
    width: 50px;
    padding: 0;
    border: none;
    height: 50px;
    margin: 5px 5px 0 0;
    cursor: pointer;
    overflow: hidden;
}
.owl-thumbs button.owl-thumb-item {
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
    border: solid 1px #ffffff;
    background-color: transparent;
}
.owl-thumbs button.owl-thumb-item.active,
.owl-thumbs button.owl-thumb-item:hover {
    border: solid 1px #976f55;
    opacity: 1;
}
.owl-thumbs button img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.owl-carousel.owl-carousel-4 .owl-item {
    /*display: block;*/
    /*float: none;*/
    /*clear: both;*/
}

section#gallery input,
section#gallery select,
section#gallery select.form-control,
section#gallery button.input,
section#gallery textarea.input,
section#gallery label.input,
section#gallery .select2.select2-container {
    background-color: #f7f7f7;
    border: none;
    border-radius: 5px;
    font-size: 1.15em;
    color: #777;
    display: inline-block;
    max-width: 100%;
    /*height: 50px;*/
    min-height: 50px;
    line-height: 35px;
    margin: 0 0 0.5rem 0;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    white-space: normal;
    cursor: pointer;
    -moz-transition: all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    box-shadow: none;
}
section#gallery input[type="number"]::-webkit-outer-spin-button,
section#gallery input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
section#gallery input[type="number"]:focus {
    outline: none;
    box-shadow: none;
}
section#gallery input:hover,
section#gallery input:focus,
section#gallery select:hover,
section#gallery select:focus,
section#gallery select.form-control:hover,
section#gallery select.form-control:focus,
section#gallery label.input:hover,
section#gallery label.input:focus,
section#gallery button.input:hover,
section#gallery button.input:focus,
section#gallery textarea.input:hover,
section#gallery textarea.input:focus,
section#gallery .select2.select2-container:hover {
    background-color: #f1f1f1;
    color: #555;
}
section#gallery .form-group label {
    font-weight: 300;
    color: #666;
}
section#gallery .select2-container .select2-selection--single {
    height: 30px;
    margin-top: 3px;
    background-color: transparent;
    border: none;
}
section#gallery .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
}
section#gallery .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}

@media only screen and (max-width: 480px) {
    .owl-carousel.owl-carousel-4 .thumbnail.gallery-preview {
        margin: 0 15px;
    }
}