/* ==========================================================================
   Gallery Page Complete CSS Stylesheet (100% Matching gallery.png)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Hero Section Fallback Styles
   -------------------------------------------------------------------------- */
.gallery-hero-section {
  padding: 30px 0 !important;
  position: relative;
  background: linear-gradient(to right, #fde8ef 0%, #fff2f6 30%, #ffffff 65%, #f1e4fc 100%) !important;
  overflow: hidden;
  min-height: auto !important;
  height: auto !important;
}

@media (min-width: 992px) {
  .gallery-hero-section {
    min-height: 430px !important;
    height: auto !important;
    padding: 30px 0 !important;
  }
  .gallery-hero-section > .container-fluid {
    height: auto !important;
  }
  .gallery-hero-section .row {
    height: auto !important;
  }
}

.gallery-hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gallery-hero-section .hero-features-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.gallery-hero-section .hero-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.gallery-hero-section .hero-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 30, 90, 0.12);
  border-color: rgba(255, 82, 143, 0.4);
}

.gallery-hero-section .hero-feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fde8ef;
  color: #e01e5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.gallery-hero-section .hero-feature-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e1b4b;
  white-space: nowrap;
}

.gallery-hero-section .services-hero-img-col {
  position: absolute;
  top: 20px;
  right: 0;
  bottom: 20px;
  width: 50%;
  height: calc(100% - 40px);
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(15px, 3vw, 40px);
}

.gallery-hero-section .services-hero-img-col img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(30, 27, 75, 0.12);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 8%, #000000 20%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 8%, #000000 20%);
}

@media (max-width: 991.98px) {
  .gallery-hero-section {
    padding: 30px 15px 0 15px !important;
    text-align: center !important;
  }
  .gallery-hero-section .hero-breadcrumbs {
    display: none !important;
  }
  .gallery-hero-section .services-hero-title {
    font-size: clamp(26px, 6vw, 32px) !important;
    text-align: center !important;
  }
  .gallery-hero-section .services-hero-subtitle {
    text-align: center !important;
  }
  .gallery-hero-section .services-hero-desc {
    text-align: center !important;
    margin: 0 auto 16px auto !important;
  }
  .gallery-hero-section .hero-features-row {
    justify-content: center !important;
    margin-top: 14px !important;
  }
  .gallery-hero-section .services-hero-img-col {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 260px;
    margin-top: 20px;
    margin-bottom: 0;
    padding-right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
  }
  .gallery-hero-section .services-hero-img-col img {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    max-height: 100%;
    max-width: 90%;
    border-radius: 16px 16px 0 0;
    object-position: center bottom;
  }
}

/* --------------------------------------------------------------------------
   1. Filter Pills Strip (Dark Theme with Deep Purple Gradient)
   -------------------------------------------------------------------------- */
.gallery-pills-section {
  padding: 30px 0 30px 0;
  background:
    radial-gradient(rgba(224, 30, 90, 0.22) 1.5px, transparent 1.5px),
    radial-gradient(rgba(167, 71, 254, 0.20) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #2d1060 0%, #3b0f7a 50%, #280d58 100%) !important;
  background-size: 32px 32px, 32px 32px, 100% 100% !important;
  background-position: 0 0, 16px 16px, 0 0 !important;
  position: relative;
}

.gallery-filter-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.gallery-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.gallery-filter-pill i {
  font-size: 14px;
  color: #ff528f;
  transition: color 0.25s ease;
}

.gallery-filter-pill:hover {
  background: rgba(255, 82, 143, 0.22);
  border-color: rgba(255, 82, 143, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
}

.gallery-filter-pill:hover i {
  color: #ffffff;
}

.gallery-filter-pill.active {
  background: linear-gradient(135deg, #ff528f 0%, #e01e5a 100%);
  border-color: #ff528f;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(224, 30, 90, 0.5);
}

.gallery-filter-pill.active i {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Photo Gallery Grid & Interactive Cards (Light Theme Gradient)
   -------------------------------------------------------------------------- */
.gallery-grid-section {
  padding: 60px 0 80px 0;
  background: linear-gradient(to right, #fde8ef 0%, #fff2f6 30%, #ffffff 65%, #f1e4fc 100%) !important;
  position: relative;
}

.gallery-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 6px 22px rgba(31, 20, 53, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  height: 240px;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: #fce4ec;
  box-shadow: 0 14px 35px rgba(224, 30, 90, 0.12);
}

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

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

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(30, 27, 75, 0.65) 0%, rgba(224, 30, 90, 0.2) 100%);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

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

.gallery-expand-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #e01e5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 8px;
}

.gallery-card:hover .gallery-expand-badge {
  transform: scale(1);
}

.gallery-card-title {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-card-tag {
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   3. Load More Button
   -------------------------------------------------------------------------- */
.btn-load-more-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 36px;
  border-radius: 50px;
  border: 1.5px solid #fecdd3;
  background: #ffffff;
  color: #e01e5a !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(224, 30, 90, 0.06);
  cursor: pointer;
}

.btn-load-more-pill:hover {
  background: #fff0f4;
  border-color: #e01e5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 30, 90, 0.15);
}

/* --------------------------------------------------------------------------
   4. Newsletter Subscription Banner
   -------------------------------------------------------------------------- */
.gallery-newsletter-card {
  background: #fff0f4;
  border: 1.5px solid #fecdd3;
  border-radius: 24px;
  padding: 32px 40px;
  box-shadow: 0 6px 24px rgba(224, 30, 90, 0.05);
}

.newsletter-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  color: #e01e5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(224, 30, 90, 0.1);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Ultra-Premium Fullscreen Lightbox Modal
   -------------------------------------------------------------------------- */
.custom-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 8, 28, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.custom-lightbox-top-bar {
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.custom-lightbox-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-lightbox-tag {
  background: #e01e5a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.custom-lightbox-caption {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.custom-lightbox-close {
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-lightbox-close:hover {
  background: #e01e5a;
  border-color: #e01e5a;
  transform: rotate(90deg) scale(1.1);
}

.custom-lightbox-body {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.custom-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.custom-lightbox-nav:hover {
  background: #e01e5a;
  border-color: #e01e5a;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(224, 30, 90, 0.4);
}

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

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

.custom-lightbox-counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-left: 8px;
}

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

@media (max-width: 991.98px) {
  .gallery-hero-section .hero-breadcrumbs {
    display: none !important;
  }
}
