/* Gallery Page Styling */

.gallery-page-wrapper {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Hero Section */
.gallery-hero {
  position: relative;
  width: 100%;
  padding: 140px 0;
  margin-bottom: 80px;
  min-height: 420px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, rgba(6, 40, 30, 0.82) 0%, rgba(13, 138, 114, 0.85) 100%), url('../hero_gallery_bg.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.8s ease-out;
}

.gallery-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-hero-badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 auto 20px;
  max-width: 850px;
  font-family: 'Outfit', sans-serif;
}

.gallery-hero-text {
  font-size: 18px;
  line-height: 1.65;
  color: #e5e7eb;
  max-width: 750px;
  margin: 0 auto;
}

/* Gallery Container & Content */
.gallery-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
  box-sizing: border-box;
}

/* Category Filter Tabs */
.gallery-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background: #f3f4f6;
  color: #4b5563;
  border: 1.5px solid #e5e7eb;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
  background: #e6f4f1;
  color: #0d8a72;
  border-color: #bfe3db;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #0d8a72 100%);
  color: #ffffff;
  border-color: #0d8a72;
  box-shadow: 0 6px 18px rgba(13, 138, 114, 0.25);
  transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Gallery Card */
.gallery-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 138, 114, 0.18);
  border-color: #0d8a72;
}

.gallery-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #0f172a;
}

.image-only-modal {
  max-width: 950px;
  background: transparent;
  box-shadow: none;
}

.image-only-modal .lightbox-image-wrapper {
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.image-only-modal .lightbox-img {
  max-height: 80vh;
  border-radius: 16px;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

/* Card Overlay on Hover */
.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(6, 25, 20, 0.85) 0%, rgba(6, 25, 20, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-sizing: border-box;
}

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

.overlay-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.gallery-card:hover .overlay-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-card-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 25, 20, 0.82);
  backdrop-filter: blur(10px);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
}

.gallery-card-info {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.gallery-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
}

.gallery-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b7280;
  margin: 0;
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 17, 14, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  animation: modalZoom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-image-wrapper {
  width: 100%;
  max-height: 520px;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.lightbox-details {
  padding: 24px 30px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.lightbox-badge {
  display: inline-block;
  align-self: flex-start;
  background: #e6f4f1;
  color: #0d8a72;
  border: 1px solid #bfe3db;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.lightbox-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 10px 0;
  font-family: 'Outfit', sans-serif;
}

.lightbox-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: rgba(220, 38, 38, 0.85);
  transform: scale(1.1);
}

@keyframes modalZoom {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Lightbox Navigation Buttons & Counter */
.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10005;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.lightbox-nav-btn:hover {
  background: #10b981;
  border-color: #34d399;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

.lightbox-nav-btn.prev {
  left: 30px;
}

.lightbox-nav-btn.next {
  right: 30px;
}

.lightbox-counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  color: #f3f4f6;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10005;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }
  .lightbox-nav-btn.prev {
    left: 12px;
  }
  .lightbox-nav-btn.next {
    right: 12px;
  }
  .lightbox-counter {
    bottom: 16px;
    font-size: 12.5px;
    padding: 6px 16px;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .gallery-hero h1 {
    font-size: 38px;
  }
  .gallery-hero-text {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gallery-hero {
    padding: 100px 0;
    min-height: 360px;
  }
  .gallery-hero h1 {
    font-size: 30px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .lightbox-content {
    border-radius: 12px;
  }
  .lightbox-details {
    padding: 18px 20px;
  }
  .lightbox-title {
    font-size: 18px;
  }
  .lightbox-desc {
    font-size: 13.5px;
  }
}
