/**********************************************************************************************************************/
@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: 100%;
    }
}

@media screen and (max-width: 1440px) {
    html, body {
        font-size: 100%;
    }
}

@media screen and (max-width: 1280px) {
    html, body {
        font-size: 100%;
    }
}

@media screen and (max-width: 1024px) {
    html, body {
        font-size: 80%;
    }

    /* Position the "next button" to the right */
    .next {
        right: 0rem;
    }

    .prev {
        left: 0rem;
    }

    .modal-content img {
        width: 125%;
        max-width: 125%;
    }
}

@media screen and (max-width: 960px) {
    html, body {
        font-size: 75%;
    }

    .modal-content img {
        width: 150%;
        max-width: 150%;
    }

}



@media screen and (max-width: 768px) {
    html, body {
        font-size: 100%;
    }

    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);
    }

    .mobile-icons {
        display: block;
    }

    .mobile-language {
        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-wrapper article.article p.image img {
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .content-wrapper .title-box h1 {
        margin: 1rem 0;
        display: block;
        padding-left: 1rem;
        font-size: 1rem;
        line-height: 2rem;
        text-align: left;
        font-weight: bold;
        color: #31708e;
        text-transform: uppercase;
        float: left;
    }

    .content-wrapper article.article h2 {
        margin: 0;
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.5rem;
        text-align: left;
        text-transform: none;
        font-weight: bold;
        color: #31708e;
    }

    .content-wrapper article.article h3 {
        margin: 0;
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.5rem;
        text-align: center;
        text-transform: none;
        color: #31708e;
    }

    .content-wrapper article.article p{
        margin: 0;
        padding: 0.5rem 1rem;
        text-align: justify;
        font-size: 1rem;
        line-height: 1.5rem;
        color: #31708e;
    }

    .content-wrapper article.article img {
        box-sizing: border-box;
        display: block;
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    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%);*/

    }

    .logo {
        position: relative;
        margin: 1rem auto 0;
        width: 10rem;
        height: 5rem;
        padding: 0;
        z-index: 999;

    }

    .logo img {
        max-width: 100%;
        height: auto;
    }

    .logo h1 {
        margin: 0;
        line-height: 2rem;
        color: #31708e;
        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;
    }

    .fc-toolbar h2 {
        font-size: 0.825rem;
        margin: 0;
    }

    .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;
        width: 40%;
        padding: 2rem;
        color: #31708e;
    }


    #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: #31708e;
        text-transform: uppercase;
    }

    #form-01 select {
        background-color: #31708e;
        color: white;
        margin: 0.5rem 4%;
        padding: 1rem 1%;
        width: 90%;
        border: none;
        font-size: 1rem;
        box-shadow: 0 5px 25px rgb(0 0 0 / 20%);
        -webkit-appearance: button;
        -moz-appearance: button;
        -ms-appearance: button;
        appearance: button;
        outline: none;
    }

    .logo-wrapper {
        position: relative;
        margin: 1rem 0;
        padding: 1rem 0 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-top: 0;
        background: rgb(247, 249, 251);
    }

    .content-wrapper .title-box {
        position: relative;
        margin: 0.5rem auto;
        width: 100%;
        height: 6rem;
        background: transparent;
    }

    footer {
        position: relative;
        margin: 0;
        border-top: 0.5rem solid #5085a5;
        padding: 0;
        background: #31708e;
    }

    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;
    }
}