/*
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)
   ======================================== */
@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;
}

/* ========================================
   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 Arial, Helvetica, sans-serif;
    line-height: 28px;
    display: none; /* shown by JS on DOMReady */
}
a {
    text-decoration: none;
    color: black;
}
a:hover {
    color: #003E7E;
}
a img {
    border: none;
}
h1, h2, h3 {
    font-size: inherit;
    font-family: 'Graphik-Semibold', 'Open Sans', Arial, Helvetica, sans-serif;
    margin-bottom: 25px;
    color: #003E7E;
}
p {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 4px;
}
p:last-child {
    margin-bottom: 0;
}
p a {
    font-weight: bold;
}
h4 {
    font: 26px;
    font-family: 'Graphik-Semibold', 'Open Sans', Arial, Helvetica, sans-serif;
}
h2 {
    margin-top: 60px;
}
h1, h3 {
    margin-top: 26px;
}
h1:first-child {
    margin-top: 0;
}

/* ========================================
   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;
}

/* ========================================
   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)
   ======================================== */
.project-item, .press-item {
    float: left;
    margin-right: 21px;
    width: 245px;
    background-repeat: no-repeat;
    background-size: 245px 164px;
    position: relative;
    background-color: rgba(39, 68, 116, 0.0);
    background-blend-mode: screen;
    z-index: 2;
    box-sizing: border-box;
}
/* Grayscale overlay via ::before */
.project-item::before, .press-item::before {
    content: '';
    width: 245px;
    height: 164px;
    max-height: 164px;
    position: absolute;
    top: 0;
    left: 0;
    background: inherit;
    filter: grayscale(100%) hue-rotate(210deg) brightness(1.1);
    z-index: 1;
}
.project-item.third, .press-item.third {
    margin-right: 0;
}
/* Hover: show full color, hide grayscale */
.project-item:hover::before, .press-item:hover::before {
    opacity: 0;
}
.project-item:hover::after, .press-item:hover::after {
    opacity: 0;
}
.project-thumb, .press-thumb {
    visibility: hidden;
    width: 245px;
    height: 164px;
    max-height: 164px;
    position: relative;
    z-index: 3;
    filter: none;
}
.project-item:hover .project-thumb,
.press-item:hover .press-thumb {
    visibility: visible;
}

/* ========================================
   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;
    }
}
