* {
    box-sizing: border-box;
}

:root {
    --color-background: #d9b6df;
    --color-link: #083e66;
    --color-link-border: #be46c6;
    --color-text: #82105a;
    --footer-height: 3rem;
    --footer-color-background: rgba(185, 68, 205, 0.27);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #211930;
        --color-link: #dd64b3;
        --color-link-border: #7053a6;
        --color-text: #aeb7fe;
        --footer-color-background: rgba(0, 0, 0, 0.5);
    }
}

html {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: 'DM Sans', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

body {
    color: var(--color-text);
    margin: 0 auto;
    padding: 0;
}

a {
    border-bottom: 2px solid var(--color-link-border);
    color: var(--color-link);
    display: inline-block;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}

a:hover {
    border-bottom: 2px dotted var(--color-link-border);
}

body {
    margin: 0 auto;
}

.c-content {
    margin: 2rem auto;
    max-width: 80vw;
    padding-bottom: var(--footer-height);
}

.c-content__inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
}

.c-photo {
    background-color: #e3e3e3;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    box-shadow: 2px 2px 3px rgba(100, 100, 100, 0.2);
    filter: grayscale(1);
    max-width: 220px;
    transition: transform 0.1s ease;
}

.c-photo:hover {
    filter: saturate(1.7) grayscale(0);
}

.c-photo.c-photo--1 {
    transform: rotate(2deg);
}

.c-photo.c-photo--1:hover {
    transform: rotate(4deg);
}

.c-photo.c-photo--2 {
    transform: rotate(-2deg);
}

.c-photo.c-photo--2:hover {
    transform: rotate(-4deg);
}

.c-photo.c-photo--3 {
    transform: rotate(3deg);
}

.c-photo.c-photo--3:hover {
    transform: rotate(5deg);
}

.c-photo.c-photo--4 {
    transform: rotate(-3deg);
}

.c-photo.c-photo--4:hover {
    transform: rotate(-5deg);
}

.c-photo__inner {
    padding: 0.5rem;
}

.c-photo__image {
    align-items: center;
    display: flex;
    height: 245px;
    overflow: hidden;
    width: auto;
}

.c-photo__image img {
    display: block;
    width: 220px;
}

.c-photo__caption {
    color: #111;
    font-family: 'Reenie Beanie', cursive;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    padding-top: 0.75rem;
    text-align: center;
}

.c-footer {
    align-items: center;
    background-color: var(--footer-color-background);
    display: flex;
    font-size: 0.85rem;
    height: var(--footer-height);
    inset: auto 0 0 0;
    justify-content: center;
    padding: 1rem 1.5rem 1rem;
    position: fixed;
    width: 100%;
}

@media (min-width: 660px) {
    .c-content {
        margin-bottom: 0;
        margin-top: 0;
    }

    .c-content__inner {
        display: grid;
        height: calc(100vh - var(--footer-height));
        grid-template-columns: 1fr 1fr;
        row-gap: 3rem;
    }

    .c-photo {
        margin: 0 auto;
    }
}

@media (min-width: 990px) {
    .c-content__inner {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }
}

@media (min-width: 1100px) {
    .c-content__inner {
        display: flex;
        flex-direction: row;
        gap: 3rem;
    }
}