/* ==========================================================================
   VBA GALLERY PAGE SPECIFIC STYLES (css/gallery.css)
   ========================================================================== */

/* Header / Badge Styling */
.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #bd6026;
  background-color: rgba(189, 96, 38, 0.08);
  border: 1px solid rgba(189, 96, 38, 0.2);
  transition: all 0.3s ease;
}

.gallery-badge:hover {
  background-color: rgba(189, 96, 38, 0.15);
  transform: translateY(-1px);
}

/* Category Filter Buttons */
.filter-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f453c;
  background-color: #ffffff;
  border: 1px solid rgba(129, 117, 107, 0.2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
  color: #bd6026;
  border-color: rgba(189, 96, 38, 0.4);
  background-color: #fff8f5;
  transform: translateY(-1px);
}

.filter-btn.active {
  color: #ffffff;
  background-color: #442a10;
  border-color: #442a10;
  box-shadow: 0 4px 14px rgba(68, 42, 16, 0.25);
}

/* Seamless Masonry Column Gallery Layout - 2 Columns on Mobile, 3 Columns on Desktop */
.gallery-grid {
  column-count: 2;
  column-gap: 0.875rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 3;
    column-gap: 1.75rem;
  }
}

/* Seamless Card Item Styling */
.gallery-item {
  position: relative;
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.125rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

@media (min-width: 768px) {
  .gallery-item {
    margin-bottom: 1.75rem;
  }
}

.gallery-item.hidden-item {
  display: none !important;
  opacity: 0;
  transform: scale(0.95);
}

.gallery-item:hover {
  transform: translateY(-4px);
}

/* Image Wrapper with Rounded Corners & Subtle Elevating Hover */
.gallery-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #efe6e2;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-item:hover .gallery-img-wrapper {
  box-shadow: 0 14px 32px rgba(68, 42, 16, 0.14);
}

/* Aspect Ratios */
.gallery-item.aspect-tall .gallery-img-wrapper {
  aspect-ratio: 4 / 5;
}

.gallery-item.aspect-wide .gallery-img-wrapper {
  aspect-ratio: 16 / 10;
}

.gallery-item.aspect-square .gallery-img-wrapper {
  aspect-ratio: 1 / 1;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.05);
}

/* Gradient Overlay on Hover (No text overlay) */
.gallery-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-img-wrapper::after {
  opacity: 1;
}

/* Clean Card Meta Bar Directly Below Image (No White Box / No Border) */
.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.25rem 0 0.25rem;
  background: transparent;
  border: none;
}

.gallery-number {
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4f453c;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.gallery-item:hover .gallery-number {
  color: #bd6026;
}

.gallery-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e1b18;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-details-btn {
  color: #bd6026;
}

.gallery-details-btn .material-symbols-outlined {
  font-size: 0.95rem;
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-details-btn .material-symbols-outlined {
  transform: translate(2px, -2px);
}

@media (max-width: 639px) {
  .gallery-img-wrapper {
    border-radius: 0.75rem;
  }
  .gallery-meta {
    padding: 0.35rem 0.125rem 0 0.125rem;
  }
  .gallery-number {
    font-size: 0.75rem;
  }
  .gallery-details-btn {
    font-size: 0.71875rem;
  }
  .gallery-details-btn .material-symbols-outlined {
    font-size: 0.8125rem;
  }
}

/* Clean Lightbox Modal - Pure Focused Image View */
#lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 10, 6, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

/* Lightbox Controls */
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 110;
}

.lightbox-btn:hover {
  background-color: #bd6026;
  border-color: #bd6026;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 110;
}

.lightbox-close:hover {
  background-color: rgba(239, 68, 68, 0.8);
  border-color: transparent;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}
