/* =========================================================
   Southern Steel — Portfolio Page
   Portfolio.css
   ========================================================= */

:root {
    --ss-navy: #fa2660;
    --ss-tab-text: #3b6fd6;
    --ss-tab-active-border: #2b2f8f;
    --ss-border: #e2e2e4;
    --ss-max-width: 1280px;
}
.portfolio-banner {
    width: 100%;
    background-color: #fa2660;;
}
.portfolio-banner img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
.pf-section {
    background: #ffffff;
    padding: 50px 24px 80px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.pf-inner {
    max-width: var(--ss-max-width);
    margin: 0 auto;
}
.pf-title {
    color: var(--ss-navy);
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 30px 0;
}
.pf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--ss-border);
    margin-bottom: 30px;
}
.pf-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 18px;
    font-size: 15px;
    color: var(--ss-tab-text);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.pf-tab:hover {
    color: var(--ss-navy);
}
.pf-tab.is-active {
    color: #333;
    border-bottom-color: var(--ss-tab-active-border);
    font-weight: 600;
}
.pf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pf-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.pf-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.pf-item:hover img {
    transform: scale(1.06);
}

.pf-item.is-hidden {
    display: none;
}
.pf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.pf-lightbox.is-open {
    display: flex;
}
.pf-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.pf-lightbox-content img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 4px;
}

.pf-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
.pf-lightbox-close:hover {
    opacity: 0.7;
}

.pf-lightbox-caption {
    color: #eee;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .pf-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pf-title {
        font-size: 26px;
    }
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .pf-tab {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pf-section {
        padding: 30px 16px 50px;
    }
    .pf-title {
        font-size: 22px;
    }
    .pf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .pf-lightbox-close {
        top: -38px;
        font-size: 26px;
    }
}

@media (max-width: 900px) {
    .portfolio-banner img {
        height: 190px;
    }
}

@media (max-width: 600px) {
    .portfolio-banner img {
        height: 108px;
    }
}