/* Gallery specific styles */

#gallery-container {
display: flex;
flex-direction: column;
gap: 30px;
margin: 2rem 0;
}

.project-container {
background-color: #8db8c8;
border-radius: 8px;
padding: 15px;
box-shadow: 0 4px 6px rgb(0, 0, 0);
transition: transform 0.3s ease;
}

.project-container:hover {
transform: translateY(-5px);
}

.project-title {
color: #000080;
margin-bottom: 15px;
text-align: center;
font-size: 1.8rem;
}

.project-content {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.images-container {
flex: 1;
min-width: 300px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 10px;
}

.project-image {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 4px;
transition: transform 0.3s ease;
cursor: pointer;
}

.project-image:hover {
transform: scale(1.05);
}

.project-description {
flex: 1;
min-width: 300px;
background-color: #c5defc;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-description h3 {
color: #000080;
margin-top: 0;
margin-bottom: 10px;
}

.project-date {
color: #2d2d41;
font-style: italic;
margin-bottom: 10px;
display: block;
}

#loading-message {
text-align: center;
padding: 20px;
font-size: 1.2rem;
color: #000080;
}

/* Modal for enlarged images */
.modal {
display: none;
position: fixed;
z-index: 2000;
padding-top: 50px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
display: block;
margin: 0 auto;
max-width: 90%;
max-height: 80%;
}

.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
cursor: pointer;
}

.close:hover,
.close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.project-content {
flex-direction: column;
}
.images-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.project-image {
    height: 120px;
}
}
/* Modal navigation buttons */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
}

.modal-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Close button positioning adjustment */
.close {
  z-index: 3;

}
@media (max-width: 480px) {
  .images-container,
  .project-description {
    min-width: 100% !important;
    width: 100%;
  }
  
  .project-content {
    gap: 15px;
  }
  
  .images-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .project-image {
    height: 100px;
  }
}
