html {
    scroll-behavior: smooth;
}
h1 span {
    line-height: 1.2em;
}
h1#title {
    font-size: 4.563em
}
h2 {
    font-family: Lora;
    font-size: 2.563em;
    scroll-margin-top: 100px;
    line-height: 1.2em;
}
h2:not(:first-of-type) {
    margin-top: 6.5rem;
}
h3 {
    font-family: Lora;
    font-size: 1.5em;
    text-transform: capitalize;
}
.ribbon-content {
    margin-top: 10rem;
}
#project {
    .breadcrumbs {
        span {
            display: flex;
            gap: 1.5rem;
        }
    }
    .breadcrumbs > span:first-of-type {
        font-size: 1.063em;
    }
    .breadcrumbs span.category {
        color: #E87722;
        font-size: 0.875em;
        text-transform: uppercase;
    }
    p {
        margin-bottom: 1rem;
    }
    a {
        color: #e87722;
    }
    ul {
        list-style-type: none;

        li {
            text-indent: -2em;
            padding-left: 2em;
        }
        li:not(:first-of-type) {
            margin-top: 0.5rem;
        }
        li:first-child::before {
            content: "⬒";
        }
        li::before {
            content: "▢";
            margin-right: 1rem;
        }
        li:last-child::before {
            content: "⬓";
        }
    }

    @media (max-width: 1025px) {
        #content-body #content blockquote {
            border: 0;
            padding-left: 1rem;
            margin-left: 2.5rem;
            padding-top: 1rem;
            padding-right: 1.875rem;

        }
        #content-body #content blockquote::before {
            left: -2.5rem;
            top: -67px;
            font-size: 8.25rem;

        }
    }

    #content blockquote {
        position: relative;
        margin-top: 3.75rem;
        margin-bottom: 4.75rem;
        margin-left: 3.75rem;
        padding-left: 3.75rem;
        padding-right: 4.75rem;
        border-left: 0.063rem solid #E87722;
    }
    #content blockquote p {
        padding-bottom: 0;
        text-align: left;
        font-family: Lora;
    }

    #content blockquote:before {
        content: "”";
        position: absolute;
        top: -105px;
        left: -7.49rem;
        font-size: 11.25rem;
        font-family: 'Lora';
        color: #E87722;
    }



    #content-body {
        p {
            color: #070401;
        }

        @media (max-width: 768px) {
            /* Movil */
            #floating-menu {
                position: relative;
                padding: 10px;
                padding-left: 1.875rem;
                padding-bottom: 2.75rem;
                width: 18rem;
                height: fit-content;

                li {
                    margin-bottom: 1.375rem;
                    text-indent: 0;
                    padding-left: 0;

                }


                li a {
                    color: #878787;
                    font-size: 1.125rem;
                    display: flex;
                    gap: 1.375rem;

                }

                li span.title-arrow {
                    min-width: 1.375rem;
                    display: block;
                    width: 1.375rem;

                    .dp1 {
                        fill: #878787;
                    }
                }

                li:hover a {
                    color: #e87722;
                }
                li:hover span .dp1 {
                    fill: #e87722;
                }
                li.active a {
                    color: #e87722;
                }

                li.active span .dp1 {
                    fill: #e87722;
                }

                li:first-child::before {
                    content: none;
                }

                li::before {
                    content: none;
                }

                li:last-child::before {
                    content: none;
                }

            }

            #content {
                h2 {
                    font-size: 1.875em;
                }
                h2:not(:first-of-type) {
                    margin-top: 5rem;
                }
            }
            p:last-child {
                padding-bottom: 0;
            }
        }

        @media (min-width: 769px) {
            /* Desktop */
            #floating-menu {
                position: sticky;
                top: 20vh;
                padding: 10px;
                width: 18rem;
                height: fit-content;

                li {
                    margin-bottom: 1.375rem;
                    text-indent: 0;
                    padding-left: 0;
                }


                li a {
                    color: #878787;
                    font-size: 1.125rem;
                    display: flex;
                    gap: 1.375rem;

                }

                li span.title-arrow {
                    min-width: 1.375rem;
                    display: block;
                    width: 1.375rem;

                    .dp1 {
                        fill: #878787;
                    }
                }

                li:hover span .dp1 {
                    fill: #e87722;
                }
                li:hover a {
                    color: #e87722;
                }
                li.active a {
                    color: #e87722;
                }

                li.active span .dp1 {
                    fill: #e87722;
                }

                li:first-child::before {
                    content: none;
                }

                li::before {
                    content: none;
                }

                li:last-child::before {
                    content: none;
                }

            }
        }

        #content > div:has(> p) {
            align-items: start;
        }
        #content > div:has(> ul) {
            align-items: start;
        }

        #content {
            ul, p {
                max-width: 42.25rem;
            }
            ul {
                margin-bottom: 1rem;
                width: 100%;
            }
            figure {
                margin-top: 3rem;
                margin-bottom: 4.5rem;
                transition: width 0.1s linear;
            }

            figcaption {
                color: #828282;
                font-size: 0.875em;
                margin-top: 1rem;
                line-height: 140%;
            }
        }
    }

    @media (max-width: 768px) {
        /* Movil */
        .grid-container {
            width: 100%;
            position: relative;
            display: grid;
            grid-template-rows: 10.5rem 5.625rem 2.813rem 2.813rem;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 1.125rem;
            height: fit-content;
            margin-bottom: 8.75rem;

            div:nth-of-type(1) {
                overflow: hidden;
                grid-row: 1 / span 1;
                grid-column: 1 / span 4;
            }

            div:nth-of-type(2) {
                grid-column: 1 / span 2;
                grid-row: 2 / span 3;
            }

            div:nth-of-type(3) {
                grid-column: 3 / span 2;
                grid-row: 2 / span 1;
            }

            div:nth-child(4) {
                grid-column: 3 / span 1;
                grid-row: 3 / span 2;
            }

            div:nth-child(5) {
                grid-column: 4 / span 1;
                grid-row: 3 / span 1;
            }

            div:nth-child(6) {
                grid-column: 4 / span 1;
                grid-row: 4 / span 1;
            }
        }
    }

    @media (min-width: 769px) {
        /* Desktop */
        .grid-container {
            width: fit-content;
            position: relative;
            display: grid;
            grid-template-columns: 42.25rem 13.375rem 6.75rem 9rem;
            grid-template-rows: 1fr 1fr 1fr 1fr;
            gap: 1.875rem;
            height: 23.75rem;
            margin-bottom: 6rem;

            div:nth-of-type(1) {
                grid-column: 1 / span 1;
                grid-row: 1 / span 4;
            }

            div:nth-of-type(2) {
                grid-column: 2 / span 1;
                grid-row: 1 / span 4;
            }

            div:nth-of-type(3) {
                grid-column: 3 / span 2;
                grid-row: 1 / span 2;
            }

            div:nth-child(4) {
                grid-column: 3 / span 1;
                grid-row: 3 / span 2;
            }

            div:nth-child(5) {
                grid-column: 4 / span 1;
                grid-row: 3 / span 1;
            }

            div:nth-child(6) {
                grid-column: 4 / span 1;
                grid-row: 4 / span 1;
            }
        }
    }


}

/* Images of the post */
@media (max-width: 1025px) {
    #content figure:nth-of-type(odd) {
        position: relative;
        left: 0;
        width: 100%;
    }

    #content figure:nth-of-type(even) {
        position: relative;
        width: 100%;
    }

}

@media (min-width: 1024px) and (max-width: 1400px) {
    #content figure:nth-of-type(odd) {
        position: relative;
        width: 100%;
    }

    #content figure:nth-of-type(even) {
        position: relative;
        width: 100%;
    }
}

@media (min-width: 1401px) {
    #content figure:nth-of-type(odd) {
        position: relative;
        left: -12.375rem;
        width: 60.375rem;
        height: auto;
    }

    #content figure:nth-of-type(even) {
        position: relative;
        width: 100%;
    }
}
