/*

   Title: Gallery
   Author: QBIT
   Date: 14/02/2025

   File path: ../../../../uploads/

*/

/* Gallery styles */
#gallery {

}

.gallery {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.images {
  display: flex;
  overflow-x: hidden;
}

.image { 
  flex: 1 0 calc(100% / 4);
  overflow: hidden;
  position: relative; 
  cursor: pointer;
}

.image img { 
  transition: transform .5s; 
}

.image:hover img { 
  transform: scale(1.2); 
}

.image::after { 
  content: ''; position: absolute; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%;  
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%); 
}

.gallery .content {
  position: absolute;
  left: 20px;
  bottom: 0;
  font-size: 0.8em;
  color: #fff;
  z-index: 1000;
}

.left,
.right {
  width: 50px;
  height: 50px;
  position: absolute;
  border-radius: 100px;
  transition: background-position 0.3s ease;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  text-indent: -9999px;
  background-color: rgba(255, 255, 255, 0.7);
  background-size: 10px;
  background-repeat: no-repeat;
}

.left {
  left: 5px;
  background-image: url('../../../../uploads/svg/left.svg');
  background-position: center center;
}

.right {
  right: 5px;
  background-image: url('../../../../uploads/svg/right.svg');
  background-position: center center;
}

/* Media queries */
@media (max-width: 64em) 
{

  /* Gallery styles */
  .image {
    flex: 1 0 100%;
  }

}