﻿/* ==========================================================================
   Gallery Page - Clean Professional Photo Showcase
   Dr. Darshan Bafna Orthopaedics
   ========================================================================== */


:root {
  --theme-navy: #001F62;
  --theme-navy-dark: #001238;
  --theme-blue-accent: #0d6efd;
  --theme-bg-light: #f8fafc;
}

body.gallery-page {
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  background-color: var(--theme-bg-light);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ── RELEVANT FULL-WIDTH HERO BANNER (MINIMAL TEXT) ── */
.gallery-hero-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: linear-gradient(rgba(0, 31, 98, 0.42), rgba(0, 18, 56, 0.58)),
              url('../img/gallery-banner.jpg') center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  box-sizing: border-box;
}

.gallery-hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-hero-title {
  font-family: 'Audiowide', cursive, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.banner-breadcrumb {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.banner-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.banner-breadcrumb a:hover {
  color: #ffffff;
}

.banner-breadcrumb span {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.55);
}

.banner-breadcrumb .active-crumb {
  color: #60a5fa;
  font-weight: 600;
  margin: 0;
}

/* ── PHOTO SHOWCASE SECTION (ONLY PHOTOS, NO TEXT) ──────── */
.gallery-section-main {
  padding: 60px 0 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
  padding: 0 15px;
}

.gallery-item-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  box-shadow: 0 6px 20px rgba(0, 31, 98, 0.08);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
  background-color: #f1f5f9;
}

.gallery-item-photo:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 31, 98, 0.2);
}

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

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

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 31, 98, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-zoom-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--theme-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.gallery-item-photo:hover .gallery-zoom-icon {
  transform: scale(1);
}

/* ── LIGHTBOX MODAL ─────────────────────────────────────── */
.gallery-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 18, 56, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  position: relative;
  max-width: 950px;
  max-height: 85vh;
  width: 90%;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-dialog img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease;
}

.lightbox-close-btn:hover {
  background: rgba(220, 38, 38, 0.9);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-navy);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all 0.25s ease;
}

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

.lightbox-prev-btn {
  left: 15px;
}

.lightbox-next-btn {
  right: 15px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .gallery-hero-title {
    font-size: 2.6rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 767px) {
  .gallery-hero-banner {
    padding-top: 120px;
    min-height: 280px;
    padding-bottom: 45px;
  }
  .gallery-hero-title {
    font-size: 2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  .gallery-item-photo {
    height: 230px;
  }
  .lightbox-dialog {
    width: 96%;
  }
  .lightbox-nav-btn {
    display: none;
  }
}

/* ── FULL-WIDTH SEO LINE (UNDER PHOTOS, 100% WIDTH, NOT INSIDE GRID) ── */
.gallery-seo-fullwidth-wrapper {
  width: 100%;
  max-width: 100%;
  margin-top: 35px;
  padding: 15px 0;
  box-sizing: border-box;
}

.gallery-seo-single-line {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
  width: 100%;
  margin: 0;
}

.gallery-inline-readmore-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  color: #001F62;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: underline;
  cursor: pointer;
  display: inline;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.gallery-inline-readmore-btn:hover {
  color: #0d6efd;
}

#galleryFullOverview {
  width: 100%;
}

#galleryFullOverview p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
  width: 100%;
}