body {

    background-color: #dcdcdc;
}

/* ROZLOZENI */

.model {
    display: block;
    text-align: center;
}

.model > a:hover {
    text-decoration: none;
}

.model img {
  object-fit: cover;
  width:200px;
  height:200px;
}

ul.rig {
    list-style: none;
    font-size: 0px;
    margin-left: -1.5%; /* should match li left margin */
    margin-right: 1.5%; /* should match li left margin */
    margin-top: 10px;
    padding-top: 10px;
}
ul.rig li {
    display: inline-block;
    padding: 10px;
    margin: 0 0 1.5% 1.5%; /* margin between gallery items */


    background: rgb(78, 78, 78);
    /*background: rgb(255,255,255);*/
    /*background-color: #333;*/

    /*border: 1px solid #000;*/
    font-size: 16px;
    font-size: 1rem;
    vertical-align: top;
    /*box-shadow: 0 0 5px 0;*/
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
ul.rig li img {
    max-width: 100%;
    height: auto;
    margin: 0 0 10px;
}
ul.rig li h3 {
    margin: 0 0 5px;
}
ul.rig li p {
    font-size: .9em;
    line-height: 1.5em;
    color: #999;
}
/* class for 2 columns */
ul.rig.columns-2 li {
    width: 48.5%; /* this value + 2.5 should = 50% */
}
/* class for 3 columns */
ul.rig.columns-3 li {
    width: 31.83%; /* this value + 2.5 should = 33% */
}
/* class for 4 columns */
ul.rig.columns-4 li {
    width: 23.5%; /* this value + 2.5 should = 25% */
}
/* class for 5 columns */
ul.rig.columns-5 li {
    width: 18.5%; /* this value + 2.5 should = 20% */
}

@media (max-width: 1100px) {
    ul.rig li {
        width: 23.5% !important; /* this value + 2.5 should = 25% */
    }
}

@media (max-width: 840px) {
    ul.rig li {
        width: 31.83% !important; /* this value + 2.5 should = 50% */
    }
}

@media (max-width: 540px) {
    ul.grid-nav li {
        display: block;
        margin: 0 0 5px;
    }
    ul.grid-nav li a {
        display: block;
    }
    ul.rig {
        margin-left: 0;
    }
    ul.rig li {
        width: 100% !important; /* over-ride all li styles */
        margin: 0 0 20px;
    }
}



.title{
    color: #000000;
    display: block;
    text-align: center;
    padding: 5px;
}

.menu {
    display: block;
    text-align: center;
    padding: 5px 5px 20px 5px;
}


.btn {
 background: #4f4f4f;
 background-image: -webkit-linear-gradient(top, #4f4f4f, #2e2e2e);
 background-image: -moz-linear-gradient(top, #4f4f4f, #2e2e2e);
 background-image: -ms-linear-gradient(top, #4f4f4f, #2e2e2e);
 background-image: -o-linear-gradient(top, #4f4f4f, #2e2e2e);
 background-image: linear-gradient(to bottom, #4f4f4f, #2e2e2e);
 font-family: Arial;
 color: #e69c1c;
 font-size: 20px;
 padding: 10px 20px 10px 20px;
 text-decoration: none;

}
.btn:hover {
 background: #757575;
 background-image: -webkit-linear-gradient(top, #757575, #454545);
 background-image: -moz-linear-gradient(top, #757575, #454545);
 background-image: -ms-linear-gradient(top, #757575, #454545);
 background-image: -o-linear-gradient(top, #757575, #454545);
 background-image: linear-gradient(to bottom, #757575, #454545);
 text-decoration: none;
}

.btn:active {
    background: #000000;
}

/* ANIMACE PO NAJETI */
@-webkit-keyframes animace {
    50% {-webkit-transform:scale(1.1);}
    100% {-webkit-transform:scale(1);}
}
@keyframes animace {
    50% {-webkit-transform:scale(1.1);transform:scale(1.1);}
    100% {-webkit-transform:scale(1);transform:scale(1);}
}

ul.rig li a:hover img {
    -webkit-animation-name:animace !important;
    animation-name:animace !important;
    -webkit-animation-duration:0.5s !important;
    animation-duration:0.5s !important;
}

ul.rig li a:link {
    text-decoration: none;
}




ul.rig-blackback li {
    display: inline-block;
    padding: 10px;
    margin: 0 0 1.5% 1.5%; /* margin between gallery items */


    /*background: rgb(255,255,255);*/
    background-color: #1c1c1c;

    /*border: 1px solid #000;*/
    font-size: 16px;
    font-size: 1rem;
    vertical-align: top;
    /*box-shadow: 0 0 5px 0;*/
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

ul.rig-blueback li {
    display: inline-block;
    padding: 10px;
    margin: 0 0 1.5% 1.5%; /* margin between gallery items */


    /*background: rgb(255,255,255);*/
    background-color: #1772b7;

    /*border: 1px solid #000;*/
    font-size: 16px;
    font-size: 1rem;
    vertical-align: top;
    /*box-shadow: 0 0 5px 0;*/
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
ul.rig-blueback li a:link {
    text-decoration: none;
    color: #dddddd;
}
