#list-of-photos .competition-photo-container{
    margin-bottom: 20px;
}
@media (min-width: 970px) {
    #list-of-photos .competition-photo-container:nth-child(odd) {
        padding-left: 0;
    }

    .competition-photo-container:nth-child(even) {
        padding-right: 0;
    }
}
.add-competition-photo {
    border-style: solid;
    border-width: 2px;
    border-color: rgb(194, 10, 17);
    border-radius: 3px;
    background-color: rgb(255, 255, 255);
    width: 515px;
    display: block;
    margin: 50px auto;
    text-transform: uppercase;
    color: rgb(194, 10, 17);
    font-weight: bold;
    font-size: 18px;
    padding: 8px 0;
    text-align: center;
    max-width: 100%;
}
#list-of-photos .img {
    position: relative;
}
#list-of-photos .zoom-div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    cursor: pointer;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
}
#list-of-photos .zoom-div:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 43px;
    margin-top: -21.5px;
    margin-left: -21px;

    background: url("../img/luppa.png");
}
@media (min-width: 970px) {
    #list-of-photos .img:hover .zoom-div {
        display: block;
    }
}
#foto-popup-modal {
    position: relative;
}
#foto-popup-modal a.next, #foto-popup-modal a.prev {
    display: block;
    position: absolute;
    top: 50%;
    width: 30px;
    height: 52px;
    margin-top: -14px;
}
#foto-popup-modal a.next {
    right: 30px;
    background: url("../img/next.png");
}
#foto-popup-modal a.prev {
    left: 30px;
    background: url("../img/prev.png");
}

#foto-konkurs-modal .authorization button {
    border-style: solid;
    border-width: 2px;
    border-color: rgb(52, 93, 134);
    border-radius: 3px;
    background-color: rgb(52, 93, 134);
    width: 395px;
    height: 50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    display: block;
    padding-left: 66px;
    margin-top: 60px;
    position: relative;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}


#foto-konkurs-modal .authorization button:disabled {
    opacity: 0.6;
}

#foto-konkurs-modal .authorization button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 48px;
    height: 28px;
    margin-top: -14px;
    background: url("../img/vk-button.png") no-repeat;
}
#foto-konkurs-modal .authorization {
    padding-top: 20px;
}
#foto-konkurs-modal .authorization p, #foto-konkurs-modal label {
    font-size: 18px;
    font-family: "Calibri";
    color: #00458b;
    line-height: 1.2;
    font-weight: normal;
}

#foto-konkurs-modal .fileupload {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    width: 335px;
    max-width: 100%;
    margin: 0 auto;
    height: 42px;
    background: #345d86;
    font: bold 14px/42px Calibri;
    color: white;
    text-transform: uppercase;
    text-align: center;
}

#foto-konkurs-modal .fileupload input[type=file]{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(20);
    letter-spacing: 10em;     /* IE 9 fix */
    -ms-transform: scale(20); /* IE 9 fix */
    opacity: 0;
    cursor: pointer
}

#foto-konkurs-modal .mat {
    max-width: 335px;
    max-height: 310px;
    width: 100%;
    height: 310px;
    background: url("../img/mat.png") center no-repeat;
    margin: 20px 0;
}
#foto-konkurs-modal {
    padding: 30px;

}

#foto-konkurs-modal div button {
    display: block;
    margin: 0 auto;
    width: 225px;
    height: 40px;
    background: #de030b;
    color: white;
    font: bold 18px Calibri;
    border: 0;
    outline: 0;
}

#foto-konkurs-modal button:disabled {
    opacity: 0.7;
}

#foto-konkurs-modal .thanks .vk-button {
    display: block;
    margin: 20px auto;
    background: #6287ae;
    border-radius: 5px;
    font-weight: bold;
    font-size: 24px;
    padding-left: 66px;
    position: relative;
    text-align: center;
    height: 50px;
    width: 327px;
}

#foto-konkurs-modal .thanks .vk-button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 48px;
    height: 28px;
    margin-top: -14px;
    background: url("../img/vk-button.png") no-repeat;

}

#foto-konkurs-modal .thanks p {
    text-align: center;
    font-size: 18px;
    color: #00458b;
    font-weight: normal;
}
#foto-konkurs-modal .thanks h3 {
    font-size: 30px;
    color: #00458b;
    text-align: center;
}
@media (max-width: 400px) {
    #foto-konkurs-modal .thanks .vk-button {
        font-size: 18px;
        width: 100%;
    }
}
.competition-photo-container img {
   width: 100% !important;
}