.gallery-wrapper {
    position: relative;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
}
.gallery-noscript {
    font-size: 1.2rem;
    text-align: center;
    padding-top: 85px;
}
.gallery-loader {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    border: 5px solid #eee;
    border-top-color: var(--accent-color);
    transition: opacity .4s;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: translateX(-50%) rotate(360deg); }
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    transform: translateY(50px);
    opacity: 0;
    min-height: 500px;
    transition: transform .4s, opacity .4s;
}
.gallery-fade-in {
    transform: translateY(0);
    opacity: 1;
}
.gallery-fade-out {
    opacity: 0;
}
.gallery-item {
    position: relative;
    width: 24%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px .5% 0;
}
.gallery-item img {
    width: auto;
    height: 115%;
    transition: opacity .4s, transform .4s;
}
.gallery-item img.vertical-img {
    width: 115%;
    height: auto;
}
.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    fill: #111;
    opacity: 0;
    transition: opacity .4s;
}
.gallery-item:hover .gallery-icon {
    opacity: 1;
}
.gallery-item:hover img {
    opacity: .6;
    transform: scale(1.05);
}

@media screen and (max-width: 1200px) {
    .gallery-item {
        width: 32.3333333333%;
    }
}

@media screen and (max-width: 900px) {
    .gallery-item {
        width: 49%;
    }
}

@media screen and (max-width: 600px) {
    .gallery-item,
    .gallery-item img {
        width: 100%;
        height: auto;
    }
}
/* ---------------------
      slider component
  ----------------------- */
.beforeAfterContainer {
  padding: 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.beforeAfterContainer .slider-wrapper {
  flex-basis: 26em;
}

.beforeAfterContainer #comparison {
  width: 100%;
  height: 60vw;
  max-height: 280px;
  margin: 0px auto;
  padding: 3vh 10px;
}

.beforeAfterContainer #comparison .before {
  background-color: black;
  background-size: cover;
  position: relative;
  font-size: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
  border: 1px solid grey;
}

.beforeAfterContainer #comparison figure > img {
  position: relative;
  width: 100%;
}

.beforeAfterContainer #comparison .after {
  background-color: #faa716;
  background-size: cover;
  background-position: center;
  position: absolute;
  width: 0%;
  box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  bottom: 0;
  height: 100%;
  border: 1px solid grey;
}

input[type=range] {
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  top: -2rem;
  left: -2%;
  background-color: rgba(255, 255, 255, 0.5);
  width: 102%;
  height: 15px;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]:active {
  outline: none;
}

input[type=range]::-moz-range-track {
  -moz-appearance: none;
  height: 15px;
  width: 102%;
  right: 2%;
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
  outline: none;
}

input[type=range]::active {
  border: none;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  background: #faa716;
  border-radius: 50%;
  border: 6px solid #ffffff;
}

input[type=range]::-moz-range-thumb {
  -moz-appearance: none;
  width: 25px;
  height: 25px;
  background: #faa716;
  border: 6px solid #ffffff;
  border-radius: 50%;
}

input[type=range]:focus::-webkit-slider-thumb {
  background: #faa716;
}

input[type=range]:focus::-moz-range-thumb {
  background: #faa716;
}

/* ---------------------
        toggler component
  ----------------------- */
.switchContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.switchContainer p {
  padding: 0 5px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.toggler {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.toggler:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .toggler {
  background-color: #faa716;
}

input:focus + .toggler {
  box-shadow: 0 0 1px #faa716;
}

input:checked + .toggler:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.toggler.round {
  border-radius: 34px;
}

.toggler.round:before {
  border-radius: 50%;
}
.maincontent {
position:relative;
padding:50px 0px;
width:100%;
max-width:100%;
}