.about-page {
    display: flex;
    flex-direction: column;
}

.top,
.middle {
    height: fit-content;
    padding: 7.5rem;
}

/* TOP SECTION */
.top {
    display: flex;
    justify-content: space-between;
}

.top img {
    height: 31.25rem;
    box-shadow: 1.5rem 1.5rem;
}

.erin {
    margin-left: 5rem;
}

h1 {
    margin: 0;
}

.top p {
    box-sizing: border-box;
    max-width: 40rem;
}
/* TOP SECTION */

/* MIDDLE SECTION */
.middle {
    background-color: #887154;
    color: white;
    display: flex;
    justify-content: space-between;
}

.middle p {
    box-sizing: border-box;
    max-width: 46.8rem;
    align-self: center;
    padding-bottom: 2rem;
}

.middle img {
    width: 22.8rem;
    box-shadow: 1.2rem 1.2rem;
    color: #e7dfd4;
}

.middle-right {
    font-size: 1rem;
    align-self: center;
    margin-left: 5rem;
}

.middle-right p {
    padding: 1rem 0 0 0.5rem;
    box-sizing: border-box;
    width: 25rem;
}

.middle .licorice {
    padding: 0;
    margin: 0;
    font-weight: 400;
}
/* MIDDLE SECTION */

/* BOTTOM SECTION */
.bottom {
    background-image: url(/Images/background.jpg);
    padding: 5%;
}

.favourite-posts {
    display: flex;
    flex-direction: column;
    margin: 2rem auto;
}

.bottom h2 {
    font-weight: 400;
    text-align: center;
}

.posts {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.post {
    min-width: 15.625rem;
    max-width: 15.625rem;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.post img {
    min-width: 100%;
    height: 15.625rem;
}

.big {
    margin: 0.7rem 0 0 0;
}

.small {
    font-size: 0.8rem;
    margin: 0 0 1rem 0;
}

.bottom button {
    width: max-content;
    padding: 1rem 2rem;
}
/* BOTTOM SECTION */

/* MEDIA QUERIES MOBILE & IPAD */

@media only screen and (min-width: 0px) and (max-width: 1180px) {
    .middle {
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .posts {
        flex-wrap: wrap;
        gap: 3rem;
    }
}

/* MEDIA QUERIES MOBILE */

@media only screen and (min-width: 0px) and (max-width: 767px) {
    .middle img,
    .top img {
        height: 15.625rem;
        width: 11.75rem;
        box-shadow: 1rem 1rem;
    }

    .top {
        display: flex;
        flex-direction: column-reverse;
    }

    .top,
    .middle,
    .bottom {
        padding: 10% 5%;
    }

    .erin {
        margin: 0;
    }

    .top img {
        margin: 10% 0;
        align-self: center;
    }

    .middle-right {
        padding-top: 3rem;
        margin: 0;
    }

    .middle-right p {
        width: 13rem;
    }

    .bottom h2 {
        text-align: center;
    }

    .favourite-posts {
        max-width: 31.25rem;
    }
}

/* MEDIA QUERIES IPAD */

@media only screen and (min-width: 768px) and (max-width: 1180px) {
    .middle-right p {
        width: 20rem;
    }

    .middle-left p {
        max-width: none;
    }

    .top,
    .middle {
        padding: 6%;
    }

    .bottom {
        padding: 1.8rem;
    }

    .top img {
        height: 21.8rem;
    }

    .middle img {
        width: 15.6rem;
    }

    .bottom button {
        padding: 0.75rem 1.5rem;
    }

    .favourite-posts {
        max-width: 43.75rem;
    }
}
