/* ============================================
   gallery.css – DKM Sirsa Enterprises
   Gallery & Projects Page Styles
   ============================================ */

/* ===== HERO ===== */
.gal-hero {
  position: relative; overflow: hidden;
  padding-bottom: 0;
}
.gal-hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1400&h=600&fit=crop&auto=format') center/cover no-repeat;
  z-index: 0;
}
.gal-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,5,0,0.93) 0%, rgba(30,15,0,0.88) 60%, rgba(15,8,0,0.94) 100%);
  z-index: 1;
}
.gal-breadcrumb {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.55);
}
.gal-breadcrumb a { color: var(--orange-end); text-decoration: none; transition: var(--transition); }
.gal-breadcrumb a:hover { color: #fff; }
.gal-hero-tag {
  display: inline-block;
  background: rgba(247,147,30,.2);
  color: var(--orange-end);
  font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 50px;
  border: 1px solid rgba(247,147,30,.4);
}
.gal-hero-heading {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.gal-hero-sub {
  font-size: 15px; color: rgba(255,255,255,.7);
  line-height: 1.8; max-width: 580px; margin: 0 auto 32px;
}

/* Hero stats */
.gal-hero-stats {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 16px 28px;
  backdrop-filter: blur(10px);
}
.gal-hstat { text-align: center; padding: 0 20px; }
.gal-hstat-num {
  display: block; font-size: 22px; font-weight: 900;
  background: linear-gradient(90deg, var(--orange-start), var(--orange-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gal-hstat-lbl {
  display: block; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px;
}
.gal-hstat-div {
  width: 1px; height: 40px; background: rgba(255,255,255,.18);
}

/* ===== FILTER BAR ===== */
.gal-filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 40px;
}
.gal-fbtn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid #e8e0d4;
  color: var(--text-muted); font-family: Mulish, sans-serif;
  font-size: 13.5px; font-weight: 700;
  padding: 10px 22px; border-radius: 50px; cursor: pointer;
  transition: var(--transition); position: relative;
}
.gal-fbtn:hover {
  border-color: var(--orange-start); color: var(--orange-start);
  background: #fff8f0;
  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(247,147,30,.18);
}
.gal-fbtn.active {
  background: linear-gradient(90deg, var(--orange-start), var(--orange-end));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px rgba(247,147,30,.4);
}
.gal-fcount {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.12); color: inherit;
  font-size: 11px; font-weight: 800;
  width: 22px; height: 22px; border-radius: 50%;
  transition: var(--transition);
}
.gal-fbtn.active .gal-fcount { background: rgba(255,255,255,.25); }

/* ===== MASONRY-STYLE GRID ===== */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gi-wide  { grid-column: span 2; }
.gi-tall  { grid-row: span 2; }

/* Grid item */
.gi {
  border-radius: 14px; overflow: hidden;
  position: relative; cursor: pointer;
  transition: var(--transition);
  background: #f0e8dd;
}
.gi img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}
.gi:hover { transform: scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,.2); z-index: 2; }
.gi:hover img { transform: scale(1.08); }

/* Overlay */
.gi-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10,5,0,.88) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 18px 16px;
  opacity: 0; transition: opacity .3s ease;
}
.gi:hover .gi-overlay { opacity: 1; }
.gi-overlay i {
  font-size: 28px; color: var(--orange-end);
  margin-bottom: 8px; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -60%);
}
.gi-overlay span {
  color: #fff; font-size: 13px; font-weight: 800;
  text-align: center; line-height: 1.3; margin-bottom: 4px;
}
.gi-overlay em {
  font-style: normal; color: var(--orange-end);
  font-size: 11px; font-weight: 700; text-align: center;
}

/* Category badge */
.gi-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10.5px; font-weight: 800;
  padding: 4px 12px; border-radius: 50px;
  letter-spacing: .5px; text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.gi:hover .gi-badge { opacity: 0; }
.factory-badge { background: rgba(247,147,30,.85); color: #fff; }
.product-badge  { background: rgba(17,17,17,.75); color: #fff; }
.project-badge  { background: rgba(22,78,44,.85); color: #fff; }

/* Hidden items (filter) */
.gi.gal-hidden {
  display: none;
}
.gi.gal-fade {
  animation: galFadeIn .35s ease forwards;
}
@keyframes galFadeIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== FEATURED PROJECTS ===== */
.fp-card {
  background: #fff;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.08);
  border: 1px solid #fff0e0;
  transition: var(--transition); height: 100%;
  display: flex; flex-direction: column;
}
.fp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(247,147,30,.15);
  border-color: rgba(247,147,30,.3);
}
.fp-featured { border: 2px solid rgba(247,147,30,.35); }
.fp-img-wrap {
  position: relative; height: 280px; overflow: hidden;
  flex-shrink: 0;
}
.fp-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.fp-card:hover .fp-img { transform: scale(1.05); }
.fp-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6) 100%);
  display: flex; align-items: flex-end; padding: 14px;
}
.fp-img-badge {
  background: linear-gradient(90deg, var(--orange-start), var(--orange-end));
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 14px; border-radius: 50px; letter-spacing: .5px;
}
.fp-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.fp-body-sm { padding: 16px 20px; }
.fp-meta { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.fp-title { font-size: 20px; font-weight: 900; color: var(--black); margin-bottom: 12px; }
.fp-title-sm { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.fp-desc { font-size: 14px; color: var(--text-muted); line-height: 1.75; flex: 1; margin-bottom: 18px; }
.fp-desc-sm { font-size: 13px; margin-bottom: 0; }

/* Featured project stats */
.fp-stats {
  display: flex; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid #fff0e0; padding-top: 16px; margin-top: auto;
}
.fp-stat strong {
  display: block; font-size: 20px; font-weight: 900;
  background: linear-gradient(90deg, var(--orange-start), var(--orange-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.fp-stat span {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
}

/* ===== VIDEO CTA ===== */
.gal-video-cta {
  background: linear-gradient(135deg, #1a0e00, #2d1800 50%, #1a0e00);
  padding: 90px 0; position: relative; overflow: hidden;
}
.gal-video-cta::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(247,147,30,.1), transparent 70%);
  pointer-events: none;
}
.gal-video-thumb {
  position: relative; cursor: pointer; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.gal-vthumb-img {
  width: 100%; height: 380px; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gal-video-thumb:hover .gal-vthumb-img { transform: scale(1.04); }
.gal-voverlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  transition: background .3s ease;
}
.gal-video-thumb:hover .gal-voverlay { background: rgba(0,0,0,.3); }
.gal-video-iframe { border-radius: 16px; overflow: hidden; }

/* ===== SUBMIT CTA ===== */
.gal-submit-cta {
  background: linear-gradient(120deg, #fff8f0, #fff3e0);
  border-radius: 22px; padding: 48px 40px;
  border: 2px solid rgba(247,147,30,.2);
  box-shadow: 0 8px 40px rgba(247,147,30,.1);
}
.gal-submit-points {
  list-style: none; padding: 0; margin: 18px 0 0;
}
.gal-submit-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--text-dark);
  padding: 7px 0; border-bottom: 1px solid rgba(247,147,30,.15);
}
.gal-submit-points li:last-child { border-bottom: none; }
.gal-submit-points li i { color: var(--orange-start); font-size: 14px; flex-shrink: 0; }

/* ===== LIGHTBOX ===== */
.gal-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .3s ease;
}
.gal-lightbox.active { opacity: 1; visibility: visible; }
.gal-lb-content {
  max-width: 880px; width: 95vw;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  animation: lbSlideIn .3s ease;
}
@keyframes lbSlideIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
#lbImg {
  max-width: 100%; max-height: 68vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  object-fit: contain;
}
.gal-lb-info { text-align: center; }
.gal-lb-info h5 {
  color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 6px;
}
.gal-lb-info p { color: rgba(255,255,255,.6); font-size: 13px; margin: 0; }
.gal-lb-counter {
  color: rgba(255,255,255,.45); font-size: 13px; font-weight: 700;
}
.gal-lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.1); border: none;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.gal-lb-close:hover { background: var(--orange-start); }
.gal-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(247,147,30,.75); border: none;
  color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.gal-lb-nav:hover { background: var(--orange-start); transform: translateY(-50%) scale(1.08); }
.gal-lb-prev { left: 20px; }
.gal-lb-next { right: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gi-wide  { grid-column: span 2; }
  .gi-tall  { grid-row: span 1; }
  .gal-hero-stats { flex-wrap: wrap; padding: 14px 16px; gap: 0; }
  .gal-hstat { padding: 8px 14px; }
  .gal-hstat-div { display: none; }
  .fp-img-wrap { height: 220px; }
}
@media (max-width: 767.98px) {
  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gi-wide  { grid-column: span 2; }
  .gi-tall  { grid-row: span 1; }
  .gal-submit-cta { padding: 30px 20px; }
  .gal-lb-nav { width: 38px; height: 38px; font-size: 13px; }
  .gal-lb-prev { left: 8px; }
  .gal-lb-next { right: 8px; }
}
@media (max-width: 479.98px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gi-wide, .gi-tall { grid-column: span 1; grid-row: span 1; }
}
