.gallerytop {
    clear: both;
    margin: 0 auto;
    width: 980px;
}

.gallerytop-l {
    float: left;
    min-height: 200px;
    width: 660px;
    padding: 0 0;
    background-color: #FFFFFF;
}

.gallerytop-r {
    width: 300px;
    float: right;
    min-height: 200px;
}

.gallerytitle {
    clear: both;
}

    .gallerytitle h3 {
        color: #ed1c24;
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
        padding-bottom: 10px;
    }

/*GALLERY DETAIL*/
.gallerydetail {
    clear: both;
}

    .gallerydetail h4 {
        color: #333333;
        font-size: 18px;
        font-weight: bold;
        padding-top: 10px;
    }

    .gallerydetail p {
        clear: both;
        display: block;
        color: #333333;
        font-weight: normal;
        padding-top: 10px;
        font-size: 14px;
        line-height: 1.5;
    }

.gallerydetail-i {
    clear: both;
    position: relative;
    z-index: 0;
    left: 0;
    top: 0;
}

.gallerydetail-photo {
    clear: both;
    width: 660px;
    min-height: 300px;
    max-height: 540px;
    margin: 0 auto;
    overflow: hidden;
}

    .gallerydetail-photo img {
        width: 100%;
        height: auto;
    }

.gallerydetail-photo-desc {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    clear: both;
    line-height: 1.4;
    background-color: #000;
    opacity: 0.75;
    padding: 10px 10px;
}

    .gallerydetail-photo-desc span {
        color: #FFF;
    }

.gallerydetail-back {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 50%;
    margin-top: -27px;
    width: 55px;
    height: 55px;
    background: url(../images/slider-back.png) no-repeat center center;
}

.gallerydetail-next {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 50%;
    margin-top: -27px;
    width: 55px;
    height: 55px;
    background: url(../images/slider-next.png) no-repeat center center;
}


.topgallerylist {
    clear: both;
}

    .topgallerylist h3 {
        color: #ed1c24;
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .topgallerylist ul {
        width: 100%;
        float: left;
        clear: both;
        list-style: none;
        padding: 0 0;
    }

    .topgallerylist li {
        width: 100%;
        float: left;
        line-height: 1.4;
    }

        .topgallerylist li.sep {
            clear: both;
            width: 100%;
            height: 20px;
            background: url(../images/line-dark.png) repeat-x center center;
        }

    .topgallerylist a.avatar {
        float: left;
        width: 100px;
        overflow: hidden;
        margin-right: 10px;
    }

        .topgallerylist a.avatar img {
            float: left;
            width: 100px;
        }

    .topgallerylist li a {
        color: #333333;
        font-weight: bold;
        text-transform: none;
    }

    .topgallerylist li h4 {
        color: #333333;
    }

.topgallerylist-i {
    clear: both;
    padding: 10px 0;
}


/*GALLERY*/
.gallerylist {
    clear: both;
    font-size: 14px;
}

    .gallerylist h3 {
        color: #ed1c24;
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .gallerylist ul {
        width: 100%;
        float: left;
        clear: both;
        list-style: none;
        padding: 0 0;
    }

    .gallerylist li {
        width: 180px;
        float: left;
        line-height: 1.4;
        margin-right: 20px;
    }

        .gallerylist li.last {
            float: right;
            margin-right: 0;
        }

        .gallerylist li.sep {
            clear: both;
            width: 100%;
            height: 20px;
        }

    .gallerylist a.avatar {
        display: block;
        float: left;
        width: 100%;
        overflow: hidden;
        margin-bottom: 5px;
    }

        .gallerylist a.avatar img {
            float: left;
            width: 100%;
            height: 120px;
        }

    .gallerylist li a {
        color: #333333;
        font-weight: normal;
        text-transform: none;
    }

    .gallerylist li h4 {
        color: #333333;
    }

        .gallerylist li h4 a {
            float: left;
            color: #333333;
        }

.gallerylist-i {
    clear: both;
    padding: 10px 0;
}


/*MEDIA QUERY*/
@media (min-width:320px) {
    .gallerytop {
        width: 100%;
    }

    .gallerytop-l {
        clear: both;
        float: none;
        width: auto;
    }

    .gallerytop-r {
        clear: both;
        float: none;
        width: auto;
    }

    .gallerydetail-photo {
        clear: both;
        width: 100%;
        min-height: initial;
        max-height: initial;
    }

    /*GALLERY*/
    .gallerytitle h3 a, .gallerytitle h3 span {
        padding: 0 10px;
    }

    .gallerylist h3 {
        padding: 10px 10px;
    }

    .gallerylist li {
        clear: none;
        width: 50%;
        float: left;
        margin-right: 0;
        padding-right: 10px;
        box-sizing: border-box;
        margin-bottom: 10px;
    }

        .gallerylist li.last {
            float: left;
        }

        .gallerylist li.sep {
            display: none;
        }

        .gallerylist li.m-sep {
            clear: both;
            float: none;
            width: 100%;
            display: block;
            height: 10px;
        }

    .gallerylist a.avatar {
        width: 100%;
        height: 110px;
        margin-bottom: 5px;
    }

    .gallerylist li h4 a {
        max-height: 36px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gallerylist-i {
        padding: 0 0 0 10px;
    }

    .gallerydetail {
        padding: 0 10px;
    }

    .photolist {
        padding: 10px 10px;
    }

        .photolist li a.avatar {
            max-width: 100%;
        }

            .photolist li a.avatar img {
                width: 100%;
            }

    .gallerylike {
        padding: 4px 10px;
    }

    /*OTHERGALLERY*/
    .relativegalleries h1 {
        padding: 0 10px;
    }

    .relativegalleries li {
        width: 50%;
        float: left;
        margin-right: 0;
        padding-right: 10px;
        box-sizing: border-box;
    }

        .relativegalleries li.last {
            float: left;
        }

        .relativegalleries li.sep {
            display: block;
            height: 10px;
        }

        .relativegalleries li.m-sep {
            clear: both;
            width: 100%;
            float: none;
            display: block;
            height: 10px;
        }

    .relativegalleries a.avatar {
        width: 100%;
        height: 110px;
        margin-bottom: 5px;
    }

    .relativegalleries-i {
        padding: 10px 10px;
    }

    .topgallerylist {
        padding: 10px 10px;
    }
}

@media (min-width:481px) {

    .gallerylist a.avatar {
        height: 150px;
        margin-bottom: 10px;
    }

    .relativegalleries a.avatar {
        height: 150px;
        margin-bottom: 10px;
    }
}

@media (min-width:641px) {

    .gallerylist a.avatar {
        height: 200px;
        margin-bottom: 10px;
    }

    .relativegalleries a.avatar {
        height: 200px;
        margin-bottom: 10px;
    }
}

@media (min-width:769px) {

    .gallerylist a.avatar {
        height: 250px;
        margin-bottom: 10px;
    }

    .relativegalleries a.avatar {
        height: 250px;
        margin-bottom: 10px;
    }
}

@media (min-width:981px) {

    .gallerytop {
        width: 980px;
    }

    .gallerytop-l {
        clear: none;
        float: left;
        width: 660px;
    }

    .gallerytop-r {
        clear: none;
        width: 300px;
        float: right;
    }

    .gallerydetail-photo {
        clear: both;
        width: 660px;
        min-height: 300px;
        max-height: 540px;
    }

    /*GALLERY*/
    .gallerytitle h3 a, .gallerytitle h3 span {
        padding: 0;
    }

    .gallerylist h3 {
        padding: 0 0;
    }

    .gallerylist li {
        clear: none;
        width: 180px;
        float: left;
        padding-right: 0;
        margin-right: 20px;
        margin-bottom: 0;
    }

        .gallerylist li.last {
            float: right;
        }

        .gallerylist li.sep {
            display: block;
        }

        .gallerylist li.m-sep {
            display: none;
        }

    .gallerylist a.avatar {
        width: 100%;
        height: 110px;
        margin-bottom: 5px;
        -moz-background-size: auto auto;
        -webkit-background-size: auto auto;
        background-size: auto auto;
    }

    .gallerylist li h4 a {
        max-height: initial;
    }

    .gallerylist-i {
        padding: 10px 0;
    }

    .gallerydetail {
        padding: 0;
    }

    .photolist {
        padding: 20px 0 20px 0;
    }

        .photolist li a.avatar {
            max-width: 680px;
        }

            .photolist li a.avatar img {
                width: 500px;
            }

    .gallerylike {
        padding: 4px 0;
    }

    /*OTHERGALLERY*/
    .relativegalleries h1 {
        padding: 0;
    }

    .relativegalleries li {
        width: 150px;
        float: left;
        padding: 0;
        margin-right: 20px;
    }

        .relativegalleries li.last {
            float: right;
        }

        .relativegalleries li.sep {
            display: block;
            height: 20px;
        }

        .relativegalleries li.m-sep {
            display: none;
        }

    .relativegalleries a.avatar {
        width: 100%;
        height: 110px;
        margin-bottom: 5px;
        -moz-background-size: auto auto;
        -webkit-background-size: auto auto;
        background-size: auto auto;
    }

    .relativegalleries-i {
        padding: 10px 0;
    }

    .topgallerylist {
        padding: 0 0;
    }
}
