.twod-pwg{font:inherit;color:inherit;--pwg-accent:var(--con-admin-color-text-strong,var(--e-global-color-primary,#001c3f));--pwg-border:var(--con-admin-color-border-soft,rgba(100,116,139,.22));--pwg-radius:4px}
.twod-pwg *{box-sizing:border-box}
.twod-pwg-crumbs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:.9em;margin:0 0 14px}
.twod-pwg-crumbs a{color:var(--pwg-accent);text-decoration:none}.twod-pwg-crumbs a:hover{text-decoration:underline}
.twod-pwg-separator,.twod-pwg-count{opacity:.65}
.twod-pwg-heading{font:inherit;font-size:clamp(1.25rem,2.5vw,1.65rem);font-weight:600;margin:0 0 18px}
/* Full-bleed album tiles: covers are art-directed; photos inside albums remain uncropped. */
.twod-pwg-albums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 26px}
.twod-pwg-album{position:relative;display:block;isolation:isolate;min-width:0;aspect-ratio:4/3;overflow:hidden;background:#15253a;border:1px solid var(--pwg-border);border-radius:4px;text-decoration:none;color:#fff;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.twod-pwg-album:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(0,18,45,.17);border-color:var(--pwg-accent)}
.twod-pwg-album-cover{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden;background:#15253a}
.twod-pwg-album-cover img,.twod-pwg .twod-pwg-album-cover img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;object-fit:cover;object-position:center;filter:none;transform:scale(1);transition:transform .35s ease}
.twod-pwg-album:hover .twod-pwg-album-cover img{transform:scale(1.035)}
.twod-pwg-album::after{content:"";position:absolute;inset:27% 0 0;z-index:1;pointer-events:none;background:linear-gradient(to bottom,transparent,rgba(0,12,29,.24) 35%,rgba(0,12,29,.86) 100%)}
.twod-pwg-album-info{position:absolute;z-index:2;bottom:0;left:0;right:0;padding:36px 15px 14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.twod-pwg-album-name{display:block;color:#fff;font-size:clamp(1rem,1.35vw,1.2rem);line-height:1.3;font-weight:600;text-shadow:0 1px 6px rgba(0,0,0,.25);overflow-wrap:anywhere}
.twod-pwg-count{display:block;color:rgba(255,255,255,.83);font-size:.82rem;line-height:1.4;font-weight:400;opacity:1;padding:0}
.twod-pwg-album-arrow{position:absolute;z-index:2;right:14px;bottom:17px;color:#fff;opacity:0;transform:translateX(-5px);transition:opacity .2s,transform .2s;font-size:20px}
.twod-pwg-album:hover .twod-pwg-album-arrow,.twod-pwg-album:focus-visible .twod-pwg-album-arrow{opacity:1;transform:translateX(0)}
.twod-pwg-empty-cover{height:100%;display:grid;place-items:center;color:#fff;font-size:3rem;opacity:.4}
@media(max-width:1100px){.twod-pwg-albums{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.twod-pwg-albums{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.twod-pwg-album{aspect-ratio:4/4.2}.twod-pwg-album-info{padding:28px 10px 10px}.twod-pwg-album-name{font-size:1rem}.twod-pwg-count{font-size:.77rem}.twod-pwg-album-arrow{display:none}}
@media(max-width:410px){.twod-pwg-albums{gap:8px}}
/* CSS columns create masonry without libraries or crop-based row alignment. */
.twod-pwg-photos{columns:4 205px;column-gap:12px;margin:0 0 22px}
.twod-pwg-photo{display:block;break-inside:avoid;position:relative;margin:0 0 12px;line-height:0;border-radius:4px;overflow:hidden;background:rgba(107,114,128,.07);outline-offset:3px}
.twod-pwg-photo img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;transition:filter .2s ease}
.twod-pwg-photo:hover img{filter:brightness(.9)}
.twod-pwg-photo:focus-visible,.twod-pwg-album:focus-visible{outline:2px solid var(--pwg-accent)}
.twod-pwg-message{padding:16px 0}
.twod-pwg-load{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;margin:18px 0 25px;font-size:.87rem;opacity:.85}
.twod-pwg-more{color:var(--pwg-accent);text-decoration:underline;text-underline-offset:3px}
.twod-pwg-lightbox{position:fixed;inset:0;background:rgba(7,12,21,.96);z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:55px 58px 76px;color:#fff}
.twod-pwg-lightbox[hidden]{display:none}
.twod-pwg-lightbox img{display:block;max-width:100%;max-height:calc(100dvh - 145px);width:auto;height:auto;object-fit:contain;box-shadow:0 8px 35px rgba(0,0,0,.2)}
.twod-pwg-lightbox button{appearance:none;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);color:#fff;border-radius:4px;min-width:40px;min-height:40px;cursor:pointer;font:inherit;font-size:24px;font-weight:400;display:grid;place-items:center;padding:0}
.twod-pwg-lightbox button:hover,.twod-pwg-lightbox button:focus-visible{background:rgba(255,255,255,.18)}
.twod-pwg-close{position:absolute;top:16px;right:16px}.twod-pwg-prev,.twod-pwg-next{position:absolute;top:50%;transform:translateY(-50%)}
.twod-pwg-prev{left:10px}.twod-pwg-next{right:10px}
.twod-pwg-caption{position:absolute;bottom:20px;left:16px;right:16px;text-align:center;font-size:.87rem;overflow-wrap:anywhere;opacity:.85}
@media(max-width:740px){.twod-pwg-photos{columns:2 155px;column-gap:9px}.twod-pwg-photo{margin-bottom:9px}.twod-pwg-lightbox{padding:55px 46px 72px}}
@media(max-width:370px){.twod-pwg-photos{columns:2 125px}}
@media(prefers-reduced-motion:reduce){.twod-pwg-album,.twod-pwg-photo img{transition:none}}
/* Album transitions preserve the masonry and site-wide style system. */
.twod-pwg{transition:opacity .14s ease}
.twod-pwg.twod-pwg-navigating{opacity:.48;pointer-events:none}
@media(prefers-reduced-motion:reduce){.twod-pwg{transition:none}}

@media(prefers-reduced-motion:reduce){.twod-pwg-album-cover img,.twod-pwg-album-arrow{transition:none}}

/* Con Admin token integration: no Con Admin stylesheets are enqueued by this plugin. */
.twod-pwg-album,.twod-pwg-photo,.twod-pwg-lightbox button{border-radius:var(--pwg-radius)}
.twod-pwg-albums{gap:clamp(10px,1.1vw,18px)}
.twod-pwg-album{aspect-ratio:5/4}
.twod-pwg-album-cover img{object-fit:cover}
.twod-pwg-album-info{padding-right:36px}
.twod-pwg-photos{column-gap:clamp(8px,1vw,14px)}
.twod-pwg-photo{background:transparent}
.twod-pwg-photo img{height:auto;aspect-ratio:auto}
.twod-pwg-crumbs a:focus-visible,.twod-pwg-lightbox button:focus-visible{outline:2px solid var(--pwg-accent);outline-offset:3px}
@media(max-width:680px){.twod-pwg-album{aspect-ratio:4/4.5}.twod-pwg-album-info{padding-right:10px}}

/* v1.3.0: unified compact gallery, robust against Elementor image defaults. */
.twod-pwg{--pwg-accent:var(--con-admin-color-brand,var(--e-global-color-primary,#001c3f));--pwg-muted:var(--con-admin-color-text-muted,#475569);--pwg-outline:var(--con-admin-color-border,#d7e3ef);max-width:100%;min-width:0}
.twod-pwg-crumbs{gap:8px;color:var(--pwg-muted);line-height:1.55}
.twod-pwg-crumbs [aria-current="page"]{color:inherit;font-weight:500}
.twod-pwg-heading{letter-spacing:-.025em;line-height:1.2;margin-bottom:clamp(16px,2vw,26px)}
.twod-pwg-albums{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.1vw,16px)}
.twod-pwg-album{aspect-ratio:5/4;box-shadow:none;border-color:var(--pwg-outline);transform:none}
.twod-pwg-album:hover{transform:translateY(-2px);box-shadow:0 8px 23px rgba(0,18,45,.15)}
.twod-pwg-album-cover img,.twod-pwg .twod-pwg-album-cover img{width:100%;height:100%;max-width:none;object-fit:cover}
.twod-pwg-album-info{padding:38px 30px 14px 14px}
.twod-pwg-count{opacity:.95}
.twod-pwg-photos{columns:4 210px;column-gap:12px}
.twod-pwg-photo{position:relative;contain:layout style;transform:translateZ(0)}
.twod-pwg-photo img,.twod-pwg .twod-pwg-photo img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.twod-pwg-photo::after{content:"";position:absolute;inset:0;border:1px solid rgba(0,0,0,.045);pointer-events:none;border-radius:inherit}
.twod-pwg-lightbox{background:rgba(5,12,23,.97);padding:62px 60px 76px;isolation:isolate}
.twod-pwg-lightbox img{max-height:calc(100dvh - 135px);max-width:min(100%,1400px);box-shadow:none}
.twod-pwg-lightbox img.twod-pwg-image-loading{opacity:.24}
.twod-pwg-lightbox button{width:44px;height:44px;touch-action:manipulation;transition:background .15s ease}
.twod-pwg-lightbox .twod-pwg-close{top:16px;right:16px}
.twod-pwg-caption{bottom:18px;line-height:1.5;color:rgba(255,255,255,.84);padding:0 48px}
.twod-pwg-lightbox .twod-pwg-counter{position:absolute;left:18px;top:23px;font-size:.8rem;color:rgba(255,255,255,.68);font-variant-numeric:tabular-nums}
.twod-pwg-load[data-state="loading"] .twod-pwg-load-status::before{content:"";display:inline-block;vertical-align:-2px;width:12px;height:12px;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:5px;animation:twod-pwg-spin .7s linear infinite}
@keyframes twod-pwg-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.twod-pwg-albums{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.twod-pwg-albums{grid-template-columns:repeat(2,minmax(0,1fr))}.twod-pwg-photos{columns:2 145px;column-gap:9px}.twod-pwg-lightbox{padding:66px 10px 80px}.twod-pwg-lightbox img{max-height:calc(100dvh - 165px)}.twod-pwg-lightbox .twod-pwg-prev{left:8px}.twod-pwg-lightbox .twod-pwg-next{right:8px}.twod-pwg-lightbox button{background:rgba(0,0,0,.48)}.twod-pwg-caption{padding:0 20px}}
@media(max-width:430px){.twod-pwg-album{aspect-ratio:4/4.5}.twod-pwg-album-name{font-size:.95rem}}
@media(prefers-reduced-motion:reduce){.twod-pwg-lightbox button{transition:none}.twod-pwg-load[data-state="loading"] .twod-pwg-load-status::before{animation:none}}

/* v1.3.1: immediate thumbnail preview, unobtrusive full-resolution progress. */
.twod-pwg-lightbox img.twod-pwg-preview{filter:blur(1px);opacity:1;transition:filter .18s ease}
.twod-pwg-lightbox.twod-pwg-resolving::after{content:"";position:absolute;bottom:58px;left:50%;width:22px;height:22px;margin-left:-11px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:5px;animation:twod-pwg-spin .8s linear infinite;pointer-events:none}
@media(prefers-reduced-motion:reduce){.twod-pwg-lightbox.twod-pwg-resolving::after{animation:none}}

/* 1.3.2: stable masonry - independent columns never rebalance when new pages append.
   The original CSS-column layout remains as a no-JavaScript fallback. */
.twod-pwg-photos.twod-pwg-stable{columns:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:12px}
.twod-pwg-masonry-col{display:flex;flex-direction:column;min-width:0;gap:12px}
.twod-pwg-stable .twod-pwg-photo{margin:0;width:100%;min-width:0;contain:layout style;transform:none}
.twod-pwg-stable .twod-pwg-photo[style*="aspect-ratio"]{height:auto}
.twod-pwg-stable .twod-pwg-photo img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:900px){.twod-pwg-photos.twod-pwg-stable{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.twod-pwg-masonry-col{gap:10px}}
@media(max-width:650px){.twod-pwg-photos.twod-pwg-stable{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.twod-pwg-masonry-col{gap:9px}}
/* Keep the reserved box stable even before a lazy image starts downloading. */
.twod-pwg-stable .twod-pwg-photo[style*="aspect-ratio"] img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.twod-pwg-stable .twod-pwg-photo:not([style*="aspect-ratio"]) img{position:static;width:100%;height:auto}

/* v1.3.4: stable page position during AJAX navigation and viewer scroll locking. */
.twod-pwg{overflow-anchor:none;scroll-margin-top:18px}
.twod-pwg.twod-pwg-navigating{opacity:.83;pointer-events:none}
.twod-pwg-photos.twod-pwg-stable{min-width:0}
.twod-pwg-lightbox{overscroll-behavior:contain}
@media(prefers-reduced-motion:reduce){.twod-pwg.twod-pwg-navigating{transition:none}}

/* v1.3.5: in-place photo/album loading states. Keep actual image dimensions and
   masonry column assignment stable; placeholders never affect box geometry. */
.twod-pwg{--pwg-skeleton-base:rgba(100,116,139,.11);--pwg-skeleton-sheen:rgba(255,255,255,.30)}
.twod-pwg-photo.twod-pwg-pending,.twod-pwg-album-cover.twod-pwg-pending{background:var(--pwg-skeleton-base);isolation:isolate}
.twod-pwg-photo.twod-pwg-pending::before,.twod-pwg-album-cover.twod-pwg-pending::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(105deg,transparent 32%,var(--pwg-skeleton-sheen) 50%,transparent 68%);background-size:220% 100%;animation:twod-pwg-shimmer 1.65s ease-in-out infinite}
.twod-pwg-photo.twod-pwg-pending img,.twod-pwg-album-cover.twod-pwg-pending img{opacity:0}
.twod-pwg-photo.twod-pwg-ready img,.twod-pwg-album-cover.twod-pwg-ready img{opacity:1;animation:twod-pwg-reveal .22s ease-out both}
.twod-pwg-photo.twod-pwg-image-error,.twod-pwg-album-cover.twod-pwg-image-error{background:var(--pwg-skeleton-base)}
.twod-pwg-photo.twod-pwg-image-error::before,.twod-pwg-album-cover.twod-pwg-image-error::before{content:"Image unavailable";position:absolute;inset:0;display:grid;place-items:center;color:var(--pwg-muted,#64748b);font-size:12px;line-height:1.5;z-index:1;text-align:center;padding:10px}
.twod-pwg-album-cover.twod-pwg-image-error::before{content:"Cover unavailable";color:#d0d8e3}
@keyframes twod-pwg-shimmer{from{background-position:180% 0}to{background-position:-180% 0}}
@keyframes twod-pwg-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.twod-pwg-photo.twod-pwg-pending::before,.twod-pwg-album-cover.twod-pwg-pending::before{animation:none;background:transparent}.twod-pwg-photo.twod-pwg-ready img,.twod-pwg-album-cover.twod-pwg-ready img{animation:none}}

/* v1.4.2: immediate, contained navigation feedback; content remains in place until ready. */
.twod-pwg.twod-pwg-navigating{position:relative;opacity:1;cursor:progress}
.twod-pwg.twod-pwg-navigating::before{content:"";position:absolute;inset:0;z-index:9;background:rgba(248,250,252,.16);pointer-events:auto}
.twod-pwg.twod-pwg-navigating::after{content:"";position:absolute;z-index:10;top:12px;right:12px;width:19px;height:19px;border:2px solid rgba(71,85,105,.22);border-top-color:var(--pwg-accent);border-radius:5px;animation:twod-pwg-spin .7s linear infinite;pointer-events:none}
.twod-pwg-lightbox{padding-bottom:55px}
.twod-pwg-lightbox img{max-height:calc(100dvh - 115px)}
.twod-pwg-caption{display:none}
@media(prefers-reduced-motion:reduce){.twod-pwg.twod-pwg-navigating::after{animation:none}}

/* v1.4.3: preserve one image viewport throughout preview-to-full replacement. */
.twod-pwg-lightbox > img{object-fit:contain;flex:0 0 auto;max-width:100%;max-height:calc(100dvh - 115px)}
@media(max-width:700px){.twod-pwg-lightbox > img{max-height:calc(100dvh - 165px)}}

/* v1.4.4: compact, container-flush heading and breadcrumbs. No Elementor page/container overrides. */
.twod-pwg{display:flow-root;margin:0;padding:0;width:100%;max-width:100%}
.twod-pwg .twod-pwg-heading{margin:0 0 5px;padding:0;line-height:1.12}
.twod-pwg .twod-pwg-crumbs{margin:0 0 13px;padding:0;gap:7px;line-height:1.4}
.twod-pwg .twod-pwg-albums{margin:0;padding:0;row-gap:clamp(10px,1.1vw,16px)}
.twod-pwg .twod-pwg-photos{margin:0;padding:0}
.twod-pwg .twod-pwg-heading + .twod-pwg-albums,.twod-pwg .twod-pwg-heading + .twod-pwg-photos{margin-top:12px}
.twod-pwg .twod-pwg-albums + .twod-pwg-photos{margin-top:12px}
@media(max-width:680px){.twod-pwg .twod-pwg-heading{margin-bottom:4px}.twod-pwg .twod-pwg-crumbs{margin-bottom:10px}}

/* v1.5.0: YouTube card gallery; zero player iframes until clicked. */
.twod-pwg-videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.twod-pwg-video{position:relative;display:block;min-width:0;aspect-ratio:16/10;overflow:hidden;border-radius:4px;background:#101b2c;color:#fff;text-decoration:none;isolation:isolate}
.twod-pwg-video-cover{position:absolute;inset:0;display:block;overflow:hidden;background:rgba(100,116,139,.15)}
.twod-pwg-video-cover img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;transition:transform .22s ease}
.twod-pwg-video:hover img,.twod-pwg-video:focus-visible img{transform:scale(1.025)}
.twod-pwg-video::after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.8));pointer-events:none}
.twod-pwg-video-play{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);z-index:1;display:grid;place-items:center;width:50px;height:38px;border-radius:4px;background:rgba(0,0,0,.73);color:#fff;font-size:18px;transition:background .15s ease}
.twod-pwg-video:hover .twod-pwg-video-play{background:#001c3f}
.twod-pwg-video-name{position:absolute;z-index:1;bottom:12px;left:12px;right:12px;font-weight:600;line-height:1.3;font-size:1rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.twod-pwg-video-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;background:rgba(5,12,23,.97);padding:65px 45px 40px}
.twod-pwg-video-frame{width:min(1200px,100%);aspect-ratio:16/9;max-height:calc(100dvh - 110px);background:#000;overflow:hidden}
.twod-pwg-video-frame iframe{display:block;width:100%;height:100%;border:0}
.twod-pwg-video-close{position:absolute;right:15px;top:14px;width:44px;height:44px;color:white;background:rgba(255,255,255,.1);border:0;border-radius:4px;font-size:30px;cursor:pointer}
.twod-pwg-video-open{overflow:hidden}
@media(max-width:900px){.twod-pwg-videos{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.twod-pwg-videos{grid-template-columns:1fr;gap:10px}.twod-pwg-video-modal{padding:55px 8px 30px}}
@media(prefers-reduced-motion:reduce){.twod-pwg-video-cover img,.twod-pwg-video-play{transition:none}}
/* Video tiles share the album geometry; playlist buttons reuse the actual Piwigo album-card markup. */
.twod-pwg-videos,.twod-pwg-playlist-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.1vw,16px)}
.twod-pwg-playlist-grid{margin:0;padding:0}
.twod-pwg-video{aspect-ratio:5/4;border-radius:4px}
.twod-pwg-video::after{content:"";position:absolute;inset:30% 0 0;background:linear-gradient(transparent,rgba(1,13,32,.88));pointer-events:none}
.twod-pwg-video-name{bottom:16px;left:18px;right:18px;font-size:clamp(.9rem,1.1vw,1.2rem);line-height:1.25;text-align:left;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.twod-pwg .twod-pwg-playlist-card{font:inherit;text-align:left;width:100%;min-width:0;padding:0;cursor:pointer;appearance:none;-webkit-appearance:none}
.twod-pwg .twod-pwg-playlist-card .twod-pwg-album-name{color:#fff}
.twod-pwg .twod-pwg-playlist-card .twod-pwg-count{color:rgba(255,255,255,.83)}
.twod-pwg .twod-pwg-playlist-card .twod-pwg-album-cover img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;display:block;transition:transform .35s ease}
.twod-pwg .twod-pwg-playlist-card:hover .twod-pwg-album-cover img{transform:scale(1.035)}
.twod-pwg-playlist-back,.twod-pwg-playlist-more{font:inherit;cursor:pointer;border:1px solid currentColor;border-radius:4px;padding:7px 12px;background:transparent;color:inherit;margin:0 0 12px}
.twod-pwg-playlist-more{margin:16px 0 0}
.twod-pwg-playlist-status{min-height:1.5em;font-size:.9rem;margin:8px 0}
.twod-pwg-playlist-view[hidden],.twod-pwg-playlist-home[hidden]{display:none}
@media(max-width:1100px){.twod-pwg-videos,.twod-pwg-playlist-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.twod-pwg-videos,.twod-pwg-playlist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:410px){.twod-pwg-videos,.twod-pwg-playlist-grid{gap:8px}.twod-pwg-video-name{bottom:10px;left:10px;right:10px}.twod-pwg-video-play{width:38px;height:29px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.twod-pwg .twod-pwg-playlist-card .twod-pwg-album-cover img{transition:none}}

/* YouTube-only 16:9 media surfaces. Piwigo album and masonry geometry is unchanged. */
.twod-pwg .twod-pwg-videos .twod-pwg-video,
.twod-pwg .twod-pwg-playlist-grid .twod-pwg-playlist-card{aspect-ratio:16 / 9;min-height:0}
.twod-pwg .twod-pwg-videos .twod-pwg-video-cover img,
.twod-pwg .twod-pwg-playlist-grid .twod-pwg-album-cover img{width:100%;height:100%;object-fit:contain;object-position:center;max-width:none;max-height:none}
.twod-pwg .twod-pwg-videos .twod-pwg-video-cover,
.twod-pwg .twod-pwg-playlist-grid .twod-pwg-album-cover{background:#101b2c}

/* v1.6.5: unified playlist navigation and legible video labels. */
.twod-pwg .twod-pwg-playlist-crumbs{display:flex;align-items:center;gap:8px;margin:0 0 13px;padding:0;color:var(--pwg-muted);font-size:.9em}
.twod-pwg .twod-pwg-playlist-crumbs[hidden]{display:none}
.twod-pwg .twod-pwg-playlist-crumbs .twod-pwg-playlist-back{appearance:none;display:inline;border:0;padding:0;margin:0;background:transparent;border-radius:0;color:var(--pwg-accent);font:inherit;line-height:inherit;text-decoration:none;cursor:pointer}
.twod-pwg .twod-pwg-playlist-crumbs .twod-pwg-playlist-back:hover{text-decoration:underline}
.twod-pwg .twod-pwg-playlist-crumbs .twod-pwg-playlist-back:focus-visible{outline:2px solid var(--pwg-accent);outline-offset:3px}
.twod-pwg .twod-pwg-video{color:#fff;text-decoration:none}
.twod-pwg .twod-pwg-video::after{z-index:1;inset:25% 0 0;background:linear-gradient(to bottom,rgba(0,12,31,0) 0%,rgba(0,12,31,.42) 42%,rgba(0,12,31,.96) 100%)}
.twod-pwg .twod-pwg-video .twod-pwg-video-name{z-index:3;position:absolute;bottom:11px;left:13px;right:13px;color:#fff;font-size:clamp(.85rem,1vw,1.05rem);font-weight:600;line-height:1.3;letter-spacing:0;text-shadow:0 1px 3px rgba(0,0,0,.8);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;opacity:1}
.twod-pwg .twod-pwg-video .twod-pwg-video-play{z-index:4}
@media(max-width:700px){.twod-pwg .twod-pwg-video .twod-pwg-video-name{bottom:9px;left:10px;right:10px}}
