/* ==============================================================
   Portfolio Grid 2 — Our Portfolio (round 5, 2026-11-03)
   Built to the 1366px Canva comp. The original portfolio-filter-grid.css
   is untouched and still serves [portfolio_grid].
   Comp geometry it reproduces:
     container 1286  ·  2 columns  ·  card 628 wide  ·  30px gutter
     photo 628x420 (3:2), card body #EAF3F1, 12px radius
     body padding 22px, status pill flush right
   ============================================================== */

.pf2-wrap {
    max-width: 1286px;
    margin: 0 auto;
    width: 100%;
}
/* the theme container is 1229 at 1366; the comp's grid is 1286 */
.portfolio-grid2-row .container {
    max-width: 1340px;
    margin: 0 auto;
    width: 94%;
}
@media (max-width: 1439px) {
    .portfolio-grid2-row .container { width: 92%; }
}
@media (max-width: 979px) {
    .portfolio-grid2-row .container { width: 90%; }
}

/* ── Filter bar ─────────────────────────────────────────────── */

.pf2-filters {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    column-gap: 22px;
    row-gap: 16px;
    flex-wrap: wrap;
    margin: 0 auto;
}
.pf2-field {
    width: 210px;
    max-width: 100%;
}
.bakery .pf2-wrap label.pf2-label {
    font-family: var(--nexa-extrabold);
    text-transform: uppercase;
    color: var(--accent1);
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 16px;
    font-size: 12px;
    display: block;
}
.pf2-select-wrap {
    position: relative;
}
.pf2-select-wrap::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 0.5 Q-1 0.5 1.5 3 L5.5 7.5 Q6 8.5 6.5 7.5 L10.5 3 Q13 0.5 10.5 0.5 Z' fill='%230C5964'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    transform: translateY(-50%);
    pointer-events: none;
    position: absolute;
    content: '';
    height: 7px;
    width: 11px;
    right: 18px;
    top: 50%;
}
.pf2-wrap select.pf2-select {
    font-family: var(--nexatext-reg);
    background-color: var(--light4);
    padding: 12px 40px 12px 18px;
    color: rgb(18, 34, 42);
    border-radius: 100px;
    appearance: none;
    line-height: 20px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    width: 100%;
}
.pf2-wrap select.pf2-select:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 2px;
}

.bakery .pf2-wrap p.pf2-count {
    font-family: var(--nexatext-reg);
    color: #5b6a66;
    text-align: center;
    margin: 16px 0 0;
    line-height: 22px;
    font-size: 15px;
}

/* ── Grid ───────────────────────────────────────────────────── */

.pf2-grid {
    margin: 28px -15px 0;
    position: relative;
}
.pf2-item {
    padding: 0 15px 30px;
    width: 50%;
}
.pf2-wrap a.pf2-card {
    background: var(--light4);
    text-decoration: none;
    border-radius: 12px;
    flex-direction: column;
    overflow: hidden;
    display: flex;
    height: 100%;
}

.pf2-photo {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--accent1);
    aspect-ratio: 3 / 2;
    width: 100%;
}
.pf2-photo--ph {
    background: #0C5964;
    place-items: center;
    display: grid;
}
.pf2-photo--ph span {
    font-family: var(--nexa-extrabold);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 18px;
    padding: 0 24px;
    font-size: 12px;
}

.pf2-body {
    /* Shuffle lays the grid out masonry-style, so two cards of different
       height stagger every row below them. Nine projects have no GC and
       were 34px shorter, which is what tore the bottom of the grid. The
       min-height holds every card to the comp's 170px body and
       `margin-top:auto` on .pf2-more keeps View Project on one baseline
       whether or not the GC line is there. */
    flex-direction: column;
    min-height: 167px;
    flex: 1 1 auto;
    padding: 22px;
    display: flex;
}
.pf2-head {
    justify-content: space-between;
    align-items: flex-start;
    column-gap: 16px;
    display: flex;
}
.bakery .pf2-wrap h3.pf2-title {
    font-family: var(--nexa-extrabold);
    color: var(--accent1);
    letter-spacing: 0;
    line-height: 26px;
    margin-bottom: 0;
    font-size: 20px;
}
.pf2-pill {
    font-family: var(--nexa-extrabold);
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 100px;
    letter-spacing: 1px;
    padding: 6px 9px;
    line-height: 13px;
    flex: 0 0 auto;
    font-size: 11px;
    margin-top: 2px;
}
.pf2-pill--ongoing {
    background: var(--accent2);
    color: var(--white);
}
.pf2-pill--complete {
    background: #CFDCDB;
    color: var(--accent1);
}

.bakery .pf2-wrap p.pf2-loc {
    font-family: var(--nexa-extrabold);
    text-transform: uppercase;
    color: var(--accent2);
    letter-spacing: 1px;
    margin: 12px 0 0;
    line-height: 16px;
    font-size: 12px;
}
.bakery .pf2-wrap p.pf2-gc {
    font-family: var(--nexatext-reg);
    color: rgb(18, 34, 42);
    margin: 14px 0 0;
    line-height: 20px;
    font-size: 14px;
}
.bakery .pf2-wrap p.pf2-gc span.pf2-gc-label {
    /* the theme sizes bare spans at 21px/37px and a class-only selector
       loses to it, so the label has to restate the paragraph's own type */
    font-family: var(--nexatext-reg);
    color: #7b8783;
    line-height: 20px;
    font-size: 14px;
}
.pf2-more {
    font-family: var(--nexa-extrabold);
    text-transform: uppercase;
    color: var(--accent1);
    letter-spacing: 1px;
    padding-top: 18px;
    line-height: 16px;
    margin-top: auto;
    font-size: 12px;
    display: block;
}
.pf2-arrow {
    transition: transform 0.25s ease-in-out;
    color: var(--accent2);
    display: inline-block;
    font-style: normal;
    margin-left: 10px;
}
.pf2-wrap a.pf2-card:hover .pf2-arrow {
    transform: translateX(5px);
}
.pf2-wrap a.pf2-card:hover .pf2-photo {
    opacity: 0.88;
}
.pf2-photo {
    transition: opacity 0.25s ease-in-out;
}

.bakery .pf2-wrap p.pf2-empty {
    font-family: var(--nexatext-reg);
    color: rgb(18, 34, 42);
    text-align: center;
    padding: 40px 0 0;
    line-height: 26px;
    font-size: 17px;
}

/* ── Breakpoints ────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .pf2-field { width: 32%; }
}

@media (max-width: 767px) {
    .pf2-filters { column-gap: 12px; }
    .pf2-field { width: 100%; }
    .pf2-grid { margin: 24px -8px 0; }
    .pf2-item { padding: 0 8px 20px; }
    .pf2-body { padding: 18px; }
    .bakery .pf2-wrap h3.pf2-title { line-height: 24px; font-size: 18px; }
}

@media (max-width: 560px) {
    .pf2-item { width: 100%; }
}
/* /Portfolio Grid 2 */
