:root {
  --highLightColor: #d4bea7;
  --galleryFrame: none;
  --leftToggler: initial;
  --rightToggler: initial;
  --bigImageNumbers: 'hello';
}




.gallerySmallImages,
.gallerySmallImagesWide {
  cursor: pointer;
  margin-bottom: 20px;
}

.gallerySmallImages IMG {
  width: 100%;
  border-radius: 6px;
  opacity: 100%;
  filter: brightness(95%)grayscale(10%)
}

.gallerySmallImagesWide IMG {
  width: 100%;
  border-radius: 6px;
  opacity: 100%;
  filter: brightness(95%)
}

.gallerySmallImages IMG:hover,
.gallerySmallImagesWide IMG:hover {
  opacity: 100%;
  filter: brightness(100%)
}

/*-----------------------------------------------------------POPUP GALLERY---------------------------------------------*/


#galleryFrame {
  display: var(--galleryFrame);
  height: 100vh;
  width: 100vw;
  backdrop-filter: blur(20px)brightness(66%);
  position: fixed;
  z-index: 10000000;
  animation-name: turnOn;
  animation-duration: 0.5s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

#closeGallery {
  color: white;
  text-align: right;
  margin-top: 1rem;
  margin-right: 100px;
  cursor: pointer;
  font-size: 48px;
}

.closeGalleryDelay {
  transform: scale(1);
}

#closeGallery:hover {
  color: var(--highLightColor);
}

.swapLeftIn {
  animation-name: swapLeftIn;
  animation-duration: 0.5s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

.swapLeftOut {
  animation-name: swapLeftOut;
  animation-duration: 0.5s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

.swapRightIn {
  animation-name: swapRightIn;
  animation-duration: 0.5s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

.swapRightOut {
  animation-name: swapRightOut;
  animation-duration: 0.5s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

#toggleLeft {
  color: white;
  position: absolute;
  top: 50%;
  left: 4%;
  border-left: solid 6px white;
  border-top: solid 6px white;
  transform: rotate(-45deg);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: var(--leftToggler);
  z-index: 5000;
}

#toggleRight {
  color: white;
  position: absolute;
  top: 50%;
  right: 4%;
  border-left: solid 6px white;
  border-top: solid 6px white;
  transform: rotate(135deg);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: var(--rightToggler);
  z-index: 5000;
}

#toggleRight:hover,
#toggleLeft:hover {
  border-color: var(--highLightColor);
}


.scaledImages {
  animation-name: scaleUp;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-delay: 0s;
}

.lowerImages {
  animation-name: scaleDown;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-delay: 0s;
}

.galleryBigImages {
  text-align: center;
  display: none;
  position: absolute;
  z-index: 4000;
}

.showSelectedGalleryImage {
  display: initial;
}

.galleryBigImages IMG {
  height: 85vh;
  opacity: 100%;
}

.wideImages IMG {
  height: 80vh;
  opacity: 100%;
}


#galleryList {
  z-index: 1000000;
  position: absolute;
  color: white;
  font-size: 24px;
  top: 93%;
  left: 48%;
}

#galleryList::after {
  content: var(--bigImageNumbers);
}

.galleryPics {
  transition: ease 0.3s;
}

.loadSmallPictures {
  opacity: 0%;
  transform: translateY(100px)scale(0.2);
}




.galleryWrapper {
  padding-top: 64px;
  columns: 244px;
  transform: skewX(0deg);
  margin-bottom: 100px;
}


.galleryWrapper img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  filter: brightness(95%);
  box-shadow: 2px 2px 64px 4px black;
}

.galleryRow img:hover {
  filter: brightness(100%)
}

.gallerImages {
  padding: 6px;
  margin-bottom: 12px;

}


@keyframes turnOn {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}


@keyframes scaleUp {
  0% {
    transform: scale(0.1)
  }

  100% {
    transform: scale(1)
  }
}

@keyframes scaleDown {
  0% {
    filter: grayscale(90);
    transform: scale(1);
  }

  100% {
    transform: scale(0);
    filter: grayscale(100);

  }
}

@keyframes swapLeftIn {
  0% {
    margin-left: 200vh;
  }

  100% {
    margin-left: 0vh;
  }
}

@keyframes swapLeftOut {
  0% {
    margin-left: 0vh;
  }

  100% {
    margin-left: -200vh;
  }
}

@keyframes swapRightIn {
  0% {
    margin-left: -200vh;
  }

  100% {
    margin-left: 0vh;
  }
}

@keyframes swapRightOut {
  0% {
    margin-left: 0vh;
  }

  100% {
    margin-left: 200vh;
  }
}


@keyframes themeSwap {
  0% {
    margin-right: -198.6vw;
  }

  30.5% {
    margin-right: -198.6vw;
  }

  33% {
    margin-right: 0vw;
  }

  63.5% {
    margin-right: 0vw;
  }

  66% {
    margin-right: 198.6vw;
  }


  98% {
    margin-right: 198.6vw;
  }

  100% {
    margin-right: -198.6vw;
  }
}


@media screen and (max-width: 1281px) {
  .galleryWrapper {
    columns: 204px;
  }

}



@media screen and (max-width: 991px) {
  .galleryBigImages img {
    width: 100%;
    height: unset;
  }

  .galleryBigImages {
    padding-left: 30px !important;
    align-content: center;
    height: 100vh;

  }

  #closeGallery {
    margin-right: 10px;
    margin-top: 4px;
    z-index: 200;
    position: relative;
  }

  .gallerySmallImages {
    padding-right: 0px;
  }

  .galleryBigRow {
    transform: translateY(-50px);
  }

  #toggleLeft,
  #toggleRight {
    width: 20px;
    height: 20px;
    filter: drop-shadow(1px 1px 1px rgb(55, 55, 55));
  }

  .galleryWrapper {
    padding-top: 64px;
    columns: 144px;
    transform: skewX(0deg);
    margin-bottom: 100px;
  }
    .galleryWrapper {
    columns: 124px;
  }

}


@media screen and (max-height: 576px) {
  .galleryBigImages img {
    width: 100%;

  }

  #closeGallery {
    margin-right: 10px;
    margin-top: 4px;
  }

  #galleryList {
    top: 90%;
  }
}