
/* Additional styles for category pages */

.category-title {
    font-family: 'Raleway', serif;
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    column-gap: 30px; /* Match the gap in project.css */
    row-gap: 0; /* Remove gap between rows */
}

.project {
    transition: transform 0.3s ease;
    margin-bottom: 0; /* Ensure no bottom margin */
}

.project-image {
    overflow: hidden;
    aspect-ratio: 16/9; /* Landscape format (width:height) */
    margin-bottom: 0; /* Remove any bottom margin */
    position: relative; /* For absolute positioning of text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
    display: block; /* Remove any default spacing */
}

/* Add hover effect for the image overlay */
.project-image:hover img {
    opacity: 0.6;
}

.project h3 {
    font-family: 'Raleway', serif;
    font-size: 18px;
    position: absolute;
    color: #fff;
    margin: 0;
    padding: 10px;
    text-align: center;
    z-index: 5; /* Ensure text appears above the image */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}

.active {
    font-weight: bold;
    border-bottom: 1px solid #333;
}
