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

.h3-heading {
color: #cecece;
}

.before-after-global {
max-width: 1500px;
width: 98.5%;
margin-inline: auto;
}

.before-after-row {
display: flex;
flex-flow: row;
gap: 30px;
justify-content: space-around;
padding-inline: 1%;
}

.flex-col {
flex: 1 460px;
text-align: center;
border: 3px solid #fafafa;
border-radius: 8px;
transition: all .4s linear;
}

.flex-col:hover {
border-color: #cecece;
}

.flex-col:hover .h3-heading {
color: var(--light-blue);
}

.gallery-global {
    padding: 50px 0;
}
.gallery-wrapper {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
}

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

.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 0 3%;
}
.gallery-column {
    margin: 0 auto;
    max-width: 24.5%;
}
.gallery-item {
    max-width: 24.5%;
    height: 250px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px .25% 0;
}

.before-after-row .gallery-item {
	max-width: 49.5%;
	height: 260px;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 8px auto;
}
.gallery-item img {
    width: auto;
    height: 112%;
}
.gallery-item img.vertical-img {
    width: 100%;
    height: auto;
}
.gallery-item i {
    position: absolute;
    top: 45%;
    left: 50%;
    font-size: 3.5em;
    border-radius: 50%;
    margin: -41px 0 0 -41px;
    padding: 10px;
    color: #000;
    opacity: 0;
    transition: all .25s;
}
.gallery-item:hover i {
    top: 50%;
    opacity: 1;
}
.gallery-item:hover img {
    opacity: .6;
}
@media screen and (max-width: 1200px) {
    .gallery-item {
        flex: 33%;
        max-width: 32.5%;
    }

.before-after-row .gallery-item {
	max-width: 95.5%;
flex: 100%;
}
}

@media screen and (max-width: 981px) {
.before-after-row {
flex-flow: row wrap;
}
.before-after-row .gallery-item {
	max-width: 45.5%;
}
}

@media screen and (max-width: 800px) {
    .gallery-item {
        flex: 50%;
        max-width: 49.5%;
    }

.before-after-row .gallery-item {
	max-width: 45.5%;
}
}
@media screen and (max-width: 500px) {
    .gallery-item {
        flex: 100%;
        max-width: 100%;
height: auto;
    }

.gallery-item img {
	width: auto;
	height: 98%;
	max-width: 95%;
}

.before-after-row .gallery-item {
	max-width: 98.5%;
height: auto;
}
}