 /* Slide 1 thumbnail button */
 .figjam-thumb {
    all: unset;
    display: grid;
    gap: 10px;
    cursor: pointer;
    width: 100%;
  }
  .figjam-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .figjam-thumb__hint {
    font-size: 0.9rem;
    opacity: 0.85;
  }
  .figjam-thumb:focus-visible img {
    outline: 3px solid rgba(255,255,255,0.7);
    outline-offset: 3px;
  }

  /* Modal (shadowbox) */
  .modal[hidden] { display: none; }
  .modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
  }
  .modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.68);
    backdrop-filter: blur(6px);
  }
  .modal__dialog {
    position: relative;
    margin: 4vh auto;
    width: min(1100px, 92vw);
    background: rgba(20,20,22,0.96);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
    overflow: hidden;
    max-height: 92vh;
    display: grid;
    grid-template-rows: auto 1fr;
  }
  .modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .modal__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    color: #fff;
  }
  .modal__close {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
  }
  .modal__close:focus-visible {
    outline: 3px solid rgba(255,255,255,0.7);
    outline-offset: 2px;
  }

  .modal__body {
    padding: 14px 16px 18px;
    overflow: auto;
  }

  /* Responsive iframe wrapper (16:9) */
  .embed {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
  }
  .embed__ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .embed__ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  #mcNewPreview {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #0ea3bb;
    padding: 1rem;
    
  }