body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

.header, .footer {
  background: #111;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
}

main {
  padding: 10px;
}

#gallery-container {
  position: relative;
  height: 80vh;
  overflow-y: auto;
}

#gallery {
  position: absolute;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
}

.item img, .item video {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: white;
}

/* Modal */
.modal {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.9);
  display:flex;
  justify-content:center;
  align-items:center;
}

.hidden { display: none; }

#modal-content img,
#modal-content video {
  max-width: 90%;
  max-height: 80vh;
}

#close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

#prev, #next {
  position: absolute;
  top: 50%;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

#categories {
  display: flex;
  gap: 10px;
}

#categories button {
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  background: #444;
  color: #fff;
  border-radius: 5px;
}

.drop-zone {
  border: 2px dashed #999;
  padding: 40px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 20px;
  background: #fafafa;
  transition: 0.3s;
}

.drop-zone.dragover {
  background: #e3f2fd;
  border-color: #2196f3;
}

#progress div {
  margin: 5px 0;
  font-size: 14px;
}



#categories button.active {
  background: #ff6600;
}





#prev { left: 20px; }
#next { right: 20px; }

