/* TWells Creative Arts — public site */
:root {
  --ink: #444;
  --muted: #7d7d7d;
  --title: #858585;
  --link: #3b7ddd;
  --line: #bdbdbd;
  --bg: #fff;
  --gap: 8px;
  --title-font: "Gill Sans", "Gill Sans MT", "Gill Sans Nova", Calibri, "Trebuchet MS", sans-serif;
  --body-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--body-font); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0 24px; }
.site-title { margin: 0; font: 700 clamp(26px, 4.2vw, 36px)/1.15 var(--title-font); color: var(--title); letter-spacing: -.01em; }
.site-title a { color: inherit; text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 22px; }
.nav a { color: #333; font: 14px/1.4 var(--title-font); }
.nav a[aria-current] { font-weight: 700; }
.has-sub { position: relative; }
.sub {
  position: absolute; right: 0; top: 100%; z-index: 70; min-width: 220px; padding: 8px 0 !important;
  background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 5px 18px; white-space: nowrap; }
.sub a:hover { background: #f4f4f4; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: #555; }

/* Square grid */
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.cols-3 { --cols: 3; } .cols-4 { --cols: 4; } .cols-5 { --cols: 5; }
.tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f1f1f1; }
.tile img { display: block; }
.tile img.crop { position: absolute; max-width: none; }
.tile img.fit { width: 100%; height: 100%; object-fit: cover; }
.tile.logo { background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.tile.logo img { mix-blend-mode: multiply; }
.cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px;
  background: rgba(0,0,0,.45); color: #fff; text-align: center; font: 15px/1.35 var(--title-font);
  opacity: 0; transition: opacity .2s ease;
}
.cap small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
a.tile:hover .cap, a.tile:focus-visible .cap { opacity: 1; }
a.tile:hover { text-decoration: none; }
a.tile:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* Video squares */
.tile .play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(0,0,0,.5); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 4px 16px rgba(0,0,0,.35); transition: transform .2s, background .2s; pointer-events: none;
}
.tile .play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
a.tile.is-video:hover .play { transform: scale(1.1); background: rgba(0,0,0,.7); }
.cols-5 .tile .play { transform: scale(.8); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Text */
.text { max-width: 620px; margin: 56px auto 0; color: var(--muted); font-size: 15.5px; }
.text p { margin: 0 0 1.2em; }
/* Extra text blocks */
.tblock { margin-top: 36px; }
.tblock h2 { margin: 0 0 .6em; font: 700 19px/1.3 var(--title-font); color: #6f6f6f; letter-spacing: .01em; }
.tblock.align-center { text-align: center; }
.tblock.style-box { background: #f6f5f2; border: 1px solid #e6e3dc; border-radius: 4px; padding: 22px 26px 8px; }
.tblock.style-quote { border-left: 3px solid var(--fx-accent, var(--link)); padding: 2px 0 2px 22px; font-style: italic; font-size: 16.5px; color: #6a6a6a; }
.tblock.style-quote.align-center { border-left: 0; padding: 0 12px; }
.tblock.style-quote.align-center::before { content: "“"; display: block; font: 700 48px/0.6 Georgia, serif; color: var(--fx-accent, var(--link)); opacity: .5; margin-bottom: 10px; }
.tblock + .social { margin-top: 44px; }
.text .when { text-align: center; font-weight: 700; margin-top: 1.6em; }
.social { display: flex; justify-content: center; gap: 26px; margin: 40px 0 12px; }
.social a { color: var(--link); display: inline-flex; transition: transform .15s, color .15s; }
.social a:hover { transform: translateY(-1px); color: #0f5fb8; }
.social svg { width: 18px; height: 18px; }
.social.artist-links { margin-top: 28px; gap: 22px; }
.social.artist-links svg { width: 21px; height: 21px; }
.rights { text-align: center; font-size: 11px; letter-spacing: .18em; color: #555; margin: 0 0 48px; }
.foot { padding: 20px 0 60px; font-size: 13px; color: #444; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.94); display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; }
.lb.show { opacity: 1; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 48px 64px 8px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none; }
.lb-stage video { max-width: 100%; max-height: 100%; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-frame { width: min(100%, calc((100vh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-bar { color: #ddd; text-align: center; font: 13px/1.4 var(--body-font); padding: 10px 16px 18px; min-height: 48px; }
.lb-bar b { font-weight: 400; color: #fff; font-size: 15px; display: block; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .75; padding: 12px; }
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb-close { top: 6px; right: 10px; font-size: 32px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 44px; line-height: 1; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .cols-4, .cols-5 { --cols: 3; }
  .top { padding: 18px 0; }
  .nav-toggle { display: block; }
  .nav > ul { display: none; position: absolute; right: 16px; top: 64px; z-index: 30; flex-direction: column; gap: 0; background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 8px 0; max-height: 75vh; overflow: auto; min-width: 230px; }
  .nav.open > ul { display: flex; }
  .nav > ul > li > a { display: block; padding: 8px 18px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 10px !important; }
  .lb-stage { padding: 44px 8px 8px; }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 460px) {
  .cols-3, .cols-4, .cols-5 { --cols: 2; }
  :root { --gap: 6px; }
}
