/*
Theme Name: VB—AR-03
Theme URI: http://vincentbandy.com
Description: Vincent Bandy Architecture — Modern rebuild of V1 with clean architecture, no Cufon, proper theme.json, and modern WordPress standards.
Author: 2 x 4, Inc
Version: 3.0
Tags: two-column, portfolio, architecture
*/

/* ========================================
   FONT FACE — Graphik Semibold
   (Replaces Cufon entirely)
   Register the same file at 400/600/700 so browsers
   never faux-bold or fall back to a thinner face when
   elements request normal/bold (common on Contact h1s).
   ======================================== */
@font-face {
    font-family: 'Graphik-Semibold';
    src: url('fonts/Graphik-Semibold.woff2') format('woff2'),
         url('fonts/Graphik-Semibold.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik-Semibold';
    src: url('fonts/Graphik-Semibold.woff2') format('woff2'),
         url('fonts/Graphik-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik-Semibold';
    src: url('fonts/Graphik-Semibold.woff2') format('woff2'),
         url('fonts/Graphik-Semibold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Shared brand type (matches old Cufon Graphik Semibold look) */
:root {
    --vb-font-brand: 'Graphik-Semibold', 'Open Sans', Arial, Helvetica, sans-serif;
    --vb-font-weight: 600;
}

/* ========================================
   1. GLOBAL RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
html, body {
    height: 100%;
}
body {
    font: 26px/28px Arial, Helvetica, sans-serif;
    font-weight: 400;
    display: none; /* shown by JS on DOMReady */
}
a {
    text-decoration: none;
    color: black;
}
a:hover {
    color: #003E7E;
}
a img {
    border: none;
}
/*
 * Headings + site UI chrome: always Graphik at weight 600.
 * font-synthesis:none avoids thin faux-bold when weight mismatches.
 */
h1, h2, h3, h4,
#header,
#header a,
#header ul.nav a,
ul.nav a,
#footer,
#footer a,
.footer-link {
    font-family: var(--vb-font-brand);
    font-weight: var(--vb-font-weight);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
    font-size: inherit; /* 26px from body / column */
    line-height: inherit;
    margin-bottom: 25px;
    color: #003E7E;
}
h1 a, h2 a, h3 a, h4 a {
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
}
p {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 4px;
}
p:last-child {
    margin-bottom: 0;
}
p a {
    font-weight: 600;
}
h4 {
    font-size: 26px;
    line-height: 28px;
    font-weight: var(--vb-font-weight);
    margin: 0;
}
h2 {
    margin-top: 60px;
}
h1, h3 {
    margin-top: 26px;
}
h1:first-child {
    margin-top: 0;
}

/* Contact: Address / Legal / Credits — same brand type as header nav */
#content .one-col.address,
#content .one-col.legal,
#content .one-col.credit,
#content .one-col.credits,
#content .one-col.address h1,
#content .one-col.legal h1,
#content .one-col.credit h1,
#content .one-col.credits h1,
#content .one-col.address p,
#content .one-col.legal p,
#content .one-col.credit p,
#content .one-col.credits p,
#content .one-col.address a,
#content .one-col.legal a,
#content .one-col.credit a,
#content .one-col.credits a {
    font-family: var(--vb-font-brand);
    font-weight: var(--vb-font-weight);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#content .one-col.address p,
#content .one-col.legal p,
#content .one-col.credit p,
#content .one-col.credits p {
    font-size: 26px;
    line-height: 28px;
    margin-bottom: 28px;
    color: #003E7E;
}
#content .one-col.address h1,
#content .one-col.legal h1,
#content .one-col.credit h1,
#content .one-col.credits h1 {
    font-size: 26px;
    line-height: 28px;
    color: #003E7E;
}
/* Contact subnav (Legal / Address / Credits) */
#content > .one-col > ul.nav,
#content > .one-col > ul.nav a {
    font-family: var(--vb-font-brand);
    font-weight: var(--vb-font-weight);
    font-size: 26px;
    line-height: 28px;
    font-synthesis: none;
}
/* Block editor wrappers shouldn't force a lighter system font */
#content .one-col.address .wp-block-paragraph,
#content .one-col.legal .wp-block-paragraph,
#content .one-col.credit .wp-block-paragraph,
#content .one-col.credits .wp-block-paragraph {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ========================================
   2. LAYOUT
   ======================================== */
#wrapper {
    position: relative;
    width: 780px;
    margin: 0 auto;
    min-height: 100%;
    height: auto !important;
    height: 100%;
}
.container {
    padding-bottom: 85px;
}
#header p, #header ul {
    font-size: 26px;
    line-height: 28px;
}
ul.nav {
    list-style: none;
}
#footer {
    padding-bottom: 30px;
    font-weight: bold;
    position: absolute;
    bottom: 0 !important;
    bottom: -1px;
    line-height: 18px;
}
#footer span {
    padding: 0 10px 0 0;
}

/* ========================================
   3. GRID SYSTEM
   ======================================== */
.grid {
    white-space: nowrap;
}
.two-col {
    width: 780px;
}
.one-col {
    width: 390px;
    display: -moz-inline-stack;
    display: inline-block;
    zoom: 1;
    *display: inline;
}
.one-col, .two-col {
    position: relative;
    margin-top: 27px;
    vertical-align: top;
    white-space: normal;
}
.one-col p {
    margin-right: 40px;
}
.skip-col {
    margin-top: 55px;
    margin-left: 380px;
}

/* ========================================
   4. GALLERY
   ======================================== */
.gallery-wrapper {
    position: relative;
    width: 780px;
    height: 510px;
    overflow: visible;
}
.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 780px;
    height: auto !important;
    max-height: 510px !important;
}
.gallery-item a {
    display: block;
    clear: both;
    overflow: hidden;
}
.gallery-item img {
    display: block !important;
    max-width: 780px;
    width: 100%;
    height: auto;
    max-height: 510px;
    object-fit: contain;
}
.gallery-nav {
    position: absolute;
    top: 484px;
    left: 0;
    width: 100%;
}
.gallery-nav a {
    display: block;
    text-indent: -9999px;
    background: url('images/rarrow_sm.png') no-repeat bottom left;
    width: 16px;
    height: 23px;
    font-size: 20px;
}
.gallery-nav .gallery-prev {
    margin: 0 3px 0 0;
}
.gallery-caption {
    margin-top: 10px;
    font-weight: bold;
    display: block;
    overflow: hidden;
    width: 100%;
    clear: both;
}
.home .gallery-caption {
    font-weight: bold;
}
.thumb-gallery {
    width: 390px;
    display: none;
}
.thumb-gallery.active {
    display: block;
}
.thumb-gallery .gallery-nav {
    top: auto;
}
.project-item-caption, .press-item-caption, .gallery-nav {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}
.project-item-caption, .press-item-caption {
    display: block;
}

/* Office → Press: simple PDF title list (managed posts)
   Match legacy the_content links: body is 26px but office body copy uses p at 14/18.
   Lives in one-col.press (same column as About/People). */
.office-press-list h1 {
    margin: 25px 0 4px;
    font-size: inherit; /* same as other office h1s (26px Graphik) */
    line-height: inherit;
}
.office-press-list h1:first-child {
    margin-top: 0;
}
.office-press-items {
    list-style: none;
    margin: 0 40px 1em 0; /* match .one-col p margin-right */
    padding: 0;
    font-size: 14px;
    line-height: 18px;
}
.office-press-items li {
    margin: 0 0 4px;
    padding: 0;
}
.office-press-items a {
    text-decoration: none;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600; /* match p a */
}
.office-press-items a:hover {
    color: #003E7E;
    text-decoration: none;
}
.office-press-missing {
    font-size: 14px;
    line-height: 18px;
    opacity: 0.55;
}

/* Office → Press viewer: mirror project single layout
   .two-col > .gallery-wrapper (780×510) | .one-col > h1.show-more
   One page at a time; click left/right to change page; vertical scroll only. */
#office-press-viewer-gallery[hidden],
#office-press-viewer-meta[hidden],
#office-press-list-col[hidden],
#office-press-nav-col[hidden] {
    display: none !important;
}
.office-press-viewer-close {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    font-family: inherit;
    color: #000;
}
.office-press-viewer-close:hover {
    color: #003E7E;
}
/* Same box as project images; page scaled to fit fully (contain).
   Override base .gallery-wrapper { overflow:visible } and .grid { white-space:nowrap }. */
.gallery-wrapper.office-press-viewer-stage {
    overflow: hidden !important;
    white-space: normal !important;
    background: #f7f7f7;
    cursor: pointer;
    box-sizing: border-box;
}
.office-press-viewer-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.office-press-viewer-stage .office-press-page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    background: #fff;
}
.office-press-viewer-stage .office-press-page {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    box-sizing: border-box;
}
/* Desktop gallery is 1050×646 — pages still max 100% of that box */
@media (min-width: 1050px) {
    .gallery-wrapper.office-press-viewer-stage .office-press-page {
        max-width: 100% !important;
        max-height: 100% !important;
    }
}
.office-press-viewer-status,
.office-press-viewer-fallback {
    font-size: 14px;
    line-height: 18px;
    margin-top: 4px;
}
.office-press-viewer-fallback a {
    font-weight: 600;
}

/* ========================================
   5. TYPOGRAPHY HELPERS
   ======================================== */
.offset {
    text-indent: 30px;
}
.selected, .blu, .current-menu-item > a {
    color: #003E7E;
}
.clear {
    clear: both;
}
.caption {
    margin-top: 15px;
}
.big {
    margin-bottom: 25px;
    color: #003E7E;
}

/* ========================================
   6. PROJECT & PRESS ITEMS (ARCHIVE GRID)
   Blue duotone matches legacy PHP GD imageFilterColorize
   with brand #1F3D73 (R=31,G=61,B=115).
   No /blu/ URLs, no *_blu files on disk.
   SVG filter #vb-gd-blu is defined in header.php.
   Applied to the <img> itself (reliable) — same file, live recolor.
   ======================================== */
.project-item, .press-item {
    float: left;
    margin-right: 21px;
    width: 245px;
    min-height: 164px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 245px 164px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    background-color: transparent;
}
/* Keep ::before unused for tint (legacy hook) */
.project-item::before, .press-item::before {
    content: none;
}
.project-item.third, .press-item.third {
    margin-right: 0;
}
/*
 * Default: full-size thumb with GD-equivalent SVG duotone.
 * Hover: remove filter → true color (same image file).
 */
.project-thumb, .press-thumb {
    visibility: visible;
    width: 245px;
    height: 164px;
    max-height: 164px;
    position: relative;
    z-index: 3;
    display: block;
    filter: url("#vb-gd-blu");
    transition: filter 0.12s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.project-item:hover .project-thumb,
.press-item:hover .press-thumb {
    visibility: visible;
    filter: none;
}
.project-item-caption, .press-item-caption {
    position: relative;
    z-index: 4;
}

/* ========================================
   7. PROJECTS NAVIGATION
   ======================================== */
#projects-nav a {
    width: 22px;
    height: 20px;
    display: block;
    text-indent: -9999px;
    background: url('images/rarrow.png') repeat-x center left;
    float: left;
    margin: 0;
}
#projects-nav a:hover {
    color: #003E7E;
}

/* ========================================
   8. SHOW MORE / READ MORE
   ======================================== */
.more-text {
    display: none;
}
.show-more {
    color: black;
    margin-bottom: 15px;
}
.show-more:hover {
    color: #003E7E !important;
}
.show-more.active {
    color: #003E7E;
}
.show-more.inactive {
    color: black;
}
.navdash {
    display: none;
}
a[rel=prev] + .navdash {
    display: inline;
}
.pdflink {
    margin-bottom: 54px;
}

/* ========================================
   9. PEOPLE (OFFICE) SECTION
   ======================================== */
.people #content .one-col h1 {
    float: left;
    margin-right: 10px;
    margin-top: 0;
}
.people #content .one-col h2 {
    margin: 1px 0 25px 0;
    float: left;
    font-size: 10px;
    line-height: 13px;
    clear: right;
    margin-top: 3px;
}
.people #content .one-col p {
    clear: both;
    display: block;
}
.people #content .one-col p img {
    display: block;
    padding: 0 0 23px 0;
}
.people #content .one-col p .alignleft {
    float: left;
    padding: 3px 10px 0 0;
}
.people #content .one-col p a {
    margin: 0 0 26px 0;
    display: block;
}
.people img {
    width: 390px;
    height: auto;
    margin-bottom: 26px;
}

/* ========================================
   10. NEWS SECTION
   ======================================== */
.news-year {
    margin-top: 120px;
}
.news-post {
    margin-bottom: 50px;
}
.news-post img {
    min-width: 780px;
    height: auto;
}
.news-title {
    margin: 15px auto;
}
.content-wrapper p img {
    width: 100%;
    height: auto;
}
.news-item h1 {
    margin: 0 0 0 0;
}
.news-item h1 a.active {
    color: #003E7E;
}
.news-item .gallery-caption {
    position: absolute;
    bottom: -70px;
}
.news-item .gallery-caption p {
    margin: 0;
}
.content-wrapper {
    display: none;
    margin-bottom: 20px;
}

/* ========================================
   11. GALLERY NAV 2 (fullscreen overlay)
   ======================================== */
.gallery-nav2 {
    position: relative;
    top: 0;
    background: white;
    z-index: 100;
    width: 100%;
}
.gallery-nav2 a {
    position: absolute;
    top: 0;
    display: block;
    text-indent: -9999px;
    width: 50%;
    height: 480px;
    padding: 5px 6px;
}
.gallery-nav2 a.gallery-prev {
    left: 0;
    background-position: 5px 5px;
}
.gallery-nav2 a.gallery-next {
    right: 0;
    background-position: -18px 5px;
}

/* ========================================
   12. FOOTER
   ======================================== */
#footer .two-col, #footer .one-col {
    margin-top: 0;
}
#footer h1, #footer h3 {
    margin-bottom: 0;
}
#footer a {
    color: #003E7E;
}

/* ========================================
   13. MISC
   ======================================== */
.chronology p {
    padding-right: 95px;
}
.hide {
    display: none;
}
.disabled {
    /* reserved */
}

/* ========================================
   14. DESKTOP LAYOUT — 1050px+
   ======================================== */
@media (min-width: 1050px) {
    #wrapper, .two-col {
        width: 1050px;
        margin: 0 auto;
    }
    .one-col {
        width: 500px;
    }
    .two-col {
        margin-top: 50px;
    }
    .gallery-wrapper {
        width: 1050px;
        height: 646px;
    }
    .gallery-item {
        width: 1050px;
        max-height: 646px !important;
    }
    .gallery-item img {
        max-width: 1050px;
        max-height: 646px;
    }
    .news-post img {
        min-width: 1050px;
    }
    /* 4-column grid for portfolio */
    .project-item, .press-item {
        float: left !important;
        width: 245px !important;
        margin-right: 22px !important;
        box-sizing: border-box;
    }
    .project-item:nth-child(4n),
    .press-item:nth-child(4n) {
        margin-right: 0 !important;
    }
    .project-item.fourth,
    .press-item.fourth {
        margin-right: 0 !important;
    }
}
