.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.gallery-card {
  width: 326px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Glass effect */
  background: rgba(245, 245, 245, 0.3);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(245, 245, 245, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
}

@media screen and (min-width: 1440px) {
  .gallery-card {
    min-width: 22vw;
    min-height: 28vh;
  }
}

@media (prefers-color-scheme: dark) {
  .gallery-card {
    background: rgba(20, 20, 20, 0.5);
  }
}

.gallery-card:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.gallery-card .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: white;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}


/* Modal Gallery */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.85); */
  background: rgba(245, 245, 245, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.gallery-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 95vw;
  height: 100%; 
  max-height: 80vh;
  
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 245, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  /* background: rgba(0, 0, 0, 0.8); */
  background: rgba(245, 245, 245, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  .gallery-modal {
    background: rgba(20, 20, 20, 0.25);
  }
  .modal-content {
    background: rgba(20, 20, 20, 0.8);
  }
}

.slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;     
}

.slide img {
  /* width: auto;
  height: auto;
  object-fit: contain;
  margin: auto; */
  display: block !important;
  max-width: 100%;
  max-height: 100%;
}


.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;          
  backdrop-filter: none;     
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;                      
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 4rem;
  color: blue;                     
  transition: all 0.3s ease;
  z-index: 100;
}

.modal-nav:hover {
  transform: translateY(-50%) scale(1.2);
}

.modal-prev {
  left: 2%; /* 2% of the modal's width */
}
.modal-next {
  right: 2%; /* 2% of the modal's width */
}

@media (max-width: 768px) {
  .modal-prev {
    /* Set the left position to 0, overriding the 30px value */
    left: 0;
  }
  
  .modal-next {
    /* Set the right position to 0, overriding the 30px value */
    right: 0;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
}


.hero-image {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 15vw;
  height: auto;
  z-index: 50;
  pointer-events: none;
  display: none;
}

@media screen and (min-width: 1025px) {
  .hero-image {
    display: block;
  }
}
