/* =========================================================
   PORTFOLIO DETAIL
========================================================= */

.portfolio-detail-page {
    background: #f7f9fb;
    color: #0b2239;
    min-height: 100vh;
}

.portfolio-detail-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.portfolio-detail-hero {
    background: #ffffff;
    padding: 42px 0 55px;
    border-bottom: 1px solid #e3e8ed;
}

.portfolio-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #174ea6;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 36px;
}

.portfolio-back:hover {
    color: #0b2239;
}

.portfolio-detail-heading {
    max-width: 900px;
}

.portfolio-detail-eyebrow {
    display: inline-block;
    color: #174ea6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.portfolio-detail-heading h1 {
    margin: 14px 0 20px;

    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;

    color: #0b1f33;

    max-width: 900px;
}
.portfolio-detail-intro {
    max-width: 800px;
    margin: 24px 0 0;
    color: #68798a;
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   INFO
========================================================= */

.portfolio-detail-info {
    background: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid #e5e9ed;
}

.portfolio-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f7f9fb;
    border-radius: 14px;
}

.portfolio-info-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #0b2239;
    color: #ffffff;
    font-size: 18px;
}

.portfolio-info-item span {
    display: block;
    color: #7b8996;
    font-size: 13px;
    margin-bottom: 4px;
}

.portfolio-info-item strong {
    display: block;
    color: #0b2239;
    font-size: 16px;
}


/* =========================================================
   GALLERY
========================================================= */

.portfolio-detail-gallery-section {
    padding: 70px 0 90px;
}

.portfolio-gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.portfolio-gallery-header h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
    color: #0b2239;
}

.portfolio-photo-count {
    color: #758594;
    font-size: 15px;
    font-weight: 600;
}


/* =========================================================
   PHOTO GRID
========================================================= */

.portfolio-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.portfolio-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 260px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #dfe5ea;
    cursor: zoom-in;
    box-shadow: 0 8px 25px rgba(11, 34, 57, 0.08);
}

.portfolio-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.portfolio-photo:hover img {
    transform: scale(1.06);
}

.portfolio-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 34, 57, 0);
    color: #ffffff;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        background 0.25s ease;
    font-size: 28px;
}

.portfolio-photo:hover .portfolio-photo-overlay {
    opacity: 1;
    background: rgba(11, 34, 57, 0.38);
}


/* =========================================================
   NO PHOTO
========================================================= */

.portfolio-no-photo {
    min-height: 260px;
    border: 2px dashed #d8e0e6;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8a98a5;
}

.portfolio-no-photo i {
    font-size: 42px;
    margin-bottom: 15px;
}

.portfolio-no-photo p {
    margin: 0;
}


/* =========================================================
   CTA
========================================================= */

.portfolio-detail-cta {
    padding: 0 0 80px;
}

.portfolio-detail-cta-box {
    background: #0b2239;
    color: #ffffff;
    border-radius: 22px;
    padding: 40px 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.portfolio-detail-cta-box span {
    display: block;
    color: #9bb8d2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.portfolio-detail-cta-box h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
}

.portfolio-detail-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #0b2239;
    text-decoration: none;
    padding: 15px 22px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.portfolio-detail-cta-button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   LIGHTBOX
========================================================= */
.portfolio-lightbox {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    z-index: 2147483647;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;

    background: rgba(5, 18, 31, 0.92);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.portfolio-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portfolio-lightbox-content {
    width: min(1100px, calc(100vw - 150px));
    height: min(80vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}

.portfolio-lightbox-close,
.portfolio-lightbox-prev,
.portfolio-lightbox-next {
    position: fixed;
    z-index: 100000;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.portfolio-lightbox-close:hover,
.portfolio-lightbox-prev:hover,
.portfolio-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.portfolio-lightbox-close {
    top: 24px;
    right: 24px;
    font-size: 22px;
}

.portfolio-lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.portfolio-lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .portfolio-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .portfolio-info-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .portfolio-detail-container {
        width: min(100% - 28px, 1200px);
    }

    .portfolio-detail-hero {
        padding: 28px 0 40px;
    }

    .portfolio-back {
        margin-bottom: 25px;
        font-size: 14px;
    }

    .portfolio-detail-heading h1 {
        font-size: 34px;
    }

    .portfolio-detail-intro {
        font-size: 16px;
        line-height: 1.7;
    }

    .portfolio-info-grid {
        gap: 12px;
    }

    .portfolio-info-item {
        padding: 15px;
    }

    .portfolio-detail-gallery-section {
        padding: 45px 0 60px;
    }

    .portfolio-gallery-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .portfolio-gallery-header h2 {
        font-size: 28px;
    }

    /* HP = 2 KOLOM */

    .portfolio-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .portfolio-photo {
        height: 180px;
        border-radius: 12px;
    }

    .portfolio-photo-overlay {
        display: none;
    }

    .portfolio-detail-cta-box {
        padding: 28px 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-detail-cta-box h2 {
        font-size: 24px;
    }

    .portfolio-detail-cta-button {
        width: 100%;
    }

    .portfolio-lightbox {
        padding: 20px;
    }

    .portfolio-lightbox-content {
        width: 100%;
        height: 75vh;
    }

    .portfolio-lightbox-close {
        top: 15px;
        right: 15px;
    }

    .portfolio-lightbox-prev {
        left: 10px;
    }

    .portfolio-lightbox-next {
        right: 10px;
    }

}


/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media (max-width: 400px) {

    .portfolio-photo {
        height: 150px;
    }

    .portfolio-detail-heading h1 {
        font-size: 29px;
    }

}