/* Reset some default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: 'Chathura', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}


/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
}
header p {
    font-size: 30px;
    max-width: 900px;
    margin: 0 auto;
}

header h1 {
    font-size: 48px;
    font-weight: 600;
    color: #2c3e50;
}


/* Content wrapper */
.content {
    max-width: 900px;
    margin: 0 auto;
}

/* Project title section */
.proj-title {
    margin-bottom: 40px;
}

.proj-part h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #34495e;
}
.proj-part p {
    text-align: center;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #34495e;
}
code {
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: #46729e;
    background-color: #d5e3f048;
}
/* Image gallery layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: start; /* Align all items to the top */

    /* display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; */
}

/* Individual image containers */
.gallery-img {
    flex: 1 1 45%;
    max-width: 240px;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Images */
.gallery-img img {
    width: 100%;
    height: auto;
    display:block;
    
}

/* Captions */
.caption {
    padding: 10px 15px;
    width: 100%;
    font-size: 20px;
    text-align: center;
    background-color: #ecf0f1;
    color: #2c3e50;
}
@media (max-width: 600px) {
    .gallery-img {
        flex: 1 1 100%;
    }

    header h1 {
        font-size: 36px;
    }

    .proj-part h2 {
        font-size: 28px;
    }

    .caption {
        font-size: 18px;
    }
}