* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 0 40px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.header .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    letter-spacing: 1px;
}

/* Main content */
.main {
    padding: 60px 0;
}

/* Project sections */
.project {
    margin-bottom: 80px;
}

.project:last-child {
    margin-bottom: 40px;
}

.project h3 {
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 15px;
    color: #2c2c2c;
    text-transform: capitalize;
    letter-spacing: 1px;
    position: relative;
}

.project h3:after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: #666;
    margin: 10px auto 0;
}

.project-description {
    text-align: center;
    color: #666;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Image gallery grid */
.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Image containers */
.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    width: 100%;
    display: block;
    /* Remove fixed aspect ratio to maintain original image proportions */
    max-width: 100%;
}

.image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.image-item:hover img {
    transform: scale(1.03);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    /* Allow images to maintain their natural aspect ratio */
    max-width: 100%;
}

/* Responsive images */
.responsive-image {
    background-color: #f5f5f5;
    width: 100%;
    height: auto;
}

/* All screen sizes - 1 column */
@media (min-width: 1024px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 900px;
        margin: 0 auto 60px;
    }

    .project {
        margin-bottom: 100px;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 800px;
        margin: 0 auto 50px;
    }
}

/* Small screens */
@media (min-width: 480px) and (max-width: 767px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 600px;
        margin: 0 auto 40px;
    }
}

/* Very small screens */
@media (max-width: 479px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .header .subtitle {
        font-size: 1rem;
    }

    .project h3 {
        font-size: 1.5rem;
    }
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 40px 0;
    text-align: center;
    color: #666;
}

.footer p {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Loading state for images */
.image-item img[loading="lazy"] {
    background-color: #f0f0f0;
}
