/*#galleryView { 
  display: flex; 
  position: fixed; 
  top: 0;
  left: 0;
  flex-direction: row; 
  justify-content: center; 
  align-items: center; 
  z-index: 100; 
  background-color: rgba(0, 0, 0, 0.5); 
  width: 100%; 
  height: 100vh;
}

#galleryView.hidden {
  display: none;
}*/

#galleryView{
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  opacity: 0;
  transform: scale(0.1);
  transition: 0.3s ease;
  overflow: hidden;
}

#galleryView.show{
  transform: scale(1);
  opacity: 1;
}

.imageDetail { 
  background-color: var(--bg-overlay); 
  margin: 50px; 
  padding: 30px; 
  padding-right: 50px;
  position: relative; 
  display: flex; 
  flex-direction: column; 
  max-height: calc(100vh - 100px); 
  width: 100%;
  max-width: fit-content; 
  box-sizing: border-box;
  border-radius: 20px; 
  border: 2px solid var(--accent-gold);
} 

.modal-content {
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.modal-content img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
}

.modal-content h3 { 
  font-weight: bold; 
  text-align: left; 
  font-size: 1.3rem; 
  margin: 0px; 
  padding-right: 40px; 
} 

.modal-content p { 
  color: var(--text-secondary); 
  text-align: left; 
  margin-top: 10px; 
} 

.modal-content small { 
  color: var(--text-secondary); 
}

.imageDetail button { 
  background: none; 
  border: 2px solid transparent; 
  position: absolute; 
  top: 20px; 
  right: 20px;
  transform: translate(50%, -50%);
  color: white; 
  padding: 10px; 
  transition: all 0.3s ease-in-out; 
  cursor: pointer;
  z-index: 10; 
} 

.imageDetail button:hover { 
  border-color: var(--accent-gold); 
  border-radius: 25px; 
}

.galleryContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  padding: 15px;
}

.galleryItem:hover{
  transform: scale(1.1);
}

.galleryItem{
  position: relative;
  display: flex;
  flex-direction: row;
  height: fit-content;
  border: none;
  color: var(--accent-light);
  background: none;
  padding: 0px;
  margin: 0px;
  min-width: 300px;
  max-width: 350px;
  transition: 0.3s ease;
}

.galleryItem::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  pointer-events: none;
  border-radius: 20px;
}

.galleryItem img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 20px;
}

.galleryItem .galleryCard{
  display: flex;
  position: absolute;
  flex-direction: column;
  align-self: flex-end;
  padding: 10px;
}

.galleryCard h3 {
  margin: 0px;
  z-index: 30;
  font-size: 1.3rem;
  text-align: left;
}

.galleryCard small {
  margin: 0px;
  z-index: 30;
  color: var(--text-secondary);
  text-align: left;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .imageDetail{
    margin: 10px;
  }
  .galleryContainer{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .galleryItem{
    min-width: 350px;
  }
}