/* ============================================
   PROJECT DETAILS — Phileo PM
   Reusable project case-study template
   ============================================ */

.pd-hero {
    min-height: 460px;
    padding-top: 170px;
}
.pd-hero__bg {
    background-image: url('../../images/projects/project_s13_img1.jpg');
}

/* --- Overview — full content width --- */
.pd-overview__body p {
    color: var(--color-text-light);
    line-height: 1.85;
    font-size: 1.02rem;
    margin-bottom: 16px;
}

/* --- Gallery --- */
.pd-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.pd-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    background: var(--color-bg-light);
}
.pd-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.pd-gallery__item:hover img { transform: scale(1.06); }
@media (max-width: 768px) { .pd-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pd-gallery { grid-template-columns: 1fr; } }

/* --- Lightbox --- */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 21, 38, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    backdrop-filter: blur(8px);
}
.pd-lightbox[hidden] { display: none; }
.pd-lightbox__img {
    max-width: min(90vw, 1200px);
    max-height: 88vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.pd-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-base);
}
.pd-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

/* --- Related projects --- */
.related-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) { .related-projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .related-projects { grid-template-columns: 1fr; } }
