@charset "UTF-8";

	  
    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      max-width: 1100px;
	  margin: 0 auto;
    }
	  
	 .gallery img:hover {
      transform: scale(1.1);
		transition: all 0.3s ease;
    }

    .thumb {
      position: relative;
      width: 100%;
      padding-top: 100%; /* Square */
      overflow: hidden;
      border-radius: 5px;
      background: #ddd;
		box-shadow: 3px 3px 8px 0px rgba(0, 0, 0, 0.6);
    }

    .thumb img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.4s ease;
      cursor: pointer;
	  transition: all 0.3s ease;
    }

    .thumb img.loaded {
      opacity: 1;
		
    }

    .lightbox {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.85);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 90;
      padding: 20px;
      box-sizing: border-box;
    }

    .lightbox.active {
      display: flex;
    }

    .lightbox img {
      max-width: 100%;
      max-height: 95%;
      border-radius: 5px;
     /* box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); */
	  transform: scale(0.95);
  	  transition: opacity 0.5s ease, transform 0.5s ease;
  	  opacity: 0;
    }
	  
	  .lightbox img.fade-in {
  	  opacity: 1;
	  transform: scale(1);
	}

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 40px;
      color: white;
      background: none;
      border: none;
      cursor: pointer;
		z-index: 99;
    }

    .nav-button {
      position: absolute;
      top: 50%;
      font-size: 3rem;
      color: white;
      background: none;
      border: none;
      cursor: pointer;
      transform: translateY(-50%);
		z-index: 99;
    }

    .nav-prev {
      left: 20px;
    }

    .nav-next {
      right: 20px;
    }

