
.maingallerycontainer{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
}

.maingalleryimage:hover, .maingalleryimageclicked:hover{
    cursor:pointer;
}

.maingallerydiv{
    width: 20%;
    padding: 15px;
    max-height: 250px;
    min-width: 300px;
    overflow:hidden;
}

.maingallerydivclicked{

    position: fixed;
    z-index: 100;
    background-color: rgba(0,0,0,.6);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin-right: auto;
    border: 5px white;
}

.maingalleryimage{
    z-index:100;
    object-fit:cover;
    width:100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}



.maingalleryimageclicked{

    position: fixed;
    z-index: 100;
    width:100%;
    height: 100%;
    object-fit: contain;
    left:50%;
}

.pages{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.pages ul{
    display:flex;
    flex-flow: row wrap;

    border-radius: 2px;

    text-align: center;
    list-style: none;
    text-decoration: none;
}

.pages ul li{
    color: white;
    font: arial 24px bold;

}

.pages a{
    text-decoration:none;
    margin: 0px 8px;
    background-color: rgba(0,0,0,.4);
    padding: 10px;
    border-radius: 5px;
}

.pageno{
    padding: 5px;
}

#pagenoactive{
    background-color: rgba(0,0,0,.7);
    text-decoration:underline;
}


.gallerycontainer{
    position: relative;
    display: flex;
    flex-direction:row;
    width: 75%;
    max-height: 650px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0,0,0,.3);
    z-index: 1;
    border-radius: 15px;
    /* padding: 10px 20px; */
    margin-top: 20px;
    margin-bottom: 20px;
}

.galleryimagediv{
    max-width: 95%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    display: none;
    z-index: 1;
}

.galleryimage{
    margin-left:auto;
    margin-right:auto;
    object-fit: scale-down;
    max-width: 100%;
    height: auto;

}

.dots{
    position: absolute;
    bottom: 0px;
    z-index:3;
    left: 50%;
    
}

.dot{
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: rgba(0,0,0,.7);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

span.dot:hover{
    background-color: rgba(255,255,255,.7);
}

.activedot{
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: rgba(255,255,255,1);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.nextarrow, .prevarrow{
    position: absolute;
    top: 50%;
    cursor: pointer;
    width: auto;
    margin-top: -50px;
    padding: 50px 15px;
    color: rgba(255,255,255,.5);
    font-weight: bold;
    font-size: 1.3em;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 3;
}

div.nextarrow:hover, div.prevarrow:hover{
    color: rgba(255,255,255,1);
}
.nextarrow{
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.prevarrow{
    left: 10px;
}

