/* gallery thumbs */
.mg_slide {
    position: relative;
    height: 164px;
}

.mg_slide .frame {
    height: 164px;
    position: relative;
    overflow: hidden;
}

.mg_slide .frame .slider {
    text-align: center;
    white-space: nowrap;
    padding-top: 20px;
}

.mg_slide .frame .slider img {
    height: 140px;
    padding: 2px;
    cursor: pointer;

    -webkit-transition: margin 0.5s ease;
    -moz-transition: margin 0.5s ease;
    -o-transition: margin 0.5s ease;
    transition: margin 0.5s ease;
}

.mg_slide .frame .slider img:hover {
    z-index: 2;
    margin-top: -20px;
}

.mg_slide .mg_gallery_left {
    left: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 3px 0 2px rgba(1, 1, 1, 0.3);
    border-radius: 0 25px 25px 0;
    background-image: url(../img/arrow_left.png);
}

.mg_slide .mg_gallery_right {
    right: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), -3px 0 2px rgba(1, 1, 1, 0.3);
    border-radius: 25px 0 0 25px;
    background-image: url(../img/arrow_right.png);
}

a.mg_gallery_left,
a.mg_gallery_right {
    display: none;

    height: 50px;
    width: 25px;
    position: absolute;
    top: 47px;
    /* background-color: rgba(255, 255, 255, 0.5); */
    background-color: #FFF;
    opacity: 0.5;
    cursor: pointer;

    background-repeat: no-repeat;
    background-position: center;

    -webkit-transition: opacity 0.5s ease;
    -moz-transition: opacity 0.5s ease;
    -o-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
}

a.mg_gallery_left:hover,
a.mg_gallery_right:hover {
    opacity: 0.8;
}
/* <<-- gallery thumbs */


@media all and (max-height: 899px) {
    .mg_slide { height: 124px; }
    .mg_slide .frame { height: 124px; }
    .mg_slide .frame .slider img { height: 120px; }
    a.mg_gallery_left,
    a.mg_gallery_right { top: 37px; }
}

@media all and (max-height: 799px) {
    .mg_slide { height: 104px; }
    .mg_slide .frame { height: 104px; }
    .mg_slide .frame .slider img { height: 100px; }
    a.mg_gallery_left,
    a.mg_gallery_right { top: 27px; }
}

@media all and (max-height: 699px) {
    .mg_slide { height: 84px; }
    .mg_slide .frame { height: 84px; }
    .mg_slide .frame .slider img { height: 80px; }
    a.mg_gallery_left,
    a.mg_gallery_right { top: 17px; }
}