/* 360° fotoğraf halkası. Renkleri sayfa --ring-accent ve --ring-text ile değiştirebilir. */
.ring3d {
  --ring-w: clamp(140px, 19vw, 250px);
  position: relative;
  height: calc(var(--ring-w) * 2.15);
  perspective: 1500px;
  perspective-origin: 50% 42%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.ring3d.is-dragging { cursor: grabbing; }
.ring3d__spin { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.ring3d__card {
  position: absolute; margin: 0;
  width: var(--ring-w); aspect-ratio: 4 / 5;
  left: calc(var(--ring-w) / -2); top: calc(var(--ring-w) * -0.625);
  border-radius: 18px; overflow: hidden; background: #1b1b1b;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.ring3d__card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.ring3d__card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: var(--ring-text, #fff); display: grid; gap: 0.1rem; text-align: left;
}
.ring3d__card figcaption b { font-size: 0.95rem; font-weight: 700; line-height: 1.15; }
.ring3d__card figcaption span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ring-accent, #ffbe3d); }
.ring3d__ctrl { position: absolute; left: 50%; bottom: 0.6rem; transform: translateX(-50%); display: flex; align-items: center; gap: 0.8rem; z-index: 2; }
.ring3d__ctrl button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit;
  font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: background 0.25s, color 0.25s;
}
.ring3d__ctrl button:hover { background: var(--ring-accent, #ffbe3d); border-color: var(--ring-accent, #ffbe3d); color: #111; }
.ring3d__ctrl span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
@media (max-width: 640px) {
  .ring3d { --ring-w: 150px; }
}
