/* ========================================
   PAGE‐SPECIFIC STYLES – Portofoliu Realizate
   ======================================== */

   .works-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--deep-space) 0%, var(--midnight-purple) 100%);
  }
  
  /* Intro card */
  .works-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    text-align: center;
  }
  .works-intro h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
  }
  .works-intro p {
    color: var(--light-grey);
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  /* VIDEO GALLERY */
  .video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
  }
  .video-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(157,78,221,0.2);
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    transition: var(--transition-medium);
  }
  .video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
  }
  .video-card video {
    width: 100%;
    display: block;
  }
  .video-card h3 {
    margin: 12px;
    font-size: 1.1rem;
    color: var(--neon-purple);
    text-align: center;
  }
  
  /* PHOTO SHOWCASE GRID: 2 columns side by side */
  .photo-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }
  
  /* Each slideshow block */
  .slideshow-block h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
    text-align: center;
  }
  
  /* SLIDESHOW WRAPPER */
  .slideshow {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: var(--glass-blur);
  }
  
  /* EVERY SLIDE */
  .slide {
    display: none;
    width: 100%;
  }
  .slide.active {
    display: block;
  }
  .slide img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* CONTROLS */
  .controls {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .controls button {
    pointer-events: all;
    background: rgba(0,0,0,0.5);
    border: none;
    color: var(--white);
    padding: 12px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
  }
  .controls button:hover {
    background: rgba(0,0,0,0.8);
  }
  
  /* RESPONSIVE */
  @media (max-width: 1024px) {
    /* tablet: stack the two blocks vertically */
    .photo-showcase {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .works-intro {
      padding: 30px 15px;
    }
    .works-intro h1 {
      font-size: 2.4rem;
    }
    .video-gallery {
      gap: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .works-intro {
      padding: 20px 10px;
    }
    .works-intro h1 {
      font-size: 2rem;
    }
    .photo-showcase {
      gap: 20px;
      margin-bottom: 40px;
    }
    .slideshow-block h2 {
      font-size: 1.4rem;
      margin-bottom: 8px;
    }
    .controls button {
      padding: 8px;
      font-size: 1rem;
    }
  }
  /* PORTOFOLIU: remove leftover height & spacing above footer */
body.page-portofoliu .main-content {
  min-height: unset !important;   /* stop global 100vh calc */
  padding-bottom: 0 !important;   /* remove extra bottom space */
}

body.page-portofoliu .works-section {
  padding-bottom: 0;              /* no gap from section padding */
}

/* if the final child has margins, zero them out */
body.page-portofoliu .works-section > *:last-child {
  margin-bottom: 0;
}

/* make sure footer itself doesn't add a gap */
body.page-portofoliu footer {
  margin-top: 0 !important;
}
