#gallery {
    margin: auto;
    max-width: 100%;
    clear:both;
    margin-bottom: 30px;
}

#mainwrapper {
    position: relative;
    max-width: 100%;
}

.mainimg {
    width: 100%;
    margin-bottom: 0px;
}

#galleryindex {
    display: flex;
}

.galleryindexbttn {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.7;
    cursor: pointer;
}

.galleryindexbttn:hover {
    opacity: 0.9;
}

.active,
.active:hover {
    opacity: 1;
}

.navbttn {
    position: absolute;
    top: 0px;
    bottom: 0px;
    opacity: 0.4;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.navbttn:hover {
    opacity: 0.7;
}

#prev {
    left: 0px;
}

#next {
    right: 0px;
}

.mainimg {
    display: none;
}