/* ===== GALLERY PAGE — DESKTOP STYLES ===== */

/* Filter Buttons */
.gallery-filter-section {
  padding: 20px 0 40px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--white);
  border: 1.5px solid var(--primary-200);
  color: var(--gray-700);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-700);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Gallery Grid */
.gallery-main {
  background: var(--white);
  padding-bottom: 100px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  perspective: 1200px;
}

/* 3D Gallery Card */
.gallery-card {
  background: var(--white);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 12px 30px rgba(14, 165, 233, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-10px) rotateX(3deg) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(14, 165, 233, 0.22),
    0 8px 20px rgba(3, 105, 161, 0.12);
  border-color: var(--primary-300);
}

/* Card Image Wrapper */
.gallery-image-box {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--gradient-hero);
}

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

.gallery-card:hover .gallery-image-box img {
  transform: scale(1.1);
}

/* Fallback Styled Illustration Box */
.gallery-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #f0f9ff 100%);
  color: var(--primary-600);
}

.gallery-illustration .icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.25));
}

.gallery-illustration span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-800);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hover Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 105, 161, 0.88) 0%, rgba(14, 165, 233, 0.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

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

.zoom-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Card Bottom Info */
.gallery-info {
  padding: 20px 22px;
}

.gallery-category-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.gallery-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.3;
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

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

.lightbox-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--primary-100);
  background: var(--primary-50);
}

.lightbox-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--primary-200);
  color: var(--gray-700);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.lightbox-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}

.lightbox-preview-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-details h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.lightbox-details p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.lightbox-nav {
  display: flex;
  gap: 12px;
}

.lightbox-nav-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-700);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}
