.form__photocontest{
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow:0 16px 20px rgba(0,0,0,.08);
    position:relative;
}

.form__photocontest.form__update-votes{
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    margin-top: 2rem;
}

.form__photocontest input[type="submit"]{
    background: #509e2f;
    color: #fff;
    font-weight: bold;
    font-style: italic;
    min-width: 200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    font-size: 1.15rem;
    height: auto;
    padding: 1rem;
    cursor:pointer;
}

.form__photocontest input[type="submit"].disabled{
    cursor:not-allowed;
    background:#ebebeb;
    color:#4b4b4b;
    pointer-events:none;
}

.form__photocontest label{
    font-weight: bold;
}

.form__photocontest input{
    margin-bottom:0.5rem;
}



.form__photocontest input[type="checkbox"]{
  width: 20px;
  height: 20px;
  margin: 5px 5px 0 0; 
  accent-color:#509e2f;
}
.form__photocontest label.checkbox{
    width:calc(100% - 30px);
    font-weight: normal;
    margin-bottom:1rem;
}

button.modal__show{
    width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  z-index: 1;
  background:transparent;
  z-index: 3;
}


.photocontest__photo{
    width:100%;
    padding-bottom:100%;
    position:relative;
    margin-bottom:1rem;
    border-radius: 8px;
}

.photocontest__photo img{
    width:100%;
    height:100%;
    object-fit: cover;
    left:0;
    top:0;
    position:absolute;
    border-radius:8px;
    box-shadow: 0 16px 20px rgba(0,0,0,.08);
}

.photocontest__single.active .photocontest__photo img{
    box-shadow: 0 16px 20px rgba(0,0,0,.04);
}

.photocontest__success,
.photocontest__error,
.photocontest__warning{
        color: #fff;
        font-weight: bold;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 2rem;
}

.photocontest__success{
    background: #509e2f;
}

.photocontest__warning{
    background: #f59c00;
}


.photocontest__error{
    background: #c05131;
}



.photocontest__single{

}

.photocontest__single.active .photocontest__photo{ 
    border: 2px solid #509e2f;

}


.modal__content{
    background:#fff;
    display:none;
    width:0;
    transition:0.3s ease-in-out;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom:2rem;
    border:1px solid #e4e4e4;
    width: calc(500% + 152px);
    z-index: 2;
    position: relative;
    margin-left: -15px;
}

.modal__content.active{
    display: block;
}

.photocontest__single{
    position:relative;
}

.photocontest__single.active:after{
    position:absolute;
    left:0;
    width:100%;
    height:100%;
    background: #fff;
    border-radius:8px;
    content:"";
    top: -15px;
    height: calc(100% - 50px);
    border: 1px solid #e4e4e4;
    border-bottom: none;
}

.modal__content__inner{
    box-shadow: 0 16px 20px rgba(0,0,0,.04);
    border: 1px solid #e4e4e4;
    max-width:800px;
    border-radius:8px;
    margin-left:auto;
    margin-right:auto;
    position:relative;
}

.modal__content img{
    width:100%;
    height:auto;
    border-radius:8px;
}

.modal__content::before{
    height:10px;
    background:#fff;
    top:0;
    content:"";
    position:absolute;
    z-index: 4;
    top: -2px;
    left: 0;
    width: 20%;
}


.modal__content  p{
    text-align:center;
}

.modal__content__2{
    margin-left: calc(-100% - 45px);
}

.modal__content__2::before{
    left: 20%;
}

.modal__content__3{
    margin-left: calc(-200% - 75px);
}

.modal__content__3::before{
    left:40%;
}

.modal__content__4{
    margin-left: calc(-300% - 105px);
}

.modal__content__4::before{
    left: 60%;
}

.modal__content__5{
    margin-left: calc(-400% - 135px);
}

.modal__content__5::before{
    left:unset;
    right:0;
}


.modal__title{
    max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 1rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 2;
  bottom:0;
  left:0;
  right:0;
  position:absolute;
  display: flex;
  justify-content: space-between;
  background: #509e2fe5;
  color: #fff;
}
.modal__title p{
    margin-top:0;
    margin-bottom:0;
    font-size:0.875rem;
    line-height:1;
}

.modal__title .h4{
    color:#fff;
    margin-bottom:0;
    margin-top:0;
    font-size:0.875rem;
}

.btn__vote{
    margin-left: auto;
  margin-right: auto;
  display: flex;
  margin-top: 1rem;
  min-width: 200px;
  justify-content: center;
  font-style: italic;
}

label a{
    text-decoration: underline;
}

.hidden{
    display:none;
}

.input-warning{
    font-size: 13px;
    color: #f59c00;
    font-weight: bold;
    margin-top: -0.5rem;
}

.checkbox-col{
    flex-wrap:wrap;
}

.checkbox-col .input-warning{
    margin-top:-1rem;
    margin-left: 25px;
}

.photocontest__slider__img{
    width:100%;
    padding-bottom:66.6%;
    position:relative;
}


.photocontest__slider__img img{
    width:100%;
    height:100%;
    object-fit: cover;
    position:absolute;
    left:0;
    top:0;
}

.modal__photo__desc{
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}

.warning__disabled-voting{
    display: none;
    background: #f59c00;
    color: #fff;
    font-weight: bold;
    padding: 1rem;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


