.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

/* Center the image and position the close button */
.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

.container {
    padding: 16px;
}

span.psw {
    float: right;
    padding-top: 16px;
}

.modalTitle {
    font-size:24px;
    font-weight:bold;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto;  /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 1% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
    border: 1px solid #888;
    width: 40%; /* Could be more or less, depending on screen size */
    border-radius: 10px;
}

.modalEventImage {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    /*overflow: auto;*/
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Modal Content/Box */
.modal-contentEventImage {
    /*border: 3px solid #888; */
    /* width: 40%; /* Could be more or less, depending on screen size */
    /*border-radius: 10px; */
    width: 100%;
    height: 100%;
}

.containerEventImage {
    width: inherit;
    height: inherit;
    padding: 0px;
}

.eventImageSize {
    max-height: 100%;
    max-width: 100%;
    position: relative;
}

/* The Close Button (x) */
.close {
    position: absolute;
    right: 25px;
    top: -10px;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

.closeEventImage {
    position: fixed;
    right: 5%;
    top: 5%;
    color: #000;
    font-size: 85px;
    font-weight: bold;
    z-index: 2;
}

.closeEventImage:hover,
.closeEventImage:focus {
    color: red;
    cursor: pointer;
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}
  
@keyframes animatezoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    border: solid 1px;
}

/* Position the "previous button" to the right */
.prev {
    left: 0;
    top:50%;
    position: fixed;
    border-radius: 3px 0 0 3px;
    z-index: 2;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    top:50%;
    position: fixed;
    border-radius: 3px 0 0 3px;
    z-index: 2;
}

/* Fading animation */
.prevnextFade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/*###Desktops, big landscape tablets and laptops(Large, Extra large)####*/
@media screen and (min-width: 1024px) and (max-width : 1279px){ 
    .eventImageSize {
        max-width: 100%;
    }
}

/*###Tablet(medium)###*/
@media screen and (min-width : 768px) and (max-width : 1023px){
    .modal {
        padding-top: 60px;
    }
    
    /* Modal Content/Box */
    .modal-content {
        margin: 1% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
        width: 60%; /* Could be more or less, depending on screen size */
    }

    .eventImageSize {
        max-width: 100%;
    }
}

/*### Smartphones (potrait)### */
@media screen and (min-width : 535px) and (max-width : 767px){
    .modal {
        font-size:12px;
        padding-top: 30px;
    }
    
    .modal-content {
        margin: 5% auto 5% auto; /* 5% from the top, 15% from the bottom and centered */
        width: 70%; /* Could be more or less, depending on screen size */
    }

    .closeEventImage {
        font-size: 65px;
    }

    .eventImageSize {
        max-width: 100%;
    }
}

/*### Smartphones (landscape)### */
@media screen and (min-width : 301px) and (max-width : 534px){
    .modal {
        font-size:12px;
        padding-top: 30px;
    }
    
    .modal-content {
        margin: 5% auto 5% auto; /* 5% from the top, 15% from the bottom and centered */
        width: 90%; /* Could be more or less, depending on screen size */
    }

    .closeEventImage {
        font-size: 65px;
    }

    .eventImageSize {
        max-width: 100%;
    }

    .modalEventImage {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/*### Smartphones (portrait)(small)### */
@media screen and (min-width : 0px) and (max-width : 300px){
    span.psw {
        display: block;
        float: none;
    }

    .cancelbtn {
        width: 100%;
    }

    .modal {
        font-size:12px;
        padding-top: 30px;
    }
    
    .modal-content {
        margin: 3% auto 2% auto; /* 5% from the top, 15% from the bottom and centered */
        width: 100%; /* Could be more or less, depending on screen size */
    }

    .prev, .next {font-size: 11px; }

    .closeEventImage {
        font-size: 65px;
    }

    .modalEventImage {
        padding-left: 10px;
        padding-right: 10px;
    }

    .eventImageSize {
        max-width: 100%;
    }
}