* {
    box-sizing: border-box;
}

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

/* ---------- Section Colors ---------- */

.red {
    background-color: #9A3227;
    padding: 20px 0;
}

.beige {
    background-color: #eac08c;
    padding: 20px 0;
}

/* ---------- Line Title ---------- */

.red .line-text,
.beige .line-text {
    text-align: center;
    line-height: 0;
    margin: 50px auto;
}

.red .line-text {
    border-bottom: 2px solid #eac08c;
}

.beige .line-text {
    border-bottom: 2px solid #9A3227;
}

.red .line-text span {
    background: #9A3227;
    color: #eac08c;
}

.beige .line-text span {
    background: #eac08c;
    color: #9A3227;
}

.line-text span {
    padding: 0 10px;
    font-family: myheaderfont;
    font-size: 2em;
}

/* ---------- Collection ---------- */

.collection {
    margin-bottom: 4em;
}

/* ---------- Gallery ---------- */

.gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 0 20px;
}

.gallery img {
    width: 350px;
    display: block;
    border-radius: 5px;
}

/* ---------- Project Info ---------- */

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
}

.project-info p {
    margin: 0;
    line-height: 1.5;
}

/* ---------- Paragraph Colors ---------- */

.red .project-info p {
    color: #eac08c;
}

.beige .project-info p {
    color: #9A3227;
}

/* ---------- Buttons ---------- */

.gallery a {
    display: inline-block;
    align-self: flex-start;
    margin-top: 20px;
    padding: 8px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s ease;
}

/* Red Section Button */

.red .gallery a {
    color: #eac08c;
    border: 1px solid #eac08c;
}

.red .gallery a:hover {
    color: #9A3227;
    background-color: #eac08c;
}

/* Beige Section Button */

.beige .gallery a {
    color: #9A3227;
    border: 1px solid #9A3227;
}

.beige .gallery a:hover {
    color: #eac08c;
    background-color: #9A3227;
}

/* ---------- Alternate Layout ---------- */

.beige .gallery {
    flex-direction: row-reverse;
}

/* ---------- Tablet ---------- */

@media (max-width: 768px) {

    .gallery,
    .beige .gallery {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .gallery img {
        width: 100%;
        max-width: 500px;
    }

    .project-info {
        align-items: center;
        max-width: 600px;
    }

    .gallery a {
        align-self: center;
    }

}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {

    .line-text span {
        font-size: 1.2em;
    }

    .gallery {
        padding: 0 15px;
    }

}