@charset "utf-8";

#container_main {
    overflow: hidden;
    width: 100%;
    background: url(/council/images/committee/main/bg.jpg) repeat-x 50% 100%;
}

#container_main h4 span {
    color: #2171a9;
}

.control button {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 25px;
    font-size: 0;
    text-indent: -9999px;
    vertical-align: top;
    background: url(/council/images/committee/main/ico_ctrl.png) no-repeat 8px -115px;
}

.control .btn_next {
    background-position: -55px -115px;
}

.more {
    display: flex;
    align-items: center;
    position: absolute;
    top: 5px;
    line-height: 100%;
    box-sizing: border-box;
}

.more:after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 19px;
    height: 19px;
    margin: -1px 0 0 12px;
    background: url(/council/images/committee/main/ico_more2.png) no-repeat;
}

/* 비주얼 */
#visual {
    position: relative;
    height: 656px;
}


@media all and (max-width:1430px) {}

@media all and (max-width:1280px) {}

@media all and (max-width:1024px) {
    #visual{
        height: fit-content;
    }

    #visual img{
        width: 100%;
        aspect-ratio:  10 / 4;
    }
}

@media all and (max-width:768px) {}

@media all and (max-width:568px) {}

@media all and (max-width:430px) {}

@media all and (max-width:380px) {}

/* 의사일정 */
#agenda {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#agenda .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 50px;
    height: 96px;
    color: #fff;
    background: url(/council/images/committee/main/bg_agenda.jpg)no-repeat;
    background-size: cover;
    border-radius: 20px 20px 0 0;
}

#agenda .inner::after {
    display: none;
}

#agenda h4 {
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.075em;
}

#agenda .date_wrap {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 55px;
    width: 282px;
}

#agenda .date_wrap button {
    width: 30px;
    height: 30px;
    font-size: 0;
    background: url(/council/images/committee/main/ico_agenda_arrow.png)no-repeat;
    border-radius: 50%;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
}

#agenda .date_wrap .btn_next {
    transform: rotate(180deg);
}

#agenda .date {
    padding: 3px 0 0;
    font-size: 27px;
    font-weight: 500;
    width: 190px;
    text-align: center;
    letter-spacing: -0.075em;
    line-height: 1;
}

#agenda .txt_wrap {
    overflow: hidden;
    position: relative;
    padding: 15px 55px 15px 26px;
    width: calc(100% - 665px);
    height: 50px;
    background: rgba(255, 255, 255, .2);
    border-radius: 5px;
    box-sizing: border-box;
}

#agenda .txt_wrap p,
#agenda .txt_wrap a {
    overflow: hidden;
    display: block;
    width: 100%;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
    text-overflow: ellipsis;
}

#agenda .txt_wrap .btn_stop {
    position: absolute;
    top: 18px;
    right: 26px;
    width: 15px;
    height: 15px;
    font-size: 0;
    background: url(/council/images/committee/main/ico_agenda_stop.png)no-repeat 2px 1px;
}

#agenda .txt_wrap .btn_stop.on{
    background-position: -18px 1px;
}

#agenda .more {
    top: 40px;
    right: 36px;
    display: flex;
    align-items: center;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
}

#agenda .more::after {
    margin: -1px 0 0 13px;
    width: 14px;
    height: 13px;
    background: url(/council/images/committee/main/ico_more1.png)no-repeat;
}

@media all and (max-width: 1024px) {
    #agenda {
        position: static;
    }

    #agenda .inner {
        padding: 20px 15px;
        height: auto;
        border-radius: 0;
    }

    #agenda h4,
    #agenda .date {
        font-size: 24px;
    }

    #agenda .date_wrap {
        margin: 0 0 0 20px;
    }

    #agenda .txt_wrap {
        margin: 15px 0 0;
        width: 100%;
    }

    #agenda .more {
        top: 28px;
        right: 15px;
    }
}

@media all and (max-width: 768px) {
    #agenda .inner {
        padding: 20px 10px;
    }

    #agenda h4,
    #agenda .date {
        font-size: 20px;
    }

    #agenda .date_wrap {
        width: 250px;
    }

    #agenda .more {
        right: 10px;
    }
}

@media all and (max-width: 568px) {
    #agenda .date_wrap {
        margin: 15px 0 0;
        width: 100%;
    }

    #agenda .more {
        font-size: 14px;
    }
}

/* 현역의원 */
#member {
    margin: 53px auto;
    display: flex;
    align-items: start;
    gap: 6.6vw;
    position: relative;
}

#member.inner:after {
    content: none;
}

#member h4 {
    font-size: 30px;
    font-weight: 600;
    text-align: left;
}

#member .mem_profile .cont {
    padding-block: 17px;
    padding-inline: 22px;
    width: 400px;
    border-radius: 5px;
    background: url(/council/images/committee/main/bg_profile.jpg) center no-repeat;
    background-size: cover;
    display: flex;
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

#member .mem_profile .cont .no-data {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #FFF;
    font-weight: 500;
}

#member .mem_profile .cont .desc .name {
    font-size: 23px;
    color: #fff;
    font-family: 'gmarket';
    font-weight: 900;
    margin-bottom: 23px;
    margin-top: 9px;
}

#member .mem_profile .cont .desc li {
    display: flex;
    gap: 23px;
    font-weight: 500;
}

#member .mem_profile .cont .desc li * {
    color: #fff;
}

#member .mem_profile .cont .desc .info {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    letter-spacing: 0.4px;
}

#member .mem_profile .btnWrap {
    display: flex;
    margin-top: 20px;
    gap: 14px;
}

#member .mem_profile .btnWrap a {
    color: #fff;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 93px;
    height: 30px;
    border-radius: 15px;
    border: 1px dashed #fff;
    background-color: #6c582f;
    transition: 0.3s;
    font-size: 15px;
}

#member .mem_profile .btnWrap a:hover {
    background-color: #9b6e15;
}

#member .mem_slider {
    width: calc(100% - 6.6vw - 500px);
}

#member h4 span {
    color: #2171a9;
}

#member .more {
    top: 12px;
    right: 0;
    font-size: 15px;
    text-decoration: none;
    position: absolute;
    right: 0;
}

#member .more::after {
    width: 19px;
    height: 19px;
    background: url(/council/images/committee/main/ico_more2.png) no-repeat;
}

#member .mem_wrap {
    z-index: 1;
    margin: 15px auto 0;
    position: relative;
    width: 100%;
}

#member .mem_wrap button {
    z-index: 1;
    position: absolute;
    top: 77px;
    left: -60px;
    font-size: 0;
    width: 34px;
    height: 34px;
    background: #fff url(/council/images/committee/main/ico_member_arrow.png)no-repeat 13px 9px;
    border: 1px solid #a3a3a3;
    border-radius: 8px;
    box-shadow: 0 0 10px 0 rgba(72, 86, 158, .15);
    box-sizing: border-box;
}

#member .mem_wrap .btn_prev {
    transform: rotate(180deg);
}

#member .mem_wrap .btn_next {
    left: auto;
    right: -60px;
}

#member .slick-slide {
    margin: 0 14px;
}

#member .list {
    text-align: center;
    position: relative;
    cursor: pointer;
}

#member .list a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

#member .list a:hover:before {
    width: 100%;
    height: 100%;
    content: '위원 소개 바로가기';
    font-size: 14px;
    color: #fff;
    font-weight: 400;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, .5);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#member .list:hover:before {
    visibility: visible;
    opacity: 1;
    transition: 0.3s;
}

#member .list:hover .txt>span {
    background-color: #d19621;
    color: #fff;
    transition: 0.3s;
}

#member .list .pic {
    overflow: hidden;
    margin: 0 auto;
    width: 130px;
    height: 150px;
    border: 1px solid #d0c9bb;
    border-radius: 5px;
    box-sizing: border-box;
}

#member .list .pic img {
    width: 100%;
    height: 100%;
}

#member .list .txt p {
    margin: 3px 0;
    font-size: 19px;
    font-weight: 500;
}

#member .list .txt p span {
    font-size: 14px;
    transition: 0.3s;
}

#member .list .txt>span {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 107px;
    height: 27px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #bd943f;
    border-radius: 15px;
    box-sizing: border-box;
}

@media all and (max-width:1440px) {
    #member .more {
        right: 15px;
    }
}

@media all and (max-width:1280px) {
    #member .mem_wrap button {
        left: -30px;
    }

    #member .mem_wrap .btn_next {
        right: -30px
    }
}

@media all and (max-width:1180px) {
    #member {
        flex-direction: column;
        align-items: start;
        gap: 2rem;
    }

    #member .mem_wrap {
        width: 100%;
    }

    #member h4 {
        font-size: 25px;
    }

    #member .mem_profile {
        width: 100%;
    }

    #member .mem_profile .cont {
        width: calc(100% - 44px);
    }

    #member .mem_slider {
        width: calc(100% - 30px);
        margin: 0 auto;
    }

    #member .mem_wrap button {
        left: 0px;
    }

    #member .mem_wrap .btn_next {
        right: 0px;
    }
}

@media all and (max-width:768px) {
    #member h4 {
        font-size: 26px;
        text-align: left;
    }

    #member .more {
        top: 10px;
        right: 10px;
    }
}

@media all and (max-width:568px) {
    #member h4 {
        font-size: 22px;
    }

    #member .more {
        top: 10px;
        font-size: 14px;
    }
}

@media all and (max-width:380px) {
    #member .list .pic {
        width: 60%;
        height: auto;
    }

    #member .list .txt p {
        font-size: 17px;
    }

    #member .mem_profile .cont {
        padding-block: 28px;
        border-radius: 20px 0 20px 0;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    #member .mem_profile .cont .desc li {
        font-size: 15px;
    }

    #member .mem_profile .cont .desc .name {
        font-size: 26px;
        font-weight: 800;
        text-align: center;
        margin-top: 0;
        margin-bottom: 8px;
    }

    #member .mem_wrap button {
        top: 50%;
        transform: translateY(-50%);
    }

    #member .mem_wrap .btn_prev {
        transform: rotate(180deg) translateY(40%);
    }
}

@media all and (max-width:350px) {}

.sec {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 게시판 */
#board {
    width: calc(100% - 368px);
}

#board .title {
    display: flex;
    align-items: flex-end;
}

#board .title h4 {
    font-size: 25px;
}

#board .title>span {
    margin: 0 0 0 12px;
    font-size: 15px;
    color: #4b4b4b;
}

#board>ul {
    position: relative;
    margin: 15px 0 0;
    padding: 0 55px 0 0;
    width: 100%;
    box-sizing: border-box;
    transition: .3s ease-in-out;
}

#board>ul.all {
    padding: 0;
}

#board>ul>li {
    float: left;
    width: 33.33%;
}

#board>ul>li>h5 a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 52px;
    font-size: 18px;
    font-weight: 300;
    color: #000;
    text-align: center;
    text-decoration: none;
    background: #fbfbfb;
    border: 1px solid #ebeaea;
    box-sizing: border-box;
}

#board>ul>li.on>h5 a {
    position: relative;
    font-weight: 600;
    border-radius: 15px;
    border: 0;
    background: #fff;
}

#board>ul>li.on>h5 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #a28445;
    border-radius: 15px;
}

#board>ul>li .con {
    position: absolute;
    top: 75px;
    left: 0;
    display: none;
    width: 100%;
}

#board>ul>li.on .con {
    display: block;
}

#board .con li.none {
    padding: 100px 0 0;
    text-align: center;
}

#board .con li:not(:first-child) a {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 40px;
    text-decoration: none;
    box-sizing: border-box;
}

#board .tag {
    position: relative;
    display: block;
    width: 79px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #fff;
    border-radius: 9px;
}

#board .tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #a28445;
    border-radius: 9px;
}

#board .tit {
    display: inline-block;
    max-width: calc(100% - 265px);
    padding: 0 20px 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
}

#board .wrap {
    position: absolute;
    top: 10px;
    right: 38px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 200;
    color: #848383;
}

#board .wrap .view {
    position: relative;
    padding: 0 0 0 24px;
}

#board .wrap .view::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 19px;
    height: 12px;
    background: url(/council/images/committee/main/ico_view.png)no-repeat;
}

#board .wrap .view::after {
    content: '';
    display: inline-block;
    margin: 0 10px 1px 14px;
    width: 1px;
    height: 10px;
    background: #d8d6d6;
}

#board .date {
    position: relative;
    display: block;
    padding: 0 0 0 25px;
    line-height: 110%;
    font-weight: 200;
}

#board .date::before {
    content: '';
    display: block;
    position: absolute;
    top: 2px;
    left: 0;
    width: 16px;
    height: 14px;
    background: url(/council/images/committee/main/ico_date.png) no-repeat;
}

#board .ico_new {
    display: inline-block;
    width: 15px;
    height: 16px;
    line-height: 17px;
    margin: 0 0 0 -15px;
    font-size: 10px;
    border-radius: 3px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 200;
    color: #fff;
    background: #c32a4a;
    vertical-align: top;
}

#board .more {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    width: 55px;
    height: 55px;
    font-size: 0;
    text-indent: -9999px;
    background: #fbfbfb url(/council/images/kr/main/ico_more1.jpg)no-repeat center;
    border: 1px solid #ebeaea;
    border-left: 0;
}

#board li.on .more {
    display: block;
}

#board .con .first a {
    position: relative;
    display: block;
    margin: 0 0 12px;
    padding: 24px 30px;
    background: #f2eee5;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

#board .con .first .tit {
    padding-left: 0;
    font-size: 20px;
    font-weight: 500;
}

#board .con .first .s_tit {
    position: relative;
    overflow: hidden;
    padding: 0 0 0 20px;
    margin: 5px 0 0;
    display: block;
    max-width: calc(100% - 200px);
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

#board .con .first .s_tit::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 6px;
    width: 5px;
    height: 5px;
    background: #848383;
    border-radius: 50%;
}

#board .con .first .ico_new {
    margin: 6px 0 0 -20px;
    width: 16px;
    height: 17px;
    font-weight: 500;
    background: #d3485f;
}

#board .con .first .wrap {
    top: auto;
    bottom: 27px;
}

@media all and (max-width: 1024px) {
    #board {
        width: 100%;
        height: 400px;
    }

    #board .con li:not(:first-child) a {
        padding: 6px 20px;
    }

    #board .tit {
        max-width: calc(100% - 280px);
    }

    #board .con .first .tit {
        max-width: calc(100% - 50px);
    }

    #board .wrap {
        right: 20px;
    }
}

@media all and (max-width:568px) {
    #board {
        height: 370px;
    }

    #board .title h4 {
        font-size: 22px;
    }

    #board .title>span {
        display: none;
    }

    #board>ul {
        padding: 0 44px 0 0;
    }

    #board>ul>li>h5 a {
        height: 44px;
        font-size: 16px;
    }

    #board>ul>li .con {
        top: 60px;
    }

    #board .more {
        width: 44px;
        height: 44px;
    }

    #board .con li:not(:first-child) a {
        padding: 10px 0;
    }

    #board .con li:not(:first-child) a::before {
        left: 10px;
        top: 19px;
    }

    #board .tit {
        max-width: calc(100% - 180px);
    }

    #board .tag {
        display: none;
    }

    #board .date::before {
        top: 0;
    }

    #board .wrap {
        right: 0;
    }

    #board .wrap .view::after {
        margin: 0 5px 1px 8px
    }

    #board .con .first a {
        padding: 25px 20px;
    }

    #board .con .first a::before {
        display: none;
    }

    #board .con .first .tit {
        max-width: calc(100% - 30px);
        font-size: 18px;
    }

    #board .con .first .wrap {
        bottom: 24px;
        right: 20px;
    }
}

@media (max-width: 420px) {
    #board {
        height: 400px;
    }

    #board>ul {
        margin: 10px 0 0;
        padding: 0;
    }

    #board>ul>li>h5 a {
        font-size: 15px;
    }

    #board .more {
        top: 295px;
        width: 100%;
        height: auto;
        line-height: 40px;
        font-size: 16px;
        text-align: center;
        text-indent: 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
}

@media all and (max-width:380px) {
    #board h4 {
        font-size: 26px;
    }

    #board h4 span {
        font-size: 22px;
    }

    #board .tit {
        max-width: calc(100% - 100px);
    }

    #board .wrap {
        top: 12px;
    }

    #board .wrap .view {
        display: none;
    }

    #board .con .first .tit {
        font-size: 16px;
    }

    #board .con .first .s_tit {
        max-width: calc(100% - 100px);
    }

    #board .con .first .ico_new {
        margin-top: 3px;
    }

    #board .con .first .wrap {
        bottom: 26px;
    }
}

/* 활동영상 */
#movie {
    width: 338px;
}

#movie .title {
    position: relative;
    margin: 0 0 15px;
}

#movie .title h4 {
    font-size: 25px;
}

#movie .title .more {
    top: 9px;
    right: 0;
    font-size: 15px;
}

#movie .wrap a {
    text-decoration: none;
}

#movie .pic {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 10px;
}

#movie .pic::after,
#movie .pic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
}

#movie .pic::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: url(/council/images/committee/main/ico_play.png)no-repeat;
}

#movie .pic img {
    width: 100%;
    height: 100%;
}

#movie .txt {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 26px 0 0;
    padding: 0 10px 0 15px;
    font-size: 15px;
    box-sizing: border-box;
}

#movie .txt p {
    overflow: hidden;
    width: calc(100% - 80px);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

#movie .no-data {
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    height: 260px;
    width: 100% !important;
    color: #333;
}

@media all and (max-width: 1024px) {
    #movie {
        width: 100%;
    }
}

@media all and (max-width: 768px) {
    #movie .title h4 {
        font-size: 22px;
    }
}


/* 포토갤러리 */
#gallery {
    margin: 52px 0 0;
    height: 386px;
    background: url(/council/images/committee/main/bg_gallery.jpg)no-repeat bottom center;
}

#gallery .inner {
    height: inherit;
}

#gallery .title {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 635px);
}

#gallery .title .more {
    position: relative;
    top: 0;
    font-size: 15px;
    color: #515151;
}

#gallery .title .more::after {
    margin: 0 0 0 13px;
    width: 14px;
    height: 13px;
    background: url(/council/images/committee/main/ico_more3.png)no-repeat;
}

#gallery .title h4 {
    font-size: 30px;
}

#gallery .small {
    position: relative;
    width: calc(100% - 625px);
    margin: 59px 0 0;
}

#gallery .small .slick-slide {
    margin: 0 10px;
}

#gallery .small .list a {
    display: block;
    margin: 10px 0;
    width: 245px;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, .11);
}

#gallery .small .list a:hover .tit {
    color: #2171a9;
}

#gallery .small .list .img {
    display: block;
    width: 100%;
    height: 161px;
}

#gallery .small .list .img img {
    width: 100%;
    height: 100%;
}

#gallery .small .list .sbj {
    display: block;
    padding: 10px;
    box-sizing: border-box;
}

#gallery .control button {
    z-index: 1;
    position: absolute;
    top: 102px;
    left: -17px;
    width: 34px;
    height: 34px;
    background: #fff url(/council/images/committee/main/ico_gallery_arrow.png)no-repeat center;
    border-radius: 50%;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .1);
}

#gallery .control .btn_prev {
    transform: rotate(180deg);
}

#gallery .control .btn_next {
    left: auto;
    right: -17px;
}

#gallery .tit {
    display: block;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#gallery .date {
    font-size: 14px;
}

#gallery .big {
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 567px;
    height: 332px;
    border-radius: 15px;
    box-shadow: 0 0 20px 0 rgba(56, 56, 56, .25);
}

#gallery .big .list a {
    position: relative;
    display: block;
    width: 100%;
    height: 332px;
}

#gallery .big .list .img img {
    width: 100%;
    height: 100%;
}

#gallery .big .sbj {
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, .8);
    box-sizing: border-box;
}

#gallery .big .sbj .tit {
    width: calc(100% - 120px);
    font-size: 17px;
}

#gallery .big .sbj .date {
    font-size: 14px;
}

@media all and (max-width:1440px) {
    #gallery .big {
        right: 15px;
        width: 500px;
    }

    #gallery .big img {
        width: 100%;
        height: 100%;
    }

    #gallery .small {
        width: calc(100% - 580px)
    }
}

@media all and (max-width:1024px) {
    #gallery .title {
        width: 100%;
    }

    #gallery .big {
        display: none;
    }

    #gallery .small {
        width: 100%;
    }

    #gallery .small .slick-slide {
        margin: 0;
    }

    #gallery .small .list a {
        margin: 10px auto;
        width: calc(100% - 20px);
    }

    #gallery .control button {
        left: 0;
    }

    #gallery .control .btn_next {
        right: 0;
    }
}

@media all and (max-width:768px) {
    #gallery {
        margin: 40px 0 0;
        height: auto;
        padding: 0 0 35px;
        background-size: auto 200px;
    }

    #gallery .title h4 {
        font-size: 26px;
    }

    #gallery .small {
        margin: 20px 0 0;
    }

    #gallery .small .list a {
        width: calc(100% - 10px);
    }
}

@media all and (max-width:380px) {
    #gallery .title h4 {
        font-size: 22px;
    }

    #gallery .title .more {
        font-size: 14px;
    }

    #gallery .small .list .img {
        height: 140px;
    }
}