.tgjg-gallery.tgjg-gallery{--tgjg-columns:2;--tgjg-gap:8px;--tgjg-radius:8px;list-style:none;margin:0;padding:0;background:transparent;box-sizing:border-box;width:100%}
.tgjg-gallery.tgjg-masonry,.tgjg-gallery.tgjg-grid{display:block;column-count:var(--tgjg-columns);column-gap:var(--tgjg-gap)}
.tgjg-gallery .tgjg-item{display:block;min-width:0;max-width:100%;padding:0;margin:0 0 var(--tgjg-gap);break-inside:avoid;page-break-inside:avoid;list-style:none;background:transparent;border:0;border-radius:var(--tgjg-radius);overflow:hidden;line-height:0}
.tgjg-gallery.tgjg-gallery.tgjg-masonry-ready{display:block;position:relative;column-count:auto;column-gap:0;min-height:0}
.tgjg-gallery.tgjg-masonry-ready>.tgjg-item{position:absolute;inset-block-start:var(--tgjg-y,0px);inset-inline-start:var(--tgjg-x,0px);width:var(--tgjg-w,100%);height:var(--tgjg-h,auto);margin:0;box-sizing:border-box}
.tgjg-gallery .tgjg-link{display:block;background:transparent;padding:0;margin:0;border:0;text-decoration:none;line-height:0;cursor:zoom-in}
.tgjg-gallery .tgjg-link:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.tgjg-gallery .tgjg-item img.tgjg-image{display:block;width:100%;max-width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;margin:0;padding:0;border:0;border-radius:var(--tgjg-radius);background:transparent;box-shadow:none;vertical-align:middle}
@media(max-width:767px){.tgjg-gallery.tgjg-gallery{--tgjg-columns:1}}
.tgjg-empty{padding:16px;border:1px dashed #aaa;text-align:center;font-size:13px}
html.tgjg-dialog-open{overflow:hidden!important}
dialog.tgjg-lightbox{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#111;color:#fff;overflow:hidden;z-index:2147483000;direction:ltr}
dialog.tgjg-lightbox:not([open]){display:none}
dialog.tgjg-lightbox::backdrop{background:#111}
.tgjg-lightbox .tgjg-stage{position:absolute;inset:54px 60px;display:flex;align-items:center;justify-content:center;background:transparent;touch-action:pan-y pinch-zoom}
.tgjg-lightbox .tgjg-full{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;aspect-ratio:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;user-select:none;-webkit-user-drag:none}
.tgjg-lightbox button.tgjg-control{display:flex;align-items:center;justify-content:center;position:absolute;width:44px;height:44px;padding:0;margin:0;color:#fff;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.18);border-radius:50%;cursor:pointer;z-index:2;line-height:1;box-shadow:none}
.tgjg-lightbox button.tgjg-control:hover,.tgjg-lightbox button.tgjg-control:focus-visible{background:#333;color:white;outline:2px solid #ddd;outline-offset:2px}
.tgjg-lightbox button[hidden]{display:none!important}
.tgjg-lightbox .tgjg-close{top:12px;right:12px}.tgjg-lightbox .tgjg-prev{left:10px;top:50%;transform:translateY(-50%)}.tgjg-lightbox .tgjg-next{right:10px;top:50%;transform:translateY(-50%)}
.tgjg-lightbox .tgjg-count{position:absolute;top:24px;left:18px;color:#fff;font:14px/1.2 sans-serif;direction:ltr}
.tgjg-lightbox .tgjg-status{position:absolute;bottom:12px;left:12px;right:12px;text-align:center;color:#fff;font-size:14px;direction:rtl;pointer-events:none}
@media(max-width:767px){.tgjg-lightbox .tgjg-stage{inset:64px 8px 70px}.tgjg-lightbox .tgjg-prev,.tgjg-lightbox .tgjg-next{top:auto;bottom:12px;transform:none}.tgjg-lightbox .tgjg-prev{left:16px}.tgjg-lightbox .tgjg-next{right:16px}.tgjg-lightbox .tgjg-status{bottom:62px}}

/* The frame alone owns geometry. Loading placeholders never participate in layout. */
.tgjg-gallery{--tgjg-skeleton:#292929;--tgjg-shimmer:rgba(255,255,255,.12)}
.tgjg-gallery .tgjg-frame{display:block;position:relative;isolation:isolate;overflow:hidden;border-radius:inherit;background:transparent;line-height:0;padding:0;margin:0;box-sizing:border-box;width:100%}
.tgjg-gallery .tgjg-frame.tgjg-known,.tgjg-gallery .tgjg-frame.tgjg-managed{aspect-ratio:var(--tgjg-ratio,1.3333333333)}
.tgjg-gallery.tgjg-masonry-ready .tgjg-link,.tgjg-gallery.tgjg-masonry-ready .tgjg-frame{height:100%;aspect-ratio:auto}
.tgjg-gallery .tgjg-frame.tgjg-known img.tgjg-image,.tgjg-gallery .tgjg-frame.tgjg-managed img.tgjg-image{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;background:transparent;z-index:2}
/* Subtle charcoal placeholder, small outlined gallery icon, no text or spinner. */
.tgjg-gallery.tgjg-has-skeleton .tgjg-frame.is-loading{background:var(--tgjg-skeleton)}
.tgjg-gallery.tgjg-has-skeleton .tgjg-frame.is-loading::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(112deg,transparent 24%,var(--tgjg-shimmer) 50%,transparent 76%);transform:translateX(-110%)}
.tgjg-gallery.tgjg-has-skeleton .tgjg-frame.is-loading::after{content:"";position:absolute;top:50%;left:50%;width:clamp(22px,4vw,38px);height:clamp(22px,4vw,38px);transform:translate(-50%,-50%);z-index:1;pointer-events:none;background:#b5b5b5;opacity:.48;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='25' height='21' rx='3'/%3E%3Ccircle cx='11' cy='12' r='2.2'/%3E%3Cpath d='m4 23 7-7 4 4 5-6 8 8'/%3E%3C/svg%3E") center/contain no-repeat}
.tgjg-gallery.tgjg-has-skeleton .tgjg-frame.is-loading.tgjg-near::before{animation:tgjg-shimmer 2.4s ease-in-out infinite}
.tgjg-gallery.tgjg-has-skeleton .tgjg-frame.tgjg-managed.is-loading img.tgjg-image{opacity:0}
.tgjg-gallery.tgjg-has-skeleton .tgjg-frame.is-loaded img.tgjg-image{animation:tgjg-reveal .22s ease-out both}
.tgjg-gallery .tgjg-frame.is-error{background:var(--tgjg-skeleton);display:grid;place-items:center;color:#b5b5b5}
.tgjg-gallery .tgjg-frame.is-error img.tgjg-image{display:none}
.tgjg-gallery .tgjg-image-error{font:inherit;font-size:12px;line-height:1.5;text-align:center;padding:10px;opacity:.85}
.tgjg-gallery .tgjg-image-error[hidden]{display:none!important}
@keyframes tgjg-shimmer{0%{transform:translateX(-110%)}70%,100%{transform:translateX(110%)}}
@keyframes tgjg-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.tgjg-gallery .tgjg-frame::before,.tgjg-gallery .tgjg-frame img.tgjg-image{animation:none!important}}
@media(scripting:none){.tgjg-gallery .tgjg-frame.is-loading{background:transparent!important}.tgjg-gallery .tgjg-frame.is-loading::before,.tgjg-gallery .tgjg-frame.is-loading::after{display:none}}
