/* Space Jam Radio / editorial image explorer.
 * Grid layout, image-cell image handling, and opened-content system are adapted
 * from Codrops GridZoom/src/css/base.css (MIT). Original source is included
 * alongside this file. Scoped prefixes prevent the demo's global styles leaking
 * into Space Jam Radio. GridZoom's GSAP animation behavior is in viewer.js.
 */

.sjr-gz-shell{--gz-bg:#08080a;--gz-edge:rgba(255,255,255,.17);--gz-text:#fafafa;--gz-muted:#aaaab2;position:fixed;inset:0;z-index:2147483400;background:rgba(2,2,3,.95);color:var(--gz-text);display:none;isolation:isolate;overflow:hidden;font-family:system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif}
.sjr-gz-shell[data-open='true']{display:flex;flex-direction:column}
.sjr-gz-top{height:77px;display:flex;align-items:center;gap:15px;flex:0 0 auto;padding:15px clamp(18px,3.6vw,58px);border-bottom:1px solid var(--gz-edge);background:rgba(10,10,12,.97);z-index:4}
.sjr-gz-heading{flex:1;min-width:0}
.sjr-gz-eyebrow{font:700 10px/1.2 system-ui,sans-serif;color:#ff3b62;text-transform:uppercase;letter-spacing:.16em}
.sjr-gz-heading h2{font:600 clamp(18px,2.4vw,27px)/1.05 system-ui,sans-serif!important;letter-spacing:-.035em;margin:3px 0 0!important;color:#fff!important;text-transform:none!important}
.sjr-gz-count{color:var(--gz-muted);font:600 11px/1 system-ui,sans-serif;white-space:nowrap;letter-spacing:.06em}
.sjr-gz-control{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:8px;border:1px solid var(--gz-edge);border-radius:50%;color:#fff;background:rgba(255,255,255,.06);cursor:pointer;transition:background .15s ease}
.sjr-gz-control:hover{background:rgba(255,255,255,.19)}
.sjr-gz-control:focus-visible,.sjr-gz-cell:focus-visible,.sjr-gz-cta:focus-visible{outline:2px solid #ff3154;outline-offset:3px}
.sjr-gz-control svg{width:20px;height:20px}
.sjr-gz-workspace{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:clamp(16px,3vw,44px) clamp(15px,3.6vw,58px);scrollbar-color:#575760 transparent}
/* Original GridZoom grid & image cell layout: adapted to real editorial photography. */
.sjr-gz-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:minmax(100px,clamp(130px,14vw,205px));gap:12px;max-width:1600px;margin:auto;padding:0 0 50px}
.sjr-gz-cell{display:block;border:0;text-align:left;color:#fff;background:#16161a;position:relative;overflow:hidden;cursor:pointer;border-radius:14px;padding:0;grid-column:span 3;grid-row:span 2;min-width:0;max-width:100%;isolation:isolate;transform-origin:center;transition:border-color .18s ease}
.sjr-gz-cell:nth-child(1){grid-column:span 5;grid-row:span 2}
.sjr-gz-cell:nth-child(2){grid-column:span 4;grid-row:span 2}
.sjr-gz-cell:nth-child(3){grid-column:span 3;grid-row:span 2}
.sjr-gz-cell:nth-child(4n + 4){grid-column:span 5;grid-row:span 2}
.sjr-gz-cell:nth-child(4n + 5){grid-column:span 4;grid-row:span 2}
.sjr-gz-cell:nth-child(4n + 6){grid-column:span 3;grid-row:span 2}
.sjr-gz-cell:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.45) 65%,rgba(0,0,0,.88) 100%);z-index:1;pointer-events:none}
.sjr-gz-cell-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--gz-focal,center 25%);display:block;transform:scale(1);transition:transform .5s cubic-bezier(.22,1,.36,1)}
.sjr-gz-cell.is-artwork .sjr-gz-cell-img{object-fit:contain;background:#151517}
@media(hover:hover){.sjr-gz-cell:hover .sjr-gz-cell-img{transform:scale(1.045)}}
.sjr-gz-cell-caption{position:absolute;bottom:0;left:0;right:0;padding:18px clamp(12px,2vw,22px) 20px;z-index:2;min-width:0;pointer-events:none}
.sjr-gz-cell-kind{font:700 10px/1.1 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#ff5474;display:block;margin-bottom:7px}
.sjr-gz-cell-title{display:block;max-width:42ch;font:650 clamp(19px,2vw,32px)/1.03 system-ui,sans-serif;letter-spacing:-.035em;overflow-wrap:break-word;text-wrap:balance}
.sjr-gz-cell:first-child .sjr-gz-cell-title{font-size:clamp(28px,3.1vw,46px)}
.sjr-gz-detail{position:absolute;inset:77px 0 0;z-index:3;display:none;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);background:#09090b;overflow:hidden}
.sjr-gz-shell[data-detail='true'] .sjr-gz-detail{display:grid}
.sjr-gz-detail-art{position:relative;overflow:hidden;background:#161619;min-width:0;display:grid;place-items:center}
.sjr-gz-detail-art img{width:100%;height:100%;object-fit:var(--gz-fit,cover);object-position:var(--gz-focal,center 25%);opacity:0}
.sjr-gz-detail-copy{padding:clamp(25px,4.1vw,65px);display:flex;flex-direction:column;justify-content:center;min-width:0;overflow-y:auto;overscroll-behavior:contain}
.sjr-gz-detail-top{color:#ff5474;font:750 11px/1.2 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase}
.sjr-gz-detail-title{font:650 clamp(30px,3.5vw,65px)/.98 system-ui,sans-serif!important;color:#fff!important;letter-spacing:-.048em!important;overflow-wrap:break-word;text-wrap:balance;margin:17px 0!important}
.sjr-gz-detail-desc{font:400 clamp(14px,1.18vw,17px)/1.65 system-ui,sans-serif;color:#c4c4ca;max-width:57ch;margin:0 0 26px}
.sjr-gz-detail-meta{font:700 11px/1.2 system-ui,sans-serif;color:#93939b;letter-spacing:.07em;margin-top:20px}
.sjr-gz-cta{display:inline-flex;align-items:center;gap:20px;padding:13px 20px;border:1px solid #e6002e;background:#e6002e;color:#fff;text-decoration:none;font:700 12px/1.1 system-ui,sans-serif;border-radius:30px;width:max-content;max-width:100%;transition:background .2s ease}
.sjr-gz-cta:hover{background:#b50023}
.sjr-gz-cta[hidden]{display:none!important}
.sjr-gz-inline-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:26px}
.sjr-gz-inline-controls .sjr-gz-control{width:44px;min-width:44px}
.sjr-gz-back{position:absolute;left:clamp(20px,3.5vw,54px);top:25px;z-index:5}
.sjr-gz-fly{position:fixed;z-index:2147483403;pointer-events:none;object-fit:cover;background:#151517;will-change:top,left,width,height,opacity}
.sjr-gz-shell[data-detail=true] .sjr-gz-workspace{visibility:hidden;pointer-events:none}
@media(max-width:950px){.sjr-gz-grid{grid-auto-rows:165px}.sjr-gz-cell,.sjr-gz-cell:nth-child(n){grid-column:span 6;grid-row:span 2}.sjr-gz-cell:nth-child(3n + 1){grid-column:span 12;grid-row:span 2}.sjr-gz-cell:first-child .sjr-gz-cell-title{font-size:clamp(26px,3.5vw,37px)}}
@media(max-width:620px){.sjr-gz-top{height:65px;padding:11px 15px;gap:9px}.sjr-gz-heading h2{font-size:17px!important}.sjr-gz-count{font-size:10px}.sjr-gz-grid{grid-auto-rows:155px;gap:9px;padding-bottom:25px}.sjr-gz-cell,.sjr-gz-cell:nth-child(n){grid-column:span 6;grid-row:span 2;border-radius:12px}.sjr-gz-cell:nth-child(3n + 1){grid-column:span 12;grid-row:span 2}.sjr-gz-cell-caption{padding:12px 12px 15px}.sjr-gz-cell-title,.sjr-gz-cell:first-child .sjr-gz-cell-title{font-size:clamp(18px,5.2vw,29px)}.sjr-gz-cell-kind{font-size:9px}.sjr-gz-detail{inset:65px 0 0;display:none;grid-template-columns:1fr;grid-template-rows:minmax(0,45%) minmax(0,55%);overflow:auto}.sjr-gz-shell[data-detail=true] .sjr-gz-detail{display:grid}.sjr-gz-detail-copy{padding:22px 23px 36px;justify-content:flex-start}.sjr-gz-detail-title{font-size:clamp(27px,7.2vw,42px)!important;margin:11px 0!important}.sjr-gz-detail-desc{font-size:13px;line-height:1.5;margin-bottom:18px}.sjr-gz-detail-art img{object-position:center 24%}.sjr-gz-back{top:12px;left:12px}.sjr-gz-inline-controls{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.sjr-gz-shell *,.sjr-gz-launch{animation:none!important;transition:none!important}}

/* Validation sur iPhone : top-layer <dialog> prevents the site's legacy ULTRA
   popup and sticky header from painting over the gallery. */
.sjr-gz-shell{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;inset:0!important;background:#08080a!important}
.sjr-gz-shell::backdrop{background:rgba(0,0,0,.94)}
.sjr-gz-control:disabled{opacity:.3;cursor:default}
.sjr-gz-cell-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
@media(max-width:620px){
 .sjr-gz-cell-title{font-size:clamp(15px,4.2vw,20px)!important;-webkit-line-clamp:4;line-height:1.08}
 .sjr-gz-cell:first-child .sjr-gz-cell-title{font-size:clamp(22px,6.2vw,28px)!important;-webkit-line-clamp:3}
}

/* V4 finishing: no added demo CTAs or photographic-selection captions. */
#featured-news::before{content:none!important;display:none!important}
/* Artist photos open the original, fully functional gallery when pressed.
   Editorial titles and links retain their regular navigation behavior. */
img[data-sjr-gallery-photo="true"]{cursor:zoom-in}
img[data-sjr-gallery-photo="true"]:focus-visible{outline:2px solid #e6002e!important;outline-offset:3px}

/* ULTRA advertisement: fix the column geometry, not its stacking order.
   Previous CSS allocated 145px to a 237px-wide callout: it overlapped the artist. */
@media(min-width:801px){
 main .u2k-wide .u2k-banner{
   grid-template-columns:minmax(0,1fr) minmax(132px,170px) minmax(202px,238px)!important;
   column-gap:clamp(10px,1.2vw,17px)!important;
 }
 main .u2k-wide .u2k-banner-copy{min-width:0!important}
 main .u2k-wide .u2k-banner-preview{
   width:100%!important;max-width:170px!important;min-width:0!important;
   justify-self:center!important;
 }
 main .u2k-wide .u2k-visit{
   grid-column:3;justify-self:stretch!important;align-self:center;
   box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;
   white-space:normal!important;overflow-wrap:normal!important;
   font:900 clamp(16px,1.6vw,23px)/1.07 Impact,'Arial Narrow',Arial,sans-serif!important;
   padding:12px 7px 10px!important;position:relative;
 }
}
/* Tablet layout intentionally has no callout, as in the original website. */
@media(max-width:800px){main .u2k-wide .u2k-banner-preview{max-width:100%!important}}
