﻿.folder-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.folder-list li {
  margin: 20px;
  text-align: center;
}

.folder-list img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
}

.folder-list img:hover {
  transform: scale(1.1);
}

.folder-list span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery img {
  width: 25%;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .gallery img {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .gallery img {
    width: 100%;
  }
}




.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-content {
  height: 80vh;
  overflow-y: auto;
  margin: 10vh auto;
  
    overflow-y: scroll;

}

.popup img {
  width: 500px;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  overflow-y: auto;

  
}
.popup-content::-webkit-scrollbar {
  width: 20px;
}

.popup-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 5px;
}

.popup-content::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.popup img:hover {
  transform: scale(1.05) rotate(0.5deg);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  text-shadow: 0 0 5px #000;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.prev:hover, .next:hover {
  transform: scale(1.2) translateY(-50%);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 40px;
  color: #fff;
  text-shadow: 0 0 5px #000;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: transform 0.3s ease-in-out;
}

.close:hover {
  transform: rotate(90deg) scale(1.2);
}

.back {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 5px #000;
  background-color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
}

.back:hover {
  background-color: #444;
}