/* All project detail pages */
.case-overview {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 36px;
}

.case-cover {
    width: 100%;
    height: 520px;
    object-fit: cover;
    background: var(--paper);
}

.case-summary h2 {
    font-size: 29px;
}

.case-facts {
    margin-top: 30px;
}

.case-facts div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding-block: 17px;
    border-bottom: 1px solid var(--line);
}

.case-facts dt {
    color: var(--muted);
    font-size: 14px;
}

.case-facts dd {
    margin: 0;
    font-size: 15px;
}

/* Service-specific case keywords */
.case-tags {
    margin-block: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tags span {
    display: inline-block;
    max-width: 100%;
    padding: 4px 10px;
    border: 1px solid #d4e0d4;
    border-radius: 5px;
    background: #eef4eb;
    color: var(--green);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 25px;
}

.gallery figure {
    margin: 0;
}

.gallery button {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: var(--paper);
    position: relative;
}

.gallery img {
    width: 100%;
    height: 310px;
    object-fit: cover;
}

.gallery button::after {
    content: '＋';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 21px;
}

.gallery figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}

.lightbox {
    border: 0;
    padding: 0;
    background: #0d202c;
    color: white;
    max-width: 95vw;
    width: 1200px;
    max-height: 95svh;
}

.lightbox::backdrop {
    background: #071823e8;
}

.lightbox img {
    width: 100%;
    height: 76svh;
    object-fit: contain;
}

.lightbox-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    gap: 10px;
}

.lightbox button {
    background: transparent;
    border: 1px solid #90a09f;
    color: white;
    font-size: 15px;
    padding: 8px 15px;
}

.lightbox-caption {
    font-size: 14px;
    margin: 0;
    color: white;
}

@media (max-width: 960px) {
    .case-overview {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    .case-cover {
        height: 340px;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .gallery img {
        height: 380px;
    }
    .lightbox-controls {
        flex-wrap: wrap;
    }
    .lightbox-caption {
        width: 100%;
        order: -1;
    }
}
