/* Old Mill Theatre — static rebuild of the Wix site, laid out to match it exactly.
 *
 * How positioning works: every element with class "a" (an "atom") inside a section ".s" carries its
 * measured box as CSS variables, in px relative to a centred column:
 *     --x --y --w --h        desktop  (980px column)          --sh   section height
 *     --mx --my --mw --mh    mobile   (320px column)          --msh  section height
 * "bleed" / "mbleed" atoms span the full window width instead. Text atoms (".t") take their height from
 * their content. Mobile overrides of inline type use --m-<prop> variables (see the block at the end).
 */

/* ---- fonts. Family names match the old site's so imported inline styles resolve unchanged. */
@font-face { font-family: "oswald-extralight"; font-weight: 400; font-display: swap; src: url(/assets/fonts/oswald-extralight.woff2) format("woff2"); }
@font-face { font-family: "oswald-extralight"; font-weight: 700; font-display: swap; src: url(/assets/fonts/oswald-extralight-bold.woff2) format("woff2"); }
@font-face { font-family: "oswald-medium"; font-weight: 400; font-display: swap; src: url(/assets/fonts/oswald-medium.woff2) format("woff2"); }
@font-face { font-family: "oswald-medium"; font-weight: 700; font-display: swap; src: url(/assets/fonts/oswald-medium-bold.woff2) format("woff2"); }
@font-face { font-family: "aboreto"; font-weight: 400; font-display: swap; src: url(/assets/fonts/aboreto.woff2) format("woff2"); }
@font-face { font-family: "questrial"; font-weight: 400; font-display: swap; src: url(/assets/fonts/questrial.woff2) format("woff2"); }
/* Substitutes for two commercial faces that were licensed through Wix and cannot be self-hosted:
   Futura LT (Previous Shows pages) -> Jost;  Alliance No.2 (one "Download Program" button) -> DM Sans. */
/* Declared as regular weight only: Wix had no bold Futura file either, so bold is synthesised the same way.
   size-adjust matches Jost's set width to Futura Book's, as measured on the Previous Productions table. */
@font-face { font-family: "futura-lt-w01-book"; font-weight: 400; font-display: swap; size-adjust: 103.5%; src: url(/assets/fonts/jost.woff2) format("woff2"); }
@font-face { font-family: "futura-lt-w01-light"; font-weight: 400; font-display: swap; size-adjust: 103.5%; src: url(/assets/fonts/jost.woff2) format("woff2"); }
@font-face { font-family: "alliance-no-2"; font-weight: 700; font-display: swap; size-adjust: 105.8%; /* = the original's measured label width */ src: url(/assets/fonts/dmsans-700.woff2) format("woff2"); }

/* ---- page */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 980px; overflow-x: hidden; background: #000; color: #fff; font: 16px/1.4 questrial, sans-serif; }
img { border: 0; }
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.page-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; border-radius: 24px; background: #fff; color: #116dff; font: 14px Helvetica, Arial, sans-serif; }
.skip:focus { left: 50%; top: 60px; transform: translateX(-50%); }
main { display: block; }

/* ---- sections and atoms (desktop) */
.s { position: relative; height: calc(var(--sh) * 1px); }
.a { position: absolute; left: calc(50% - 490px + var(--x) * 1px); top: calc(var(--y) * 1px); width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); margin: 0; }
.a.bleed { left: 0; width: 100%; }
.m-only { display: none !important; }
img.a, .fill { display: block; object-fit: cover; }
.fill { width: 100%; height: 100%; }
a.a { display: block; color: inherit; text-decoration: none; }

/* text blocks: content flows, every font property arrives inline from the import */
.a.t { height: auto; font-weight: 400; font-style: normal; letter-spacing: normal; text-align: start; text-transform: none; overflow-wrap: break-word; }
.t p, .t h1, .t h2, .t h3, .t h4, .t h5, .t h6, .t ul, .t ol, .t li, .t blockquote { margin: 0; padding: 0; font: inherit; letter-spacing: inherit; }
.t ul, .t ol { list-style: none; }
.t li { display: list-item; }
.t a { color: inherit; text-decoration: none; }
.t a:hover { opacity: .8; }
.t b, .t strong { font-weight: inherit; }
.t i, .t em { font-style: inherit; }
.t u { text-decoration: none; }
.t .blank { height: calc(var(--bh) * 1px); }

/* buttons and stray labels */
.a.btn { display: flex; align-items: center; justify-content: center; white-space: nowrap; border: 0; padding: 0; font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none; text-decoration: none; transition: box-shadow .2s ease; }
a.btn, button.btn { cursor: pointer; }
.a.l { white-space: nowrap; font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none; line-height: calc(var(--h) * 1px) !important; }
.a.svg > svg { display: block; width: 100%; height: 100%; }

/* ---- mobile: the 320px design. assets/viewport.js sets the viewport to width=320 on phones, exactly
        as the Wix mobile site does, so these px values scale to the device like the original. */
@media (max-width: 749px) {
  body { min-width: 0; }
  .s { height: calc(var(--msh) * 1px); order: var(--mo, 0); }
  main { display: flex; flex-direction: column; }   /* the mobile design orders some sections differently: --mo */
  .a, .a.bleed { left: calc(50% - 160px + var(--mx) * 1px); top: calc(var(--my) * 1px); width: calc(var(--mw) * 1px); height: calc(var(--mh) * 1px); }
  .a.mbleed { left: 0; width: 100%; }
  .a.t { height: auto; }
  .a.l { line-height: calc(var(--mh) * 1px) !important; }
  .t .blank { height: calc(var(--m-bh, var(--bh)) * 1px); }
  .d-only { display: none !important; }
  .m-only { display: block !important; }
  .m-only.btn { display: flex !important; }
  .m-sticky { position: sticky; top: 0; z-index: 50; }
  /* --m-* : mobile values for properties set inline (generated list — keep in sync with ABBR in scripts/import-wix.js) */
  [style*="--m-fs:"] { font-size: var(--m-fs) !important; }
  [style*="--m-lh:"] { line-height: var(--m-lh) !important; }
  [style*="--m-ta:"] { text-align: var(--m-ta) !important; }
  [style*="--m-ls:"] { letter-spacing: var(--m-ls) !important; }
  [style*="--m-c:"] { color: var(--m-c) !important; }
  [style*="--m-fw:"] { font-weight: var(--m-fw) !important; }
  [style*="--m-ff:"] { font-family: var(--m-ff) !important; }
  [style*="--m-fst:"] { font-style: var(--m-fst) !important; }
  [style*="--m-mt:"] { margin-top: var(--m-mt) !important; }
  [style*="--m-mb:"] { margin-bottom: var(--m-mb) !important; }
  [style*="--m-ml:"] { margin-left: var(--m-ml) !important; }
  [style*="--m-pl:"] { padding-left: var(--m-pl) !important; }
  [style*="--m-td:"] { text-decoration-line: var(--m-td) !important; }
  [style*="--m-tsh:"] { text-shadow: var(--m-tsh) !important; }
  [style*="--m-tt:"] { text-transform: var(--m-tt) !important; }
  [style*="--m-va:"] { vertical-align: var(--m-va) !important; }
  [style*="--m-lst:"] { list-style-type: var(--m-lst) !important; }
  [style*="--m-op:"] { object-position: var(--m-op) !important; }
  [style*="--m-o:"] { opacity: var(--m-o) !important; }
  [style*="--m-bg:"] { background-color: var(--m-bg) !important; }
  [style*="--m-bgs:"] { background-size: var(--m-bgs) !important; }
  [style*="--m-bgp:"] { background-position: var(--m-bgp) !important; }
  [style*="--m-rad:"] { border-radius: var(--m-rad) !important; }
  /* Wix's phone backdrop is the viewport + 79px (measured at three sizes), top-aligned and clipped */
  .page-bg img { height: calc(100% + 79px); }
}

/* =====================================================================================================
   Hand-built parts: header menu, mobile menu, widgets (scripts/widgets.js), lightbox
   ===================================================================================================== */

/* buttons darken on hover like the old site (its fill dropped to 75% alpha over the dark page) */
a.btn:hover, button.btn:hover { filter: none; box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .25); }

/* ---- desktop menu */
.nav a { position: absolute; top: 0; text-align: center; font: 400 14px/40px oswald-extralight, oswald, sans-serif; color: #fff; text-decoration: none; white-space: nowrap; transition: color .4s ease; }
.nav a:hover, .nav a[aria-current] { color: rgb(204, 4, 4); }

/* ---- mobile menu: burger in the header, full-screen overlay */
.burger span { position: absolute; left: 14px; width: 22px; height: 2px; border-radius: 2px; background: #fff; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 24px; } .burger span:nth-child(3) { top: 33px; }
.menu { display: none; }

/* ---- footer social icons */
.social svg { display: block; width: 100%; height: 100%; }
.social:hover { opacity: .75; }

/* ---- subscribe strip (one link dressed as a form) */
.subscribe { display: block; }
.sub-f { position: absolute; top: 20px; width: 252px; height: 51px; padding-left: 24px; background: rgb(111, 101, 140); color: #fff; font: 400 12px/51px oswald-extralight, oswald, sans-serif; white-space: nowrap; }
.sub-f:nth-child(1) { left: 0; } .sub-f:nth-child(2) { left: 263px; } .sub-f:nth-child(3) { left: 526px; }
.sub-f.sub-go { left: 789px; width: 190px; padding: 0; text-align: center; font-size: 14px; }
.subscribe:hover .sub-go { background: rgb(128, 118, 158); }

/* ---- contact form */
.cform { margin: 0; }
.cf, .cf-submit, .cf-status { position: absolute; margin: 0; }
.cf { border: 0; border-radius: 7px; padding: 3px 3px 3px 22px; background: rgba(255, 255, 255, .62); color: #fff; font: 400 15px/21px oswald-extralight, oswald, sans-serif; appearance: none; -webkit-appearance: none; }
.cf::placeholder { color: #fff; opacity: 1; }
.cf:hover { background: rgba(255, 255, 255, .7); }
.cf:focus { outline: 2px solid rgb(199, 193, 217); outline-offset: 0; background: rgba(255, 255, 255, .7); }
textarea.cf { padding: 11.25px 10px 3px 22px; resize: none; }
.cf-first { left: 1px; top: 2px; width: 245px; height: 50px; }
.cf-last { left: 264px; top: 2px; width: 245px; height: 50px; }
.cf-email { left: 1px; top: 68px; width: 245px; height: 50px; }
.cf-phone { left: 264px; top: 68px; width: 245px; height: 50px; }
.cf-address { left: 1px; top: 134px; width: 510px; height: 55px; }
.cf-message { left: 1px; top: 206px; width: 510px; height: 80px; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-submit { left: 185px; top: 309px; width: 142px; height: 47px; border: 0; border-radius: 300px; padding: 0; background: rgb(199, 193, 217); color: #fff; font: 400 15px/21px oswald-extralight, oswald, sans-serif; cursor: pointer; transition: background-color .2s ease; }
.cf-submit:hover { background: rgb(111, 101, 140); }
.cf-submit:disabled { opacity: .6; cursor: default; }
.cf-status { left: 8px; top: 365px; width: 498px; min-height: 22px; text-align: center; color: #fff; font: 400 15px/22px oswald-extralight, oswald, sans-serif; }
.cf-status.err { color: rgb(255, 170, 170); }

/* ---- venue gallery */
.gallery { overflow: hidden; }
.gal-track { display: flex; column-gap: 20px; height: 100%; padding: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; align-items: center; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-item { flex: 0 0 324px; height: 432px; scroll-snap-align: start; overflow: hidden; display: block; }
.gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal-item:hover img { transform: scale(1.03); }
.gal-arrow { position: absolute; top: calc(50% - 32.5px); width: 75px; height: 75px; border: 0; padding: 0; background: rgba(255, 255, 255, .8); color: #000; cursor: pointer; }
.gal-arrow[hidden] { display: none; }
.gal-arrow svg { display: block; width: 36px; height: 36px; margin: auto; }
.gal-prev { left: 23px; } .gal-next { right: 23px; }
.map { border: 0; }

/* ---- previous productions table */
.ptable { color: #fff; font-family: futura-lt-w01-book, sans-serif; }
.pt-scroll { height: 100%; overflow: auto; background: rgb(230, 122, 131); }
.ptable table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptable th { position: sticky; top: 0; height: 42px; padding: 0 10px; background: rgb(230, 122, 131); font: 700 16px/22.4px futura-lt-w01-book, sans-serif; text-align: center; }
.ptable td { padding: 0 10px; font-size: 12px; line-height: 16.8px; text-align: center; }
.ptable td > div { display: flex; align-items: safe center; justify-content: center; height: 35px; overflow: hidden; }   /* fixed rows, as on the old site: one line is centred, a wrapped title starts at the top and clips */
.ptable th:first-child, .ptable td:first-child { width: 50px; padding-left: 0; padding-right: 0; }
.ptable th:nth-child(2) { width: 354px; }   /* measured: 50 / 354 / 350 */
.ptable tbody tr:nth-child(odd) { background: rgb(233, 77, 91); }
.pt-pager { position: absolute; top: calc(100% + 12px); right: 0; display: flex; align-items: center; color: #000; font-size: 12px; line-height: 16.8px; }
.pt-pager[hidden] { display: none; }
.pt-pager button { width: 20px; height: 26px; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.pt-pager button:disabled { opacity: .3; cursor: default; }
.pt-pager svg { display: block; width: 20px; height: 26px; }
.pt-label { min-width: 62px; text-align: center; white-space: nowrap; }

/* ---- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .93); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font: 300 48px/1 sans-serif; cursor: pointer; padding: 12px 18px; opacity: .85; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; } .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); } .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-open, .lb-open body { overflow: hidden; }

@media (max-width: 749px) {
  .menu-open .menu, .menu:target { display: block; position: fixed; inset: 0; z-index: 100; background: #000; overflow-y: auto; }
  .menu nav { position: absolute; left: 11px; top: 28px; width: 305px; }
  .menu nav a { display: block; height: 57px; font: 400 20px/57px oswald-extralight, oswald, sans-serif; color: #fff; text-align: center; text-decoration: none; }
  .menu nav a[aria-current] { color: rgb(204, 4, 4); }
  .menu-close { position: absolute; right: 0; top: 0; width: 50px; height: 50px; }
  .menu-close::before, .menu-close::after { content: ""; position: absolute; left: 14px; top: 24px; width: 22px; height: 2px; background: #fff; transform: rotate(45deg); }
  .menu-close::after { transform: rotate(-45deg); }
  .menu-open, .menu-open body { overflow: hidden; }

  .sub-f, .sub-f:nth-child(n) { left: 10px; width: 280px; height: 53px; line-height: 53px; font-size: 13px; }
  .sub-f:nth-child(1) { top: 10px; } .sub-f:nth-child(2) { top: 73px; } .sub-f:nth-child(3) { top: 136px; }
  .sub-f.sub-go { top: 199px; height: 42px; line-height: 42px; font-size: 14px; }

  .cf, .cf-first, .cf-last, .cf-email, .cf-phone, .cf-address, .cf-message { left: 10px; width: 260px; height: 53px; }
  .cf-first { top: 10px; } .cf-last { top: 73px; } .cf-email { top: 136px; } .cf-phone { top: 199px; } .cf-address { top: 262px; } .cf-message { top: 325px; }
  .cf-submit { left: 80px; top: 388px; width: 120px; height: 42px; }
  .cf-status { left: 10px; top: 440px; width: 260px; }

  .gal-track { column-gap: 16.4px; }
  .gal-item { flex-basis: 146.6px; height: 195.6px; }
  .gal-arrow { top: calc(50% - 22px); width: 45px; height: 45px; }
  .gal-arrow svg { width: 24px; height: 24px; }
  .gal-prev { left: 5px; } .gal-next { right: 5px; }

  .ptable table { width: 256px; }             /* measured on the phone design: 50 / 102 / 104, 96px of text in each */
  .ptable th:nth-child(2) { width: 102px; }
  .ptable th, .ptable td { padding-left: 3px; padding-right: 3px; }
  .ptable th:last-child, .ptable td:last-child { padding-left: 4px; padding-right: 4px; }
}
