* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

h1, p, a {
    color: #282920;
    font-family: "Montserrat", sans-serif;
    text-align: center;
}

h1 {
    margin-bottom: 16px;
}

h1 span {
    font-weight: bold;
    color: #0039a6;
}

p span {
    font-weight: 500;
}

.title {
    max-width: 350px;
    margin: 0 auto 52px auto;
}

.container {
    padding: 52px 12px;
}

.gift-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;

    @media (min-width: 768px) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 52px;
        width: fit-content;
    }

    @media (min-width: 992px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gift {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;

    @media (min-width: 768px) {
        &:last-child {
            grid-column: span 2;
        }
    }

    @media (min-width: 992px) {
        &:last-child {
            grid-column: auto;
        }
    }

    img {
        width: auto;
        height: 300px;
        border-radius: 15px;
    }

    .gift__title {
        font-weight: bold;
        font-size: 20px;
        max-width: 225px;
    }

    .gift__author {
        font-size: 16px;
    }

    .gift__button {
        text-decoration: none;
        padding: 12.5px;
        background-color: #0039a6;
        border-radius: 15px;
        margin-top: 20px;
        font-weight: 500;
        color: #fff;
        text-transform: uppercase;
        transition: background-color .3s ease-out;
        border: 2px solid transparent;

        &:hover {
            color: #0039a6;
            background-color: transparent;
            border: 2px solid #0039a6;
        }
    }
}

.media {
    width: fit-content;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 80px;
}

svg {
    width: 28px;
    height: 28px;
    transition: opacity .3s ease-out;

    &:hover {
        opacity: .7;
    }
}

footer {
    margin-top: 36px;
    font-weight: 500;
}