.maincontent {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: none;
}


.gallery-wrapper h6 {
    font-size: 1.5em;
    color: var(--accent-color);
    text-align: center;
    flex: auto;
}


#gallery-button-row {
  max-width: 1450px;
  width: 100%;
  margin: 25px auto 35px;
}
#gallery-button-row ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: grid;
grid-template-columns:1fr 1fr 1fr 1fr;
justify-items:center;
}
#gallery-button-row ul li {
  width: 90%;
  margin: 10px 1%;
  flex: 1 1 200px;
}

.gallery-button {
  display: block;
  padding: 10px 20px;
  width: 100%;
  background: transparent;
  border: 3px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
  transition: all .3s;
}
.gallery-button:hover,
.gallery-button.selected-gallery {
  background: var(--accent-color);
  color: #fff;
}


.gallery-wrapper {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}
.gallery-item {
    max-width: 24.5%;
    height: 250px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px .25% 0;
}
.gallery-item img {
    width: auto;
    height: 135%;
}
.gallery-item img.vertical-img {
    width: 100%;
    height: auto;
}
.gallery-item i {
    position: absolute;
    top: 10%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 38px !important;
    border-radius: 50%;
    padding: 10px;
    color: #ffffff;
    background-color:var(--accent-color);
    opacity: 0;
    transition: all ease-in 220ms;
}
.gallery-item:hover i {
    opacity: 1;
    top:40%;
}
.gallery-item:hover img {
    opacity: .6;
}
@media screen and (max-width: 1200px) {
    .gallery-item {
        flex: 33%;
        max-width: 32.5%;
    }
}
@media screen and (max-width: 800px) {
    .gallery-item {
        flex: 50%;
        max-width: 49.5%;
    }
}
@media screen and (max-width: 600px) {
    #gallery-button-row ul {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 500px) {
    .gallery-item {
        flex: 100%;
        max-width: 100%;
    }
    .gallery-item {
        height: auto;
        display: block;
    }
    .gallery-item img {
        width: 100%;
        height: auto;
    }
}