@charset "utf-8";
/* CSS Document */


.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 5px;
}

.item {
  width: 10%;
}

.item img {
  width: 100%;
  max-width: 100%;
  height: 120px;
	overflow: hidden;
	object-fit: cover; 
}

.item img:hover {
  transform: scale(1.05);
	cursor: pointer;
}

.hidden-text {
  display: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(255,255,255,0.95);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 10px;
  animation: fadeIn 0.3s;
box-shadow: 0 0 25px rgba(0,0,0,0.15); /* light grey glow */
}

.modal-content {
  background: white;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column; /* 👈 always vertical */
  padding: 20px;
  border-radius: 10px;
  overflow: auto;
}

.modal-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

#modal-text {
  overflow-y: auto;
	text-align: center;
	font-family: "Open Sans", sans-serif;
}

/* Navigation buttons */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  color: #462e83;
}

.prev { left: 20px; }
.next { right: 20px; }

.nav:hover {
  background: rgba(255,255,255,0.4);
}

/* Close */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #462e83;
  cursor: pointer;
	background-color: white;
}

 /*Responsive layout */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: row;
    gap: 20px;
  }

  .modal-content img {
    max-width: 50%;
  }

  #modal-text {
    max-width: 45%;
  }
	
.item {
  width: 45%;
}

.item img {
  width: 100%;
  max-width: 100%;
  height: 100px;
	overflow: hidden;
	object-fit: cover; 
}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
