body {
    font-family: Arial, sans-serif;
}

header {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
}

header img {
    max-width: 100%;
    height: auto;
}

header h1 {
    color: #D1B36F;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: -0.175rem;
    font-size: 2.75em;
    line-height: 1.25;
    font-weight: 400;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
}

.item {
    flex: 1 1 auto;
    height: 300px;
    padding: 10px;
    border-radius: 10px;
}

.item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.terms-of-service {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 5px;
    color: #313743;
    font-family: '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    line-height: 1.5;
    font-weight: 400;
}

.terms-of-service h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.terms-of-service ol {
    padding-left: 20px;
}

.terms-of-service li {
    margin-bottom: 10px;
    padding-left: 2rem;
}

.portfolio {
    padding: 20px;
}

.portfolio h2 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.portfolio .row {
    margin-bottom: 20px;
}

.portfolio img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.portfolio .row img {
    height: 500px;
    object-fit: cover;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    .terms-of-service, .portfolio {
        padding: 10px;
    }

    .terms-of-service h2, .portfolio h2 {
        font-size: 1.25rem;
    }

    .portfolio .row {
        margin-bottom: 10px;
    }

    .portfolio img {
        border-radius: 3px;
    }

    /* Add margin between images in mobile view */
    .portfolio .row > div {
        margin-bottom: 10px;
    }
}

/* Set maximum width for the logo */
header img {
    max-width: 150px;
}
