.section p {
    margin-top: 1rem;
}

.screenshot-carousel-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.screenshot-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    justify-content: flex-start;
        /* was center */
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
}

.screenshot-carousel img {
    max-height: 180px;
    width: auto;
    object-fit: cover;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.screenshot-carousel::-webkit-scrollbar {
    height: 8px;
}

.screenshot-carousel::-webkit-scrollbar-track {
    background: #2e1d1b;
    border-radius: 4px;
}

.screenshot-carousel::-webkit-scrollbar-thumb {
    background-color: #d8a85f;
    border-radius: 4px;
    border: 2px solid #2e1d1b;
}

.screenshot-carousel {
    scrollbar-color: #d8a85f #2e1d1b;
    scrollbar-width: thin;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text);
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: var(--accent);
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    padding: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ffffff;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(75, 39, 32, 0.8);
    color: var(--accent);
    border: none;
    padding: 8px 12px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    display: none;
    /* Hidden by default */
}

.scroll-arrow.left {
    left: 0;
}

.scroll-arrow.right {
    right: 0;
}

.scroll-arrow:hover {
    background-color: rgba(194, 87, 53, 0.9);
    color: white; }