
/* Charleston Christmas Trees Responsive Layout */
/* Preserve original full desktop design */

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

    html, body {
        max-width: 100%;
        overflow-x: clip;
    }

    #wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-left: 0;
        border-right: 0;
    }

    header {
        height: auto;
        min-height: 0;
        padding: 15px;
        box-sizing: border-box;
        background-size: contain;
        text-align: center;
    }

    #logo {
        position: relative;
        left: auto;
        top: auto;
        width: 179px;
        height: 228px;
        margin: 0 auto 10px;
        background-size: contain;
    }

    #social {
        position: relative;
        left: auto;
        width: auto;
        margin: 0 auto 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    #social img {
        max-width: 110px;
        height: auto;
    }

    .farm-header-title {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px 5px;
        text-align: center;
    }

    .farm-header-title h1 {
        font-size: clamp(24px, 5vw, 38px) !important;
        line-height: 1.2;
    }

    .farm-header-title span {
        display: block;
        margin-top: 8px;
        line-height: 1.4;
    }

    nav {
        height: auto;
        min-height: 44px;
    }

    nav ul.nav {
        position: relative;
        left: auto;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 8px;
        box-sizing: border-box;
    }

    nav ul.nav > li {
        display: block;
        margin: 0;
        padding: 9px;
        font-size: 15px;
        line-height: 1.5;
    }

    nav ul.nav li a {
        display: inline-block;
    }

    section,
    section#full {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        box-sizing: border-box;
    }

    #body {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 18px;
    }

    aside {
        position: relative;
        width: 100%;
        max-width: 100%;
        top: auto;
        right: auto;
        bottom: auto;
        box-sizing: border-box;
        padding: 18px;
    }

    #colcontain {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #colcontain .table-row,
    #colcontain .table-cell {
        display: block;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    #colcontain .table-row .table-cell {
        padding: 20px;
    }

    section img,
    #body img,
    #colcontain img {
        max-width: 100%;
        height: auto;
    }

    iframe, video {
        max-width: 100%;
    }

    .box_skitter,
    .box_skitter_large {
        max-width: 100% !important;
    }

    .anniversary-section {
        max-width: 100%;
        box-sizing: border-box;
    }

    #footerleft,
    #footerright {
        float: none;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 5px;
    }

    #popUpDiv,
    #popUpDiv2,
    #popUpDiv3 {
        width: 95%;
        max-width: 95%;
        box-sizing: border-box;
    }
}

/* Compact desktop / tablet */
@media screen and (min-width: 768px)
and (max-width: 1024px) {

    header {
        height: 205px;
        min-height: 205px;
        padding: 0;
        position: relative;
        background-image: none;
    }

    #logo {
        position: absolute;
        left: 8px;
        top: 8px;
        width: 150px;
        height: 190px;
        margin: 0;
    }

    #social {
        position: absolute;
        top: 8px;
        right: 12px;
        left: auto;
        width: auto;
        margin: 0;
    }

    #social img {
        max-width: 100px;
    }

    .farm-header-title {
        position: absolute;
        top: 68px;
        left: 165px;
        bottom: auto;
        width: calc(100% - 180px);
        padding: 0;
    }

    .farm-header-title h1 {
        font-size: 26px !important;
    }

    .farm-header-title span {
        font-size: 13px !important;
    }
}

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

    header {
        background-image: none;
        padding: 15px 10px;
    }

    #social {
        margin-bottom: 12px;
    }

    #social img {
        max-width: 95px;
    }

    .farm-header-title h1 {
        font-size: 26px !important;
        line-height: 1.2;
    }

    nav ul.nav > li {
        padding: 8px 10px;
        font-size: 14px;
    }

    #body {
        padding: 12px;
    }

    #colcontain .table-row .table-cell {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.25em;
    }

    .anniversary-inner {
        flex-direction: column;
    }
}

/* Charleston header alignment corrections */

/* Full desktop */
@media screen and (min-width: 1025px) {

    header .farm-header-title {
        position: absolute !important;
        top: 70px !important;
        bottom: auto !important;
        left: 190px !important;
        width: 600px !important;
        padding: 0 !important;
        text-align: center;
    }

    header .farm-header-title h1 {
        font-size: 28px !important;
        line-height: 1.15 !important;
        white-space: normal;
    }

    header .farm-header-title span {
        font-size: 13px !important;
        line-height: 1.3;
    }
}

/* Smaller desktop / tablet */
@media screen and (min-width: 768px)
and (max-width: 1024px) {

    header .farm-header-title {
        position: absolute !important;
        top: 65px !important;
        bottom: auto !important;
        left: 165px !important;
        width: calc(100% - 300px) !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    header .farm-header-title h1 {
        font-size: clamp(19px, 2.6vw, 25px) !important;
        line-height: 1.2;
        white-space: normal;
    }

    header .farm-header-title span {
        font-size: 12px !important;
        line-height: 1.3;
    }
}

