/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/

@media only screen and (max-width: 1500px) {
    .hp-abt-inner {
        padding: 0;
    }
    .hp-abt-inner .section-content p:not(:nth-child(1)):not(:nth-child(2)) {
        max-width: none;
    }
    
    .abt-board-video {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin-top: 50px;
    }
    .abt-board,
    .abt-video {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
    }
    .hp-abt-accent.left {
        width: calc(calc(calc(100vw - 1140px) / 2) - 45px);
    }

    #hp-abt{
        padding-bottom: 90px;
    }
}

@media only screen and (max-width: 1440px) {
    .footer-bottom-inner {
        margin: 0 calc(calc(-100vw + 1170px) / 2)
    }
}

@media only screen and (max-width: 1280px) {
    .fixed-header .header-inner {
        margin: 0 calc(calc(-100vw + 1170px) / 2)
    }
    .cta-items {
        margin: 0 -15px;
    }
    .footer-form-row {
        margin: 0 -15px 64px;
    }
    .footer-bottom-inner {
        margin: 0;
    }
    .footer-copyright p br {
        display: block;
    }
    .footer-nav li {
        padding: 0 10px;
    }
}


/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */

@media only screen and (max-width: 1199px) {
    .fixed-header .header-inner {
        margin: 0;
    }
    .fixed-header .header-nav .sub-menu {
        padding-top: 27px;
    }
    .fixed-header .header-logo {
        max-width: 150px;
    }
    .header-nav > li {
        padding: 0 10px;
    }
    .ss-tagline-inner h2 {
        max-width: 800px;
        padding-top: 150px;
    }
    .abt-board-video {
        justify-content: space-between;
    }
    .footer-logo-inner a:first-child {
        margin-right: 15px;
    }
    .footer-logo-inner img {
        max-height: 60px;
    }
    .footer-nav li a {
        letter-spacing: 0.030em;
    }
    #hp-abt:before,
    .footer-top:before{
        background-attachment: scroll;
    }
}


/* iPad(portrait) | Galaxy Tab 4(portrait)  */

@media only screen and (max-width: 991px) {
    /* The following are used on inner pages. Please edit carefully. */
    .inner {
        width: 100%;
    }
    #content-sidebar,
    #content-full {
        width: 100%;
    }
    .outer {
        width: 100%;
        min-width: 100%;
    }
    .agents-img {
        max-width: 360px;
        margin: 0 auto;
    }
    .agents-item {
        align-items: center;
        justify-content: space-around;
    }
    .agents-main {
        max-width: 500px;
        margin: 0 !important;
        justify-content: space-around;
        align-items: center !important;
        /* display: block !important; */
    }

    .agents-name {
        display: block !important;
        text-align: center;
    }

    body.page-template-template-agent-archive .agents-description {
        margin: 20px 0 !important;
        display: block !important;
        text-align: center !important;
    }
    #content-sidebar #content {
        width: 100%;
    }
    #main-wrapper {
        padding-top: 52px;
    }
    .header {
        position: relative;
        background: #262525;
    }
    .header-contact,
    .header-navigation,
    .fixed-header {
        display: none;
    }
    .header-logo-contact {
        margin-bottom: 0;
    }
    .section-title,
    .section-button {
        justify-content: center !important;
    }
    .section-content p {
        text-align: center;
    }
    .ss-tagline-inner h2 {
        padding-top: 0;
    }
    .abt-board-video {
        flex-flow: column;
    }
    .abt-board {
        margin-bottom: 30px;
    }
    .cta-items {
        flex-flow: column;
    }
    .cta-item {
        width: 100%;
        max-width: 659px;
        margin-bottom: 30px;
    }
    .cta-item:last-child {
        margin-bottom: 0;
    }
    .footer-contact-inner {
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }
    .footer-contact-inner span {
        margin-bottom: 30px;
    }
    .footer-contact-inner span:last-child {
        margin-bottom: 0;
    }
    .footer-contact-inner span a {
        text-align: center;
    }
    .footer-bottom-inner {
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }
    .footer-logo {
        margin-bottom: 30px;
    }
    .footer-logo-inner a:first-child {
        margin-right: 30px;
    }
    .footer-logo-inner img {
        max-height: none;
    }
    .footer-navigation-copyright {
        justify-content: center;
        align-items: center;
    }
    .footer-copyright p {
        text-align: center;
    }

    .ip-logo-row > div{
        width: 100% !important;
        max-width: 300px;
        text-align: center;
        padding: 10px 0 !important;
        display: block;
        margin: 0 auto;
    }

    .fl-slides{
        margin: 0 auto;
        max-width: 515px;
    }
}


/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */

@media only screen and (max-width: 767px) {
    .ip-banner .container {
        width: 100%;
    }
    .ss-tagline-inner h2 {
        letter-spacing: 0;
        font-size: 28px;
    }
    .ss-tagline-inner h2 span {
        font-size: 22px;
        letter-spacing: 0;
        margin-top: 10px;
    }
    .footer-nav{
        flex-flow: column wrap;
        align-items: center;
        justify-content: center;
    }
    .footer-nav li{
        padding: 0 0;
        margin: 10px 0 0;
    }
    .footer-nav li:first-child{
        margin: 0 0 0;
    }
}


/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */

@media only screen and (max-width: 480px) {
    .section-title h2,
    .cta-title h2{
        font-size: 38px;
    }
    #content .entry-title,
    #content .archive-title {
        font-size: 36px;
        letter-spacing: 0.030em;
        line-height: 1.4;
    }
    .section-button a {
        max-width: 100%;
    }
    .ss-tagline-inner h2 {
        font-size: 19px;
    }
    .ss-tagline-inner h2 span {
        font-size: 15px;
    }
    .fl-info {
        position: relative;
        left: 0;
    }
    .fl-slide a:hover .fl-info-inner {
        max-width: none;
    }
    .fl-slide-inner {
        padding-bottom: 0;
    }
    .fl-info-inner {
        max-width: none;
    }
    .fl-info:before {
        display: none;
    }
    .footer-form-row {
        flex-flow: column;
        margin: 0;
    }
    .footer-form-col {
        width: 100% !important;
        padding: 0;
        margin: 0 0 15px;
    }
    .footer-form-row:last-child .footer-form-col {
        margin-bottom: 0;
    }
    .footer-logo-inner {
        flex-flow: column;
    }
    .footer-logo-inner a:first-child {
        margin-right: 0;
        margin-bottom: 30px;
    }
    .footer-nav {
        flex-flow: column;
    }
    .footer-copyright p br {
        display: none;
    }
}

@media only screen and (max-width: 375px) {
    .abt-board-title {
        margin-bottom: 40px;
    }
    .abt-board-title h2 {
        font-size: 24px;
        padding: 20px 0 0 15px;
    }
    .abt-board-content {
        padding: 0 15px;
    }
    .abt-board-content li a {
        font-size: 16px;
    }
}