/* ============================================================
   VB Studio — Project Detail Page  (css/project.css)
   ============================================================ */

/* ── Carousel / Hero ── */
.pr-carousel {
  position: relative;
  width: 100%;
  height: 100vh;       /* fallback */
  height: 100svh;      /* avoids browser-chrome resize jump on mobile */
  overflow: hidden;
  background: #1a1210;
}

/* Track holds all slides side-by-side */
.pr-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

/* Individual slide */
.pr-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pr-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient overlay so text stays readable */
.pr-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30, 18, 12, 0.72) 0%,
    rgba(30, 18, 12, 0.35) 55%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Text block (title + description) ── */
.pr-carousel__text {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  max-width: 520px;
  z-index: 2;
  pointer-events: none;
}

.pr-carousel__year {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: rgba(245, 240, 235, 0.65);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.pr-carousel__title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  color: #F5F0EB;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.pr-carousel__desc {
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245, 240, 235, 0.82);
  margin: 0;
}

/* ── Prev / Next arrows ── */
.pr-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(245, 240, 235, 0.12);
  border: 1px solid rgba(245, 240, 235, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  padding: 0;
}
.pr-carousel__btn:hover {
  background: rgba(245, 240, 235, 0.28);
  border-color: rgba(245, 240, 235, 0.6);
}
.pr-carousel__btn svg {
  width: 18px;
  height: 18px;
  stroke: #F5F0EB;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pr-carousel__btn--prev { left: 24px; }
.pr-carousel__btn--next { right: 24px; }

/* ── Slide counter + dots ── */
.pr-carousel__controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.pr-carousel__counter {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(245, 240, 235, 0.65);
}

.pr-carousel__dots {
  display: flex;
  gap: 8px;
}

.pr-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  border: none;
  padding: 0;
}
.pr-carousel__dot--active {
  background: #F5F0EB;
  transform: scale(1.3);
}

/* ── Back to portfolio link ── */
.pr-back {
  position: absolute;
  top: 100px; /* below fixed header */
  left: 60px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 235, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pr-back:hover {
  color: #F5F0EB;
}
.pr-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pr-carousel__text {
    left: 28px;
    right: 28px;
    max-width: 100%;
    top: auto;
    bottom: 110px;
    transform: none;
    /* cap description lines on small screens so image stays visible */
    max-height: 50vh;
    overflow: hidden;
  }

  .pr-carousel__btn--prev { left: 12px; }
  .pr-carousel__btn--next { right: 12px; }

  .pr-back {
    left: 28px;
    top: 88px;
  }
}

@media (max-width: 480px) {
  .pr-carousel__title {
    font-size: 2rem;
  }

  .pr-carousel__desc {
    font-size: 0.82rem;
  }
}
