/* ==========================================================================
   GALLERY STYLES (css/gallery.css)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-card-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  background-color: #121F19;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 38, 30, 0.95) 0%, rgba(19, 38, 30, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-card-item:hover .gallery-overlay-caption {
  opacity: 1;
}

.gallery-tag-pill {
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.gallery-title-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.gallery-location-meta {
  font-size: 0.8rem;
  color: var(--color-sand);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 16, 0.95);
  backdrop-filter: blur(12px);
  z-index: 3500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-content-box {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
}

.lightbox-content-box img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--color-border-dark);
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
}
