body {
    background-color: #EBF4E1;
    margin: 0px; /* avoids some problems when using float with older browsers */
    padding: 0px; /* avoids some problems when using float with older browsers */
}
.navblock {
    display: block;
    background-color: #A9B988;
    /*delete min-width: 550px; /* same as having a minimum page width and stops the page becoming too small */
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}
/* .navblock unvisited link */
.navblock a:link {
    color: #000000;
    text-decoration: none;
}
/* .navblock visited link */
.navblock a:visited {
    color: #000000;
    text-decoration: none;
}
/* .navblock mouse over link */
.navblock a:hover {
    color: #000000;
    text-decoration: underline;
}
/* .navblock selected link */
.navblock a:active {
    color: #000000;
    text-decoration: underline;
}
/* DELETE NOT USED IN NEW VERSIONS OF PAGES*/
.navblocknobackground {
    display: block;
    /*delete min-width: 550px;*/
}
.logo-title {
    display: inline-block;
    font-size: 20px;
    font-style: italic;
    text-indent: 20px;
    vertical-align: top;
    line-height: 40px; /* adjusted line-height to make text appear lower, using a div is an alternative */
}
.floatright {
    float: right;
    vertical-align: top;
}
.floatrightcontent {
    float: right;
    vertical-align: top;
    background-color: #FFFFFF;
    display: block;
    padding: 20px;
    margin-top: 0px;
    margin-right: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    border-style: solid;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 20px;
    border-left-width: 20px;
    border-color: #EBF4E1;
    text-align: right;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.content {
    display: block;
    background-color: #FFFFFF;
    padding: 20px;
    margin: 20px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}
/* used with flexslider slides*/
.slides {
    padding: 0px;
    margin: 0px;
}
.contentnavblock {
	display: block;
    text-align: left;
}
.customslidenavigation {
	margin-top: 30px;
	display: block;
}
.contentleftslideblock {
	margin-top: -20px;
	display: block;
    float: left;
	font-size: 14px;
}
.contentrightslideblock {
	margin-top: -20px;
	display: block;
    float: right;
	font-size: 14px;
}
/* format of headings */
h1 {
    font-size: 14px;
}
.navblock li {
    display: inline-block; /* place list of links horizontally */
}
ul {
    display: inline-block; /* place list of links horizontally */
}
/* additional class around image to ensure that both landscape and portrait images are constrained correctly upon resizing */
.img {
    margin: auto; /* centre "img"*/
    max-width: 700px;
}
/* properties for images in "img" class */
.img img {
    padding: 1px;
    background-color: #FFFFFF; /* this is to create a double border around an image */
    margin: 0px;
    border: 1px solid #EBF4E1;
    width:inherit;
    /* width: 100%; /* fill width of page where image is, where possible (see below) */
    max-width: 100%; /* stops images from being enlarged over their original size */
    /*max-height: 700px; /* THIS IS ACTUAL stops images from being enlarged over their original size */
    max-height: 100%; /* THIS IS TEST BUT IS BETTER CHANGE TO THISuse above */
}
.imgtwothirdsportrait {
    max-height: 700px;
}
/* properties for images in "imgtwothirdsportrait" class */
.imgtwothirdsportrait img {
    padding: 1px;
    background-color: #FFFFFF; /* this is to create a double border around an image */
    margin: 0px;
    border: 1px solid #EBF4E1;
    width:inherit;
    max-width: 66.5%;
    max-height: 100%;
}

/* hyperlink properties for images */
/* unvisited link */
.img img:link {
    background-color: #FFFFFF;
    border: 1px solid #EBF4E1;
}
/* visited link */
.img img:visited, .imgtwothirdsportrait img:visited {
    background-color: #FFFFFF;
    border: 1px solid #EBF4E1;
}
/* mouse over link */
.img img:hover, .imgtwothirdsportrait img:hover {
    background-color: #0000FF;
    border: 1px solid #0000FF;
}
/* selected link */
.img img:active, .imgtwothirdsportrait img:active {
    background-color: #0000FF;
    border: 1px solid #0000FF;
}
/* properties for images descriptions in "imgdsc" class (can be used under image when desired) */
.imgdsc {
    padding: 5px;
    margin: 0px;
    text-align: center;
    width:inherit;
    max-width: 100%; /* format to match image - stops images from being enlarged over their original size */
    max-height: 100%; /* format to match image */
}
/* properties to place multiple images */
.imggallery {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
}
@media only screen and (min-width: 550px){
    .imggallery {
        width: 49.5%;
    }
}
@media only screen and (min-width: 700px){
    .imggallery {
        width: 24.5%;
    }
}
/* hyperlink properties for page (images are better specified separately)*/
/* unvisited link */
a:link {
    color: #0000FF;
    text-decoration: none;
}
/* visited link */
a:visited {
    color: #0000FF;
    text-decoration: none;
}
/* mouse over link */
a:hover {
    color: #0000FF;
    text-decoration: underline;
}
/* selected link */
a:active {
    color: #0000FF;
    text-decoration: underline;
}
/* properties for javascript modal */
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}
/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    font-family: Arial, Helvetica, sans-serif;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 40px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
/* Clear Floats */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}