@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: local('Open Sans Regular'), local('OpenSans-Regular'), url(/_assets/_fonts/opensans/opensans-regular.woff2) format('woff2'), url(/_assets/_fonts/opensans/opensans-regular.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: local('Open Sans Semibold'), local('OpenSans-semibold'), url(/_assets/_fonts/opensans/opensans-semibold.woff2) format('woff2'), url(/_assets/_fonts/opensans/opensans-semibold.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: local('Open Sans Light'), local('OpenSans-Light'), url(/_assets/_fonts/opensans/opensans-light.woff2) format('woff2'), url(/_assets/_fonts/opensans/opensans-light.woff) format('woff'); font-display: swap; }

/*****************

Sir John Walsh Research Institute CSS

*****************/

body {
  background: url(gfx/sjwri-insidepage-background.jpg) center 0px repeat-x;
}
#wrapper {
  background: url(gfx/sjwri-insidepage-banner.jpg) center 0px no-repeat;
}
.titleinner {
  background: url(gfx/sjwri-title.png) 212px 20px no-repeat;
  background-size: 270px;
	margin-top: 0px;
  padding-top: 189px;
}
#title h1, .OTAGO065101 #content h1 {
  background: none;
  color: #27aae1;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
  font-size: 31px;
  font-weight: 300;
  line-height: 1.25;
	margin: 0 0 21px 23px;
	max-width: 650px;
  padding: 5px 0 0 0;
  position: relative;
  opacity: 1;
  text-rendering: optimizeLegibility;
}
h1.notopimage {
  max-width: 650px;
  margin-top: 0px;
}
#title img {
	display: none;
}
#content h2 {
  border: none;
  color: #555555;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
	font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
	margin: 0 0 14px 0;
	text-rendering: optimizeLegibility;
}
#content p + h2,
#content ul + h2,
#content ol + h2,
#content table + h2,
#content dl + h2,
#content form + h2,
#content div + h2 {
	margin-top: 35px;
}
#content p.heading-translation + h2 {
  margin-top: 0;
}
#content h3 {
	color: #555555;
	font-family: "Open Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
#content h4 {
  color: #27aae1;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}
#content p,
#content ul,
#content ol,
#content li,
#content table,
#content td,
#content dl,
#content dt,
#content dd,
#content form,
#content fieldset,
#content legend,
#content label,
#content select,
#content option,
#content textarea,
#content input,
#right p,
#right li,
#right dt,
#right dd {
  font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
  font-weight: 400;
}
#content ul {
    margin-left: 16px;
}
#content li {
    margin-bottom: 3px;
}
#right {
	margin-top: 0;
	position: relative;
	z-index: 9999;
	background-image: none;
}
#content .heading-translation {
  color: #888888;
  font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 35px;
  margin-top: -21px;
}
#right h3 {
  font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 4px;
}
#right h2 {
	margin-bottom: 7px;
}
#right p,
#right ul,
#right li {
	border-bottom: 0;
	font-size: 12px;
	line-height: 1.5;
}
#right img {
  margin-bottom: 3px;
}
#right p.smalltag {
  margin-bottom: 14px;
}


/*//////////// Frontpage styles /////////////// */

body.frontpage  {
	background: url(gfx/sjwri-frontpage-background.jpg) center 0px repeat-x;
}
body.frontpage   #wrapper {
	background: url(gfx/sjwri-frontpage-banner.jpg) center 0px no-repeat;
}
body.frontpage  .titleinner {
	padding-top: 221px;
	margin-top: 0px;
	background: url(gfx/sjwri-title.png) 218px 64px no-repeat;
}
body.frontpage  #title h1 {
  font-weight: 400;
  font-size: 28px;
  text-indent: -9999px;
}
body.frontpage #content {
  box-sizing: border-box;
  width: 100%;
}
body.frontpage  #content p.blue-arrow {
  background: url(gfx/blue-arrow.png) left 2px no-repeat;
	color: #ef4136;
  margin-bottom: 28px;
	padding: 1px 3px 3px 21px ;
}
body.frontpage  #content h2.intro {
	border-bottom: none;
  border-top: none;
  color: #27aae1;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
  font-size: 34px;
	font-weight: 300;
  line-height: 1.3;
  margin-bottom: 14px;
  padding-bottom: 7px;
  padding-top: 7px;
}
body.frontpage  #content h2 {
  font-weight: 300;
}
body.frontpage #content a {
  border-bottom: 0;
}
body.frontpage #content #box2 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
body.frontpage #content .grid-third {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 3px;
  box-shadow: 0 5px 10px #f6f6f6;
  box-sizing: border-box;
  float: left;
  margin-bottom: 46px;
  margin-right: 7.1%;
  width: 28.6%;
}
body.frontpage #content .grid-third:nth-of-type(3) {
  margin-right: 0;
}
body.frontpage #content .grid-third h2 {
  border-bottom: none;
	font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
	font-weight: 300;
	font-size: 21px;
	line-height: 1.25;
  margin: 0;
	padding: 0 14px 14px 14px;
}
body.frontpage #content .grid-third h2:after {
  background-color: #f9c000;
  content: '';
  display: block;
	height: 3px;
	margin-top: 14px;
  width: 37px;
}
body.frontpage #content .grid-third img {
	border: none;
  border-radius: 2px 2px 0 0;
  box-sizing: border-box;
	margin: 0;
	max-width: 100%;
	padding: 0;
	width: 100%;
}
body.frontpage #content .grid-third ul {
  margin-left: 26px;
  margin-bottom: 21px;
}
body.frontpage #content article {
  float: left;
  margin-right: 5.3%;
  width: 21%;
}
.news article:hover {
  background: none;
}
body.frontpage #content article:nth-of-type(4) {
  margin-right: 0;
}
body.frontpage #content article h3 {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 14px;
}
body.frontpage #content article img {
  max-width: 100%;
}
body.frontpage #content article p.smalltag {
  color: #888888;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}
body.frontpage #content .news article .articletext {
  width: 100%;
}
body.frontpage  #content .grid1:nth-of-type(4) {
    margin-right: 0;
}
body.frontpage #content .gridhalf {
	float: left;
	width: 302px;
	margin-right: 46px;
}
body.frontpage  #content .gridhalf:nth-of-type(2n) {
	margin-right: 0;
}
body.frontpage #right {
  margin-top: 245px;
}
#right .grid1.featured.news {
  position: relative;
}
.feature-button-box {
  position: absolute;
  top: 0;
}
body.frontpage #content #box4 {
  margin-top: 42px;
}
body.frontpage #right .feature-button-box {
  margin-top: 21px;
}
body.frontpage #right .feature-button-box a {
  background: #27aae1;
  border-radius: 16px;
  display: block;
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  padding: 7px 5px;
  transition: all 0.2s ease-in;
  /*border: 2px solid #2699c9;*/
  box-shadow: 0 0 10px #e4e4e4;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
	font-weight: 400;
}
body.frontpage #right .feature-button-box a:hover {
  background: #2699c9;
  border-bottom: none;
}
body.frontpage #right .feature-button-box a:active {
  background: #36c1fb;
}
body.frontpage #right .feature-button-box p {
  border-bottom: none;
}
body.frontpage #right .news h2 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	border: none;
  color: #555555;
  text-transform: none;
  margin-top: 126px;
  margin-bottom: 14px;
}
body.frontpage #right .news article > a:first-child {
	display: block;
	height: 114px;
	overflow: hidden;
	clear: both;
	margin-bottom: 10px;
}
body.frontpage #pagemetadata {
    clear: both;
}

/* Profile page */

body.OTAGO065101 #right {
	padding-top: 87px;
}
body.OTAGO065101 #title h1 {
	display:none;
}
body.OTAGO065101 #content h1 {
	margin: 0;
	padding-top: 0;
	padding-bottom: 42px;
}

/* MEDIA QUERIES ************/

/* iPad landscape */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  body.frontpage  #content .shadow-box {
		background-size: contain;
	}
  body.frontpage #content .grid1 {
    width: 46%;
  }
  body.frontpage #content .grid1:nth-of-type(4),
  body.frontpage #content .grid1:nth-of-type(3) {
    margin-right: 0;
  }
	body.frontpage  #right {
    margin: 0px 0px 0px 232px;
    padding: 0;
    width: 650px;
	}
  body.frontpage #right .grid1.featured.news {
    width: 100%;
  }
  body.frontpage #right .news article {
    float: left;
    margin-bottom: 10px;
    margin-right: 46px;
    width: 33%;
  }
  body.frontpage #right .news article img {
    margin-right: 10px;
  }
  body.frontpage #right .news h2 {
    margin-bottom: 14px;
  }
}

/* iPad portrait */
@media only screen and (max-width: 768px) {
  body.frontpage #content .grid1 {
    width: 100%;
  }
  body.frontpage #content .grid-third {
    margin-right: 3%;
    width: 31.3%;
  }
  body.frontpage #content .grid-third:nth-of-type(3) {
    margin-right: 0;
  }
  body.frontpage #content .grid-third h2 {
    font-size: 18px;
    padding-left: 7px;
    padding-right: 0;
  }
  body.frontpage #content .grid-third ul {
    margin-left: 21px;
  }
	#right {
    border-top: 1px solid #e4e4e4;
    margin: 0px 0px 0px 232px;
    width: 418px;
  }
  #right p {
    border-bottom: none;
  }
  body.frontpage #right {
    margin: 0 0 0 232px;
    width: 418px;
  }
	body.frontpage #right .grid1.featured.news {
    width: 100%;
  }
	body.frontpage #right .news article {
    margin-right: 21px;
  }
  body.frontpage #right .feature-button-box {
    margin-top: 21px;
  }
}

/* Mobile styles (phone and small tablet) media query */

@media only screen and (max-width: 700px) {
  .titleinner {
    padding-top: 225px;
    background-size: 310px;
    background-position: 0 44px;
  }
  #wrapper {
    background-position: center 0;
    background: url(gfx/sjwri-frontpage-banner.jpg) center -69px no-repeat;
  }
  #title h1 {
    font-size: 27px;
    margin: 0;
  }
  #content {
    padding: 0;
  }
  #right {
    border-top: none;
    margin: 0;
    width: 100%;
  }
  body.frontpage  {
    background: url(gfx/sjwri-frontpage-background.jpg) center -69px repeat-x;
  }
  body.frontpage #wrapper {
    background: url(gfx/sjwri-frontpage-banner.jpg) center -69px no-repeat;
  }
  body.frontpage .titleinner {
    background-position: 0 57px;
    background-size: 211px;
    padding-top: 186px;
  }
  body.frontpage #content {
    padding: 0;
    width: 97%;
  }
  body.frontpage #content .shadow-box {
    margin: 0;
  }
  body.frontpage #content h2.intro {
    font-size: 24px;
  }
  body.frontpage #content img {
    float: none;
    margin-left: 0;
  }
  body.frontpage #right {
    margin: 0;
    width: 100%;
  }
  body.frontpage #right .news article,
  body.frontpage #right .events article {
    float: left;
    margin-right: 5%;
    width: 45.5%;
  }
  body.frontpage #right .news article:nth-of-type(2n) {
    margin-right: 0;
  }
}


@media only screen and (max-width: 450px) {
  body.frontpage #content .grid-third {
    margin-bottom: 21px;
    margin-right: 5%;
    width: 47%;
  }
  body.frontpage #content .grid-third ul {
    margin-right: 7px;
  }
  body.frontpage #content .grid-third:nth-of-type(2) {
    margin-right: 0;
  }
  body.frontpage #content .grid-third img {
    display: none;
  }
  body.frontpage #content article {
    width: 47.3%;
  }
  body.frontpage #content article:nth-of-type(2n) {
    margin-right: 0;
  }
}
