/* Referenties carousel */
#referenties {
  padding: 5rem 0;
  background: #fff;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  min-height: 200px;
}

#referenties .ref-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

#referenties .ref-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #0b2545;
  margin-bottom: 0.75rem;
}

#referenties .ref-header p {
  color: #6b7280;
  max-width: 36rem;
  margin: 0 auto;
}

.ref-track-wrap {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.ref-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.5rem 0 1rem;
  -ms-overflow-style: none;
}

.ref-track::-webkit-scrollbar {
  display: none;
}

.ref-slide {
  flex: 0 0 auto;
  width: min(280px, 75vw);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.1);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.ref-slide img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.ref-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: none;
  background: #fff;
  color: #0b2545;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s, background 0.2s;
}

.ref-nav:hover {
  background: #0b2545;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.ref-nav.prev { left: 0.25rem; }
.ref-nav.next { right: 0.25rem; }

/* ═══════════════════════════════════════════════
   Zoom lightbox — buttons only, no swipe
   ═══════════════════════════════════════════════ */


/* ── Lightbox (<dialog>) ── */
#mms-lb {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#mms-lb::backdrop {
  background: rgba(0, 0, 0, 0.95);
}

/* Fotoğraf ortada */
#mms-lb-img {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Kapat (×) */
#mms-lb-close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #0b2545;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Ok butonları */
#mms-lb-prev,
#mms-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #0b2545;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#mms-lb-prev svg,
#mms-lb-next svg {
  width: 28px;
  height: 28px;
  pointer-events: none;
}
#mms-lb-prev { left: 0.5rem; }
#mms-lb-next { right: 0.5rem; }

/* Sayaç */
#mms-lb-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #mms-lb-img {
    max-width: 96vw;
    max-height: 78vh;
  }
  #mms-lb-prev { left: 0.25rem; }
  #mms-lb-next { right: 0.25rem; }
}

/* ── Zoom (büyüt) butonu — modal içindeki resim paneli ── */
.mms-zoom-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 2px solid #0b2545;
  background: #C8A951;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.18s, background 0.18s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mms-zoom-btn:hover,
.mms-zoom-btn:active {
  transform: scale(1.12);
  background: #e0bc62;
}
.mms-zoom-btn svg {
  pointer-events: none;
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .mms-zoom-btn {
    width: 3.5rem;
    height: 3.5rem;
    bottom: 0.5rem;
    right: 0.5rem;
  }
  .mms-zoom-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* Cookie banner */
#mms-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #0b2545;
  color: #fff;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

#mms-cookie-banner.visible { transform: translateY(0); }

#mms-cookie-banner .cookie-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#mms-cookie-banner p {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

#mms-cookie-banner a { color: #c8a951; text-decoration: underline; }

#mms-cookie-banner .cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

#mms-cookie-banner button {
  border: none;
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

#mms-cookie-banner .btn-accept { background: #c8a951; color: #0b2545; }
#mms-cookie-banner .btn-decline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
