
    /* Gallery viewer (data-mk-gallery, see layouts/partials/javascripts.html). */
    #mk-gal { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .6);
        align-items: center; justify-content: center; padding: 20px; }
    #mk-gal .mk-gal-box { position: relative; width: min(900px, 100%); max-height: 100%; display: flex; flex-direction: column;
        border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
    #mk-gal .mk-gal-stage { position: relative; display: flex; align-items: center; justify-content: center;
        background: #111827; height: min(68vh, 640px); min-height: 220px; }
    #mk-gal .mk-gal-view { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
    #mk-gal .mk-gal-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
    #mk-gal .mk-gal-file { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 15px; }
    #mk-gal .mk-gal-file .fa { font-size: 64px; }
    #mk-gal .mk-gal-x { position: absolute; top: 12px; right: 14px; z-index: 3; width: 34px; height: 34px; border: 0; background: none;
        color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
    #mk-gal .mk-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0;
        border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111827; font-size: 26px; line-height: 1; cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
    #mk-gal .mk-gal-prev { left: 10px; } #mk-gal .mk-gal-next { right: 10px; }
    #mk-gal.mk-gal-one .mk-gal-nav, #mk-gal.mk-gal-one .mk-gal-strip { display: none; }
    #mk-gal .mk-gal-count { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px;
        background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; }
    #mk-gal .mk-gal-strip { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: #fff; }
    #mk-gal .mk-gal-th { flex: none; width: 54px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px;
        overflow: hidden; background: #e5e7eb; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #6b7280; }
    #mk-gal .mk-gal-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
    #mk-gal .mk-gal-th.on { border-color: #2563eb; }
