.project-image {
    max-width: 50%;
    height: auto;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

@media (max-width: 768px) {
    .project-image {
        max-width: 100%;
        height: auto;
    }
}

/* Carousel */
.carousel {
    position: relative;
    margin: 0.5rem 0;
}

.carousel-track {
    position: relative;
    width: 100%;
}

.carousel .project-image {
    max-width: 100%;
    display: none;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

@media (min-width: 769px) {
    .carousel .project-image {
        height: 43vh;
    }
}

.carousel .project-image.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    padding: 6px 11px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 3px;
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.carousel-prev {
    left: 6px;
}

.carousel-next {
    right: 6px;
}

.carousel-dots {
    text-align: center;
    margin-top: 0.4rem;
}

.carousel-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbb;
    margin: 0 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #3498db;
}

