
/* ------------- FOOTER SECTION ------------- */
footer {
    padding: 20px 40px;
    font-size: 0.8rem;
    text-align: center;
    background: #111;
    color: #fff;
    max-height: 100vh;
    height: auto;
    max-width: 100%;
    container-type: inline-size;
    container-name: footer;
}

.footer__link  {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    padding: 0 2px;
    font-size: 0.7rem;
}

footer h3 {
    font-size: 0.7rem;
    font-weight: 400;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: auto auto;
    align-items: top;
    justify-content: center;
    padding: 10px;
    margin: 0;
    margin-bottom: 20px;
    row-gap: 28px;
    column-gap: 18px;
}

.footer__grid-item:first-child {
    display: flex;
    flex-direction: column;
}
.footer__grid-item {
    margin-bottom: 20px;
}

.footer__grid-item h2 {
    display: block;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    margin-bottom: 15px;
    padding: 0;
}

.footer__grid-item p > a {
    text-decoration: none;
    color: #fff;
}

.footer__grid-item p > a:hover {
    text-decoration: underline;
}

.footer__grid-item p {
    text-align: left;
    font-size: 0.7rem;
    text-wrap: balance;
    padding: 3px 0;
}

.footer__grid-item:last-child h2{
    margin-bottom: 20px;
}

.footer__grid-item-links {
    display: flex;
    flex-direction: column;
    justify-content: start;
    text-align: left;
    width: 10%;
    min-width: 10vh;
}

.footer__grid-item-links a {
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

.footer__grid-item-links img {
    width: 45%;
}

.footer__grid-item-links a:hover {
    opacity: 0.8;
}

hr {
    border: 1px solid #bbbf;
    width: 100%;
}

/* ------------- FOOTER QUERIES ------------- */
@container footer (min-width: 600px) {
    footer hr {
        margin-top: 30px;
    }
    
    .footer__link  {
        text-decoration: none;
        color: #fff;
        padding: 0 36px;
        font-size: 0.9rem;
    }

    .footer__link:hover  {
        text-decoration: underline;
    }

    footer h3 {
        font-size: 0.9rem;
        margin: 0;
        margin-top: 20px;
    }

    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
    }

    .footer__grid-item h2 {
        font-weight: 500;
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .footer__grid-item p {
        font-size: 0.8rem;
    }

    .footer__grid-item-links img {
        width: 48%;
    }
}