/*
ref: https://www.jqueryscript.net/slideshow/Lightweight-Banner-Slideshow-Rotator-Plugin-For-jQuery-Switchable.html
*/
.g_slide {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.g_slide_top {
    width: 1000px;
    height: 250px;
}
.g_slide_square {
    width: 250px;
    height: 250px;
}

.g_slide .item {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
}

.g_slide .item img {
    width: 100%;
}

.switch_main { position: relative; }

.g_slide .switch_nav {
    width: 100%;
    position: absolute;
    right: 0;
    bottom: 2px;
    z-index: 2;
    text-align: center;
}

.g_slide .switch_nav_item {
    display: inline-block;
    margin: 0 10px 0 0;
    width: 10px;
    height: 10px;
    line-height: 200px;
    overflow: hidden;
    font-size: 0;
    border-radius: 100%;
    background: #b7b7b7;
    text-align: center;
    font-size: 18px;
    color: #fff;
}

@media screen and (max-width: 1270px) {
    .g_slide_top { width: 720px; height: 180px; }
    .g_slide .item { width: 100vw; }
}
@media screen and (max-width: 720px) {
    .g_slide_top { width: 100%; }
}
@media screen and (max-width: 640px) {
    .g_slide_top { height: 160px; }
}
@media screen and (max-width: 420px) {
    .g_slide_top { height: 90px; }
    .g_slide .switch_nav { bottom: 0; }
    .g_slide .switch_nav_item { width: 8px; height: 8px; }
}

.g_slide .switch_nav_item:hover { text-decoration: none; }

.g_slide .switch_nav_item_current { background: #eb6100; }

.g_slide .prev,
.g_slide .next {
    position: absolute;
    top: 50%;
    z-index: 10;
    margin-top: -15px;
    width: 18px;
    height: 30px;
    overflow: hidden;
    background: url(slide.png) no-repeat;
    transition: margin-left .3s ease, margin-right .3s ease;
}

.g_slide .prev {
    left: -18px;
    _left: 10px;
}

.g_slide .next {
    right: -18px;
    _right: 10px;
    background-position: -19px 0;
}

.g_slide .prev:hover { background-position: 0 -70px; }

.g_slide .next:hover { background-position: -19px -70px; }

.g_slide:hover .prev { margin-left: 28px; }

.g_slide:hover .next { margin-right: 28px; }