body {
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    background-color: #fafafa;
    color: #333;
    padding: 24px;
}

a {
    text-decoration: none;
    color: #615cae;
}

a:hover {
    text-decoration: underline;
}

#wrap {
    max-width: 1200px;
    border: #dadada solid 1px;
    padding: 6px;
    margin-left: auto;
    margin-right: auto;
}

header {
    text-transform: uppercase;
    font-family: 'PT Sans', sans-serif;
}

header a {
    color: #fff;
}

header a:hover {
    text-decoration: none;
}

header>h1 {
    height: 90px;
    background-color: #2b4050;
    font-size: 15px;
    text-align: center;
    font-weight: normal;
}

header>h1>button {
    display: none;
}

header>h1>a {
    display: block;
    width: 50%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    letter-spacing: 3px;
    line-height: 30px;
}

header>nav {
    font-size: 10px;
    height: 50px;
    display: table;
    width: 100%;
    letter-spacing: 2px;
    line-height: 12px;
}

header>nav>ul {
    display: table-row;
    height: 50px;
}

header>nav>ul>li {
    display: table-cell;
    height: 100%;
    box-sizing: border-box;
    min-width: 60px;
}

header>nav>ul>li>a {
    display: block;
    height: 100%;
    border-bottom: #2b4050 solid 2px;
    text-align: center;
}

header>nav>ul>li>a>div {
    text-align: left;
    display: table;
    padding-top: 5px;
    margin-left: auto;
    margin-right: auto;
}

header nav ul li.active a, header nav ul li a:hover {
    border-bottom: none;
}

header nav ul li.home {
    background-color: rgb(148, 153, 174);
}

header nav ul li.about {
    background-color: rgb(180, 158, 111);
}

header nav ul li.exhibitions {
    background-color: rgb(148, 153, 174);
}

header nav ul li.cecil-court {
    background-color: rgb(212, 117, 40);
    max-width: 84px;
}


header nav ul li.catalogues {
    background-color: rgb(127, 123, 185);
}

header nav ul li.upstairs {
  background-color: #507f70;
}

header nav ul li.old-masters {
    background-color: rgb(212, 60, 40);
}

header nav ul li.modern {
    background-color: rgb(134, 101, 87);
}

header nav ul li.autographs {
    background-color: rgb(158, 160, 152);
}

/* header nav ul li.overview {
    background-color: rgb(204, 159, 54);
} */

header nav ul li.contact {
    background-color: rgb(20, 100, 120);
}

header>nav.sub_about {
    height: 40px;
    background-color: rgb(180, 158, 111);
}

nav.sub_about div.fold {
    display: none;
}

header>nav.sub_about>ul {
    display: flex;
    justify-content: space-around;
    /* margin-left: 24px;
    margin-right: 48px; */
    box-sizing: border-box;
}

header>nav.sub_about>ul>li {
    text-align: center;
}

header>nav.sub_about>ul>li>a {
    padding-top: 8px;
    border-bottom: none;
}

/* header>nav.sub_about>ul>li.active>a>div, header>nav.sub_about>ul>li>a:hover>div {
    text-decoration: underline;
} */

main {
    border: #dadada solid 1px;
    min-height: 400px;
    padding: 40px;
    padding-top: 32px;
    background-color: #F2F2F2;
    line-height: 1.5em;
    margin-top: 8px;
    font-family: 'Droid Serif';
}

main h1 {
    font-size: 22px;
    font-weight: normal;
    line-height: 1.4em;
    margin-bottom: 16px;
}

main h2 {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin-bottom: 16px;
}

main hr {
    border: none;
}

div.text p {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 2em;
}

p.about {
    width: 600px;
}

nav.bottom_next_previous {
    position: relative;
    top: 36px;
}

nav.bottom_next_previous ul {
    text-align: justify;
}

nav.bottom_next_previous ul:after {
    content: '';
    display: inline-block;
    width: 100%;
}

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

li.next, li.previous {
    font-size: 24px;
}

li.next a, li.previous a {
    color: #999;
}

li.next a:hover, li.previous a:hover {
    text-decoration: none;
}

small {
    font-size: 0.9em;
}

main hr {
    margin-top: 48px;
}

@media (max-width: 960px) {
    body {
        padding: 12px;
    }
    #wrap {
        padding: 6px;
    }
    main hr {
        margin-top: 24px;
    }
}

@media (max-width: 800px) {
    body {
        padding: 0px;
        margin: 0px;
    }
    #wrap {
        padding: 0px;
        border: none;
    }
    main {
        padding: 6px 12px;
        margin: 0px;
        border: none;
    }
    header {
        width: 100%;
        height: 72px;
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 1000;
    }
    header>h1>button {
        display: block;
        color: #fff;
        position: fixed;
        top: 20px;
        right: 9px;
        border: none;
        background: none;
        line-height: 8px;
        padding: 0px;
        margin: 0px;
        width: 48px;
        height: 48px;
    }
    header button:hover {
        cursor: pointer;
    }
    header nav {
        display: none;
        position: fixed;
        top: 90px;
        z-index: 1000;
        width: 100%;
        font-size: 14px;
    }
    header nav ul {
        display: block;
        width: 100%;
        height: auto;
    }
    header nav.sub_about {
        display: block;
        z-index: 500;
    }
    header nav.sub_about ul {
        /* width: 100%; */
        /* display: table; */
        padding-left: 6px;
        padding-right: 6px;
        /* width: 95%; */
        /* border: #f00 solid thin; */
    }
    header nav.sub_about ul li {
        text-align: center;
        display: block;
        /* display: table-cell; */
        /* width: 20%; */
        padding-top: 4px;
        padding-bottom: 8px;
        min-height: 48px;
        font-size: 12px;
        min-width: 0;
    }
    

    header nav.sub_about ul li a div {
        text-align: center;
        line-height: 16px;
        display: block;
        padding-left: 4px;
        padding-right: 4px;
        margin: 0;
    }    
    header nav.top ul {
        display: block;
        width: 100%;
        height: auto;
    }
    header nav.top ul li {
        display: block;
        height: 58px;
        padding: 0px;
        margin: 0px;
        border: none;
        width: 100%;
    }
    header nav.top ul li br {
        display: none;
    }
    header nav.top ul li a {
        display: block;
        width: 100%;
        padding-top: 12px;
        line-height: 1.1em;
        border-bottom: none;
    }
    header nav ul li.old-masters a {
        padding-top: 2px;
    }
    header nav ul li.modern a {
        padding-top: 8px;
    }
    header nav ul li.autographs a {
        padding-top: 8px;
    }
    header nav ul li.cecil-court {
        max-width: 100%;
    }
    header nav a:hover, header nav a.active {
        height: 58px;
        margin: 0px;
        top: 0px;
        position: static;
        text-decoration: none;
        border: none;
        display: block;
    }
    main {
        margin-top: 90px;
        padding-top: 24px;
    }
    nav.bottom_next_previous ul {
        height: 48px;
    }
    nav.bottom_next_previous ul li {
        height: 48px;
        display: block;
        float: left;
        width: 33%;
        text-align: center;
    }
    nav.bottom_next_previous ul li.previous, nav.bottom_next_previous ul li.next {
        font-size: 48px;
    }
    nav.bottom_next_previous ul li.previous {
        padding-left: 24px;
        box-sizing: border-box;
        text-align: left;
    }
    nav.bottom_next_previous ul li.next {
        padding-right: 24px;
        box-sizing: border-box;
        text-align: right;
    }
}

@media (max-width: 586px) {
    header {
        height: 60px;
    }
    header h1 {
        height: 100%;
        padding-top: 0px;
    }
    header h1 span.sub {
        display: none;
    }
    header h1 a {
        margin-top: 0px;
        width: 100%;
    }
    header nav {
        top: 60px;
    }
    header > h1 > button {
        display: block;
        color: #fff;
        position: fixed;
        top: 8px;
    }

    header nav a:hover, header nav a.active {
        height: auto;
    }

    nav.sub_about div.fold {
        display: block;
        color: #fff;
        text-align: center;
        padding-top: 14px;
    }

    nav.sub_about div.fold button {
        color: #fff;
        position: fixed;
        top: 56px;
        right: 9px;
        border: none;
        background: none;
        line-height: 8px;
        padding: 0px;
        margin: 0px;
        width: 48px;
        height: 48px;
    }

    nav.sub_about > ul.sub_about {
        display: none;
        background-color: rgb(180, 158, 111);
        padding-top: 24px;
    }

    /* nav.sub_about > ul.sub_about > li {
        border-bottom: #fff solid thin;
    } */

    main {
        margin-top: 60px;
    }
}

footer {
  min-height: 24px;
  margin-top: 6px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 12px;
  font-family: serif;
  line-height: 1.5em;
}

#instagram {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 120px;
}

#instagram img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}
