
      /* =========================
        Cases Page
      ========================= */

      .cases-page .case-hero {
        /* text-align: center; */
      }

      .cases-page .hero-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
        padding: 8px 16px;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 12px;
        letter-spacing: 0.12em;
      }

      .cases-page .case-hero h1 {
        margin-bottom: 16px;
      }

      .cases-page .case-hero h2 {
        /* max-width: 760px;
        margin: 0 auto; */
        font-size: clamp(1.65rem, 2.5vw, 4rem);
      }

      .cases-intro {
        padding: 32px 0 20px;
      }

      .cases-intro .section-heading {
        max-width: 820px;
        margin: 0 auto;
        text-align: center;
      }

      .cases-intro .section-heading p {
        margin: 0;
        color: var(--muted);
      }

      .cases-gallery-section {
        padding: 20px 0 96px;
      }

      .cases-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-bottom: 40px;
      }

      .cases-filter a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 18px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--text);
        text-decoration: none;
        transition: 0.3s ease;
      }

      .cases-filter a:hover,
      .cases-filter a.is-active {
        color: #fff;
        background: var(--text);
        border-color: var(--text);
      }

      .cases-masonry {
        column-count: 4;
        column-gap: 24px;
      }

      .case-item {
        display: inline-block;
        width: 100%;
        margin: 0 0 24px;
        break-inside: avoid;
        border-radius: 22px;
        overflow: hidden;
        background: var(--surface);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
      }

      .case-photo {
        display: block;
        overflow: hidden;
      }

      .case-photo img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform 0.45s ease;
      }

      .case-item:hover .case-photo img {
        transform: scale(1.04);
      }

      .case-caption {
        padding: 18px 18px 20px;
      }

      .case-category {
        display: inline-block;
        margin-bottom: 10px;
        font-size: 12px;
        letter-spacing: 0.08em;
        color: var(--blue-deep);
      }

      .case-caption h3 {
        margin: 0 0 8px;
        font-size: 22px;
        line-height: 1.4;
      }

      .case-caption p {
        margin: 0;
        color: var(--muted);
        line-height: 1.8;
      }

      .cases-note {
        padding: 0 0 88px;
      }

      .cases-note-box {
        max-width: 820px;
        margin: 0 auto;
        text-align: center;
      }

      .cases-note-box h2 {
        margin: 0 0 16px;
      }

      .cases-note-box p {
        margin: 0;
        color: var(--muted);
      }

      .case-cta {
        padding: 0;
      }

      .case-cta-box {
        text-align: center;
        padding: 56px 32px;
        border: 1px solid var(--line);
        border-radius: 28px;
        background: var(--surface);
      }

      .case-cta-box h2 {
        margin: 0 0 14px;
      }

      .case-cta-box p {
        max-width: 720px;
        margin: 0 auto 24px;
        color: var(--muted);
      }

      .case-cta-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
      }

      @media (max-width: 960px) {
        .cases-masonry {
          column-count: 3;
          column-gap: 20px;
        }

        .case-item {
          margin-bottom: 20px;
        }
      }

      @media (max-width: 767px) {
        .cases-masonry {
          column-count: 2;
          /* column-gap: 10px; */
        }

        .cases-gallery-section {
          padding-bottom: 72px;
        }

        .cases-note {
          padding-bottom: 72px;
        }

        .case-cta {
          padding-bottom: 84px;
        }

        .case-cta-box {
          padding: 40px 20px;
        }

        .case-caption h3 {
          font-size: 20px;
        }
      }



      /* =========================
        Lightbox
      ========================= */

      .lightbox {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: none;
      }

      .lightbox.is-active {
        display: block;
      }

      .lightbox-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.86);
      }

      .lightbox-content {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
      }

      .lightbox-img {
        max-width: 90vw;
        max-height: 85vh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 30px 80px rgba(0,0,0,.5);
      }

      .lightbox-caption {
        position: absolute;
        bottom: 30px;
        left: 0;
        width: 100%;
        text-align: center;
        color: #fff;
        font-size: 14px;
        opacity: .8;
        padding: 0 20px;
      }

      /* arrows */

      .lightbox-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 40px;
        line-height: 1;
        color: #fff;
        cursor: pointer;
        user-select: none;
        padding: 20px;
        opacity: .7;
        transition: .2s;
      }

      .lightbox-arrow:hover {
        opacity: 1;
      }

      .lightbox-prev {
        left: 20px;
      }

      .lightbox-next {
        right: 20px;
      }

      /* close */

      .lightbox-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        line-height: 1;
        color: #fff;
        cursor: pointer;
        opacity: .7;
        transition: .2s;
      }

      .lightbox-close:hover {
        opacity: 1;
      }

      @media (max-width: 767px) {
        .lightbox-content {
          padding: 20px;
        }

        .lightbox-arrow {
          padding: 14px;
          font-size: 32px;
        }

        .lightbox-prev {
          left: 8px;
        }

        .lightbox-next {
          right: 8px;
        }

        .lightbox-close {
          top: 14px;
          right: 14px;
        }

        .lightbox-caption {
          bottom: 18px;
          font-size: 13px;
        }
      }


