/*
 * Sync Tours - Gallery Page Styles
 */

/* Category Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-gold);
  color: var(--white);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

/* Masonry Grid Layout */
.gallery-masonry {
  column-count: 3;
  column-gap: 20px;
  width: 100%;
}

@media (max-width: 992px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-masonry {
    column-count: 1;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background-color: var(--bg-secondary);
  transition: all var(--transition-normal);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

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

/* Hover Content Overlay */
.gallery-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(4, 13, 33, 0.8) 0%, rgba(4, 13, 33, 0.1) 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  z-index: 2;
  transition: opacity var(--transition-normal);
}

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

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 4px;
}

.gallery-cat {
  font-size: 0.75rem;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(4, 13, 33, 0.95);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--white);
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
}

.lightbox-container {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
}

/* Navigation Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  width: 50px; height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-arrow:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  border-color: var(--accent-gold);
}

.lightbox-arrow-left { left: 40px; }
.lightbox-arrow-right { right: 40px; }

@media (max-width: 768px) {
  .lightbox-arrow {
    position: static;
    transform: none;
    margin-top: 15px;
  }
  .lightbox-arrows-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 10px;
  }
}
