/* =============================================
   ARSLAN İNŞAAT — Gallery Page
   ============================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Intro */
.gal-intro {
  background: #fff;
  padding: 5rem 2rem 3rem;
  text-align: center;
}
.gal-intro-inner { max-width: 760px; margin: 0 auto; }

.gal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-navy);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(0,46,108,.07);
  border: 1px solid rgba(0,46,108,.14);
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.gal-intro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--color-navy-dark);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.gal-intro-title em { font-style: normal; color: var(--color-navy-light); }

.gal-intro-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.gal-intro-line {
  width: 65px; height: 3px;
  background: linear-gradient(90deg, var(--color-navy), #c49e54);
  border-radius: 3px;
  margin: 0 auto 2.5rem;
}

/* Filters */
.gal-filters {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.gal-filter-btn {
  background: #f4f6fb;
  border: 1px solid rgba(0,46,108,.12);
  color: var(--color-navy);
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  transition: .25s;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gal-filter-btn:hover {
  border-color: var(--color-navy);
  background: rgba(0,46,108,.06);
}
.gal-filter-btn.active {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

/* Gallery Grid */
.gal-section {
  background: #f4f6fb;
  padding: 3rem 2rem 6rem;
}
.gal-section-inner { max-width: 1280px; margin: 0 auto; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.gal-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,29,71,.06);
  cursor: pointer;
  aspect-ratio: 4/3;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gal-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,29,71,.12);
}
.gal-item.hidden { display: none; }

.gal-item-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gal-item:hover .gal-item-media { transform: scale(1.05); }

.gal-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,29,71,.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  pointer-events: none;
}
.gal-item:hover .gal-item-overlay { opacity: 1; }

.gal-item-title {
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.gal-item-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: #c49e54;
  color: #001d47;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 4px;
  z-index: 2;
}

.gal-item-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 2;
  transition: transform .3s, background .3s;
}
.gal-item:hover .gal-item-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #c49e54;
}
.gal-item-play svg {
  width: 22px;
  height: 22px;
  color: #001d47;
  margin-left: 3px;
}

.gal-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
  grid-column: 1 / -1;
}
.gal-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }

/* Lightbox */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,15,38,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s, visibility .35s;
  padding: 1.5rem;
}
.gal-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gal-lightbox-inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gal-lightbox-media-wrap {
  position: relative;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gal-lightbox-img,
.gal-lightbox-video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  object-fit: contain;
}
.gal-lightbox-video { width: 100%; background: #000; }

.gal-lightbox-caption {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin-top: 1rem;
  text-align: center;
}

.gal-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
  z-index: 2;
}
.gal-lightbox-close:hover { background: rgba(255,255,255,.22); }
.gal-lightbox-close svg { width: 22px; height: 22px; }

.gal-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
  z-index: 2;
}
.gal-lightbox-nav:hover { background: rgba(196,158,84,.9); color: #001d47; }
.gal-lightbox-nav svg { width: 22px; height: 22px; }
.gal-lightbox-prev { left: 1.25rem; }
.gal-lightbox-next { right: 1.25rem; }

.gal-lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  letter-spacing: .05em;
}

@media (max-width: 768px) {
  .gal-intro {
    padding: 4rem 1rem 2.5rem;
  }
  .gal-section {
    padding: 2rem 1rem 4rem;
  }
  .gal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .gal-filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  .gal-lightbox-nav { width: 40px; height: 40px; }
  .gal-lightbox-prev { left: 0.5rem; }
  .gal-lightbox-next { right: 0.5rem; }
  .gal-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

@media (max-width: 400px) {
  .gal-grid {
    grid-template-columns: 1fr;
  }
}
