/******************** Bildergalerie *******************/
.gallery ul img {
    border: none !important;
}

.gallery_stage_img img
{
    width: 100%;
    margin-bottom: 0 !important;
}

.div_images_container
{
    opacity: 0;
    position: absolute;
    height: 1px;
    overflow: hidden;
}



.gallery_browse_left
{
    background:url(../xsltemplates/simpleGallery/img/gallery_browse_left_25.png) left center no-repeat;
    width:60px;
    height:60px;
    border: solid 1px #fff;
    border-radius:2px;
}

.gallery_browse_right
{
     background:url(../xsltemplates/simpleGallery/img/gallery_browse_right_25.png) right center no-repeat;
    width:60px;
    height:60px;
    border: solid 1px #fff;
    border-radius:2px;
}

/* ############################### MAX 1280 ################################## */
@media only screen and (max-width:10000px)
{
    .gallery_thumbnails .items li
    {
        width:23.72%;
        margin-right: 1.705% !important;
        list-style-image: none;
    }

        .gallery_thumbnails .items li:nth-child(4n)
        {
            margin-right: 0 !important;
        }

        .gallery_thumbnails .items li div a img
        {
            width: 100% !important;
        }
}

/* ############################### MAX 980 ################################## */
@media only screen and (max-width: 1023px)
{
     .gallery_thumbnails .items li
    {
        width:23.72%;
        margin-right: 1.705% !important;
    }

        .gallery_thumbnails .items li:nth-child(4n)
        {
            margin-right: 0 !important;
        }

        .gallery_thumbnails .items li div a img
        {
            width: 100% !important;
        }
}

/* ############################### MAX 768 ################################## */
@media only screen and (max-width: 768px)
{
      .gallery_thumbnails .items li
    {
        width:32.09%;
        margin-right: 1.86% !important;
    }
         .gallery_thumbnails .items li:nth-child(4n)
        {
           margin-right: 1.86% !important;
        }

        .gallery_thumbnails .items li:nth-child(3n)
        {
            margin-right: 0 !important;
        }


        .gallery_thumbnails .items li div a img
        {
            width: 100% !important;
        }
}

/* ############################### MAX 320 ################################## */
@media only screen and (max-width: 320px)
{
    .res-yes .gallery_thumbnails .items li
    {
        margin-right: 3.85% !important;
        width: 30.76%;
    }

        .res-yes .gallery_thumbnails .items li:nth-child(3n+0), .b_print .gallery_thumbnails .items li:nth-child(3n+0)
        {
            margin-right: 0px !important;
        }
}
