@import 'commonstyles.css';

.casestudydetail {
    --white: #FFF;
    --offwhite: #EDEEEF;
    --lightgrey: #1A1818;
    --primary: #E82717;
    --secondary: #B0BE4F;
    --lightgrey: #707070;
    --darkgrey: #5F6060;

    .wrap {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;

        @media (max-width: 1200px) {
            width: auto;
        }

        &.quote-wrap {
            @media (max-width: 380px) {
                padding: 0 7px;
            }
        }
    }

    .cs_header {
        height: 640px;
        width: 100%;
        isolation: isolate;
        overflow: hidden;
        position: relative;

        /* aspect-ratio: 3/1;
        @media (max-width: 768px) {
        aspect-ratio: 5/8;
        } */
        .bannerimage {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
            display: none;

            &.bannerimagelg {
                @media (min-width: 769px) {
                    display: block;
                }
            }

            &.bannerimagesm {
                @media (max-width: 768px) {
                    display: block;
                }
            }
        }

        .cs_header_text {
            height: 100%;
            display: flex;
            align-items: flex-end;

            @media (max-width: 768px) {
                align-items: flex-start;
            }

            h1 {
                font-weight: 800;
                font-size: 88px;
                letter-spacing: 7px;
                line-height: 120%;
                width: 65%;
                color: var(--white);
                text-transform: uppercase;
                /* margin-bottom: 100px; */

                @media (max-width: 768px) {
                    font-size: 48px;
                    width: 100%;
                    margin: 40px 0 0 20px;
                    padding: 0 20px 0 0;
                    border-bottom: 10px var(--primary) solid;
                    padding-bottom: 10px;
                }

                span {
                    display: inline-block;
                    border-bottom-color: var(--primary);
                    padding-bottom: 10px;
                    border-bottom-width: 7px;
                    border-bottom-style: solid;

                    @media (max-width: 768px) {
                        border: none
                    }
                }
            }
        }

        @media (max-width: 768px) {
            &:after {
                content: '';
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: var(--primary);
                z-index: 1;
                height: 65px;
                mix-blend-mode: multiply;
            }

            &:before {
                content: '';
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: var(--white);
                z-index: 0;
                height: 65px;
                opacity: .5;
            }
        }
    }

    .cs_subheader {
        position: relative;
        z-index: 1;
        top: -26px;

        @media (max-width: 768px) {
            margin-top: -65px;
            top: 0px;
        }

        .cs_subheader_text {
            width: 92%;
            padding-left: 20px;
            ;

            @media (max-width: 768px) {
                width: 100%;
            }

            @media (max-width: 600px) {
                padding-left: 0px;
            }

            h2 {
                padding: 0;
                position: relative;
                isolation: isolate;

                &:after {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: -20px;
                    right: auto;
                    bottom: 0;
                    height: 100%;
                    background-color: rgb(255 20 0 / 1) !important;
                    z-index: 1;
                    width: 20px;
                    font-weight: 900;

                    @media (max-width: 768px) {
                        display: none;
                    }
                }

                @media (max-width: 768px) {
                    border: none;
                    padding: 0;
                }

                &::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: -20px;
                    height: 26px;
                    /* background-color: #000000; */
                    z-index: -1;
                    right: 26px;
                    opacity: .7;

                    @media (max-width: 768px) {
                        display: none;
                    }
                }

                span {
                    background-color: rgb(255 20 0 / 1) !important;
                    line-height: 184%;
                    color: var(--offwhite);
                    display: inline;
                    /* white-space: pre-wrap; */
                    font-size: 27px;
                    letter-spacing: 2.4px;
                    text-transform: uppercase;
                    padding: 8px 20px 8px 0;
                    position: relative;
                    isolation: isolate;
                    font-weight: 900;
                    /* @media (max-width:1440px){
                        line-height: 183%;
                    } */

                    @media (max-width: 768px) {
                        display: block;
                        padding: 14px 20px;
                        margin: 0 -20px;
                        background-color: transparent;

                        &:after {
                            content: '';
                            position: absolute;
                            top: 65px;
                            left: 0;
                            right: 0;
                            bottom: 0;
                            background-color: var(--primary);
                            z-index: -1;
                            display: block;

                            @media (max-width: 600px) {
                                background-color: rgb(255 20 0 / 1) !important;
                            }
                        }
                    }

                    @media (max-width: 600px) {
                        line-height: 140%;
                    }
                }
            }
        }
    }

    .cs_section {
        padding: 32px 0;

        .cs_challenge_text {
            display: flex;
            flex-direction: column;
            gap: 8px;

            h3 {
                color: var(--lightgrey);
                text-transform: uppercase;
                font-size: 28px;
                letter-spacing: 2.5px;
                font-weight: 800;
                margin: 0;
            }

            p {
                color: var(--lightgrey);
                font-size: 22px;
                line-height: 140%;
                letter-spacing: .7px;
                font-weight: 200;
            }
        }
    }

    .cs_section_solutions {
        isolation: isolate;
        position: relative;
        z-index: -1;
        padding-bottom: 100px;

        @media (max-width: 768px) {
            padding-bottom: 40px;
        }

        &:before {
            content: '';
            position: absolute;
            top: -200px;
            left: 0;
            width: 100%;
            bottom: 0;
            background-color: #EDEEEF;
            z-index: -1;
        }

        &.cs_section_solutions_dark {
            background-color: #EDEEEF;
            padding: 80px 0;
            margin-top: 100px;

            @media (max-width: 768px) {
                margin-top: 50px;
            }

            &:before {
                display: none;
            }

            .cs_processheader {
                background-color: var(--primary);
                padding: 16px 24px;
                position: absolute;
                top: -115px;
                left: 0;
                color: var(--white);
                font-size: 28px;
                letter-spacing: 2.5px;
                text-transform: uppercase;
                font-weight: 800;
            }
        }

        .cs_solutions {
            display: grid;
            grid-template-columns: 1fr;
            gap: 60px;
            position: relative;


            @media (max-width: 768px) {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            @media (max-width: 768px) {
                padding-top: 20px;
            }

            .cs_solution_col {
                display: flex;
                flex-direction: column;
                gap: 20px;

                .cs_solution {
                    display: flex;
                    flex-direction: column;
                    gap: 8px;

                    h3 {
                        color: var(--lightgrey);
                        text-transform: uppercase;
                        font-size: 23px;
                        letter-spacing: 2px;
                        font-weight: 800;
                        margin: 0;
                    }

                    p {
                        color: var(--lightgrey);
                        font-size: 17px;
                        line-height: 24px;
                        letter-spacing: .5px;
                        font-weight: 100;
                    }
                }
            }

        }
    }

    .cs_stats {
        display: flex;
        align-items: flex-start;
        gap: 180px;
        margin: 60px 0;
        max-width: 100%;
        width: 1080px;
        margin: 0 auto;
        padding: 0 20px;

        @media (max-width: 1080px) {
            max-width: none;
            width: auto;
            gap: 80px;
        }

        @media (max-width: 992px) {
            flex-direction: column;
            gap: 0px;
            align-items: center;
        }

        .cs_stat {
            position: relative;
            text-align: center;
            padding: 0 0 40px 0;
            margin-top: 60px;

            &:after {
                content: "";
                height: 140px;
                width: 2px;
                background-color: var(--lightgrey);
                position: absolute;
                top: 50%;
                transform: translate(0px, -50%);
                right: -90px;

                @media (max-width: 1080px) {
                    right: -40px;
                }

                @media (max-width: 992px) {
                    display: none;
                }
            }

            &:last-child {
                &:after {
                    display: none;
                }
            }

            .stattoptext {
                font-size: 22px;
                font-weight: 200;
                color: var(--secondary);
                letter-spacing: 2px;
                position: absolute;
                left: 0;
                right: 0;
                text-align: center;
                top: -20px;
            }

            .stat_number {
                font-size: 125px;
                font-weight: 800;
                color: var(--secondary);
                text-transform: uppercase;
                letter-spacing: 3px;

            }

            .stattext {
                font-size: 22px;
                font-weight: 200;
                color: var(--white);
                letter-spacing: 1px;
                text-wrap: balance;

                span {
                    display: inline-block;
                    background-color: var(--secondary);
                    padding: 4px 8px;
                    margin: 0 -8px;
                }
            }
        }
    }

    .cs_results {
        display: flex;
        flex-direction: column;
        gap: 8px;

        @media (max-width: 768px) {
            gap: 16px;
        }

        .cs_result_text {
            display: flex;
            flex-direction: column;
            gap: 8px;

            @media (max-width: 768px) {
                order: 2;
            }

            h3 {
                color: var(--lightgrey);
                text-transform: uppercase;
                font-size: 28px;
                letter-spacing: 2.5px;
                font-weight: 800;
                margin: 0;
            }

            p {
                color: var(--lightgrey);
                font-size: 18px;
                line-height: 24px;
                letter-spacing: .5px;
                font-weight: 200;
            }
        }

        .resultsgrid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 16px;

            @media (max-width: 768px) {
                grid-template-columns: 1fr;
                grid-template-rows: 1fr;
                order: 1;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;

                @media (max-width: 768px) {
                    height: auto;
                }
            }

            .cs_result_left {
                @media (min-width: 769px) {
                    grid-row: span 2;
                }
            }

            .cs_result_topright {
                @media (min-width: 769px) {
                    grid-column: 2;
                    grid-row: 1;
                }
            }

            .cs_result_bottomright {
                @media (min-width: 769px) {
                    grid-column: 2;
                    grid-row: 2;
                }
            }
        }
    }

    .cs_quote {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;

        @media (max-width: 768px) {
            padding: 0 0 40px 0;
        }

        .quoteheaderimage {
            @media (max-width: 768px) {
                margin: -32px -20px 0;
                width: calc(100% + 40px);
                max-width: none;
            }
        }

        .cs_quotecol {
            position: relative;
            isolation: isolate;

            .openingquote {
                position: absolute;
                top: 10px;
                left: 0;
                text-align: center;
                font-size: 80px;
                color: var(--primary);
                font-weight: 800;
                letter-spacing: 2px;
                z-index: -1;
            }

            .closingquote {
                position: absolute;
                bottom: 16px;
                right: 0;
                text-align: center;
                font-size: 80px;
                color: var(--primary);
                font-weight: 800;
                letter-spacing: 2px;
                z-index: -1;

                @media (max-width: 768px) {
                    bottom: 80px;
                }

                @media (max-width: 380px) {
                    bottom: 50px;
                }
            }

            .quotetext {
                color: var(--lightgrey);
                font-size: 24px;
                letter-spacing: .5px;
                font-weight: 200;
                padding: 40px 20px 0;

                @media (max-width: 768px) {
                    text-align: center;
                    padding: 40px 10px 0;
                }

                @media (max-width: 380px) {
                    font-size: 22px;
                }

                span {
                    display: inline;
                    background-color: var(--secondary);
                    white-space: pre-wrap;
                    color: var(--white);
                    padding: 4px;
                }
            }

            .author {
                color: var(--lightgrey);
                text-transform: uppercase;
                font-size: 24px;
                letter-spacing: 2.5px;
                font-weight: 800;
                margin: 0;
                text-align: right;

                @media (max-width: 768px) {
                    text-align: center;
                }

                @media (max-width: 380px) {
                    font-size: 22px;
                }
            }
        }
    }

    .cs_sectiondark {
        background-color: var(--darkgrey);
        padding: 80px 0;

        .darkheader {
            color: var(--white);
            font-size: 28px;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            font-weight: 800;
            margin-bottom: 32px;

            sup {
                font-size: 60%;
                position: relative;
                top: 1px;
            }
        }

        .quotegrid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;

            @media (max-width: 768px) {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            p {
                color: var(--white);
                font-size: 22px;
                line-height: 32px;
                letter-spacing: .5px;
                font-weight: 200;
            }
        }
    }

    .stretchimgsm {
        @media (max-width: 768px) {
            margin: 0 -20px;
            width: calc(100% + 40px);
            max-width: none;
        }
    }
}

/* 01-07-2025 */

.heroText {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 100px !important;
    position: relative;

    @media (max-width:600px) {
        display: block;
        margin-bottom: 0px !important;
    }
}

.heroText h1 {
    margin-bottom: 0;
}

.heroText img {
    @media (max-width:600px) {
        max-width: 222px;
        position: absolute;
        bottom: -143%;
        right: 5px;
    }

}

.gridCol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;

    @media (max-width:600px) {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }
}

.pointsWrapper {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);

    @media (max-width:600px) {
        grid-template-columns: 1fr;
        gap: 0px !important;
    }
}

.pointsWrapper ul {
    margin: 0;
    padding: 0;
}

.pointsWrapper ul li {
    list-style: none;
    color: var(--lightgrey);
    font-size: 17px;
    line-height: 24px;
    letter-spacing: .5px;
    font-weight: 100;

}

.deoseSection h3 {
    color: var(--lightgrey);
    text-transform: uppercase;
    font-size: 27px;
    letter-spacing: 2.4px;
    font-weight: 800;
    margin: 0;
}

.deoseSection {
    margin: 30px auto !important;
}

.formSection {
    width: 100%;
    margin-bottom: 100px;

    @media (max-width:600px) {
        margin-bottom: 40px;
        padding-top: 0px !important;
    }
}

.formSection .cs_solution h3 {
    color: var(--lightgrey);
    text-transform: uppercase;
    font-size: 27px;
    letter-spacing: 2.4px;
    font-weight: 800;
    margin: 0;
    margin-bottom: 10px;
}

.formSection .cs_solution p {
    color: var(--lightgrey);
    font-size: 22px;
    line-height: 140%;
    letter-spacing: .7px;
    font-weight: 200;
}

.formWrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.inputWrap {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    @media (max-width:600px) {
        grid-template-columns: 1fr;
    }
}

.inputWrap input {
    width: 100%;
    height: 30px;
    padding: 0 10px;
    background-color: #EDEEEF;
    border: 0;
    outline: transparent;
    color: #707070;
    text-transform: uppercase;
    font-size: 17px !important;
    line-height: 17px;
}

.inputWrap input::placeholder {
    color: #CDCED0;
    text-transform: uppercase;
    font-size: 17px;
    line-height: 17px;
    letter-spacing: .5px;
    font-weight: 300;
}

.messageWrap {
    width: 100%;
}

.messageWrap textarea {
    width: 100%;
    height: 94px;
    padding: 10px;
    font-size: 17px;
    line-height: 17px;
    background-color: #EDEEEF;
    text-transform: uppercase;
    border: 0;
    outline: none;
    color: #707070;
}

.messageWrap textarea::placeholder {
    color: #CDCED0;
    text-transform: uppercase;
    font-size: 17px;
    line-height: 17px;
    letter-spacing: .5px;
    font-weight: 300;
}

.buttonWrap {
    width: 100%;
}

.buttonGrey {
    padding: 10px 12px;
    border: 3px solid #707070;
    font-size: 23px;
    color: #D9D9D9;
    font-weight: 800;
    line-height: 100%;
    background-color: transparent;
    text-transform: uppercase;
    color: #707070;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    letter-spacing: 2.4px;
}

.buttonGrey:hover {
    color: #fff;
    background-color: #707070;
}

.buttonWhite {
    padding: 10px 12px;
    border: 3px solid #fff;
    font-size: 23px;
    color: #fff !important;
    font-weight: 800;
    line-height: 100%;
    background-color: transparent;
    text-transform: uppercase;
    color: #707070;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    letter-spacing: 2.4px;
}

.buttonWhite:hover {
    color: #1A1818 !important;
    background-color: #fff;
}

.footerSection {
    width: 100%;
    background-color: #1A1818;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;

    @media (max-width:600px) {
        padding: 50px 0px;
        overflow: hidden;
    }
}

.footerSection .wrap {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin: 0 auto;
    padding: 0 20px;

    @media (max-width:600px) {
        flex-direction: column;
        justify-content: center;
        gap: 75px;
    }

}

.footerInfo {
    max-width: 500px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;

    @media (max-width:600px) {
        justify-content: center;
        align-items: center;
    }
}

.footerInfo h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    color: #fff;
    letter-spacing: 2.4px;
    margin-bottom: 20px;

    @media (max-width:600px) {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

.footerInfo ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;

    @media (max-width:600px) {
        justify-content: center;
        align-items: center;
        gap: 2px;
    }
}

.footerInfo ul li {
    list-style: none;
}

.footerInfo ul li a {
    font-size: 18px;
    font-weight: 200;
    line-height: 100%;
    color: #fff;
    letter-spacing: 2.3px;
    margin-bottom: 4px;
    font-weight: 300;

    @media (max-width:600px) {
        font-size: 16px;
    }
}

.footerInfo ul li p {
    font-size: 18px;
    font-weight: 200;
    line-height: 100%;
    color: #fff;
    letter-spacing: 2.3px;
    margin-bottom: 4px;
    font-weight: 300;

    @media (max-width:600px) {
        font-size: 16px;
    }
}

.footerInfo a.buttonWhite {
    margin-top: 39px;

    /* color: #fff; */
    @media (max-width:600px) {
        margin-top: 33px;
    }
}

.footerSocial {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    gap: 72px;

    @media (max-width:600px) {
        gap: 33px;
        justify-content: center;
        align-items: center;
    }
}

.footerLogo {
    height: 55px;
    width: initial;

    img {
        height: 100%;
    }

    @media (max-width:600px) {
        height: 55px;
    }
}

.footerSocial ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.footerSocial ul li {
    list-style: none;
}

.footerSocial ul li a {
    transition: all .2s;
}

.footerSocial ul li a:hover {
    opacity: .7;
}

.footerSocial ul li a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.labelSection {
    width: 100%;
    background-color: #1A1818;
    padding: 12px 0 !important;

    @media (max-width:600px) {
        text-align: center;
    }
}

.labelSection h2 {
    font-size: 27px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 2.4px;
    margin: 0;
    text-transform: uppercase;

    @media (max-width:600px) {
        font-size: 18px;
        text-align: center;
    }
}

.sliderSection {
    width: 100%;
    overflow: hidden;
    background-color: #B0BE4F;
    padding: 30px 0;

    @media (max-width:600px) {
        padding: 15px 10px;
        width: calc(100% - 20px);
    }
}

.sliderWrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.sliderTrack {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;

    @media (max-width:600px) {
        display: block;
        width: 100%;
    }
}

.slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 40px;

    @media (max-width:600px) {
        margin-right: 0px;
        width: 100%;
        display: block;
    }
}

.slide p {
    font-size: 22px;
    color: #EDEEEF;
    letter-spacing: 2.3px;
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;

    @media (max-width:600px) {
        white-space: wrap;
        font-size: 18px;
        text-align: center;
        gap: 10px;
        display: inline-block;
        width: 100%;
    }
}

.slide p img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}


@media (min-width:601px) {

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

.galleryTop {
    width: 100%;
}

.galleryTop .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    grid-auto-rows: 12.5rem;
    grid-auto-flow: dense;
    gap: 0.75rem;
    width: 100%;
}

.galleryTop .gallery figure {
    container: figure / inline-size;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    margin: 0;
}

.galleryTop .gallery img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: scale 1s ease-in-out;
}

.galleryTop .gallery figure:hover img {
    scale: 1.125;
}

.galleryTop .gallery figcaption {
    z-index: 1;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.3;
    background: linear-gradient(transparent 25%, rgb(0 0 0 / 0.75));
    display: none;
}

@container figure (width > 600px) {
    .galleryTop .gallery figcaption {
        display: block;
    }
}

@media (width > 1081px) {
    .galleryTop .gallery figure:nth-child(1) {
        grid-area: span 1 / span 2;
        grid-row: span 3;
    }

    .galleryTop .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
        grid-area: span 2 / span 2;
    }

    .galleryTop .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 2;
    }

    .galleryTop .gallery figure:nth-child(5n) {
        grid-area: span 2 / span 1;
    }
}

@media (width < 1080px) {
    .galleryTop .gallery figure:nth-child(1) {
        grid-area: span 1 / span 2;
        grid-row: span 3;
    }

    .galleryTop .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
        grid-area: span 2 / span 2;
    }

    .galleryTop .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 3;
    }

    .galleryTop .gallery figure:nth-child(5n) {
        grid-area: span 2 / span 1;
    }
}

@media (width < 992px) {
    .galleryTop .gallery figure:nth-child(1) {
        grid-area: span 1 / span 2;
        grid-row: span 2;
    }

    .galleryTop .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
        grid-area: span 2 / span 2;
    }

    .galleryTop .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 1;
    }

    .galleryTop .gallery figure:nth-child(5n) {
        grid-area: span 2 / span 1;
    }
}

@media (width < 700px) {

    .galleryTop .gallery {
        grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    }

    .galleryTop .gallery figure:nth-child(1) {
        grid-area: span 1 / span 1;
        grid-row: span 0;
    }

    .galleryTop .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
        grid-area: span 0 / span 2;
        order: 3;
    }

    .galleryTop .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 2;
        order: 5;
    }

    .galleryTop .gallery figure:nth-child(5n) {
        grid-area: span 3 / span 2;
        order: 4;
    }

    .galleryBottom .gallery {
        grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    }

    .galleryBottom .gallery figure:nth-child(1) {
        grid-area: span 1 / span 1;
        grid-row: span 1;
    }

    /* 
    .galleryBottom .gallery figure:nth-child(4n + 2) {
        grid-column: span 1;
        grid-area: span 1 / span 1;
        order: 1;
    }

    .galleryBottom .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 1;
        order: 3;
    }

    .galleryBottom .gallery figure:nth-child(5n) {
        grid-area: span 1 / span 1;
        order: 4;
    } */
}

.galleryLogo {
    width: 100%;
}

.galleryLogo .gallery {
    width: 100%;
}

.galleryLogo .gallery img {
    width: 100%;
}

/* 
@media (max-width:1200px) {
    .galleryLogo .gallery {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width:768px) {
    .galleryLogo .gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width:600px) {
    .galleryLogo .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px
    }
} */

.galleryBottom {
    width: 100%;
    margin-top: 30px;
}

.galleryBottom .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    grid-auto-rows: 12.5rem;
    grid-auto-flow: dense;
    gap: 0.75rem;
    width: 100%;
}

.galleryBottom .gallery figure {
    container: figure / inline-size;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    margin: 0;
}

.galleryBottom .gallery img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: scale 1s ease-in-out;
}

.galleryBottom .gallery figure:hover img {
    scale: 1.125;
}

.galleryBottom .gallery figcaption {
    z-index: 1;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.3;
    background: linear-gradient(transparent 25%, rgb(0 0 0 / 0.75));
    display: none;
}

@container figure (width > 600px) {
    .galleryBottom .gallery figcaption {
        display: block;
    }
}

@media (width > 1081px) {
    .galleryBottom .gallery figure:nth-child(1) {
        grid-area: span 1 / span 1;
        grid-row: span 1;
    }

    .galleryBottom .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
        grid-area: span 2 / span 2;
    }

    .galleryBottom .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 2;
    }

    .galleryBottom .gallery figure:nth-child(5n) {
        grid-area: span 1 / span 1;
    }

    .galleryBottom .gallery figure:nth-child(6n) {
        grid-area: span 1 / span 1;
    }
}

@media (width < 1080px) {
    .galleryBottom .gallery figure:nth-child(1) {
        grid-area: span 1 / span 2;
        grid-row: span 3;
    }

    .galleryBottom .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
        grid-area: span 1 / span 3;
    }

    .galleryBottom .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 2;
    }

    .galleryBottom .gallery figure:nth-child(5n) {
        grid-area: span 1 / span 2;
    }

    .galleryBottom .gallery figure:nth-child(6n) {
        grid-area: span 1 / span 3;
    }
}

@media (width < 992px) {
    .galleryBottom .gallery figure:nth-child(1) {
        grid-area: span 1 / span 2;
        grid-row: span 2;
    }

    .galleryBottom .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
        grid-area: span 2 / span 2;
    }

    .galleryBottom .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 1;
    }

    .galleryBottom .gallery figure:nth-child(5n) {
        grid-area: span 2 / span 1;
    }
}

@media (width < 700px) {

    .galleryBottom .gallery {
        grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    }

    .galleryBottom .gallery figure:nth-child(1) {
        grid-area: span 1 / span 1;
        grid-row: span 0;
    }

    .galleryBottom .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
        grid-area: span 1 / span 2;
    }

    .galleryBottom .gallery figure:nth-child(4n) {
        grid-area: span 1 / span 2;
    }

    .galleryBottom .gallery figure:nth-child(5n) {
        grid-area: span 2 / span 2;
    }
}

@media (width < 540px) {

    .galleryBottom .gallery {
        grid-template-columns: 1fr 1fr;
    }

}

/* 01-07-2025 */

.formsuccess.formsuccesshide {
  display: none;
}

.errorText {
  font-size: 12px;
  color: #f00;
  font-weight: 500;
}