/* ─────────────────────────────────────────────
   Dentacare — Galeri Sayfası
───────────────────────────────────────────── */

html, body { height: auto !important; overflow-y: auto !important; scroll-snap-type: none !important; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* Ana sayfa scroll indicator'ı gizle bu sayfada */
.scroll-indicator { display: none !important; }

#galleryPage { min-height: 100vh; background: #f2ede6; }

/* ── Galeri scroll çizgisi ── */
.gp-scroll-line {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.25;
  transition: opacity 1.2s ease;
}
.gp-scroll-line:hover,
.gp-scroll-line.active { opacity: 1; }

.gp-scroll-label {
  font-size: 7px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #1a1a18;
  writing-mode: vertical-lr;
  white-space: nowrap;
}

.gp-scroll-track {
  width: 1px;
  height: 140px;
  background: rgba(26,26,24,.15);
  position: relative;
  overflow: hidden;
}
.gp-scroll-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: #1a1a18;
  transition: height 0.4s cubic-bezier(.22,1,.36,1);
}

/* ── Hero ── */
.gp-hero {
  padding: 140px 72px 72px;
  border-bottom: 1px solid rgba(26,26,24,.08);
}
.gp-hero-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 48px;
}
.gp-back {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: #6a6058; text-decoration: none; flex-shrink: 0;
  transition: color .3s ease;
}
.gp-back:hover { color: #1a1a18; }
.gp-back svg { width: 16px; height: 16px; }
.gp-hero-text { text-align: right; }
.gp-kicker { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: #6a6058; margin-bottom: 16px; }
.gp-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(48px, 6vw, 96px);
  line-height: 1; color: #1a1a18; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.gp-title em { font-style: italic; }
.gp-desc { font-size: 13px; color: #6a6058; line-height: 1.7; max-width: 400px; margin-left: auto; }

/* ── Grid ── */
.gp-main { max-width: 1400px; margin: 0 auto; padding: 56px 72px 120px; }

.gp-grid {
  columns: 3;
  column-gap: 20px;
}

.gp-item {
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.gp-item.visible { opacity: 1; transform: translateY(0); }

/* Kremleştirme filtresi — temaya uyum */
.gp-item img {
  display: block; width: 100%; height: auto;
  filter: grayscale(0.2) sepia(0.15) saturate(0.85) brightness(0.97);
  transition: transform .6s cubic-bezier(.16,1,.3,1), filter .5s ease;
}
.gp-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0) sepia(0) saturate(1) brightness(1);
}

/* Hover overlay */
.gp-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,.45) 0%, transparent 55%);
  opacity: 0; transition: opacity .4s ease;
  display: flex; align-items: flex-end; padding: 18px;
}
.gp-item:hover .gp-item-overlay { opacity: 1; }
.gp-item-overlay span {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(242,237,230,.9);
}

/* Placeholder */
.gp-placeholder {
  background: rgba(26,26,24,.04);
  border: 1px solid rgba(26,26,24,.07);
  cursor: default;
}
.gp-placeholder:hover img { transform: none; filter: none; }
.gp-placeholder:hover .gp-item-overlay { opacity: 0; }

.gp-item-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; gap: 0;
}
.gp-item-inner svg { width: 32px; height: 32px; opacity: .28; }
.gp-item-inner span { display: none; }

/* ── Sentinel / Loading ── */
.gp-sentinel { padding: 56px 0; display: flex; justify-content: center; }
.gp-loading { width: 120px; height: 1px; background: rgba(26,26,24,.1); position: relative; overflow: hidden; }
.gp-loading-bar {
  position: absolute; inset-block: 0; left: -100%; width: 50%;
  background: #1a1a18;
  animation: gpLoad 1.4s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes gpLoad { 0% { left: -50% } 100% { left: 110% } }
.gp-sentinel.done { display: none; }

/* ── Modal ── */
.gp-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity .4s ease;
}
.gp-modal.open { opacity: 1; pointer-events: all; }

.gp-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(26,26,24,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gp-modal-close {
  position: absolute; top: 28px; right: 32px; z-index: 10;
  background: none; border: none; cursor: pointer;
  color: rgba(242,237,230,.6); padding: 8px;
  transition: color .3s ease;
}
.gp-modal-close:hover { color: #f2ede6; }
.gp-modal-close svg { width: 18px; height: 18px; }

.gp-modal-content {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; max-width: 90vw; max-height: 90vh;
  transform: scale(.96) translateY(14px);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.gp-modal.open .gp-modal-content { transform: scale(1) translateY(0); }

.gp-modal-img {
  max-width: 88vw; max-height: 78vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 48px 120px rgba(0,0,0,.5);
  /* Modal'da filtre yok — orijinal renkler */
  filter: none !important;
}

.gp-modal-info {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; gap: 24px;
}
.gp-modal-title {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(242,237,230,.5); flex: 1;
}
.gp-modal-nav { display: flex; gap: 10px; }
.gp-modal-prev, .gp-modal-next {
  background: rgba(242,237,230,.08);
  border: 1px solid rgba(242,237,230,.12);
  border-radius: 50%; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(242,237,230,.7);
  transition: background .3s ease, color .3s ease;
}
.gp-modal-prev:hover, .gp-modal-next:hover {
  background: rgba(242,237,230,.18); color: #f2ede6;
}
.gp-modal-prev svg, .gp-modal-next svg { width: 15px; height: 15px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gp-hero { padding: 120px 40px 56px; }
  .gp-main { padding: 40px 40px 80px; }
  .gp-grid { columns: 3; column-gap: 16px; }
  .gp-item { margin-bottom: 16px; }
  .gp-scroll-line { right: 18px; }
}
@media (max-width: 768px) {
  .gp-hero { padding: 100px 24px 40px; }
  .gp-hero-inner { flex-direction: column; align-items: flex-start; }
  .gp-hero-text { text-align: left; }
  .gp-desc { margin-left: 0; }
  .gp-main { padding: 28px 24px 60px; }
  .gp-grid { columns: 2; column-gap: 12px; }
  .gp-item { margin-bottom: 12px; }
  .gp-scroll-line { display: none; }
}