.halligan-page { --halligan-pane-height: calc(100dvh - var(--site-header-height) - var(--dc-footer-rendered-height, 0px)); }
.halligan-page[data-dc-center-scroll] { container-type: size; --halligan-pane-height: 100cqh; }
.halligan-project { min-width: 0; }
.halligan-hero { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); padding-block: .5rem 1rem; }
.halligan-emblem { display: block; width: clamp(6rem, 12vw, 9rem); height: auto; object-fit: contain; flex: 0 0 auto; }
.halligan-hero h1 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.2; }
.halligan-wordmark { margin: .25rem 0; font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 700; letter-spacing: .16em; color: var(--dc-accent); }
.halligan-content > section { min-width: 0; margin-block: 2rem; }
.halligan-content > section:first-child { margin-top: 0; }
.halligan-film { margin: 1rem 0; text-align: center; }
.halligan-film video {
    --halligan-pane-height: calc(100dvh - var(--site-header-height) - var(--dc-footer-rendered-height, 0px));
    display: block;
    width: min(100%, max(0px, calc((var(--halligan-pane-height) - 7rem) * 16 / 9)));
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    margin-inline: auto;
    background: #000;
    scroll-margin-block: 1rem;
}
.halligan-page[data-dc-center-scroll] .halligan-film video { --halligan-pane-height: 100cqh; }
html.dc-height-scroll-layout .halligan-film video { --halligan-pane-height: 100dvh; }
.halligan-film figcaption { margin-top: .5rem; color: var(--dc-muted); font-size: .9rem; }
.halligan-section-heading, .halligan-dialog-heading, .halligan-expanded-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.halligan-section-heading h2 { margin: 0; line-height: 1.25; }
.halligan-section-heading p { margin: .125rem 0 .5rem; color: var(--dc-muted); }
.halligan-gallery { container-type: inline-size; }
.halligan-gallery-layout {
    display: grid;
    grid-template: "filters" "preview" "details" / minmax(0, 1fr);
    align-items: start;
    gap: .85rem clamp(.85rem, 2cqw, 1.5rem);
    margin-top: .75rem;
}
.halligan-filters { grid-area: filters; display: grid; gap: .55rem; min-width: 0; }
.halligan-filters label { display: grid; gap: .2rem; min-width: 0; font-size: .9rem; font-weight: 700; }
.halligan-filters select { width: 100%; min-width: 0; min-height: 2.75rem; padding: .45rem .5rem; border: 1px solid var(--dc-border); border-radius: 5px; color: var(--dc-text); background-color: var(--dc-input-background); font: inherit; font-weight: 400; }
.halligan-gallery button { min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid var(--dc-border-strong); border-radius: 5px; color: var(--dc-text); background: var(--dc-surface-soft); font: inherit; cursor: pointer; }
.halligan-gallery button:hover { background: var(--dc-surface-raised); }
.halligan-gallery button:disabled { color: var(--dc-disabled); cursor: default; opacity: .65; }
.halligan-gallery :is(button,select,[tabindex]):focus-visible, .halligan-gallery:focus-visible { outline: 3px solid var(--dc-focus); outline-offset: 3px; }
.halligan-viewer { grid-area: preview; min-width: 0; margin: 0; }
.halligan-stage {
    position: relative;
    display: grid;
    grid-template: minmax(0,1fr) / minmax(0,1fr);
    place-items: center;
    width: 100%;
    height: clamp(17rem, 100cqw, min(34rem, 65dvh));
    padding: .75rem 3.25rem;
    overflow: hidden;
    border-radius: 6px;
    touch-action: pan-y;
}
@container (min-width: 36rem) {
    .halligan-gallery-layout {
        grid-template: "filters preview" auto "details preview" 1fr / clamp(12.5rem, 25%, 18rem) minmax(0, 1fr);
    }
    .halligan-stage { height: clamp(23rem, 75cqw, clamp(23rem, calc(var(--halligan-pane-height) - 6rem), 48rem)); }
}
.halligan-content .halligan-stage img, .halligan-content .halligan-expanded-stage img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; margin: 0; border: 0; border-radius: 0; object-fit: contain; background: transparent; }
.halligan-stage[data-preview="black"], .halligan-expanded-stage[data-preview="black"] { background: #080808; }
.halligan-stage[data-preview="white"], .halligan-expanded-stage[data-preview="white"] { background: #fff; }
.halligan-stage[data-preview="gray"], .halligan-expanded-stage[data-preview="gray"] { background: #777; }
.halligan-stage[data-preview="checkerboard"], .halligan-expanded-stage[data-preview="checkerboard"] { background-color: #ddd; background-image: linear-gradient(45deg,#aaa 25%,transparent 25%),linear-gradient(-45deg,#aaa 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#aaa 75%),linear-gradient(-45deg,transparent 75%,#aaa 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; }
.halligan-gallery .halligan-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.75rem; padding: .5rem; color: var(--dc-text); background: var(--dc-surface); }
.halligan-arrow--previous { left: .5rem; }
.halligan-arrow--next { right: .5rem; }
.halligan-arrow svg { display: block; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; }
.halligan-gallery-details { grid-area: details; min-width: 0; padding-top: .65rem; border-top: 1px solid var(--dc-border); }
.halligan-content .halligan-gallery-details h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.halligan-content .halligan-position { margin: .25rem 0; color: var(--dc-muted); white-space: nowrap; }
.halligan-content .halligan-designation, .halligan-content .halligan-attribution { margin: .25rem 0; }
.halligan-attribution { color: var(--dc-muted); font-size: .9rem; overflow-wrap: anywhere; }
.halligan-attribution:empty { display: none; }
.halligan-gallery-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-block: .5rem; }
.halligan-gallery-actions button { padding-inline: .5rem; font-size: .85rem; }
.halligan-content .halligan-gallery-hint { margin: .35rem 0 0; color: var(--dc-muted); font-size: .9rem; }
.halligan-thumbnails {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
    gap: .35rem;
    max-height: 12rem;
    overflow-y: auto;
    padding: .2rem;
    scrollbar-gutter: stable;
}
.halligan-gallery .halligan-thumb { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; min-width: 0; width: 100%; aspect-ratio: 1; padding: .25rem; border: 2px solid transparent; background: var(--dc-surface-soft); }
.halligan-gallery .halligan-thumb:focus-visible { outline-offset: -3px; }
.halligan-gallery .halligan-thumb[aria-current="true"] { border-color: var(--dc-focus); background: var(--dc-surface-raised); }
.halligan-content .halligan-thumb img { width: 100%; height: 100%; object-fit: contain; background: transparent; margin: 0; border: 0; border-radius: 0; }
.halligan-gallery .halligan-empty { margin: 0; padding: 1rem; color: #eee; background: #222; text-align: center; }
.halligan-dialog { width: min(78rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); padding: 1rem; border: 1px solid var(--dc-border); border-radius: 6px; background: var(--dc-surface); color: var(--dc-text); }
.halligan-dialog::backdrop { background: rgba(0,0,0,.82); }
.halligan-dialog-heading { flex-wrap: nowrap; margin-bottom: .75rem; }
.halligan-content .halligan-dialog-heading h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.halligan-dialog-heading button { flex-shrink: 0; }
.halligan-expanded-stage { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; height: min(72dvh, 56rem); min-height: 8rem; padding: .5rem; }
.halligan-expanded-controls { margin-top: .75rem; }
.halligan-color-descriptions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: 1rem 2rem; margin: 1rem 0; }
.halligan-color-descriptions dt { color: var(--dc-accent); font-weight: 700; }
.halligan-color-descriptions dd { margin: .25rem 0 0; }
.halligan-gallery [hidden] { display: none !important; }
/* Use the site's native document-flow fallback for this media page on narrow
   screens. Shared header, footer, sidebar cards, toggles and themes are retained. */
@media (max-width: 900px) {
    html:has(.halligan-page) body:not(.reader-control-embedded):not(.admin-embedded) { height: auto; min-height: 100dvh; padding-top: 0; display: flex; grid-template-rows: none; overflow: visible; }
    html:has(.halligan-page) .site-header, html:has(.halligan-page) .site-footer { position: static; }
    html:has(.halligan-page) .site-footer, html:has(.halligan-page) .site-footer .footer-inner { height: auto !important; }
    html:has(.halligan-page) :is(.page-regions,.page-regions-grid,.page-region--main,.page-region--side,.site-page-scroll,.site-page-layout-main > .site-main) { height: auto; min-height: 0; overflow: visible; }
    html:has(.halligan-page) .page-regions.dc-contained-scroll-layout--stacked > .page-regions-grid { grid-template-rows: auto auto auto; }
    .halligan-page[data-dc-center-scroll] { container-type: normal; --halligan-pane-height: 100dvh; }
    .halligan-page[data-dc-center-scroll] .halligan-film video { --halligan-pane-height: 100dvh; }
}
@media (max-width: 600px) {
    .halligan-hero { gap: .75rem; text-align: left; }
    .halligan-hero h1 { font-size: 1.65rem; }
    .halligan-wordmark { font-size: 1.25rem; }
    .halligan-emblem { width: 5.5rem; }
    .halligan-hero .project-subtitle { font-size: .9rem; }
    .halligan-stage { padding-inline: 2.9rem; }
    .halligan-gallery .halligan-arrow { width: 2.75rem; }
    .halligan-arrow--previous { left: .15rem; }
    .halligan-arrow--next { right: .15rem; }
    .halligan-expanded-stage { height: min(65dvh, 40rem); }
}
