:root {
    --color-light-blue: #0080FF;
    --color-dark-blue: #0019A6;
    --color-white: #FAF9F6;
    --color-gray: #807F7F;
    --color-black: #1E1E1E;
    --weight-regular: 400;
    --weight-bold: 700;
    --weight-black: 850;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
}

h1 {
    color: var(--color-black);
    font-size: 40px;
    font-weight: var(--weight-bold);
    margin-bottom: 20px;
    text-transform: uppercase;
}


.project-gallery-content {
    position: relative;
    margin: 100px auto 0;
    width: min(90%, 1200px);
    text-align: center;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    filter: grayscale(100%);
    transition: transform 0.3s;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* Modal / Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 10px;
    box-sizing: border-box;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90%;
    border-radius: 10px;
}

/* Buttons */
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
    transition: background 0.3s;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.btn-close {
    top: 20px;
    right: 20px;
    transform: none;
}

.btn-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 600px) {
    .gallery img {
        height: 200px;
    }

    .lightbox-btn {
        font-size: 20px;
        padding: 8px 12px;
    }

    h1 {
        color: var(--color-black);
        font-size: 30px;
        font-weight: var(--weight-bold);
        margin-bottom: 20px;
        text-transform: uppercase;
    }

    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 0px 0px;
    }
}

@media (min-width: 2000px) {
    .projects-gallery {
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center
    }
}

.back-btn-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--color-black);
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: 0.3s;
}

.back-btn-fixed:hover {
    background: #555;
    transform: translateY(-3px);
}