/* ================= OUR WORK PAGE RESPONSIVE ================= */

/* ---------- Stacked layout for ≤ 1024px ---------- */
@media (max-width: 1024px) {

  .portfolio-section {
    padding: 120px 1.5rem 3rem;
  }

  .portfolio-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .portfolio-header .work-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .portfolio-header .work-subtitle {
    margin: 0 auto;
    max-width: 540px;
    font-size: 1.05rem;
  }

  .portfolio-carousel-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  /* No fixed-height carousel, just a normal container */
  .carousel-viewport {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: auto;
    overflow: visible;
  }

  .portfolio-carousel-track {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: none !important;
    perspective: none;
  }

  /* No arrows */
  .carousel-arrow {
    display: none;
  }

  /* ✅ Plain stacked cards */
  .portfolio-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 640px;
    height: 420px;          /* adjust if you want taller/shorter */
    margin: 0 auto;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
  }

  .portfolio-card-inner {
    height: 100%;
    border-radius: 28px;
  }
}

/* ---------- Tablets & mobile tweaks (≤ 768px) ---------- */
@media (max-width: 768px) {

  .portfolio-section {
    padding: 110px 1.25rem 2.5rem;
    height: 100%;
    
  }

  .portfolio-header .work-title {
    font-size: 1.8rem;
  }

  .portfolio-header .work-subtitle {
    font-size: 1rem;
    max-width: 460px;
  }

  .portfolio-card {
    max-width: 520px;
    height: 400px;
  }

  .portfolio-carousel-track {
    gap: 1.75rem;
  }
}

/* ---------- Small phones (≤ 480px) ---------- */
@media (max-width: 480px) {

  .portfolio-section {
    padding: 100px 1rem 2.25rem;
  }

  .portfolio-header .work-title {
    font-size: 1.55rem;
  }

  .portfolio-card {
    max-width: 100%;
    height: 380px;
  }
}
