/* WordPress additions to the design */

/* hidden trap field for spam bots */
.hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden;}
.cf-turnstile{margin:0 0 14px;}
.err{color:#B3261E;font-size:14px;margin:0 0 12px;}
.ie8-form button[type=submit]:disabled{opacity:.6;cursor:wait;}

/* line-up before the page script shuffles it (and for anyone without JavaScript) */
a.cover{display:block;color:inherit;text-decoration:none;}

/* keep the sticky header under the WordPress toolbar when logged in */
.admin-bar .top{top:calc(32px + env(safe-area-inset-top,0px));}
@media(max-width:782px){.admin-bar .top{top:calc(46px + env(safe-area-inset-top,0px));}}
@media(max-width:600px){.admin-bar .top{top:env(safe-area-inset-top,0px);}}
.admin-bar .sheet:not(.is-page){top:32px;}
@media(max-width:782px){.admin-bar .sheet:not(.is-page){top:46px;}}

/* an act's own page: the profile printed as a page rather than a pop-up */
.sheet.is-page{position:relative;inset:auto;z-index:auto;transform:none;visibility:visible;overflow:visible;transition:none;}
.sheet.is-page .sheet-bar{position:static;padding-block:12px;}
.sheet.is-page .close{text-decoration:none;color:var(--ink);display:inline-block;}
.sheet.is-page .close:hover{color:var(--paper);}
.sheet.is-page a.btn{text-decoration:none;display:inline-block;}

/* Instagram: one row of six small square posts on computers, three across (two rows) on phones */
.ig-grid{grid-template-columns:repeat(6,1fr) !important;gap:8px !important;}
.ig-grid .ig-tile:nth-child(n+7){display:none;}
.ig-cap{padding:28px 10px 10px;font-size:12.5px;}
.ig-play{top:8px;right:8px;width:20px;height:20px;}
@media(max-width:860px){.ig-grid{grid-template-columns:repeat(3,1fr) !important;gap:6px !important;}}

/* Instagram Feed Pro squeezed into the same grid, whatever its own feed settings say */
.ig-feed #sb_instagram{padding:0 !important;width:100% !important;max-width:none !important;}
.ig-feed #sb_instagram .sb_instagram_header,.ig-feed #sb_instagram .sbi_header,.ig-feed #sb_instagram #sbi_load{display:none !important;}
.ig-feed #sb_instagram #sbi_images{display:grid !important;grid-template-columns:repeat(6,1fr) !important;gap:8px !important;padding:0 !important;width:100% !important;}
.ig-feed #sb_instagram #sbi_images .sbi_item{width:auto !important;max-width:none !important;padding:0 !important;margin:0 !important;float:none !important;min-width:0;}
.ig-feed #sb_instagram #sbi_images .sbi_item:nth-child(n+7){display:none !important;}
.ig-feed #sb_instagram .sbi_photo_wrap{position:relative;overflow:hidden;aspect-ratio:1/1;background:var(--ink);}
.ig-feed #sb_instagram .sbi_photo{display:block !important;width:100% !important;height:100% !important;background-size:cover !important;background-position:center !important;}
.ig-feed #sb_instagram .sbi_photo img{width:100% !important;height:100% !important;object-fit:cover;}
@media(max-width:860px){.ig-feed #sb_instagram #sbi_images{grid-template-columns:repeat(3,1fr) !important;gap:6px !important;}}

/* page content written in the editor */
.legal-in img{height:auto;}
.legal-in h1 em{font-style:italic;}

/* an act's video loop, between the profile and the gallery */
.p-reel{margin-top:clamp(20px,2.5vw,32px);}
.p-reel video{height:clamp(240px,42vw,70vh);}

/* menu: a thick colour bar appears at the start of the word on hover, like the email signature (blue, yellow, green) */
.top nav .links a{position:relative;}
.top nav .links a:hover,.top nav .links a[aria-current]{text-decoration:none;}
.top nav .links a::before{content:"";position:absolute;left:-9px;top:50%;width:3px;height:1.15em;background:var(--bar,var(--cobalt));
  transform:translateY(-50%) scaleY(0);transform-origin:50% 50%;transition:transform .18s ease;}
.top nav .links a:hover::before,.top nav .links a:focus-visible::before,.top nav .links a[aria-current]::before,.top nav .links a.is-here::before{transform:translateY(-50%) scaleY(1);}
.top nav .links a:nth-child(3n+1){--bar:var(--cobalt);}
.top nav .links a:nth-child(3n+2){--bar:var(--lemon);}
.top nav .links a:nth-child(3n+3){--bar:var(--mint);}
.top nav .links a:nth-child(4){--bar:var(--pink);} /* Contact: a fourth colour */
@media(max-width:720px){
  .top nav.open .links a{padding-left:14px;}
  .top nav.open .links a::before{left:0;}
}
@media (prefers-reduced-motion:reduce){.top nav .links a::before{transition:none;}}

/* line-up search, styled like the filter pills */
.r-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.find{position:relative;display:flex;align-items:center;}
.find svg{position:absolute;left:14px;color:var(--ink);pointer-events:none;}
.find input{font:inherit;font-weight:500;font-size:14px;width:230px;padding:9px 16px 9px 38px;border:1.5px solid var(--ink);border-radius:999px;background:transparent;color:var(--ink);-webkit-appearance:none;appearance:none;}
.find input::placeholder{color:var(--grey);}
.find input:focus{outline:none;box-shadow:0 0 0 3px var(--lemon);}
.find input::-webkit-search-cancel-button{cursor:pointer;}
.screen-reader-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.find-none{margin:0 0 20px;font-size:16px;color:var(--grey);}
.find-none button{font:inherit;color:var(--ink);background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
@media(max-width:720px){.r-tools{width:100%;}.find{flex:1 1 100%;}.find input{width:100%;font-size:16px;}}

/* every Close button sits in the same spot: where the profile's Close is */
.lb .close{top:calc(12px + env(safe-area-inset-top,0px));right:max(var(--side),env(safe-area-inset-right,0px));}
.admin-bar .lb .close{top:calc(44px + env(safe-area-inset-top,0px)) !important;}
@media(max-width:782px){.admin-bar .lb .close{top:calc(58px + env(safe-area-inset-top,0px)) !important;}}


/* Instagram post card: photo or video on the left, account and caption on the right (stacked on phones) */
.iglb .igcard{display:flex;width:min(940px,calc(100vw - 150px));height:min(640px,calc(100vh - 120px));height:min(640px,calc(100dvh - 120px));background:#fff;color:#111;border-radius:6px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(0,0,0,.6);}
.iglb .igcard-media{position:relative;flex:1 1 auto;min-width:0;background:#000;display:grid;place-items:center;overflow:hidden;}
/* pinned to the box so tall reels show whole (Safari otherwise sizes the video to its own full height and the card cuts it off) */
.iglb .igcard-img,.iglb .igcard-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-width:none;max-height:none;background:#000;}
.iglb .igcard-video{cursor:pointer;}
.iglb .igcard-play{grid-area:1/1;position:relative;z-index:3;width:76px;height:76px;border-radius:50%;border:0;display:grid;place-items:center;background:rgba(0,0,0,.55);color:#fff;cursor:pointer;transition:transform .2s ease,background .2s ease;text-decoration:none;}
.iglb .igcard-play svg{width:30px;height:30px;margin-left:4px;}
.iglb .igcard-play:hover{transform:scale(1.06);background:var(--pink);}
.iglb .igcard-play[hidden]{display:none;}
.iglb .igcard-mute{position:absolute;right:12px;bottom:12px;z-index:3;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;cursor:pointer;}
.iglb .igcard-mute svg{width:18px;height:18px;}
.iglb .igcard-mute.off svg path:last-child{opacity:.25;}
.iglb .igcard-side{flex:0 0 340px;display:flex;flex-direction:column;min-width:0;border-left:1px solid #EFEFEF;}
.iglb .igcard-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #EFEFEF;}
.iglb .igcard-av{width:34px;height:34px;border-radius:50%;overflow:hidden;flex:none;display:grid;place-items:center;background:#fff;box-shadow:0 0 0 1px #DBDBDB;}
.iglb .igcard-av img{width:100%;height:100%;object-fit:cover;max-width:none;}
.iglb .igcard-av img.is-logo{object-fit:contain;padding:4px;box-sizing:border-box;}
.iglb .igcard-user{font-weight:600;font-size:14px;color:#111;text-decoration:none;}
.iglb .igcard-follow{margin-left:auto;font-weight:600;font-size:14px;color:#0095F6;text-decoration:none;}
.iglb .igcard-follow:hover{color:#00376B;}
.iglb .igcard-body{flex:1 1 auto;overflow-y:auto;padding:16px;}
.iglb .igcard-cap{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.iglb .igcard-cap b{font-weight:600;margin-right:4px;}
.iglb .igtag{color:#00376B;}
.iglb .igcard-time{margin:10px 0 0;font-size:12px;color:#737373;letter-spacing:.02em;}
.iglb .igcard-time:empty{display:none;}
.iglb .igcard-foot{display:flex;align-items:center;gap:8px;padding:14px 16px;border-top:1px solid #EFEFEF;}
.iglb .igcard-foot svg{width:20px;height:20px;}
.iglb .igcard-foot a{font-weight:600;font-size:14px;color:#111;text-decoration:none;}
.iglb .igcard-foot a:hover{text-decoration:underline;text-underline-offset:3px;}
@media(max-width:760px){
  .iglb .igcard{flex-direction:column;width:calc(100vw - 24px);height:auto;max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);margin-top:28px;}
  .iglb .igcard-side{order:-1;flex:0 0 auto;border-left:0;display:contents;}
  .iglb .igcard-head{order:-2;}
  .iglb .igcard-media{order:-1;flex:0 0 auto;width:100%;height:min(62vh,125vw);height:min(62dvh,125vw);}
  .iglb .igcard-body{flex:0 1 auto;max-height:22vh;padding:12px 14px;}
  .iglb .igcard-foot{padding:12px 14px;}
  .iglb .lb-nav{display:none;}
}

.iglb .igcard-note{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3;padding:7px 12px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font-size:12.5px;font-weight:600;text-decoration:none;white-space:nowrap;}
.iglb .igcard-note:hover{background:var(--pink);color:#111;}

/* carousel posts */
.iglb .igcard-sl{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.85);color:#111;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.25);}
.iglb .igcard-sl svg{width:16px;height:16px;}
.iglb .igcard-sl.prev{left:12px;}
.iglb .igcard-sl.next{right:12px;}
.iglb .igcard-sl[hidden]{display:none;}
.iglb .igcard-dots{position:absolute;left:0;right:0;bottom:14px;z-index:3;display:flex;justify-content:center;gap:5px;pointer-events:none;}
.iglb .igcard-dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.45);}
.iglb .igcard-dots span.on{background:#fff;}
.iglb .igcard-media .igcard-note{bottom:34px;}

/* footer links: the same colour bar as the main menu, a fifth colour (orange) for Instagram */
.ft-cols ul a{position:relative;background:none !important;}
.ft-cols ul a::before{content:"";position:absolute;left:-9px;top:50%;width:3px;height:1.15em;background:var(--bar,var(--cobalt));transform:translateY(-50%) scaleY(0);transition:transform .18s ease;}
.ft-cols ul a:hover::before,.ft-cols ul a:focus-visible::before,.ft-cols ul a[aria-current]::before{transform:translateY(-50%) scaleY(1);}
.ft-cols ul li:nth-child(1) a{--bar:var(--cobalt);}
.ft-cols ul li:nth-child(2) a{--bar:var(--lemon);}
.ft-cols ul li:nth-child(3) a{--bar:var(--mint);}
.ft-cols ul li:nth-child(4) a{--bar:var(--pink);}
.ft-cols > div:last-child ul li:nth-child(1) a{--bar:var(--orange);}
@media (prefers-reduced-motion:reduce){.ft-cols ul a::before{transition:none;}}

/* hero card: hidden for a moment until the page script picks today's random act */
.flip.is-wait .nm,.flip.is-wait .tag,.flip.is-wait img,.flip.is-wait .issue{opacity:0;}

/* phones: WordPress's black admin bar scrolls away with the page (only shown when you're logged in),
   so pop-ups go right to the top and nothing shows behind them */
@media(max-width:600px){
  .admin-bar .sheet:not(.is-page){top:0;}
  .admin-bar .lb .close{top:calc(12px + env(safe-area-inset-top,0px)) !important;}
}

/* client logos: never taller than their tile, so tall ones (Ministry of Sound, Chelsea…) sit centred
   and don't jump when the wall swaps a logo in */
.logos li{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);}
.logos li > img{max-width:100%;max-height:100%;object-fit:contain;align-self:center;justify-self:center;}

/* jumping to a section (logo, menu, buttons) stops below the sticky header instead of hiding the first line under it */
html{scroll-padding-top:calc(var(--hdr,72px) + env(safe-area-inset-top,0px));}

/* profile photos: a grab hand shows the row can be dragged */
@media (hover:hover) and (pointer:fine){
  .gal{cursor:grab;}
  .gal button{cursor:zoom-in;}
  .gal.dragging,.gal.dragging button{cursor:grabbing;user-select:none;}
}

/* profile photos: no scroll bar (drag, swipe or side-scroll instead) */
.gal{scrollbar-width:none;-ms-overflow-style:none;padding-bottom:0;}
.gal::-webkit-scrollbar{display:none;height:0;}
