/* ========== Thumbs ========== */
.social{
    background: #000;
    width: 100%;
    text-align: center;
    padding: 0 0 100px;
}

.social .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: min(96vw,600px);
    margin: 0 auto;
  }
  .social .thumb {
    position: relative;
    padding-top: 177.78%;           /* 9:16 */
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
  }
  .social .thumb > video,
  .social .thumb > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  
  /* ========== Lightbox ========== */
  .social .lightbox {
    position: fixed; inset: 0;
    display: none;                   /* toggled via [aria-hidden] */
    place-items: center;
    background: rgba(0,0,0,0.9);     /* 50% black backdrop */
    z-index: 9999;
  }
  .social .lightbox[aria-hidden="false"] { display: grid; }
  
    /* Stage area */
    .social #boxcontent {
        position: absolute;
        height: min(580px,85vh);
        border-radius: 30px;
        aspect-ratio: 9 / 17;
        overflow: hidden;
    }

    /* Stage area */
    .social #boxmockup {
        position: absolute;
        height: min(661px,96.9vh);
        aspect-ratio: 9 / 16;
        overflow: hidden;
    }
  
  /* Content (video/image) lives under the mockup */
  .social #boxcontent {
    z-index: 1;
    background: #000;
    display: grid; place-items: center;
  }
  .social #boxcontent > video,
  .social #boxcontent > img {
    width: 100%; 
    height: 100%; 
    object-fit: fill; 
    display: block;
  }
  
  /* Phone mockup overlay */
  .social #boxmockup {
    z-index: 2; pointer-events: none;
  }
  .social #boxmockup img {
    width: 100%; height: 100%; display: block;
    object-fit: fill; 

  }
  
  /* Controls */
  .social .lb-btn {
    position: absolute;
    z-index: 3;
    appearance: none;
    border: 0;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 60px;
    height: 60px;
    text-align:center;
  }
  .social .lb-prev  { left:  max(2vw, 12px);  top: 50%; transform: translateY(-50%); }
  .social .lb-next  { right: max(2vw, 12px);  top: 50%; transform: translateY(-50%); }
  .social .lb-close { right: max(2vw, 12px);  top: max(2vh, 12px); }