/*
Theme Name: TNT-Custom-2.62
Theme URI: http://tntdental.com
Description: TNT Custom Theme - tntdental.com
Version: 2.62
Author: Chuck/Jeff/Tim
Author URI: http://tntdental.com
Tags: mantle color, variable width, two columns, widgets
Text Domain: tnt-custom-theme
Updates: functions.php, rich results breadcrumbs updates, main image - index.php <main><main/> tag removal 
*/

.screen-reader-text {
    position: absolute;
    left: -1000em;
}

/* Captions & alignment */
.aligncenter {
    display: block;
    margin-left: auto;
}

    margin-right: auto;
.alignleft {
    float: left;
    margin: 7px 7px 0 0;
}

.alignright {
    float: right;
    margin: 7px 0 0 7px;
}

/* Header text when no blog posts are present */
h2.coming-soon {
    text-align: center;
}

main {

    ol  {
        counter-reset: my-counter; /* initialize counter */
        padding: 0;
        margin: 10px 0;
        overflow: visible; /* "hidden" will not wrap text around images */
        position: relative;
        text-align: left;

        li {
            counter-increment: my-counter; /* add 1 each <li> tag */
            display: block;
            list-style: none;
            margin: 0;
            padding: 0 0 15px 0;
            position: relative;

            &:before {
                content: counter(my-counter) ". "; /* outputs 1. 2. 3. */
                color: #c39750;
                font-size: 18px;
                font-weight: 800;
                padding: 0 2px 0 0;
            }
        }
    }
}

/* Blog Archive */
body.blog {
    /* padding-top: 199.359px !important; */

    main {
        padding: 0;
        margin: 0 auto;
        background-color: #fff;
    }

    .internal {
        background: #414142;
        padding: 50px 10px;

        #title {

            .container {

                h1 {
                    text-align: center;
                    padding: 0;
                    margin: 0 auto;
                    color: #fff;
                    max-width: 1500px;
                    text-transform: capitalize;
                }
            }
        }
    }

    .content-container {
        padding: 50px 20px;

        .post {
            margin: 50px auto;
            padding: 20px;
            max-width: 1200px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            text-align: left;
            position: relative;

            &:first-of-type {
                margin: 0 auto 50px;
            }

            &:last-of-type {
                margin: 0 auto;
            }

            .storytitle {
                text-align: left;
                margin: 0;

                a {
                    width: 100%;
                    display: block;
                    text-decoration: none;
                }

                &:hover {

                    & + .date {

                        & + .storycontent {

                            .featured-image {

                                img {
                                    transform: scale(1.035);
                                    transition: all 0.3s;
                                }
                            }
                        }
                    }
                }
            }

            .date {
                font-size: 18px;
                font-weight: 700;
                margin: 10px 0 15px;
            }

            .storycontent {

                .featured-image {
                    float: left;
                    display: block;
                    margin: 0 10px 10px 0;
                    transition: all 0.3s;

                    &:hover {

                        img {
                            transform: scale(1.035);
                            transition: all 0.3s;
                        }
                    }

                    img {
                        height: auto;
                        transition: all 0.3s;
                    }
                }
            }
        }
    }
}

/* Single Post */
body.single-post {
    /* padding-top: 199.359px !important; */

    main {
        padding: 0;
        margin: 0 auto;
        background-color: #fff;
    }

    .internal {
        background: #414142;
        padding: 50px 10px;

        #title {

            .container {

                h1 {
                    text-align: center;
                    padding: 0;
                    margin: 0 auto;
                    color: #fff;
                    max-width: 1500px;
                    text-transform: capitalize;
                }
            }
        }
    }

    .content-container {
        padding: 50px 20px;

        .post {
            margin: 0 auto;
            padding: 20px;
            max-width: 1200px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            text-align: left;
            position: relative;

            .featured-image + h2 {
                margin: 0;
                padding: 0;
            }

            .wp-block-heading {
                text-align: left;
            }

            h2 {
                margin: 0;
                padding: 30px 0 0;

                &:first-child,
                &:nth-child(2) {
                    padding: 0;
                }
            }

            .featured-image + h3 {
                margin: 0;
                padding: 0;
            }

            h3 {
                margin: 0;
                padding: 30px 0 0;

                &:first-child,
                &:nth-child(2) {
                    padding: 0;
                }
            }

            .storytitle {
                margin: 0;

                a {
                    text-decoration: none;
                }
            }

            .date {
                font-size: 18px;
                font-weight: 700;
                margin: 0 0 15px;
            }

            .storycontent {

                .featured-image {
                    float: left;
                    display: block;
                    margin: 0 20px 10px 0;

                    img {
                        height: auto;
                    }
                }
            }
        }
    }
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    background-color: #f8f8f8;
    border-top: 1px solid #dddddd;
    font-family: inherit;
    font-size: 18px;
    text-align: center;

    a {
        text-decoration: none;
        padding: 10px;
        transition: color 0.3s ease;

        &:hover {
            text-decoration: underline;
        }
    }

    .nav-previous {
        margin: 0 10px;
    }

    .nav-next {
        margin: 0 10px;
    }
}

/*
@media screen and (max-width: 1024px) {

    body.blog {
        padding-top: 79.2031px !important;
    }

    body.single-post {
        padding-top: 79.2031px !important;
    }
}
*/

@media screen and (max-width: 850px) {

    body.blog {

        .post h1,
        .post h2,
        .post h3,
        .post h4,
        .post h5,
        .post h6 {
            text-align: center !important;
        }

        .date {
            text-align: center !important;
        }

        .content-container {

            .post {

                .storytitle {
                    text-align: center !important;
                }

                .storycontent {

                    .featured-image {
                        float: none;
                        margin: 0 0 20px;
                    }

                    .wp-block-image {

                        figure {
                            float: none;
                            margin: 0 auto 20px;
                            display: block;
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 1000px) {

    body.single-post {

        .post h1,
        .post h2,
        .post h3,
        .post h4,
        .post h5,
        .post h6 {
            text-align: center !important;
        }

        .date {
            text-align: center !important;
        }

        .content-container {

            .post {

                .storytitle {
                    text-align: center !important;
                }

                .wp-block-heading {
                    text-align: center !important;
                }

                .storycontent {

                    .featured-image {
                        float: none;
                        margin: 0 auto 20px;
                    }

                    .wp-block-image {

                        figure {
                            float: none;
                            margin: 0 auto 20px;
                            display: block;
                        }
                    }
                }
            }
        }
    }
}
