.gallery-item {
      cursor: zoom-in;
    }

    .gallery-modal {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 28px;
      background: rgba(9, 24, 48, .86);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .gallery-modal.is-open {
      display: flex;
    }

    .gallery-modal__figure {
      position: relative;
      width: min(1120px, 100%);
      max-height: calc(100vh - 80px);
      margin: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .gallery-modal__img {
      width: auto;
      max-width: 100%;
      max-height: calc(100vh - 150px);
      object-fit: contain;
      border-radius: 22px;
      box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
      background: #0b1f3f;
    }

    .gallery-modal__caption {
      margin-top: 14px;
      padding: 10px 16px;
      border: 1px solid rgba(255, 255, 255, .18);
      border-radius: 999px;
      background: rgba(255, 255, 255, .08);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      text-align: center;
      line-height: 1.35;
    }

    .gallery-modal__close {
      position: fixed;
      top: max(18px, env(safe-area-inset-top));
      right: max(18px, env(safe-area-inset-right));
      z-index: 2;
      width: 46px;
      height: 46px;
      border: 1px solid rgba(255, 255, 255, .24);
      border-radius: 999px;
      background: rgba(255, 255, 255, .12);
      color: #fff;
      font-size: 32px;
      line-height: 1;
      cursor: pointer;
    }

    .gallery-modal__close:hover {
      background: rgba(255, 255, 255, .2);
    }

    .gallery-modal__nav {
      position: fixed;
      top: 50%;
      z-index: 2;
      width: 54px;
      height: 54px;
      transform: translateY(-50%);
      border: 1px solid rgba(255, 255, 255, .22);
      border-radius: 999px;
      background: rgba(255, 255, 255, .12);
      color: #fff;
      font-size: 44px;
      line-height: 46px;
      cursor: pointer;
    }

    .gallery-modal__nav:hover {
      background: rgba(255, 255, 255, .2);
    }

    .gallery-modal__nav--prev {
      left: max(18px, env(safe-area-inset-left));
    }

    .gallery-modal__nav--next {
      right: max(18px, env(safe-area-inset-right));
    }

    body.gallery-modal-open {
      overflow: hidden;
    }

    @media (max-width: 767px) {
      .gallery-modal {
        padding: 18px;
      }

      .gallery-modal__figure {
        max-height: calc(100vh - 120px);
      }

      .gallery-modal__img {
        max-height: calc(100vh - 170px);
        border-radius: 16px;
      }

      .gallery-modal__caption {
        max-width: calc(100vw - 36px);
        font-size: 13px;
      }

      .gallery-modal__close {
        width: 42px;
        height: 42px;
        font-size: 28px;
      }

      .gallery-modal__nav {
        top: auto;
        bottom: max(18px, env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
        transform: none;
        font-size: 36px;
        line-height: 38px;
      }

      .gallery-modal__nav--prev {
        left: 18px;
      }

      .gallery-modal__nav--next {
        right: 18px;
      }
    }


    /* Homeowner video review */

    .case-section--video-testimonial {
      padding-top: 20px;
      padding-bottom: 34px;
    }

    .video-testimonial {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
      gap: 28px;
      align-items: center;
      padding: 24px;
      border: 1px solid rgba(219, 228, 241, .95);
      border-radius: 28px;
      background:
        radial-gradient(circle at 18% 0%, rgba(244, 122, 24, .13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f6f9ff 58%, #eef5ff 100%);
      box-shadow: 0 18px 48px rgba(20, 61, 123, .10);
    }

    .video-testimonial > * {
      min-width: 0;
    }

    .video-testimonial::before {
      content: "";
      position: absolute;
      inset: 18px auto auto 18px;
      width: 66px;
      height: 66px;
      border-radius: 999px;
      background: rgba(244, 122, 24, .12);
      pointer-events: none;
    }

    .video-testimonial__media {
      position: relative;
      overflow: hidden;
      width: 100%;
      aspect-ratio: 16 / 9;
      min-height: 0;
      border-radius: 24px;
      background: #102f60;
      box-shadow: 0 18px 38px rgba(20, 61, 123, .18);
      isolation: isolate;
    }

    .video-testimonial__player {
      appearance: none;
      -webkit-appearance: none;
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      padding: 0;
      border: 0;
      overflow: hidden;
      cursor: pointer;
      background: #102f60;
    }

    .video-testimonial__poster {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .9;
      transition: transform .28s ease, opacity .28s ease;
    }

    .video-testimonial__player::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        linear-gradient(180deg, rgba(11, 32, 65, .08), rgba(11, 32, 65, .34)),
        linear-gradient(90deg, rgba(11, 32, 65, .34), rgba(11, 32, 65, .06));
      pointer-events: none;
    }

    .video-testimonial__player:hover .video-testimonial__poster,
    .video-testimonial__player:focus-visible .video-testimonial__poster {
      transform: scale(1.035);
      opacity: .98;
    }

    .video-testimonial__player:focus-visible {
      outline: 3px solid rgba(244, 122, 24, .9);
      outline-offset: 3px;
    }

    .video-testimonial__play {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 14px 22px 14px 16px;
      border-radius: 999px;
      background: rgba(255,255,255,.97);
      color: #143d7b;
      font-size: .95rem;
      font-weight: 950;
      letter-spacing: .02em;
      transform: translate(-50%, -50%);
      box-shadow: 0 18px 36px rgba(0,0,0,.25);
      white-space: nowrap;
    }

    .video-testimonial__play-icon {
      display: grid;
      place-items: center;
      width: 48px;
      height: 48px;
      border-radius: 999px;
      background: #f47a18;
      color: #fff;
      font-size: 20px;
      line-height: 1;
      box-shadow: 0 8px 18px rgba(244, 122, 24, .38);
      padding-left: 3px;
      flex: 0 0 auto;
    }

    .video-testimonial__copy {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 8px 6px;
    }

    .video-testimonial__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      margin-bottom: 14px;
      padding: 8px 12px;
      border-radius: 999px;
      background: #fff3e8;
      color: #ad4f08;
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .video-testimonial__copy h2 {
      margin: 0 0 12px;
      color: var(--text-strong);
      font-size: clamp(1.55rem, 2.25vw, 2.25rem);
      line-height: 1.05;
      letter-spacing: -.02em;
    }

    .video-testimonial__copy p {
      margin: 0 0 16px;
      color: #435873;
      font-size: 1rem;
      line-height: 1.6;
      font-weight: 650;
    }

    .video-testimonial__points {
      display: grid;
      gap: 9px;
      margin: 0;
      padding: 0;
      list-style: none;
      color: #31496b;
      font-size: .96rem;
      font-weight: 780;
    }

    .video-testimonial__points li {
      position: relative;
      padding-left: 26px;
    }

    .video-testimonial__points li::before {
      content: "✓";
      position: absolute;
      left: 0;
      top: 1px;
      display: grid;
      place-items: center;
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: rgba(20, 61, 123, .10);
      color: var(--brand);
      font-size: 11px;
      font-weight: 950;
    }

    .video-modal {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(9, 26, 54, .78);
      backdrop-filter: blur(8px);
    }

    .video-modal.is-open {
      display: flex;
    }

    .video-modal__dialog {
      position: relative;
      width: min(980px, 100%);
      aspect-ratio: 16 / 9;
      border-radius: 24px;
      overflow: hidden;
      background: #071d3f;
      box-shadow: 0 24px 80px rgba(0,0,0,.38);
    }

    .video-modal__frame {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .video-modal__close {
      position: absolute;
      right: 14px;
      top: 14px;
      z-index: 2;
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255,255,255,.52);
      border-radius: 999px;
      background: rgba(255,255,255,.96);
      color: #143d7b;
      cursor: pointer;
      font-size: 28px;
      line-height: 1;
      font-weight: 700;
      box-shadow: 0 10px 22px rgba(0,0,0,.24);
    }

    @media (max-width: 980px) {
      .video-testimonial {
        grid-template-columns: 1fr;
      }

      .video-testimonial__media {
        order: -1;
      }
    }

    @media (max-width: 640px) {
      .case-section--video-testimonial {
        padding-top: 14px;
        padding-bottom: 24px;
      }

      .video-testimonial {
        width: min(100%, 420px);
        margin-inline: auto;
        padding: 14px;
        border-radius: 22px;
        gap: 18px;
      }

      .video-testimonial__media {
        border-radius: 18px;
      }

      .video-testimonial__copy {
        padding: 4px 2px 2px;
      }

      .video-testimonial__play {
        gap: 9px;
        padding: 10px 14px 10px 12px;
        font-size: .82rem;
      }

      .video-testimonial__play-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
      }

      .video-modal {
        padding: 14px;
      }

      .video-modal__dialog {
        border-radius: 18px;
      }

      .video-modal__close {
        right: 10px;
        top: 10px;
        width: 40px;
        height: 40px;
      }
    }
