/* General styles */


/* Gallery container */
.css-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 95%;
  margin: auto;
  background:hidden;
}

/* Gallery images */
.css-gallery-item {
  width: 95%; /* Full width on mobile */
  margin: 5% auto; /* Centering and adding margin on mobile */
 /* transition: transform 1.5s ease-in-out; /* Smooth transition for transform *//*
  will-change: transform; /* Optimizes animations */
}

/* Screen width larger than 768px */
@media (min-width: 768px) {
  .css-gallery {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
       margin:auto;
       
  }

  .css-gallery-item {
    width: 35vw;
    height:35vw;
    margin: 2vw; /* Providing space around the images */
   object-fit: contain;
      text-shadow: 3px 3px 10px #000;
      overflow:visible;
       -webkit-filter: drop-shadow(#00000044 4px 4px 4px) drop-shadow(#00000044 10px 10px 20px);
    filter: drop-shadow(#00000044 4px 4px 4px) drop-shadow(#00000044 10px 10px 20px);
  }


  .css-gallery-item:nth-child(odd):hover {
    
    transform: scale(calc(66 / 33)); /* Scaling up to 85vw from 35vw */
   transform-origin: left center;
    z-index: 2; /* Ensure the hovered image is above others */
    transition: transform 1s ease-in-out; /* Smooth transition for scaling */
     transition-delay: 0.1s; /* Delays the transition by half a second */
  }

 .css-gallery-item:nth-child(even):hover {
    
    transform: scale(calc(66 / 33)); /* Scaling up to 85vw from 35vw */
   transform-origin: right center;
    z-index: 2; /* Ensure the hovered image is above others */
    transition: transform 1s ease-in-out; /* Smooth transition for scaling */
     transition-delay: 0.1s; /* Delays the transition by half a second */
  }

  /* Ensuring other elements move out of the way smoothly */
 .css-gallery-item:nth-child(odd):not(:hover) {
    transition: transform 1s ease-in-out, width 1s ease-in-out;
    transform-origin: left center;
     transition-delay: 0.1s; /* Delays the transition by half a second */
  }
   /* Ensuring other elements move out of the way smoothly */
 .css-gallery-item:nth-child(even):not(:hover) {
    transition: transform 1s ease-in-out, width 1s ease-in-out;
    transform-origin: right center;
     transition-delay: 0.005s; /* Delays the transition by half a second */
  }
  

}
