*, ::before, ::after { box-sizing: border-box; }
:root { --bg: #ffffff; --text: #111111; --muted: rgba(17,17,17,0.65); --line: rgba(0,0,0,0.12); --footer-space: 34px; }
html, body { margin: 0px; padding: 0px; background: var(--bg); color: var(--text); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizelegibility; font-weight: 300; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wp-site-blocks > header, .wp-site-blocks > footer, #masthead, #colophon, .site-header, .site-footer, .main-navigation, .nav-primary, .wp-block-template-part, .wp-block-site-title, .wp-block-navigation { display: none !important; }
.wp-site-blocks { padding: 0px !important; margin: 0px !important; min-height: 0px !important; }
.wp-site-blocks > main { padding: 0px !important; margin: 0px !important; }
body { min-height: 100vh; display: flex; flex-direction: column; }
#dlp-page { display: flex; flex-direction: column; min-height: 100vh; background: rgb(255, 255, 255); }
#dlp-header { position: relative; text-align: center; margin-bottom: 10px; height: auto; min-height: 44px; z-index: 80; flex: 0 0 auto; padding-top: 18px; }
.dlp-title-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 90; }
.dlp-masthead-line { position: relative; display: inline-flex; align-items: center; white-space: nowrap; }
.dlp-logo-trigger { display: inline-flex; align-items: center; padding: 0px; margin: 0px; line-height: 1; color: inherit; text-decoration: none; }
.dlp-logo-text-wrap { display: inline-flex; align-items: center; gap: 10px; }
.dlp-logo { font-size: clamp(1.45rem, 2vw, 2.2rem); font-weight: 300; letter-spacing: 0.12em; line-height: 1; color: rgba(17, 17, 17, 0.92); text-transform: uppercase; margin: 0px; }
.dlp-menu-icon { display: inline-flex; align-items: center; font-size: 0.9rem; font-weight: 300; line-height: 1; color: rgba(17, 17, 17, 0.62); transition: color 0.2s; transform: translateY(-1px); }
.dlp-logo-trigger:hover .dlp-menu-icon, body.dlp-menu-open .dlp-menu-icon { color: rgba(17, 17, 17, 0.92); }
.dlp-section-name { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 12px; font-size: clamp(0.92rem, 1.2vw, 1rem); font-weight: 300; letter-spacing: 0.04em; color: rgba(17, 17, 17, 0.55); line-height: 1; white-space: nowrap; }
.dlp-nav { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 18px; max-height: 0px; opacity: 0; overflow: hidden; transition: opacity 0.08s; z-index: 100; white-space: nowrap; padding-top: 6px; pointer-events: none; }
.dlp-title-toggle:hover .dlp-nav, .dlp-title-toggle:focus-within .dlp-nav, body.dlp-menu-open .dlp-nav { max-height: 420px; opacity: 1; pointer-events: auto; }
.dlp-nav a { font-size: clamp(0.78rem, 1vw, 0.88rem); font-weight: 300; color: rgba(17, 17, 17, 0.6); transition: color 0.2s; white-space: nowrap; text-decoration: none; letter-spacing: 0.04em; }
.dlp-nav a:hover { color: rgba(17, 17, 17, 0.88); }
#dlp-backdrop { display: none; position: fixed; inset: 0px; z-index: 50; cursor: pointer; }
body.dlp-menu-open #dlp-backdrop { display: block; }
#dlp-content { flex: 1 1 0%; width: 100%; margin: 0px auto; padding: 0 40px var(--footer-space); display: flex; flex-direction: column; align-items: center; justify-content: center; }
#dlp-content.dlp-inner { justify-content: flex-start; padding: 40px 0 var(--footer-space); align-items: flex-start; }
/* On a touch device (phone, iPad) the content box no longer stretches to fill the
   full viewport height. Without this, a short amount of content (e.g. one row of
   poster tiles on iPad landscape) still forced #dlp-content to grow to fill
   #dlp-page's min-height:100vh, shoving the footer all the way down to the bottom
   of the screen and leaving a large dead gap above it. Now the footer sits right
   after the content instead, and the whole page fits on one screen. */
html.is-touch #dlp-content.dlp-inner { flex: 0 1 auto; }
/* The Unit Stills homepage (id="dlp-content" class="dlp-inner dlp-home") is top-aligned
   like every other Unit Stills page by default -- the right call on a phone or tablet,
   where forcing it to sit dead-centre in a tall viewport just leaves big empty gaps
   above and below the poster grid. It centres again on a device with no touchscreen at
   all (a real laptop or desktop), matching how it originally looked -- there's normally
   room to spare there. This is deliberately keyed off touch support (a small inline
   script in index.html adds "is-touch" to <html> from navigator.maxTouchPoints) rather
   than a hover/pointer media query: iPads report themselves as hover-capable even
   without a trackpad attached, which made that approach centre (and re-break) on iPad. */
html:not(.is-touch) #dlp-content.dlp-inner.dlp-home { justify-content: center; align-items: center; }
.dlp-film-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: min(100% - 80px, 1100px); margin: 0px auto; }
.dlp-film-tile { position: relative; overflow: hidden; background: rgb(240, 240, 240); aspect-ratio: 2 / 3; display: block; }
.dlp-film-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s, opacity 0.45s; }
.dlp-film-tile:hover img { transform: scale(1.03); opacity: 0.85; }
/* Shown by default so the production title is readable on touch devices (phone, iPad),
   which have no hover state to reveal it. On a device with no touchscreen it fades in
   on hover instead, same as before -- see the .is-touch note above for why this is
   keyed off touch support rather than a hover/pointer media query. */
.dlp-film-tile-label { position: absolute; bottom: 0px; left: 0px; right: 0px; padding: 24px 14px 14px; background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent); color: rgb(255, 255, 255); font-size: 0.72rem; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; opacity: 1; transition: opacity 0.3s; }
html:not(.is-touch) .dlp-film-tile-label { opacity: 0; }
html:not(.is-touch) .dlp-film-tile:hover .dlp-film-tile-label { opacity: 1; }
.dlp-page-title { font-size: clamp(0.82rem, 1vw, 0.94rem); font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0px 0px 20px; text-align: center; width: 100%; }
.dlp-page-content { width: 100%; }
/* Plain-text pages (About, Contact, Privacy Policy) get the extra .dlp-text
   class on #dlp-content in their markup. Without it, .dlp-page-content just
   fills the full content width edge to edge and reads as a wall of text
   jammed against the left side of the screen. With it, the text column is
   centred on the page and capped at a comfortable reading width, while
   gallery pages (no .dlp-text class) are completely unaffected. */
#dlp-content.dlp-inner.dlp-text { align-items: center; }
#dlp-content.dlp-inner.dlp-text .dlp-page-content { max-width: 640px; }
.dlp-page-content p { line-height: 1.6; }
.dlp-page-content ul { margin: 0 0 20px; padding-left: 1.2em; line-height: 1.6; }
.dlp-page-content ul li { margin: 0 0 12px; }
.dlp-page-content ul li:last-child { margin-bottom: 0; }
.dlp-page-content ul li strong { font-weight: 500; }
.envira-gallery-wrap, .envira-gallery-public, .envira-gallery-theme-default { width: 100% !important; max-width: 100% !important; margin: 0px !important; padding: 0px !important; }
.envira-gallery-item a { display: block; overflow: hidden; }
.envira-gallery-item img { transition: opacity 0.3s !important; }
.envira-gallery-item:hover img { opacity: 0.85 !important; }
#dlp-footer { text-align: center; font-size: 0.74rem; font-weight: 300; letter-spacing: 0.04em; color: rgba(17, 17, 17, 0.3); padding: 0px 0px 20px; line-height: 1; }
@media (max-width: 900px) {
  #dlp-content { padding: 10px 24px var(--footer-space); }
  .dlp-film-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; width: min(100% - 40px, 600px); margin: 20px auto 0px; }
}
@media (max-width: 560px) {
  #dlp-header { padding-top: 14px; }
  .dlp-logo { font-size: 1.15rem; letter-spacing: 0.08em; }
  .dlp-section-name { font-size: 0.78rem; }
  .dlp-nav { flex-direction: column; gap: 10px; background: rgb(255, 255, 255); border: 1px solid var(--line); border-radius: 12px; box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 30px; padding: 14px 20px 18px; min-width: 200px; text-align: center; }
  .dlp-film-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; width: min(100% - 24px, 360px); margin: 16px auto 0px; }
  #dlp-content { padding: 10px 12px var(--footer-space); }
}
