/**********************************************************************************************************************/
@media screen and (orientation: landscape) {

    .modal {
        width: 100vmax;
        height: 100vmin;
    }

    .modal-content {
        width: 100vmax;
        height: 100vmin;
    }

    .modal-content img {
        width: 100%;
        max-width: 100%;
    }

}

@media screen and (orientation: portrait) {

    .modal-content {
        width: 100vmax;
        height: 100vmax;
    }

    .modal {
        width: 100vmax;
        height: 100vmax;
    }

    .modal-content img {
        width: 200%;
        max-width: 200%;
    }

    .caption-container {
        bottom: 0rem;
    }

}


@media screen and (max-width: 1650px) {
    html, body {
        font-size: 80%;
    }

    .modal {

        width: 100%;

    }
}

@media screen and (max-width: 1440px) {
    html, body {
        font-size: 80%;
    }

    .modal {

        width: 100%;

    }
}

@media screen and (max-width: 1280px) {
    html, body {
        font-size: 80%;
    }

    .modal {

        width: 100%;

    }
}

@media screen and (max-width: 1024px) {
    html, body {
        font-size: 74%;
    }

    /* Position the "next button" to the right */
    .next {
        right: 0rem;
    }

    .prev {
        left: 0rem;
    }

    .modal-content img {
        width: 125%;
        max-width: 125%;
    }

    .modal {

        width: 100%;

    }
}

@media screen and (max-width: 960px) {
    html, body {
        font-size: 75%;
    }

    .modal-content img {
        width: 150%;
        max-width: 150%;
    }

    .modal {

        width: 100%;

    }

}



@media screen and (max-width: 768px) {
    html, body {
        font-size: 100%;
    }

    h1 {
        font-size: 1rem!important;

    }

    main {
        position: relative;
        margin: 9rem auto 0rem;
        max-width: 1920px;
    }

    .fixed-header-bar {
        height: 8rem;
        -webkit-box-shadow: 0 10px 6px -6px rgba(0, 0, 0, 0.5);
        -moz-box-shadow: 0 10px 6px -6px rgba(0, 0, 0, 0.5);
        box-shadow: 0 10px 6px -6px rgba(0, 0, 0, 0.5);
    }

    .header-container {
        position: relative;
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        height: 8rem;
        padding-top: 1px;
        margin-top: -1px;
    }

    .mobile-icons {
        display: block;
    }

    .icons {
        display: none;
    }

    .mobile-info {
        display: block;
    }

    .info {
        display: none;
    }

    section.content {
        position: relative;
        max-width: 100vmax;
        display: block!important;
        margin-top: 8rem;
        background: transparent;
    }

    .content-selection-wrapper {
        position: relative;
        margin: 1rem auto 1rem;
        width: 100%;
        max-width: 1280px;
        background: white;
        flex-wrap: wrap;
        height: auto;
        display: flex;
        align-content: flex-start;
        flex-direction: column;
    }

    .content-selection-wrapper > div.table {
        position: relative;
        margin: 0.5rem 0;
        flex-grow: 0;
        width: 100%;
        height: auto;

        background: rgba(255,255,255,0.7);
        /*background: linear-gradient(to bottom, rgba(174,142,127,0.025) 0%, rgba(174,142,127,0.5) 25%, rgba(174,142,127,0.5) 75%, rgba(174,142,127,0.025) 100%);*/

    }

    .content-selection-wrapper > div.table img {

        margin-bottom: 25%;

    }

    .content-wrapper .product .product-table h1 {
        margin: 1rem 0;
        display: block;
        padding-left: 1rem;
        font-size: 0.875rem;
        line-height: 1.5rem;
        text-align: left;
        font-weight: bold;
        color: #735346;
        text-transform: uppercase;
        float: left;
    }

    .content-wrapper .product .product-table h2 {
        margin: 1rem 0;
        display: block;
        padding-right: 1rem;
        font-size: 0.875rem;
        line-height: 1.5rem;
        text-align: right;
        color: #735346;
        text-transform: none;
        float: right;

    }

    .content-wrapper .product .product-table h3 {
        margin: 1rem 0;
        display: block;
        padding-left: 1rem;
        font-size: 0.875rem;
        line-height: 1.5rem;
        text-align: left;
        color: #735346;
        text-transform: none;
        float: left;


    }

    .content-wrapper .product .product-table h4 {
        margin: 1rem 0;
        display: block;
        padding-right: 1rem;
        font-size: 0.875rem;
        line-height: 1.5rem;
        text-align: right;
        color: #735346;
        text-transform: none;
        float: right;

    }

    .content-wrapper .product .product-table h5 {
        margin: 1rem 0;
        display: block;
        padding-left: 1rem;
        font-size: 0.875rem;
        line-height: 1.5rem;
        text-align: left;
        color: #735346;
        text-transform: none;
        float: left;

    }

    section.gallery {
        position: relative;
        max-width: 100vmax;
        display: block!important;
        margin-top: 8rem;
        background: transparent;
    }

    .gallery-selection-wrapper {
        position: relative;
        margin: 1rem auto 1rem;
        width: 100%;
        max-width: 1280px;
        background: white;
        flex-wrap: wrap;
        height: auto;
        display: flex;
        align-content: flex-start;
        flex-direction: column;
    }

    .gallery-selection-wrapper > div.table {
        position: relative;
        margin: 0.5rem 0.5rem;
        flex-grow: 0;
        width: 100%;
        height: auto;
        text-align: center;
        background: rgba(255,255,255,0.7);
        /*background: linear-gradient(to bottom, rgba(174,142,127,0.025) 0%, rgba(174,142,127,0.5) 25%, rgba(174,142,127,0.5) 75%, rgba(174,142,127,0.025) 100%);*/

    }

    .content-wrapper .title-box {
        position: relative;
        margin: 0.5rem auto;
        padding: 1rem 0;
        width: 100%;
        height: 4rem;
        background: transparent;
    }

    .logo {
        position: relative;
        margin: 3rem auto 0;
        width: 5rem;
        height: 5rem;
        padding: 0;

    }

    .logo img {
        max-width: 100%;
        height: auto;
    }

    .logo h1 {
        margin: 0;
        line-height: 2rem;
        color: #f26829;
        font-size: 2rem;
        display: inline-block;
        vertical-align: middle;
    }

    a.scrollup {
        width: 1.75rem;
        height: 1.75rem;
        position: fixed;
        bottom: 0.25rem;
        right: 0.25rem;
        display: none;
        color: white;
        text-shadow: 0px 0px 5px #62a290;
        z-index: 9999;
    }

    .modal {

        width: 100%;

    }

    .modal > .modal-box {
        display: block;
        margin: 0;
        padding: 0;
        position: absolute;
        width: 100%;
        top: 50%;
        left: 0%;
        transform: translate(0%, -50%);
        border: 0;
        background: #ffffff;
    }

    .modal > .modal-box h1 {

        font-size: 1.25rem;
        font-weight: bold;
        margin: 0;
        padding: 2rem;
        color: #d9924c;
    }

    .mySlides {
        display: none;
        text-align: left;
    }

    .mySlides img {

        max-width: 100vmin;
    }


    #form-01 button[name='submit'] {
        font-family: 'Roboto', sans-serif;
        font-size: 1rem;
        margin: 0.5rem 0;
        padding: .75rem 0;
        width: 100%;
        border: 0;
        color: #ffffff;
        background: #62a290;
        text-transform: uppercase;
    }

    footer {
        position: relative;
        margin: 0;
        border-top: 0.5rem solid beige;
        padding: 0;
        background: #4e2c27;
    }

    footer .content {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
        max-width: inherit;
        margin: 0 auto;
    }

    footer .content > div {
        padding: 1rem 0;
        width: 100%;
        text-align: center;
    }

    footer .content:last-of-type > div {
        width: 100%;
    }

    footer .content > div h5{
        font-size: 0.75rem;
    }
}