﻿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: 24%;
        max-width: 255px;
        background-color: var(--lmc-orange);
        transform: translateX(-50%);
    }

.titleContainer {
    height: 190px;
    opacity: 0.5;
}

.scroll-wrapper {
    height: 200px !important;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    overflow: hidden;
    z-index: -1;
}

.scroll-track {
    display: flex;
    gap: 50px;
    will-change: transform;
}

.scroll-item img {
    width: 250px;
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
}

.scroll-wrapper:hover {
    animation-play-state: paused;
}


.infoContainer {
    margin: 2% 15%;
}

    .infoContainer > h4 {
        margin: 5% 0;
    }

    .infoContainer > p {
        color: gray;
        font-size: medium;
    }
/*#region Containers*/
.contentContainer {
    margin: 0 5%;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    justify-content: center;
    text-align: center;
    padding: 0 4%;
}


    .contentContainer > div {
        padding: 13%;
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        background-color: white !important;
        transition: 0.4s ease-in-out;
    }

        .contentContainer > div:nth-child(4n) {
            border-right: none;
        }

        .contentContainer > div:nth-last-child(-n+4) {
            border-bottom: none;
        }

        .contentContainer > div > a {
            display: block;
            height: 300px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            cursor: pointer;
        }

        .contentContainer > div:hover {
            transform: translateY(-15px);
            box-shadow: rgba(239, 124, 0, 0.12) 0px 2px 4px 0px, rgba(239, 124, 0, 0.32) 0px 2px 16px 0px;
        }

        .contentContainer > div > p {
            margin-top: 5% !important;
            font-weight: bold;
            font-size: larger;
            color: dimgray;
        }

/*#endregion*/
/*#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 h4:before {
        left: 18% !important;
    }

    section > div h4:after {
        width: 80% !important;
    }

    html, body {
        overflow-x: hidden;
    }

    .titleContainer > div > img {
        width: 90%;
    }

    .infoContainer {
        margin: 7% 15%;
    }

    .contentContainer > div > p {
        font-size: smaller;
    }

    .scroll-item img {
        width: 120px;
    }

    .scroll-track {
        gap: 20px;
    }

    .titleContainer {
        height: 120px;
    }

    .scroll-wrapper {
        height: 120px !important;
    }
}

@media (max-width: 820px) {
    html, body {
        overflow-x: hidden;
    }
    section > div h4:before {
        left: 32%;
    }

    section > div h4:after {
        width: 50%;
    }
    .contentContainer > div > p {
        margin-top: 0;
    }

    .contentContainer > div > a {
        height: 100px;
    }

    .scroll-item img {
        width: 180px;
    }

    .scroll-track {
        gap: 30px;
    }

    .titleContainer {
        height: 160px;
    }

    .scroll-wrapper {
        height: 160px !important;
    }
}

@media (max-width: 1024px) {
    .contentContainer {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
    }

        .contentContainer > div:nth-child(4n) {
            border-right: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
        }

        .contentContainer > div:nth-last-child(-n+4) {
            border-right: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
        }

        .contentContainer > div:nth-child(2n) {
            border-right: none;
        }

        .contentContainer > div:nth-last-child(-n+2) {
            border-bottom: none;
        }
}
