/* Classic card gallery design: Title → Date → Photo. 
   Minimal, elegant, and clearly different from the previous photo-overlay look.
   Loaded after other styles so it takes precedence on gallery.html
*/

#fullGalleryGrid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

#fullGalleryGrid .gallery-entry {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(16,12,12,0.04);
  box-shadow: 0 8px 30px rgba(25,15,15,0.06);
  transition: transform .22s ease, box-shadow .22s ease;
}

#fullGalleryGrid .gallery-entry:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(25,15,15,0.09); }

/* Header above the photo: centered title then date */
#fullGalleryGrid .gallery-entry-header {
  padding: 18px 20px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(10,10,10,0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
}

#fullGalleryGrid .gallery-entry-title { margin: 0 0 6px; font-size: 1.35rem; font-weight:800; color: #2a1313; }
#fullGalleryGrid .gallery-entry-date { margin: 0; font-size: 0.95rem; color: #6b4545; }

/* Single-image events: big landscape hero image */
#fullGalleryGrid .gallery-entry-images.single-image { padding: 14px; }
#fullGalleryGrid .gallery-entry-images.single-image .gallery-image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: inset 0 -10px 30px rgba(0,0,0,0.02);
}

/* Multi-image events: carousel with one image at a time */
#fullGalleryGrid .gallery-entry-images.multi-images { 
  padding: 14px; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fullGalleryGrid .gallery-entry-images.multi-images .gallery-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#fullGalleryGrid .gallery-entry-images.multi-images .gallery-image.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Navigation arrows */
#fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(140,20,36,0.2);
  color: #8c1424;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  user-select: none;
}

#fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav:hover {
  background: #8c1424;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(140,20,36,0.3);
}

#fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav.prev {
  left: 20px;
}

#fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav.next {
  right: 20px;
}

/* Image counter */
#fullGalleryGrid .gallery-entry-images.multi-images .carousel-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Make images focusable for keyboard users (lightbox attach target) */
#fullGalleryGrid .gallery-image { outline: none; }

/* Responsive adjustments */
@media (max-width: 900px) {
  #fullGalleryGrid .gallery-entry-images.single-image .gallery-image { height: 340px; }
  #fullGalleryGrid .gallery-entry-images.multi-images .gallery-image { 
    height: 300px; 
  }
  #fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  #fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav.prev {
    left: 12px;
  }
  #fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav.next {
    right: 12px;
  }
}

@media (max-width: 560px) {
  #fullGalleryGrid .gallery-entry-images.single-image .gallery-image { height: 220px; }
  #fullGalleryGrid .gallery-entry-images.multi-images .gallery-image { 
    height: 200px; 
  }
  #fullGalleryGrid .gallery-entry-header { padding: 14px 12px; }
  #fullGalleryGrid .gallery-entry-title { font-size: 1.15rem; }
  #fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
  #fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav.prev {
    left: 8px;
  }
  #fullGalleryGrid .gallery-entry-images.multi-images .carousel-nav.next {
    right: 8px;
  }
  #fullGalleryGrid .gallery-entry-images.multi-images .carousel-counter {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

/* Small accessibility helper for keyboard focus */
#fullGalleryGrid .gallery-image:focus { box-shadow: 0 0 0 4px rgba(126,24,43,0.12); transform: translateY(-2px); }
