/* ===== GRID ===== */
.drive-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

/* ===== CARD ===== */
.project-card {
    cursor: pointer;
}

.project-card h3 {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #111;
}

/* ===== IMAGE ===== */
.project-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.project-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s ease, filter .6s ease;
}

/* ===== OVERLAY ===== */
.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .4s ease;
}

.project-image-wrapper:hover .project-overlay {
    opacity: 1;
}

.project-image-wrapper:hover .project-cover {
    transform: scale(1.05);
    filter: brightness(.85);
}

/* ===== LIGHTBOX ===== */
.project-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, .96);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeIn .4s ease;
}

/* ===== CLOSE ===== */
.project-lightbox .close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 34px;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    opacity: .7;
}

.project-lightbox .close:hover {
    opacity: 1;
}

/* ===== GALLERY ===== */
.project-gallery {
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-gallery img {
    width: 100%;
    border-radius: 14px;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-lightbox .close {
        top: 20px;
        right: 20px;
    }
}