body{background-color:#0d0d0d;color:white;}

/* Reset and Basic Styling */

body {

    font-family: Arial, sans-serif;

    text-align: center;

    margin: 0;

    padding: 20px;

    background-color: #0d0d0d;
	
	color:white;

}

/* Gallery Container */

.gallery {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 10px;

    max-width: 1200px;

    margin: auto;

}

/* Gallery Items */

.gallery-item {

    overflow: hidden;

    border-radius: 10px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease-in-out;

}

.gallery-item img {

    width: 100%;

    height: auto;

    display: block;

}

.gallery-item:hover {
  transform: scale(1.1);
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
  position: relative;
  width: auto;
  height: auto;
  max-width: 950px;
  max-height: 950px;
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 2rem);
}

/* Responsive Design */

@media (max-width: 600px) {

    .gallery {

        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

    }

}