.project-gallery {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.project-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #00ffff22;
  box-shadow: 0 0 15px #00ffff33;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px #00ffff88, 0 0 60px #00ffff44;
}

.project-gallery.carousel {
  position: relative;
  overflow: hidden;
  max-height: none;       
}

.project-gallery.carousel .carousel-window {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.project-gallery.carousel .carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.8s ease-in-out, filter 0.6s ease-in-out;
}

.project-gallery.carousel .carousel-img.active {
  opacity: 1;
  z-index: 2;
  filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.4));
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid #00ffff66;
  color: #00ffff;
  font-size: 2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 10px #00ffff88;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

@media (max-width: 600px) {
  .project-gallery.carousel .carousel-window {
    aspect-ratio: 4 / 3;
  }

  .carousel-btn {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
}
