﻿section > div > h4 {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 2em;
    position: relative;
}

    section > div > h4:before {
        content: "";
        position: absolute;
        /*left: 40%;*/
        bottom: 0;
        height: 5px;
        width: 55px;
        background-color: var(--lmc-orange);
        transform: translateX(-50%);
    }

    section > div > h4:after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 2px;
        height: 1px;
        width: 65%;
        max-width: 255px;
        background-color: var(--lmc-orange);
        transform: translateX(-50%);
    }

section {
    margin: 3% 5%;
}

    section > div > p {
        padding: 2% 10%;
        text-align: center;
    }

    section > div > div {
        padding: 0 3%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

        section > div > div > a {
            padding: 5%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: 0.4s ease-in-out;
            cursor: pointer;
            background-color: white;
        }

        section > div > div > a {
            border-right: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
        }

            section > div > div > a:nth-child(4n) {
                border-right: none;
            }

            section > div > div > a:nth-last-child(-n+4) {
                border-bottom: none;
            }

            section > div > div > a > img {
                width: 80%;
                max-width: 100%;
                height: auto;
                object-fit: contain;
                display: block;
            }

            section > div > div > a:hover {
                transform: translateY(-15px);
                box-shadow: rgba(239, 124, 0, 0.12) 0px 2px 4px 0px, var(--lmc-orange) 0px 2px 16px 0px;
            }


/*#region Container animations */
.animationBox {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

    .animationBox.show {
        opacity: 1;
        transform: translateY(0);
    }
/*#endregion*/
@media (max-width: 480px) {
    section > div > p {
        text-align: center;
        padding: 2% 3%;
    }

    section > div > div {
        padding: 0 1%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    section > div > h4:before {
        left: 25%;
    }
    section > div > div > a:nth-child(4n) {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    section > div > div > a:nth-last-child(-n+4) {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    section > div > div > a:nth-child(2n) {
        border-right: none !important;
    }

    section > div > div > a:nth-last-child(-n+2) {
        border-bottom: none !important;
    }
}
