/* SECTION 05: supplied Portfolio Gallery styles. */

  .lsm-gallery-section,
  .lsm-gallery-section *,
  .lsm-gallery-section *::before,
  .lsm-gallery-section *::after,
  .lsm-lb,
  .lsm-lb *,
  .lsm-lb *::before,
  .lsm-lb *::after {
    margin:0;
    padding:0;
    box-sizing:border-box;
  }

  .lsm-gallery-section {
    --g-bg:var(--lsm-page-background,#f2f1ed);
    --g-card:#FFFFFF;
    --g-btn:#006866;
    --g-btn-hover:#005755;
    --g-text:#172326;
    --g-muted:#263437;
    --g-readable:#263437;
    --g-teal:#006866;
    --g-pill-bg:rgba(0,104,102,0.07);
    --g-pill-text:#006866;
    --g-border:rgba(0,104,102,0.26);
    --g-shadow:0 2px 12px rgba(0,104,102,0.07);
    --g-shadow-hover:0 8px 28px rgba(0,104,102,0.15);
    --g-radius:16px;
    --card-height:260px;
    --g-ff-head:'Anton','Impact',sans-serif;
    --g-ff-body:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;

    position:relative;
    width:100%;
    background:var(--g-bg);
    font-family:var(--g-ff-body);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    overflow:hidden;
    padding:72px 0 60px;
  }

  .lsm-gallery-wrap {
    max-width:1140px;
    margin-left:auto;
    margin-right:auto;
    padding:0 28px;
  }

  .lsm-gallery-header {
    text-align:center;
    max-width:560px;
    margin:0 auto 28px;
    opacity:0;
    transform:translateY(16px);
    transition:opacity .5s ease,transform .5s ease;
  }

  .lsm-gallery-header.lsm-g-vis {
    opacity:1;
    transform:translateY(0);
  }

  .lsm-gallery-eyebrow {
    display:inline-block;
    font-size:11px;
    font-weight:700;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:var(--g-teal);
    background:var(--g-pill-bg);
    border:1px solid var(--g-border);
    border-radius:60px;
    padding:7px 18px;
    margin-bottom:16px;
  }

  .lsm-gallery-heading {
    font-family:var(--g-ff-head);
    font-size:clamp(24px,3.8vw,42px);
    font-weight:400;
    color:var(--g-teal);
    line-height:1.06;
    letter-spacing:.04em;
    text-transform:uppercase;
    margin-bottom:10px;
  }

  .lsm-gallery-desc {
    max-width:620px;
    margin:0 auto;
    text-align:center;
    color:#263437;
    font-family:var(--g-ff-body);
    font-size:clamp(15.5px,1.2vw,17px);
    line-height:1.68;
    font-weight:400;
  }

  /* =========================================================
     FILTERS
     ========================================================= */

  .lsm-gallery-filters {
    display:flex;
    flex-wrap:nowrap;
    gap:10px;
    justify-content:center;
    overflow-x:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
    padding:0 0 4px;
    margin-bottom:0;
  }

  .lsm-gallery-filters::-webkit-scrollbar {
    display:none;
  }

  .lsm-filter-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-shrink:0;
    padding:12px 24px;
    font-family:var(--g-ff-body);
    font-size:14px;
    font-weight:700;
    letter-spacing:.02em;
    color:#006866;
    background:rgba(0,104,102,.06);
    border:1.5px solid rgba(0,104,102,.5);
    border-radius:60px;
    cursor:pointer;
    transition:
      color .2s,
      background .2s,
      border-color .2s,
      transform .15s;
    white-space:nowrap;
    -webkit-tap-highlight-color:transparent;
    outline:none;
  }

  .lsm-filter-btn:hover {
    color:#fff;
    background:#006866;
    border-color:#006866;
    transform:translateY(-1px);
  }

  .lsm-filter-btn:active {
    transform:scale(.97);
  }

  .lsm-filter-btn:focus-visible {
    outline:2px solid var(--g-btn);
    outline-offset:2px;
  }

  .lsm-filter-btn.lsm-filter-active {
    color:#fff;
    background:#006866;
    border-style:solid;
    border-color:#006866;
  }

  .lsm-filter-btn.lsm-filter-active:hover {
    background:#005755;
    border-color:#005755;
    color:#fff;
  }

  .lsm-filter-icon {
    width:14px;
    height:14px;
    stroke:currentColor;
    fill:none;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex-shrink:0;
  }

  .lsm-gallery-filter-copy {
    max-width:760px;
    margin:20px auto 42px;
    padding:18px 26px;
    text-align:center;
    font-family:var(--g-ff-body);
    font-size:clamp(15px,1.1vw,16.5px);
    line-height:1.68;
    color:#263437;
    background:rgba(255,255,255,.36);
    border:1.25px solid rgba(0,104,102,.26);
    border-radius:16px;
    transition:opacity .22s ease,transform .22s ease;
  }

  .lsm-gallery-filter-copy.lsm-fc-fading {
    opacity:0;
    transform:translateY(4px);
  }

  .lsm-gallery-filter-copy p {
    margin:0 auto;
    max-width:700px;
  }

  .lsm-copy-highlight {
    color:#006866;
    font-weight:800;
    background:transparent;
    border-radius:0;
    padding:0;
    box-decoration-break:initial;
    -webkit-box-decoration-break:initial;
  }

  .lsm-gallery-filter-copy + .lsm-gallery-grid {
    margin-top:6px;
  }

  /* =========================================================
     GALLERY GRID
     ========================================================= */

  .lsm-gallery-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
  }

  .lsm-gallery-card {
    position:relative;
    isolation:isolate;
    height:var(--card-height);
    background:var(--g-card);
    border-radius:var(--g-radius);
    overflow:hidden;
    border:1px solid var(--g-border);
    box-shadow:var(--g-shadow);
    cursor:pointer;
    opacity:0;
    transform:translateY(16px);
    transition:
      opacity .4s ease,
      transform .4s ease,
      box-shadow .22s ease;
    -webkit-tap-highlight-color:transparent;
    outline:none;
  }

  .lsm-gallery-card:not(.lsm-card-revealed) {
    pointer-events:none;
  }

  .lsm-gallery-card.lsm-card-revealed {
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }

  .lsm-gallery-card.lsm-card-revealed:hover {
    transform:translateY(-3px);
    box-shadow:var(--g-shadow-hover);
  }

  .lsm-gallery-card:focus-visible {
    outline:2px solid var(--g-btn);
    outline-offset:2px;
  }

  .lsm-card-media {
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden;
    background:#e2e8e4;
    isolation:isolate;
    transform:translateZ(0);
    backface-visibility:hidden;
  }

  .lsm-card-media.lsm-media-video {
    background:
      radial-gradient(circle at 50% 45%,rgba(0,104,102,.24),transparent 46%),
      linear-gradient(135deg,#0d1716 0%,#162725 100%);
  }

  /*
   * Video cards use a lightweight blurred duplicate behind poster artwork.
   * On mobile, the foreground video/poster switches to object-fit:cover so every
   * thumbnail fills its card edge-to-edge with no letterboxing or empty bands.
   */
  .lsm-card-backdrop {
    position:absolute;
    inset:-14px;
    z-index:1;
    width:calc(100% + 28px);
    height:calc(100% + 28px);
    object-fit:cover;
    object-position:center center;
    filter:blur(18px) saturate(1.08) brightness(.58);
    transform:scale(1.08);
    opacity:0;
    transition:opacity .28s ease;
    pointer-events:none;
    user-select:none;
  }

  .lsm-gallery-card.lsm-card-loaded .lsm-card-backdrop {
    opacity:.82;
  }

  #lsmGalleryGrid .lsm-video-poster,
  #lsmGalleryGrid .lsm-media-el {
    width:100% !important;
    height:100% !important;
    min-height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    display:block !important;
  }

  #lsmGalleryGrid video.lsm-media-el {
    pointer-events:none;
  }

  .lsm-video-poster {
    width:100%;
    height:100%;
    display:block;
    position:relative;
    z-index:2;
    opacity:0;
    transition:opacity .28s ease;
  }

  .lsm-media-el {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
    opacity:0;
    transition:opacity .5s ease;
    position:relative;
    z-index:2;
  }

  .lsm-gallery-card.lsm-card-loaded .lsm-media-el,
  .lsm-gallery-card.lsm-card-loaded .lsm-video-poster {
    opacity:1;
  }

  .lsm-gallery-card.lsm-card-loaded .lsm-card-skeleton {
    opacity:0;
    pointer-events:none;
  }

  .lsm-card-skeleton {
    position:absolute;
    inset:0;
    z-index:1;
    background:
      linear-gradient(
        110deg,
        #dce4de 25%,
        #eaf0eb 50%,
        #dce4de 75%
      );
    background-size:200% 100%;
    animation:lsm-sk-shimmer 1.8s ease-in-out infinite;
    transition:opacity .4s ease;
  }

  @keyframes lsm-sk-shimmer {
    0% { background-position:200% 0; }
    100% { background-position:-200% 0; }
  }

  .lsm-card-error {
    position:absolute;
    inset:0;
    z-index:3;
    display:none;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:500;
    color:rgba(255,255,255,.55);
    background:rgba(10,15,13,.92);
    text-align:center;
    padding:14px;
  }

  .lsm-gallery-card.lsm-card-error-state .lsm-card-skeleton {
    opacity:0;
    pointer-events:none;
  }

  .lsm-gallery-card.lsm-card-error-state .lsm-media-el,
  .lsm-gallery-card.lsm-card-error-state .lsm-video-poster {
    opacity:0;
  }

  .lsm-gallery-card.lsm-card-error-state .lsm-card-error {
    display:flex;
  }

  .lsm-card-play-icon {
    position:absolute;
    inset:50% auto auto 50%;
    transform:translate(-50%,-50%);
    width:54px;
    height:54px;
    border-radius:999px;
    background:var(--g-btn);
    color:#fff;
    border:2px solid rgba(255,255,255,.75);
    box-shadow:0 10px 30px rgba(0,104,102,.35);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:60;
    pointer-events:none;
    opacity:.92;
    transition:opacity .2s ease,transform .2s ease;
  }

  .lsm-card-play-icon svg {
    width:18px;
    height:18px;
    fill:currentColor;
    margin-left:3px;
  }

  .lsm-gallery-card.lsm-card-revealed:hover .lsm-card-play-icon {
    opacity:1;
    transform:translate(-50%,-50%) scale(1.08);
  }

  .lsm-card-pill-overlay {
    position:absolute;
    top:8px;
    left:8px;
    z-index:9;
    font-size:9px;
    font-weight:700;
    letter-spacing:.07em;
    text-transform:uppercase;
    color:rgba(255,255,255,.9);
    background:rgba(0,0,0,.4);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
    border-radius:4px;
    padding:3px 8px;
    pointer-events:none;
    opacity:.85;
    transition:opacity .2s ease;
  }

  .lsm-gallery-card.lsm-card-revealed:hover .lsm-card-pill-overlay {
    opacity:1;
  }

  /* =========================================================
     VIEW MORE + CTA
     ========================================================= */

  .lsm-gallery-expand-wrap {
    text-align:center;
    padding-top:24px;
    margin-top:2px;
  }

  .lsm-gallery-expand-wrap.lsm-expand-hidden {
    display:none;
  }

  .lsm-gallery-sample-note {
    font-size:12.5px;
    line-height:1.6;
    color:var(--g-muted);
    max-width:460px;
    margin:0 auto 16px;
  }

  .lsm-gallery-expand-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:14px 32px;
    font-family:var(--g-ff-body);
    font-size:15px;
    font-weight:700;
    letter-spacing:.02em;
    color:#006866;
    background:rgba(0,104,102,.05);
    border:2px dashed #006866;
    border-radius:12px;
    cursor:pointer;
    text-decoration:none;
    transition:
      background .25s ease,
      color .25s ease,
      border-color .25s ease,
      transform .15s ease;
    -webkit-tap-highlight-color:transparent;
    outline:none;
  }

  .lsm-gallery-expand-btn:hover {
    background:#006866;
    color:#fff;
    border-color:#006866;
    transform:translateY(-2px);
  }

  .lsm-gallery-expand-btn:active {
    transform:translateY(0) scale(.98);
  }

  .lsm-gallery-expand-btn:focus-visible {
    outline:2px solid var(--g-btn);
    outline-offset:3px;
  }

  .lsm-expand-icon {
    width:20px;
    height:20px;
    flex-shrink:0;
    color:currentColor;
    transition:transform .25s ease;
  }

  .lsm-gallery-expand-btn:hover .lsm-expand-icon {
    transform:translateY(4px);
  }

  .lsm-gallery-expand-btn.lsm-expanded .lsm-expand-icon {
    transform:rotate(180deg) translateY(-2px);
  }

  .lsm-gallery-expand-btn.lsm-expanded:hover .lsm-expand-icon {
    transform:rotate(180deg) translateY(2px);
  }

  .lsm-gallery-cta-block {
    text-align:center;
    max-width:500px;
    margin:40px auto 0;
    padding-top:36px;
    border-top:1px solid var(--g-border);
  }

  .lsm-gallery-cta-heading {
    font-family:var(--g-ff-head);
    font-size:clamp(20px,2.8vw,32px);
    font-weight:400;
    color:var(--g-teal);
    line-height:1.1;
    letter-spacing:.04em;
    text-transform:uppercase;
    margin-bottom:10px;
  }

  .lsm-gallery-cta-text {
    font-size:14px;
    line-height:1.6;
    color:var(--g-muted);
    margin-bottom:22px;
  }

  .lsm-gallery-cta-btn {
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:13px 32px;
    font-family:var(--g-ff-body);
    font-size:13.5px;
    font-weight:600;
    letter-spacing:.02em;
    color:#fff;
    background:var(--g-btn);
    border:none;
    border-radius:60px;
    text-decoration:none;
    cursor:pointer;
    transition:
      background .22s,
      transform .18s,
      box-shadow .22s;
    box-shadow:0 4px 18px rgba(0,104,102,.2);
    -webkit-tap-highlight-color:transparent;
    outline:none;
  }

  .lsm-gallery-cta-btn:hover {
    background:var(--g-btn-hover);
    transform:translateY(-1px);
    box-shadow:0 6px 26px rgba(0,104,102,.28);
  }

  .lsm-gallery-cta-btn:active {
    transform:translateY(0) scale(.98);
  }

  .lsm-gallery-cta-btn:focus-visible {
    outline:2px solid var(--g-btn);
    outline-offset:3px;
  }

  /* =========================================================
     LIGHTBOX
     ========================================================= */

  .lsm-lb {
    --g-btn:#006866;
    --g-btn-hover:#005755;
    --g-ff-body:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;

    position:fixed;
    inset:0;
    z-index:999999;
    width:100%;
    height:100vh;
    height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding-top:max(6px,env(safe-area-inset-top));
    padding-right:max(6px,env(safe-area-inset-right));
    padding-bottom:max(6px,env(safe-area-inset-bottom));
    padding-left:max(6px,env(safe-area-inset-left));
    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease,visibility .3s ease;
    font-family:var(--g-ff-body);
  }

  .lsm-lb.lsm-lb-open {
    opacity:1;
    visibility:visible;
  }

  .lsm-lb-backdrop {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.92);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
  }

  .lsm-lb-stage {
    position:relative;
    width:min(100%,1100px);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
  }

  .lsm-lb-nav {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,.58);
    border:1px solid rgba(255,255,255,.18);
    color:#fff;
    width:48px;
    height:48px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:12;
    transition:background .2s ease,transform .15s ease,opacity .2s ease;
    -webkit-tap-highlight-color:transparent;
    outline:none;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    box-shadow:0 8px 24px rgba(0,0,0,.3);
  }

  .lsm-lb-nav:hover {
    background:rgba(0,0,0,.8);
  }

  .lsm-lb-nav:active {
    transform:translateY(-50%) scale(.92);
  }

  .lsm-lb-nav:focus-visible {
    outline:2px solid #fff;
    outline-offset:2px;
  }

  .lsm-lb-nav svg {
    width:24px;
    height:24px;
    stroke:currentColor;
    fill:none;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  .lsm-lb-prev {
    left:8px;
  }

  .lsm-lb-next {
    right:8px;
  }

  .lsm-lb-container {
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
    max-height:96vh;
    max-height:96dvh;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.08) transparent;
    transform:scale(.95) translateY(12px);
    transition:transform .35s cubic-bezier(.4,0,.2,1);
    padding:0 8px 12px;
  }

  .lsm-lb-container::-webkit-scrollbar {
    width:5px;
  }

  .lsm-lb-container::-webkit-scrollbar-thumb {
    background:rgba(255,255,255,.08);
    border-radius:3px;
  }

  .lsm-lb.lsm-lb-open .lsm-lb-container {
    transform:scale(1) translateY(0);
  }

  .lsm-lb-close {
    position:sticky;
    top:0;
    z-index:10;
    align-self:flex-end;
    margin:0 0 8px;
    width:40px;
    height:40px;
    border-radius:50%;
    border:1.5px solid rgba(255,255,255,.12);
    background:rgba(0,0,0,.6);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    flex-shrink:0;
    transition:
      background .2s,
      border-color .2s,
      transform .15s;
    outline:none;
  }

  .lsm-lb-close:hover {
    background:rgba(255,255,255,.12);
    border-color:rgba(255,255,255,.25);
    transform:scale(1.06);
  }

  .lsm-lb-close:active {
    transform:scale(.94);
  }

  .lsm-lb-close:focus-visible {
    outline:2px solid var(--g-btn);
    outline-offset:2px;
  }

  .lsm-lb-close svg {
    width:19px;
    height:19px;
    stroke:currentColor;
    fill:none;
  }

  .lsm-lb-media {
    background:#000;
    box-shadow:0 24px 80px rgba(0,0,0,.5);
    position:relative;
    flex-shrink:0;
    border-radius:14px;
    overflow:hidden;
  }

  .lsm-lb-media.lsm-lb-media-video {
    width:88vw;
    max-width:960px;
    aspect-ratio:16 / 9;
    max-height:72vh;
  }

  .lsm-lb-media.lsm-lb-media-video.lsm-lb-media-vertical {
    width:auto;
    height:80vh;
    max-width:90vw;
    aspect-ratio:9 / 16;
  }

  .lsm-lb-media.lsm-lb-media-video video {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    background:#000;
  }


  .lsm-lb-video-loader {
    position:absolute;
    inset:0;
    z-index:6;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .16s ease,visibility .16s ease;
  }

  .lsm-lb-video-loader.lsm-loader-visible {
    opacity:1;
    visibility:visible;
  }

  .lsm-lb-video-spinner {
    width:22px;
    height:22px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.22);
    border-top-color:rgba(255,255,255,.92);
    box-shadow:0 0 0 5px rgba(0,0,0,.12);
    animation:lsm-video-loader-spin .72s linear infinite;
  }

  @keyframes lsm-video-loader-spin {
    to { transform:rotate(360deg); }
  }

  .lsm-lb-media.lsm-lb-media-image {
    width:92vw;
    max-width:960px;
    border-radius:14px;
    overflow:hidden;
  }

  .lsm-lb-img-wrap {
    width:100%;
    max-height:85vh;
    overflow:hidden;
    position:relative;
    background:#000;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    cursor:zoom-in;
  }

  .lsm-lb-img-wrap.lsm-zoom-active {
    cursor:grab;
  }

  .lsm-lb-img-wrap.lsm-zoom-dragging {
    cursor:grabbing;
  }

  .lsm-lb-img-wrap img {
    max-width:100%;
    max-height:85vh;
    object-fit:contain;
    transform-origin:center center;
    user-select:none;
    -webkit-user-drag:none;
    pointer-events:none;
  }

  .lsm-lb-zoom-controls {
    position:absolute;
    bottom:12px;
    right:12px;
    z-index:5;
    display:flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border-radius:8px;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,.08);
  }

  .lsm-lb-zoom-controls[hidden] {
    display:none;
  }

  .lsm-lb-zoom-btn {
    width:32px;
    height:32px;
    border-radius:6px;
    border:none;
    background:rgba(255,255,255,.1);
    color:rgba(255,255,255,.85);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-family:var(--g-ff-body);
    font-size:18px;
    font-weight:500;
    line-height:1;
    transition:background .15s ease,transform .12s ease;
    -webkit-tap-highlight-color:transparent;
    outline:none;
  }

  .lsm-lb-zoom-btn:hover {
    background:rgba(255,255,255,.2);
  }

  .lsm-lb-zoom-btn:active {
    transform:scale(.92);
  }

  .lsm-lb-zoom-btn:focus-visible {
    outline:2px solid var(--g-btn);
    outline-offset:1px;
  }

  .lsm-lb-zoom-btn svg {
    width:16px;
    height:16px;
    stroke:currentColor;
    fill:none;
    stroke-width:2;
    stroke-linecap:round;
  }

  .lsm-lb-zoom-level {
    font-size:11px;
    font-weight:600;
    color:rgba(255,255,255,.7);
    min-width:36px;
    text-align:center;
    padding:0 2px;
    pointer-events:none;
    user-select:none;
  }

  /* =========================================================
     INSTAGRAM-STYLE CAPTION PANEL
     ========================================================= */

  .lsm-lb-caption {
    width:min(88vw,960px);
    margin:10px auto 0;
    padding:13px 15px 14px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:rgba(10,12,12,.88);
    color:#fff;
    text-align:left;
    box-shadow:0 14px 36px rgba(0,0,0,.24);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
  }

  .lsm-lb-caption-head {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
  }

  .lsm-lb-caption-avatar {
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:999px;
    display:block;
    object-fit:cover;
    object-position:center;
    background:#006866;
    border:1px solid rgba(255,255,255,.28);
    box-shadow:0 3px 12px rgba(0,104,102,.32);
    overflow:hidden;
  }

  .lsm-lb-caption-identity {
    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  .lsm-lb-caption-client {
    overflow:hidden;
    color:#fff;
    font-size:13px;
    line-height:1.2;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .lsm-lb-caption-meta {
    overflow:hidden;
    color:rgba(255,255,255,.56);
    font-size:10.5px;
    line-height:1.25;
    font-weight:600;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .lsm-lb-caption-link {
    flex-shrink:0;
    min-height:30px;
    padding:7px 11px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;
    color:#fff;
    background:rgba(255,255,255,.06);
    font-size:10.5px;
    line-height:1;
    font-weight:800;
    text-decoration:none;
    transition:background .18s ease,border-color .18s ease;
  }

  .lsm-lb-caption-link:hover,
  .lsm-lb-caption-link:focus-visible {
    background:#006866;
    border-color:#006866;
  }

  .lsm-lb-caption-link[hidden] {
    display:none !important;
  }

  .lsm-lb-caption-copy {
    margin-top:10px;
    color:rgba(255,255,255,.88);
    font-family:var(--g-ff-body);
    font-size:12.5px;
    line-height:1.52;
    font-weight:400;
  }

  .lsm-lb-caption-copy strong,
  .lsm-lb-caption-brand {
    color:#fff;
    font-weight:800;
  }

  .lsm-lb-caption-brand {
    text-decoration:none;
  }

  .lsm-lb-caption-brand:hover,
  .lsm-lb-caption-brand:focus-visible {
    text-decoration:underline;
    text-underline-offset:2px;
    outline:none;
  }

  .lsm-lb-caption-text {
    color:rgba(255,255,255,.84);
  }

  .lsm-lb-caption-more {
    display:inline;
    margin-left:4px;
    padding:0;
    border:0;
    background:transparent;
    color:rgba(255,255,255,.56);
    font:inherit;
    font-weight:700;
    cursor:pointer;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
  }

  .lsm-lb-caption-more:hover,
  .lsm-lb-caption-more:focus-visible {
    color:#fff;
    text-decoration:underline;
    text-underline-offset:2px;
    outline:none;
  }

  .lsm-lb-caption-tags {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:10px;
  }

  .lsm-lb-caption-tag {
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(0,104,102,.22);
    border:1px solid rgba(22,176,171,.24);
    color:#9fe4df;
    font-size:9.5px;
    line-height:1;
    font-weight:800;
    letter-spacing:.02em;
    white-space:nowrap;
  }

  .lsm-lb-caption[hidden] {
    display:none !important;
  }

  /* =========================================================
     CTA + STATUS
     ========================================================= */

  .lsm-lb-pill {
    margin-top:12px;
    font-size:10px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:rgba(255,255,255,.5);
    background:rgba(255,255,255,.07);
    border-radius:5px;
    padding:4px 12px;
    white-space:nowrap;
    flex-shrink:0;
  }

  .lsm-lb-swipe-hint {
    display:none;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:8px;
    color:rgba(255,255,255,.46);
    font-family:var(--g-ff-body);
    font-size:9px;
    font-weight:700;
    line-height:1;
    letter-spacing:.12em;
    text-transform:uppercase;
    pointer-events:none;
    user-select:none;
  }

  .lsm-lb-swipe-hint svg {
    width:13px;
    height:13px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  .lsm-lb-media.lsm-lb-media-changing {
    opacity:.72;
    transform:scale(.992);
  }

  /* =========================================================
     TABLET
     ========================================================= */

  @media(max-width:900px) {
    .lsm-gallery-section {
      padding:56px 0 48px;
      --card-height:220px;
    }

    .lsm-gallery-wrap {
      padding:0 20px;
    }

    .lsm-gallery-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:14px;
    }

    .lsm-gallery-cta-block {
      margin-top:32px;
      padding-top:28px;
    }

    .lsm-lb-media.lsm-lb-media-video {
      width:92vw;
      max-height:62vh;
    }

    .lsm-lb-media.lsm-lb-media-video.lsm-lb-media-vertical {
      height:70vh;
    }

    .lsm-lb-media.lsm-lb-media-image {
      width:94vw;
      max-width:100%;
    }
  }

  /* =========================================================
     IPHONE PORTRAIT + LANDSCAPE THUMBNAIL SAFETY
     ========================================================= */

  @media(max-width:1024px) and (hover:none) and (pointer:coarse) {

    #lsmGalleryGrid .lsm-video-poster,
    #lsmGalleryGrid .lsm-media-el {
      object-fit:cover !important;
      object-position:center center !important;
    }

    #lsmGalleryGrid .lsm-card-media.lsm-media-video .lsm-video-poster,
    #lsmGalleryGrid .lsm-card-media.lsm-media-video video.lsm-media-el {
      object-fit:cover !important;
      object-position:center center !important;
      background:transparent;
    }
  }

  /* =========================================================
     MOBILE
     ========================================================= */

  @media(max-width:640px) {

    .lsm-gallery-section {
      padding:44px 0 36px;
      --card-height:162px;
    }

    .lsm-gallery-wrap {
      padding:0 12px;
    }

    .lsm-gallery-header {
      margin-bottom:20px;
    }

    .lsm-gallery-eyebrow {
      font-size:10px;
      padding:5px 13px;
      margin-bottom:12px;
    }

    .lsm-gallery-heading {
      margin-bottom:8px;
    }

    .lsm-gallery-desc {
      max-width:340px;
      font-size:15.5px;
      line-height:1.62;
      color:#263437;
    }

    .lsm-gallery-filters {
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
      width:100%;
      max-width:360px;
      margin:0 auto 22px;
      padding:0 10px;
    }

    .lsm-gallery-section .lsm-filter-btn {
      width:100%;
      min-height:48px;
      padding:12px 14px;
      border-radius:999px;
      font-size:13.5px;
      font-weight:700;
      line-height:1.1;
      justify-content:center;
      text-align:center;
      white-space:normal;
      color:#006866;
      background:rgba(0,104,102,.06);
      border:1.5px solid rgba(0,104,102,.5);
    }

    .lsm-gallery-section .lsm-filter-btn:hover,
    .lsm-gallery-section .lsm-filter-btn.lsm-filter-active {
      color:#fff;
      background:#006866;
      border-color:#006866;
    }

    .lsm-gallery-filter-copy {
      max-width:340px;
      margin:18px auto 38px;
      padding:18px;
      font-size:15px;
      line-height:1.65;
      color:#263437;
      background:rgba(255,255,255,.36);
      border:1px solid rgba(0,104,102,.26);
      border-radius:14px;
      text-align:center;
    }

    .lsm-gallery-filter-copy p {
      max-width:300px;
    }

    .lsm-gallery-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
    }

    .lsm-gallery-card {
      border-radius:12px;
      height:auto !important;
      min-height:0 !important;
      aspect-ratio:1 / 1;
      background:#f6f9f6;
    }

    #lsmGalleryGrid .lsm-video-poster,
    #lsmGalleryGrid .lsm-media-el {
      width:100% !important;
      height:100% !important;
      min-height:0 !important;
      object-fit:cover !important;
      object-position:center center !important;
      background:#f6f9f6;
    }

    #lsmGalleryGrid .lsm-card-media.lsm-media-video .lsm-video-poster,
    #lsmGalleryGrid .lsm-card-media.lsm-media-video video.lsm-media-el {
      object-fit:cover !important;
      object-position:center center !important;
      background:transparent;
    }

    .lsm-card-play-icon {
      width:40px;
      height:40px;
      border-width:1.5px;
    }

    .lsm-card-play-icon svg {
      width:14px;
      height:14px;
    }

    .lsm-card-pill-overlay {
      font-size:7.5px;
      top:5px;
      left:5px;
      padding:2px 6px;
      border-radius:3px;
    }

    .lsm-gallery-expand-wrap {
      padding-top:16px;
    }

    .lsm-gallery-sample-note {
      font-size:11.5px;
      margin-bottom:12px;
    }

    .lsm-gallery-expand-btn {
      width:100%;
      max-width:320px;
      padding:12px 24px;
      font-size:14px;
    }

    .lsm-expand-icon {
      width:18px;
      height:18px;
    }

    .lsm-gallery-cta-block {
      margin-top:28px;
      padding-top:22px;
    }

    .lsm-gallery-cta-heading {
      margin-bottom:6px;
    }

    .lsm-gallery-cta-text {
      font-size:12.5px;
      margin-bottom:16px;
    }

    .lsm-gallery-cta-btn {
      padding:11px 24px;
      font-size:12.5px;
    }

    /* =======================================================
       IPHONE LIGHTBOX
       ======================================================= */

    .lsm-lb {
      align-items:flex-start;
      overflow:hidden;
      overscroll-behavior:none;
      padding-top:max(6px,env(safe-area-inset-top));
      padding-right:max(4px,env(safe-area-inset-right));
      padding-bottom:max(6px,env(safe-area-inset-bottom));
      padding-left:max(4px,env(safe-area-inset-left));
    }

    .lsm-lb-container {
      width:100%;
      height:100%;
      max-height:100%;
      padding:0 0 max(8px,env(safe-area-inset-bottom));
      overflow-y:auto;
      overscroll-behavior:contain;
    }

    .lsm-lb-close {
      position:sticky;
      top:0;
      z-index:20;
      width:36px;
      height:36px;
      margin:0 max(4px,env(safe-area-inset-right)) 6px auto;
      background:rgba(0,0,0,.74);
      backdrop-filter:blur(8px);
      -webkit-backdrop-filter:blur(8px);
    }

    .lsm-lb-close svg {
      width:16px;
      height:16px;
    }

    .lsm-lb-stage {
      width:100%;
      padding:0 2px;
    }

    .lsm-lb-nav {
      display:flex !important;
      width:38px;
      height:38px;
      background:rgba(0,0,0,.66);
      border-color:rgba(255,255,255,.22);
      box-shadow:0 6px 18px rgba(0,0,0,.34);
    }

    .lsm-lb-nav svg {
      width:19px;
      height:19px;
    }

    .lsm-lb-prev {
      left:max(4px,env(safe-area-inset-left));
    }

    .lsm-lb-next {
      right:max(4px,env(safe-area-inset-right));
    }

    .lsm-lb-media {
      touch-action:pan-y pinch-zoom;
      transition:opacity .14s ease,transform .14s ease;
    }

    .lsm-lb-media.lsm-lb-media-video {
      touch-action:manipulation;
    }

    .lsm-lb-media.lsm-lb-media-video {
      width:96vw;
      max-width:760px;
      max-height:52dvh;
      aspect-ratio:16 / 9;
      border-radius:13px;
    }

    .lsm-lb-media.lsm-lb-media-video.lsm-lb-media-vertical {
      width:min(82vw,360px);
      height:min(58dvh,660px);
      max-width:82vw;
      max-height:58dvh;
      aspect-ratio:9 / 16;
    }

    .lsm-lb-media.lsm-lb-media-video video {
      width:100%;
      height:100%;
      object-fit:contain;
      object-position:center center;
      background:#000;
    }

    .lsm-lb-media.lsm-lb-media-image {
      width:96vw;
      max-width:100%;
    }

    .lsm-lb-img-wrap,
    .lsm-lb-img-wrap img {
      max-height:70vh;
    }

    .lsm-lb-zoom-controls {
      bottom:8px;
      right:8px;
      gap:3px;
      padding:3px;
    }

    .lsm-lb-zoom-btn {
      width:28px;
      height:28px;
      font-size:16px;
    }

    .lsm-lb-zoom-btn svg {
      width:14px;
      height:14px;
    }

    .lsm-lb-zoom-level {
      font-size:10px;
      min-width:30px;
    }

    .lsm-lb-caption {
      width:94vw;
      max-width:560px;
      margin-top:9px;
      padding:12px 13px 13px;
      border-radius:13px;
    }

    .lsm-lb-caption-client {
      font-size:12.5px;
    }

    .lsm-lb-caption-meta {
      font-size:10px;
    }

    .lsm-lb-caption-copy {
      font-size:12px;
      line-height:1.5;
    }

    .lsm-lb-caption-tag {
      font-size:9px;
    }

    .lsm-lb-pill {
      margin-top:8px;
      font-size:9px;
    }

    .lsm-lb-swipe-hint {
      display:flex;
    }

  }

  @media(max-width:430px) {

    .lsm-gallery-section {
      --card-height:auto;
    }

    .lsm-gallery-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
    }

    .lsm-gallery-card {
      border-radius:12px;
      aspect-ratio:1 / 1;
      height:auto !important;
    }

    .lsm-card-play-icon {
      width:40px;
      height:40px;
    }

    .lsm-card-play-icon svg {
      width:14px;
      height:14px;
    }

    .lsm-card-pill-overlay {
      font-size:7.5px;
      top:5px;
      left:5px;
      padding:2px 6px;
      border-radius:3px;
    }

    .lsm-lb-media.lsm-lb-media-video {
      width:96vw;
      max-height:50vh;
    }
  }

  @media(max-width:360px) {

    .lsm-gallery-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:8px;
    }

    .lsm-gallery-section {
      --card-height:auto;
    }

    .lsm-gallery-card {
      aspect-ratio:1 / 1;
      height:auto !important;
    }

    .lsm-card-play-icon {
      width:38px;
      height:38px;
    }

    .lsm-card-play-icon svg {
      width:13px;
      height:13px;
    }

    .lsm-card-pill-overlay {
      font-size:7px;
      top:5px;
      left:5px;
      padding:2px 5px;
    }

    .lsm-gallery-filters {
      grid-template-columns:repeat(2,minmax(0,1fr));
      max-width:320px;
      gap:8px;
      padding:0 6px;
    }

    .lsm-filter-btn {
      min-height:46px;
      padding:10px;
      font-size:12.5px;
    }
  }

  /* =========================================================
     IOS SAFARI
     ========================================================= */

  @supports (-webkit-touch-callout:none) {

    @media(max-width:640px) {

      /* Keep the card/media stable, but do not promote the actual <video>
         thumbnail to its own Safari compositing layer. On iPhone that layer
         can render above sibling overlays such as the play control. */
      .lsm-gallery-card,
      .lsm-card-media {
        -webkit-transform:translateZ(0);
        transform:translateZ(0);
      }

      /* iPhone / WebKit play control lives on the card layer rather than
         inside the video layer, so it stays visible over inline previews. */
      #lsmGalleryGrid .lsm-gallery-card[data-type="video"] > .lsm-card-play-icon {
        display:flex !important;
        visibility:visible !important;
        opacity:.96 !important;
        z-index:80 !important;
        -webkit-transform:translate3d(-50%,-50%,2px) !important;
        transform:translate3d(-50%,-50%,2px) !important;
        -webkit-backface-visibility:hidden;
        backface-visibility:hidden;
      }

      .lsm-lb,
      .lsm-lb-container {
        min-height:100dvh;
      }

      #lsmGalleryGrid .lsm-card-media.lsm-media-video .lsm-video-poster,
      #lsmGalleryGrid .lsm-card-media.lsm-media-video video.lsm-media-el {
        object-fit:cover !important;
        object-position:center center !important;
      }
    }
  }


  /* =========================================================
     IPHONE LANDSCAPE / COARSE-POINTER SAFETY
     Covers modern iPhones in landscape where viewport width exceeds 640px.
     ========================================================= */

  @media(max-width:1024px) and (hover:none) and (pointer:coarse) {
    .lsm-lb {
      align-items:flex-start;
      overflow:hidden;
      overscroll-behavior:none;
      padding-top:max(6px,env(safe-area-inset-top));
      padding-right:max(6px,env(safe-area-inset-right));
      padding-bottom:max(6px,env(safe-area-inset-bottom));
      padding-left:max(6px,env(safe-area-inset-left));
    }

    .lsm-lb-container {
      width:100%;
      max-height:100dvh;
      overflow-y:auto;
      overscroll-behavior:contain;
      padding-bottom:max(10px,env(safe-area-inset-bottom));
    }

    .lsm-lb-caption {
      max-width:calc(100vw - max(24px,env(safe-area-inset-left)) - max(24px,env(safe-area-inset-right)));
    }
  }

  /* Image projects always preserve their native proportions in the viewer.
     Grid thumbnails remain filled with cover, so Websites and Graphic Designs
     stay clean in their filter grids without stretching the source artwork. */
  .lsm-lb-media.lsm-lb-media-image .lsm-lb-img-wrap {
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .lsm-lb-media.lsm-lb-media-image .lsm-lb-img-wrap img {
    width:auto;
    height:auto;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
  }

  #lsmGalleryGrid .lsm-gallery-card[data-type="image"] .lsm-media-el {
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  @media(max-width:1024px) and (hover:none) and (pointer:coarse) and (orientation:landscape) {
    .lsm-lb-close {
      margin-right:max(4px,env(safe-area-inset-right));
    }

    .lsm-lb-media.lsm-lb-media-video {
      width:min(82vw,900px);
      max-height:68dvh;
    }

    .lsm-lb-media.lsm-lb-media-video.lsm-lb-media-vertical {
      width:auto;
      height:min(68dvh,560px);
      max-width:48vw;
      max-height:68dvh;
    }

    .lsm-lb-caption {
      width:min(82vw,900px);
    }

  }

  /* =========================================================
     REDUCED MOTION
     ========================================================= */

  @media(prefers-reduced-motion:reduce) {
    .lsm-gallery-section,
    .lsm-gallery-section *,
    .lsm-lb,
    .lsm-lb * {
      animation-duration:.01ms !important;
      animation-iteration-count:1 !important;
      transition-duration:.01ms !important;
    }

    .lsm-gallery-header {
      opacity:1 !important;
      transform:none !important;
    }

    .lsm-gallery-card {
      opacity:1 !important;
      transform:none !important;
      pointer-events:auto !important;
    }

    .lsm-media-el,
    .lsm-video-poster {
      opacity:1 !important;
    }

    .lsm-card-skeleton {
      display:none !important;
    }

    .lsm-card-play-icon {
      opacity:.92 !important;
    }

    .lsm-lb.lsm-lb-open {
      opacity:1 !important;
      visibility:visible !important;
    }

    .lsm-lb:not(.lsm-lb-open) {
      opacity:0 !important;
      visibility:hidden !important;
    }

    .lsm-lb-container {
      transform:none !important;
    }

    .lsm-gallery-filter-copy {
      transition:none !important;
      opacity:1 !important;
      transform:none !important;
    }


    .lsm-lb-video-spinner {
      animation:none !important;
      border-top-color:rgba(255,255,255,.78);
    }
  }

  /* =========================================================
     PERFORMANCE + RESILIENCE
     ========================================================= */

  .lsm-gallery-section {
    content-visibility:auto;
    contain-intrinsic-size:auto 980px;
  }

  .lsm-gallery-header {
    opacity:1;
    transform:none;
  }

  .lsm-gallery-grid {
    min-height:536px;
  }

  .lsm-gallery-card {
    width:100%;
    padding:0;
    appearance:none;
    -webkit-appearance:none;
    font:inherit;
    text-align:left;
  }

  .lsm-gallery-expand-wrap[hidden],
  .lsm-lb[hidden] {
    display:none !important;
  }

  @media(max-width:900px) {
    .lsm-gallery-grid { min-height:454px; }
  }

  @media(max-width:640px) {
    .lsm-gallery-grid { min-height:0; }
  }

  @media(max-width:360px) {
    .lsm-gallery-grid { min-height:0; }
  }



  /* =========================================================
     V18.6 REEL LIGHTBOX OVERLAY
     Mobile-first reel presentation. Existing gallery grid,
     filters, thumbnails, ordering, loaders, and image zoom stay intact.
     ========================================================= */

  .lsm-lb-container {
    position:relative;
  }

  .lsm-lb-stage {
    position:relative;
    isolation:isolate;
  }

  .lsm-lb-stage.lsm-lb-stage-video::after {
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:56%;
    z-index:5;
    pointer-events:none;
    background:linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.08) 24%,
      rgba(0,0,0,.52) 62%,
      rgba(0,0,0,.92) 100%
    );
  }

  .lsm-lb-media {
    z-index:1;
  }

  .lsm-lb-caption {
    position:absolute;
    left:clamp(18px,3vw,34px);
    right:clamp(18px,3vw,34px);
    bottom:56px;
    z-index:9;
    width:auto;
    max-width:none;
    margin:0;
    padding:0 clamp(48px,7vw,76px) 0 0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    color:#fff;
    pointer-events:none;
    text-shadow:0 2px 14px rgba(0,0,0,.72);
  }

  .lsm-lb-caption-head {
    gap:10px;
    margin:0 0 9px;
    align-items:center;
  }

  .lsm-lb-caption-avatar {
    width:42px;
    height:42px;
    min-width:42px;
    border:1.5px solid rgba(255,255,255,.82);
    box-shadow:0 4px 18px rgba(0,0,0,.32);
  }

  .lsm-lb-caption-client {
    color:#fff;
    font-size:15px;
    line-height:1.2;
    font-weight:800;
    white-space:normal;
  }

  .lsm-lb-caption-meta {
    color:rgba(255,255,255,.72);
    font-size:10.5px;
    line-height:1.3;
    font-weight:600;
    white-space:normal;
  }

  .lsm-lb-caption-copy {
    max-width:760px;
    margin:0;
    color:rgba(255,255,255,.94);
    font-size:13px;
    line-height:1.5;
    font-weight:450;
  }

  .lsm-lb-caption-text {
    color:inherit;
  }

  .lsm-lb-caption-more {
    position:relative;
    z-index:2;
    margin-left:4px;
    color:rgba(255,255,255,.72);
    pointer-events:auto;
    text-shadow:0 2px 12px rgba(0,0,0,.78);
  }

  .lsm-lb-caption-more:hover,
  .lsm-lb-caption-more:focus-visible {
    color:#fff;
  }

  .lsm-lb-caption-source {
    display:block;
    margin-top:8px;
    color:rgba(255,255,255,.62);
    font-size:10.5px;
    line-height:1.35;
    font-weight:500;
  }

  /* No external-client button, Instagram handle link, keyword pills,
     or separate category/status chip in the reel viewer. */
  .lsm-lb-caption-link,
  .lsm-lb-caption-brand,
  .lsm-lb-caption-tags,
  .lsm-lb-caption-tag,
  .lsm-lb-pill {
    display:none !important;
  }

  .lsm-lb-swipe-hint {
    position:absolute;
    left:50%;
    bottom:16px;
    z-index:10;
    transform:translateX(-50%);
    margin:0;
    color:rgba(255,255,255,.62);
    text-shadow:0 2px 12px rgba(0,0,0,.72);
    white-space:nowrap;
  }

  .lsm-lb-swipe-hint[hidden] {
    display:none !important;
  }

  @media(max-width:640px) {

    .lsm-lb {
      align-items:stretch;
      justify-content:stretch;
      padding:0;
      background:#000;
      overflow:hidden;
    }

    .lsm-lb-backdrop {
      background:#000;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
    }

    .lsm-lb-container {
      width:100%;
      height:100vh;
      height:100dvh;
      max-height:100vh;
      max-height:100dvh;
      overflow:hidden;
      padding:0;
      transform:none;
    }

    .lsm-lb-stage {
      width:100%;
      height:100%;
      max-width:none;
      padding:0;
      overflow:hidden;
      touch-action:none;
      transition:transform .16s ease,opacity .16s ease;
      will-change:transform;
    }

    .lsm-lb-stage.lsm-lb-stage-video::after {
      height:59%;
      background:linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.05) 24%,
        rgba(0,0,0,.44) 58%,
        rgba(0,0,0,.93) 100%
      );
    }

    .lsm-lb-close {
      position:absolute;
      top:max(14px,env(safe-area-inset-top));
      right:max(14px,env(safe-area-inset-right));
      z-index:30;
      width:42px;
      height:42px;
      margin:0;
      background:rgba(0,0,0,.42);
      border:1px solid rgba(255,255,255,.34);
      backdrop-filter:blur(7px);
      -webkit-backdrop-filter:blur(7px);
    }

    /* Mobile is gesture-first. Desktop/tablet arrows remain available. */
    .lsm-lb-nav {
      display:none !important;
    }

    .lsm-lb-media,
    .lsm-lb-media.lsm-lb-media-video,
    .lsm-lb-media.lsm-lb-media-video.lsm-lb-media-vertical {
      width:100vw;
      height:100vh;
      height:100dvh;
      max-width:none;
      max-height:none;
      aspect-ratio:auto;
      border-radius:0;
      box-shadow:none;
      touch-action:none;
      background:#000;
    }

    /* Preserve the real source ratio in the full-screen reel viewer.
       Landscape / 16:9 videos are contained inside the black stage so no
       footage is cropped. Portrait reels can still fill the mobile screen. */
    .lsm-lb-media.lsm-lb-media-video video {
      width:100%;
      height:100%;
      object-fit:contain;
      object-position:center center;
      background:#000;
      touch-action:none;
    }

    .lsm-lb-media.lsm-lb-media-video.lsm-lb-media-vertical video {
      object-fit:cover;
    }

    .lsm-lb-media.lsm-lb-media-video.lsm-lb-media-landscape video {
      object-fit:contain;
    }

    .lsm-lb-caption {
      left:max(18px,env(safe-area-inset-left));
      right:max(18px,env(safe-area-inset-right));
      bottom:max(58px,calc(env(safe-area-inset-bottom) + 48px));
      width:auto;
      max-width:none;
      margin:0;
      padding:0 18px 0 0;
      border:0;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      pointer-events:none;
    }

    .lsm-lb-caption-head {
      gap:10px;
      margin-bottom:10px;
      max-width:calc(100% - 4px);
    }

    .lsm-lb-caption-avatar {
      width:44px;
      height:44px;
      min-width:44px;
    }

    .lsm-lb-caption-client {
      font-size:16px;
      line-height:1.17;
      white-space:normal;
    }

    .lsm-lb-caption-meta {
      margin-top:2px;
      font-size:11px;
      line-height:1.28;
      white-space:normal;
      color:rgba(255,255,255,.70);
    }

    .lsm-lb-caption-copy {
      max-width:calc(100% - 8px);
      margin:0;
      font-size:14.5px;
      line-height:1.46;
      color:rgba(255,255,255,.96);
    }

    .lsm-lb-caption-source {
      margin-top:9px;
      font-size:11.5px;
      color:rgba(255,255,255,.62);
    }

    .lsm-lb-caption-more {
      font-size:inherit;
    }

    .lsm-lb-swipe-hint {
      display:flex;
      gap:6px;
      bottom:max(14px,calc(env(safe-area-inset-bottom) + 9px));
      font-size:9px;
      letter-spacing:.08em;
      text-transform:none;
      color:rgba(255,255,255,.58);
    }

    .lsm-lb-swipe-hint svg {
      width:12px;
      height:12px;
    }

    .lsm-lb-media.lsm-lb-media-image {
      width:100vw;
      height:100dvh;
      max-width:none;
      border-radius:0;
      display:flex;
      align-items:center;
      justify-content:center;
      background:#000;
    }

    .lsm-lb-img-wrap {
      width:100%;
      height:100%;
      max-height:none;
      border-radius:0;
    }

    .lsm-lb-img-wrap img {
      width:auto;
      height:auto;
      max-width:100%;
      max-height:100%;
      object-fit:contain;
      object-position:center center;
    }
  }

  @media(max-width:1024px) and (hover:none) and (pointer:coarse) and (orientation:landscape) {
    .lsm-lb-container,
    .lsm-lb-stage {
      height:100dvh;
      max-height:100dvh;
      overflow:hidden;
    }

    .lsm-lb-media.lsm-lb-media-video,
    .lsm-lb-media.lsm-lb-media-video.lsm-lb-media-vertical {
      width:100vw;
      height:100dvh;
      max-width:none;
      max-height:none;
    }

    .lsm-lb-caption {
      left:max(22px,env(safe-area-inset-left));
      right:max(80px,env(safe-area-inset-right));
      bottom:max(38px,calc(env(safe-area-inset-bottom) + 28px));
      width:auto;
      max-width:620px;
    }

    .lsm-lb-swipe-hint {
      bottom:max(8px,env(safe-area-inset-bottom));
    }
  }


/* Case-study inquiry anchors respect motion preferences. */
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
