
.project {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 15px;
    border-radius: 15px;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-images img {
    max-height: 300px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.project-text {
    flex: 1;
}

.project-text h3 {
    margin-bottom: 10px;
}

.project-images.stack {
    position: relative;
    width: 280px;
    height: 200px;
    margin: 20px auto;
}

.project-images.stack img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);

    transition: transform 0.3s ease;
}

.project-images.stack img:nth-child(1) {
    transform: rotate(-6deg) translate(-10px, -5px);
    z-index: 3;
}

.project-images.stack img:nth-child(2) {
    transform: rotate(3deg) translate(10px, 5px);
    z-index: 2;
}

.project-images.stack img:nth-child(3) {
    transform: rotate(-2deg) translate(20px, 10px);
    z-index: 1;
}

.project-images.stack:hover img {
    transform: rotate(0deg) translate(0, 0);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.lightbox.show {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.15);
    color: white;

    font-size: 24px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================================
   MOBILE (max-width: 780px)
   ============================================================ */

@media (max-width: 780px) {
    .project {
        flex-direction: column;
    }

    .project-images img {
        width: 100%;
        height: auto;
    }
}