/* ==================== PHOTO GALLERY SPECIFIC STYLES ==================== */
/* All classes prefixed with 'gallery-' to prevent overlap */

.gallery-page-header {
  padding: 140px 24px 80px;
  background: var(--gradient-hero);
  text-align: center;
}
.gallery-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--color-text);
  margin-bottom: 16px;
}
.gallery-page-header p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

.gallery-section-block {
  padding: 90px 0;
  border-bottom: 1px solid var(--color-bg-alt);
}
.gallery-section-block.gallery-alt {
  background: var(--color-bg-alt);
}
.gallery-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.gallery-visual .gallery-main-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform var(--transition-normal);
}
.gallery-visual .gallery-main-img:hover {
  transform: scale(1.02);
}

.gallery-content .gallery-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-text);
  line-height: 1.2;
}
.gallery-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text-light);
  margin-bottom: 28px;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-thumb {
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}
.gallery-thumb::after {
  content: '🔍';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 1.5rem;
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
}
.gallery-thumb:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}
.gallery-thumb:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.gallery-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}
.gallery-lightbox.active .gallery-lightbox-img {
  transform: scale(1);
}
.gallery-lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gallery-section-block {
    padding: 60px 0;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery-page-header {
    padding: 110px 20px 50px;
  }
  .gallery-content .gallery-title {
    font-size: 1.6rem;
  }
  .gallery-thumbs {
    grid-template-columns: 1fr;
  }
  .gallery-thumb img {
    height: 110px;
  }
}