.project-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.project-meta {
    font-size: 0.95rem;
}

.project-blurb {
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-content {
    line-height: 1.75;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge,
.tech-badge {
    padding: 0.4em 0.7em;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
}

.project-gallery {
    margin-top: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.25s ease;
}

.lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 15px;
    opacity: 0.7;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.gallery-thumb {
    cursor: pointer;
}
