/* ==========================================================================
   gallery-v2.css — Clean, High-Impact Photo Gallery Stylesheet
   Hunza Adventure Tours Pakistan
   ========================================================================== */

/* Anti-Copy & Content Protection */
*, *::before, *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

input, textarea, select, option, [contenteditable="true"], .selectable-text {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

::selection {
  background: transparent !important;
  color: inherit !important;
}

::-moz-selection {
  background: transparent !important;
  color: inherit !important;
}

img, a {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

/* 1. Hero Section */
.gallery-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(5, 26, 48, 0.75) 0%, rgba(1, 45, 88, 0.65) 100%), 
              url('../images/K2%20BASE%20CAMP%20TREK%20PAKISTAN.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 5.5rem 1rem 4.5rem;
  text-align: center;
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.18), transparent 70%);
  pointer-events: none;
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #fbd38d;
  padding: 0.45rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.gallery-title span {
  background: linear-gradient(90deg, #fbd38d, #f6ad55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* 2. Sticky Category Filter Bar */
.gallery-filter-bar {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 0;
  transition: all 0.3s ease;
}

.gallery-filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-filter-btn {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.gallery-filter-btn:hover {
  background: #e2e8f0;
  color: #013c74;
  transform: translateY(-1px);
}

.gallery-filter-btn.active {
  background: #013c74;
  color: #ffffff;
  border-color: #013c74;
  box-shadow: 0 4px 14px rgba(1, 60, 116, 0.3);
}

.gallery-filter-btn .btn-count {
  font-size: 0.725rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  font-weight: 600;
}

.gallery-filter-btn.active .btn-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* 3. Pure Photo Gallery Grid (No text cards / No descriptions) */
.gallery-content-section {
  padding: 3rem 0 5rem;
  background: #f8fafc;
  min-height: 600px;
}

.pure-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1200px) {
  .pure-photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Photo Tile Item */
.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, opacity 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(1, 60, 116, 0.18);
}

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

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

/* Hover Overlay */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 26, 48, 0.88) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  color: #ffffff;
}

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

/* Top Badge & Zoom Icon */
.photo-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-category-pill {
  background: rgba(212, 175, 55, 0.9);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.photo-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.photo-item:hover .photo-zoom-btn {
  background: #fbd38d;
  color: #013c74;
  transform: scale(1.1);
}

/* Bottom Caption Info (Revealed on hover) */
.photo-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.photo-location-tag {
  font-size: 0.75rem;
  color: #fbd38d;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.photo-title-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* 4. Fullscreen Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 15, 28, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

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

.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease;
}

/* Lightbox Info Bar */
.lightbox-info-bar {
  margin-top: 1rem;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-location {
  font-size: 0.85rem;
  color: #fbd38d;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lightbox-counter {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Lightbox Navigation Buttons */
.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
}

.lightbox-close-btn:hover {
  background: #e53e3e;
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
}

.lightbox-nav-btn:hover {
  background: #fbd38d;
  color: #013c74;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 1.5rem;
}

.lightbox-nav-btn.next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .lightbox-nav-btn.prev {
    left: 0.5rem;
    width: 40px;
    height: 40px;
  }
  .lightbox-nav-btn.next {
    right: 0.5rem;
    width: 40px;
    height: 40px;
  }
  .lightbox-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
  }
}

/* Image & Media Copy/Drag Protection */
.photo-item img,
.lightbox-img-wrap img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
