body {
    background-color: #d3d3d3;
}

body>* {
    box-sizing: border-box;
    font-family: Lato;
    font-size: 16px;
}

#opening-transition {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #d3d3d3;
    animation: fadeIn 1.5s forwards;
    z-index: 9999;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

p {
    display: block;
    line-height: 1.35;
    padding: 0;
    margin: 0 0 25px 0;
    font-size: 1.05em;
}

a:active {
    text-decoration: none;
    color: #000000A6;
}

a:link {
    text-decoration: underline;
    color: #000000A6;
    font-weight: bold;
}

a:visited {
    color: #000000A6;
}

button {
    cursor: pointer;
    color: #000000A6;
    background-color: transparent;
    font-family: Lato;
    font-weight: bold;
    font-size: 1em;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.btn-primary {
    color: white;
    margin: 0%;
    margin-top: 5px;
    padding: 15px 25px;
    min-width: 150px;
    white-space: nowrap;
    background: #2d2d2d 0% 0% no-repeat padding-box;
    border-radius: 4px;
    opacity: 1;
    border: #2d2d2d;
    outline: #2d2d2d;
    font-size: .9em;
    transition: all .2s;
}

.btn-primary:hover {
    background-color: #000000a6;
    color: white;
}

p i {
    font-style: italic !important;
}

p a {
    font-weight: bold;
}

p b,
p strong {
    font-weight: bolder;
}

em {
    font-style: italic !important;
}

.italic {
    font-family: 'Lato', sans-serif;
    font-style: italic;
}

.text-left>* {
    margin-right: 50px;
}

.text-right {
    text-align: right;
}

.caption {
    font-size: .925em;
}

img {
    width: 100%;
}

.hide {
    display: none;
}

main {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* scrollbar width */
::-webkit-scrollbar {
    width: 10px;
}

/* scarllbar track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* scrollbar handle */
::-webkit-scrollbar-thumb {
    background: #f1f1f1;
    border-radius: 50px;
}

/* scrollbar handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #f1f1f1;
}

.return {
    margin: 80px 0 50px 0;
    text-transform: uppercase;
    font-size: .8em;
    font-weight: bold;
    text-decoration: none !important;
}

.return span {
    display: inline-block;
    position: relative;
    transition: all .3s;
    margin-right: 3px;
}

.return:hover span {
    transform: translateX(-5px);
}

#exhibition-header {
    position: fixed;
    top: 0;
    right: 10px;
    width: calc(100% - 10px);
    padding: 10px 15px;
    z-index: 999;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    background-color: #d3d3d3;
}

#exhibition-header h1 {
    margin-right: 20px;
    cursor: pointer;
}

nav {
    width: 35%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-x: visible;
    overflow-y: scroll;
    padding-left: 1.75%;
    padding-top: 150px;
    position: relative;
    z-index: 3;
    transition: margin .3s, backgroundColor .6s;
    background-color: #d3d3d3;
    box-sizing: border-box;
}

.small-nav {
    margin-right: -35%;
}

@media screen and (max-width: 800px) {
    nav {
        width: 45%;
    }

    .small-nav {
        margin-right: -45%;
    }
}

@media screen and (max-width: 600px) {
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        margin-right: -100%
    }

    .small-nav {
        margin-right: 0;
    }
}

nav button {
    background-color: transparent;
    border: none;
    font-size: .95em;
    font-family: inherit;
}

nav article {
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

nav article figure {
    width: 50%;
    overflow: hidden;
}

nav article figure img {
    transition: all .3s;
}

nav article:hover img {
    transform: scale(1.5);
}

nav article div {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 2%;
    box-sizing: border-box;
}

nav h4 {
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.15;
}

nav p {
    margin: 0;
    font-size: .9em;
    text-transform: uppercase;
    position: relative;
    line-height: 1.15;
}

nav p:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #C92828;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

nav article:hover p:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav .flex-reverse:hover p:after {
    transform: scaleX(1);
    transform-origin: bottom right;
}

#hide-menu {
    background-color: transparent;
    height: 30px;
    width: 30px;
    border: 0;
    z-index: 999;
    transition: margin .3s;
}

.flex-reverse {
    flex-direction: row-reverse;
}

.flex-reverse div {
    align-items: flex-start;
}

.work div h4,
.work div p {
    text-align: right;
}

.flex-reverse div p,
.flex-reverse div h4 {
    text-align: left;
}

article,
img {
    margin: 0;
    padding: 0;
}

.selected div {
    border: 3px solid #C92828;
}

nav .selected p:after {
    transform: scaleX(1);
    transform-origin: bottom right;
}

nav header {
    position: relative;
    padding: 10% 5%;
}

#content-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-start;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: hidden;
    z-index: 1;
}

@media screen and (max-width: 600px) {
    #content-container {
        overflow-y: auto;
    }
}

#content-container h1,
#content-container h2,
#content-container h3,
#content-container h4,
#content-container h5,
#content-container h6 {
    font-weight: bold;
    margin-bottom: 15px;
}

#content-container .page-title {
    font-size: 2.2em;
    padding-bottom: 40px;
    margin-bottom: 0;
}

#content-container h2 {
    font-size: 1.75em;
}

#content-container h3 {
    font-size: 1.5em;
}

#content-container h4 {
    font-size: 1.25em;
}

#content-container h5 {
    font-size: 14px;
    margin-bottom: 5px
}

#transition-box {
    position: fixed;
    height: 100%;
    width: 100%;
    background-color: white;
    z-index: 999;
    display: none;
    pointer-events: none;
}

#intro-container {
    box-sizing: border-box;
    padding: 10%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #d3d3d3;
    margin-top: 80px;
}

#intro-container h1,
#intro-container h2,
#intro-container h4,
#intro-container p {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

#intro-container h1 {
    font-size: 3em;
}

#intro-container p {
    margin: 25px 0;
}

.triangle {
    position: absolute;
    top: 80px;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
    box-sizing: border-box;
    background-image: url(../img/triangle.svg);
    background-size: cover;
}

#curatorial-container {
    padding: 10%;
}

#curatorial-container p:last-of-type {
    padding-bottom: 50px;
}

#curatorial-container h1 {
    font-size: 3em;
}

#curatorial-container h5 {
    margin-top: 50px;
    font-size: 1.5em;
}

#curatorial-container ul {
    padding-bottom: 50px;
}

#curatorial-container li {
    margin-bottom: 8px;
    margin-left: 15px;
}

#open-curatorial {
    text-decoration: underline;
    cursor: pointer;
}

#mockup-container {
    padding: 0 3%;
    background-color: white;
}

.works-container {
    display: flex;
    flex-direction: row;
}

.works-container article {
    width: 58%;
}

@media screen and (max-width: 800px) {
    .works-container {
        flex-direction: column;
    }

    .works-container article {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    #intro-container {
        padding: 20% 10%;
        height: auto;
        justify-content: flex-start;
    }
}

.works-text {
    margin-top: 25px;
    padding: 0%;
}

.works-text ul {
    margin: 10px 0 20px 30px;
}

.works-text ul:first-of-type {
    margin-top: -15px;
}

.works-text ul li {
    margin-bottom: 10px;
}

.work-carousel-wrapper .slick-slide {
    box-shadow: none;
    margin-right: 10px;
}

.elms-tooltip {
    cursor: pointer;
}

.tooltip.show {
    z-index: 998;
}

.metadata-cont {
    padding-right: 0px;
    padding-left: 0px;
    margin-bottom: 60px;
    margin-left: auto;
    width: 35%;
}

@media screen and (max-width: 800px) {
    .metadata-cont {
        width: 95%;
        margin: auto;
    }
}

.metadata-table {
    background-color: #f1f1f1;
    position: relative;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
}

.metadata-box {
    margin-left: 37px;
    padding-top: 15px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.metadata-box div:last-child {
    padding-bottom: 40px;
}

h3.metadata-heading {
    margin: 0%;
    color: #000000cc;
    font-weight: bolder;
    margin-bottom: 25px !important;
}

.meta-field-title {
    font-size: 14px;
    color: #000000cc;
    font-weight: bold;
    margin-bottom: 5px;
}

.meta-field {
    padding-left: 25px;
    color: #000000a6;
}

.meta-field-main {
    font-size: 18px;
    margin: 0;
}

.meta-field-sub {
    font-size: 16px;
    word-wrap: break-word;
    margin: 0%;
    line-height: 1em;
}

.meta-field-creator {
    line-height: 1.1;
}

.meta-field-nationality {
    margin: 5px 0 5px 15px;
}

.meta-field-role {
    margin: 0 0 15px 15px;
}

.meta-item {
    margin-bottom: 20px;
    width: 90%;
}

.meta-item-creators .meta-field-main {
    margin-top: 10px;
}

.meta-item-creators p:first-of-type {
    margin-top: 0;
}

#red-square {
    position: absolute;
    background-color: #c92728;
    height: 37px;
    width: 37px;
    right: 0;
}

#copy-header {
    color: #000000a6;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 50px;
}

#collection-name {
    margin-top: 25px;
    margin-bottom: 0em;
    font-size: 1.5em;
}

#published-date {
    margin-top: 0em;
    margin-bottom: 10px;
    font-size: 1.25em;
}

h3.publication-type,
h3.original-url {
    font-size: 14px !important;
    margin-top: 15px;
    margin-bottom: 3px;
}

.publication-type-content,
.original-url-content {
    margin-left: 15px;
    font-size: .9em;
}

.works-btn-links-cont {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.works-link-msg {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 15px;
    display: inline;
}

.this-work {
    margin-right: 15px;
}

.dot-row {
    font-weight: 700;
    align-items: center;
}

.dot {
    width: 7px;
    height: 7px;
    margin-right: 8px;
    margin-bottom: 3px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background-color: #cf0000;
    box-shadow: #f80101 0px 0px 7px 0px;
}

.dot-green {
    background-color: green;
    box-shadow: green 0px 0px 7px 0px;
}

.dot-yellow {
    background-color: #ffe135;
    box-shadow: #ffe135 0px 0px 7px 0px;
}

.works-preservation-notes {
    font-size: 1em;
    font-weight: 300;
    margin-top: 5px;
}

.btn-works {
    margin-right: 20px;
    margin-bottom: 10px;
    padding: 7px 15px;
    min-width: auto;
}

.button-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    font-size: 15px;
}

.button-header p {
    margin-bottom: 0;
}

.flex-button {
    display: flex;
    align-items: center;
}

.flex-button span {
    display: inline-block;
    margin-left: 8px;
    font-style: normal;
}

#accessbility-notes-ico {
    width: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 15px;
}

#accessbility-notes-ico img {
    width: 50px;
}

.elms-tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    cursor: pointer;
    text-decoration: none;
}

.elms-tooltip i {
    text-decoration: none;
}

.elms-tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #191919;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    font-weight: normal;
    line-height: 1.25;
    font-size: 14px;

    /* Position the tooltip */
    position: absolute;
    bottom: 23px;
    right: 0;
    z-index: 1;
}

.elms-tooltip .tooltiptext::after {
    content: '';
    height: 0;
    width: 0;
    margin-left: auto;
    margin-right: auto;
    border-right: solid 6px transparent;
    border-left: solid 6px transparent;
    border-top: solid 7px #191919;
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: -1;
}

.elms-tooltip.active .tooltiptext {
    visibility: visible;
}