/* Unique container styling */
.container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.gallery {
  text-align: center;
  margin-bottom: 20px;
}

.gallery h1 {
  font-family: 'Arial', sans-serif;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rowgallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Custom column styling */
.custom-col {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-col img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  cursor: pointer; /* Indicate clickable images */
}

.custom-col img:hover {
  transform: scale(1.05);
}

/* Modal styling */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9); 
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#caption {
  margin: auto;
  display: block;
  text-align: center;
  color: white;
  padding: 10px 0;
}

/* Responsive styling for smaller screens */
@media screen and (max-width: 768px) {
  .custom-col img {
      max-width: 150px;
  }
}

@media screen and (max-width: 480px) {
  .custom-col {
      flex: 1 1 100%;
  }

  .custom-col img {
      max-width: 100%;
  }
}

/* Adding some margin at the bottom */
.custom-col img:last-child {
  margin-bottom: 0;
}