body {
    background-color: #FFF;
    display: flex;
    flex-flow: column;
    font-family: halyard-text, sans-serif;
    font-weight: 200;
    height: 100%;
    margin: 0;
    position: absolute;
    width: 100%;
}

h1 {
    color: #5c5c5c;
    font-family: halyard-display, sans-serif;
    font-size: 1.5em;
    font-weight: 300;
}

h4 {
    color: #5c5c5c;
    font-family: halyard-display, sans-serif;
    font-weight: 300;
    text-transform: uppercase;
}

p {
    min-height: 0vw;
    font-weight: 100;
}

td {
    font-weight: 100;
    vertical-align:text-top;
    padding: 3px 12px 3px 0;
}

.colh {
    font-size: 0.875em;
    font-weight: 400;
}

#main {
    flex: 1 1 60vh;
    position: relative;
	font-size: min(0.6em + 0.5vw, 1em);
    /* font-size: max(3vw, 1em); */
    /* needs to be considered when code finalised / changes are made in the future */
}

#main.narrow {
    margin: 0 auto;
    max-width: 72em;
}

#main.no-overflow {
    overflow: hidden;
}

article {
    padding-left: 10vw;
    padding-right: 10vw;
    padding-bottom: 3rem;
}

footer {
    bottom: 0;
    color: #5c5c5c;
    font-size: 0.8em;
    font-weight: 100;
    padding-bottom: 1rem;
    padding-left: 10vw;
    padding-right: 10vw;
    position: absolute;
    right: 0;
    text-align: right;
}

.galleries {
    /* centering gallery thumbnails */
    width: 100%;
    text-align: center;
    margin-top: 2em;
    /*adding margin above thumbnails*/
    flex-flow: column;
}

/*
@media (max-width: 1650px) {
    .galleries {
        width: auto;
        padding-left: calc(7em - 20px - 825px + 50vw);
        padding-right: calc(7em - 20px - 825px + 50vw);
    }
}
*/

.gallery {
    display: inline-block;
    margin: 9px 9px 9px 9px;
    position: relative;
    /* max-width: min(20rem, 40vw - 20px); /* see https://www.w3schools.com/Css/css_rwd_images.asp*/
}

.gallery img {
    /* width: min(40vw - 20px, 7em + 12vw); */
    width: auto;
    height: min(50vw - 25px, 8.75em + 15vw);
}

.gallery:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.quote {
	font-style: italic;
	padding-left: 2vw;
}

.about2 {
	/* word-spacing: 2px; */
}

.superscript{vertical-align: super;
	font-size:0.62rem;}



.donotdisplay,
.caption,
.galleryh {
    display: none;
}

.gallery > div {
    float: left;
    /* width: 200px; /* change from px to em in the hope that it can then change sensibly with screen size - stupid? */
    /* height: 200px; */
}

/* this adds in the reduced photo opacity and gallery name on hover, first colour is the superimposed square colour, second is the font colour */

.gallery > div > .gallery-name {
    background: rgba(255,255,255,.85);
    height: 100%;
    margin: 0;
    position: absolute;
    width: 100%;
    z-index: -1;
	font-family: halyard-display, sans-serif;
}

.gallery > div:hover > .gallery-name {
    cursor: pointer;
    z-index: 0;
}

.gallery > div > .gallery-name > h2 {
    width: 100%;
    padding-top: 45%;
    text-align: center;
    /*font-size:1.3vw;*/
    font-size: min(0.7em + 1.6vw, 36px);
    /*this is something that needs to be considered when code finalised / changes are made in the future*/
    min-height: 0vw;
    /*font-size: clamp(20px, 2vw, 40px); clamp would be an alternative approach to the calc above but isn't supported by enough web browsers*/
    font-weight: 100;
    color: #5c5c5c;
}

/* classes starting lg are for the light gallery display */

.lg {
    display: flex;
    flex-flow: column;
}

.lg-outer {
    position: absolute;
}

.lg-outer .lg-inner {
    flex: 1 1 200px;
    position: relative;
    order: 2;
    width: 100%;
}

.lg-outer .lg-item {
    background: white;
}

.lg-outer.lg-pull-caption-up.lg-thumb-open .lg-thumb-outer {
    flex: 0 1 auto;
    position: static;
    order: 4;
}

.lg-outer .lg-toggle-thumb:after {
    content: "\e20d";
}

.lg-outer.lg-thumb-open .lg-toggle-thumb:after {
    content: "\e20c";
}

.lg-thumb-group {
    height: 100%;
    width: auto;
}

.lg-thumb-item {
    height: 100%;
    width: auto;
    margin: 5px;
}

.lg-outer .lg-thumb-item {
    border-radius: 0;
    /* defines the curvature of the corners*/
    /*border-width:1px; /* nb changes border width for both chosen photo section below and hover section - irrelevant to former as white, but needed for latter and putting in latter doesn't override this section*/
    height: 100%;
    width: auto;
}

.lg-outer .lg-thumb-item img {
    width: auto;
    height: 100%;
    /*object-fit: contain;*/
}

.lg-backdrop {
    background-color: #FFF;
    /*sides of large photo */
    position: absolute;
}

.lg-outer .lg-thumb-outer {
    /*panel in which the thumbnails sit*/
    background-color: #FFF;
}

.lg-outer .lg-toggle-thumb {
    background-color: rgba(200,200,200,0);
    /* surrounds of rubix cube*/
}

.lg-outer .lg-toggle-thumb:hover,
.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover {
    color: #ddd;
}

.lg-sub-html {
    background-color: #FFF;
    /*panel with the title etc*/
    color: black;
    flex: 0 1 auto;
    order: 3;
    position: static;
}

.lg-sub-html h4 {
    margin: 7px 0 0;
    font-size: 0.875em;
    font-weight: 400;
}

.lg-sub-html p {
    font-size: 0.8125em;
    margin: 0;
}

.lg-outer .lg-thumb-item.active {
    border-color: white;
    /*started as #666 - don't want to show which picture chosen as pretty clear and no logic to order in thumbnails...*/
}

.lg-outer .lg-thumb-item:hover {
    border-color: rgb(195,195,195);
    /*started as #333*/
}

.lg-toolbar {
    background-color: rgba(0,0,0,0.6);
    flex: 0 1 auto;
    order: 1;
    display: none;
    position: static;
}

.lg-prev .lg-icon .disabled {
    padding-left: 200px;
    background-color: red;
}

/* The rest of this stylesheet is the menu layout.*/

nav {
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 7vw;
    /* using vw like font size for hover, so varies with screensize */
    margin-right: 7vw;
    flex: 0 1 0;
	font-family: halyard-display, sans-serif;
}

nav a {
    text-decoration: none;
    margin: 1rem;
    color: #5c5c5c;
    transition-duration: 0.5s;
}

nav a:hover,
nav a:active {
    color: black;
    /*   text-decoration: underline; */
    /* don't like the underline version but this makes text move due to re-sizing - must be soluble surely */
    /* not-font-family: "Arial Black"; font-weight: 200; background: rgb(242,242,242); */
    animation-name: hoverchange;
    /* see https://www.w3schools.com/css/css3_animations.asp*/
    animation-duration: 2s;
    /*text-transform: uppercase;*/
    /* font-size: 1.05em;*/
}

nav a.no-href {
    color: #999999;
    animation: none;
}

@keyframes hoverchange {
    /*from {background-color: rgb(232,232,232);}
  to {background-color: white;} */
    0% {
        background-color: white;
    }

    /* % values refer to timing of the animation-duration defined above */
    20% {
        background-color: rgb(230,230,230);
    }

    /* 50%  {background-color:blue; }*/
    /* 75%  {background-color:green; }*/
    100% {
        background-color: white;
    }
}

.menu-heading {
    /* Anne Latremoliere bit */
    display: inline-block;
    text-transform: uppercase;
    /*font-size: 1.4em;*/
    font-size: calc(11px + 0.7vw);
    font-weight: 300;
    /* cannot shift position of name here as overriden by "nav a" */
    font-stretch: expanded;
    /* doesn't work... */
}

.menu-toggle {
    display: none;
}

.menu-items-wrapper {
    display: inline-block;
    float: right;
}

.menu-items-wrapper a {
    display: inline-block;
    text-align: center;
    width: 4em;
    font-size: 1.2em;
    /*if mess around with the things below then when hover the box is centred*/
    /*margin-top: 13px /* pixel height of Anne Latremoliere - 16 - unless that changes - coded somewhere */
    /* padding-top: 4px /*trying to line up at bottom edge Anne Latremoliere with the menu links when font size different ( difference in font size in em)*/
}

.menu-items-wrapper a.social {
	width: 2rem;
	position: relative;
	top:3px;
}

@media (max-width: 52em) {
    /* Vertical menu layout overrides */

    nav {
        flex: 0 0 3rem;
        transition: all 0.5s;
        overflow: hidden;
        text-align: center;
    }

    nav.open {
        flex: 0 0 17rem;
    }

    .menu-items-wrapper {
        display: block;
        float: none;
        text-align: center;
    }

    .menu-items-wrapper a, .menu-items-wrapper a.social {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    /*
    Toggle from Pure v2.0.3 Copyright 2013 Yahoo! Licensed under the BSD License.
    https://github.com/pure-css/pure/blob/master/LICENSE.md
    */

    .menu-toggle {
        display: block;
        height: 44px;
        position: absolute;
        right: 0;
        top: 3px;
        width: 44px;
    }

    .menu-toggle .bar {
        background: #5c5c5c;
        border-radius: 100px;
        display: block;
        height: 2px;
        position: absolute;
        right: 12px;
        top: 22px;
        transition: all 0.5s;
        width: 20px;
    }

    .menu-toggle .bar:first-child {
        transform: translateY(-6px);
    }

    .menu-toggle.x .bar {
        transform: rotate(45deg);
    }

    .menu-toggle.x .bar:first-child {
        transform: rotate(-45deg);
    }
}
