@import url('https://fonts.googleapis.com/css?family=DM+Sans:400,700|Libre+Caslon+Text&display=swap');


/* He Kitenga 2019 CSS */

html {
  scroll-behavior: smooth;
}
.titleinner {
  position: relative;
  padding-bottom: 0px;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
}
.titleinner img {
  position: absolute;
  top: 0;
  z-index: -1;
}
#title h1 {
  background: url(../gfx/title-2019-white.png) 0px 300px no-repeat;
  background-size: 350px;
  color: #333333;
  font-family: 'Libre Caslon Text', 'Open Sans', Helvetica, sans-serif;
  font-size: 60px;
  font-weight: normal;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures, contextual;
  -moz-font-feature-settings: "kern", "liga", "clig", "calt";
  -ms-font-feature-settings: "kern", "liga", "clig", "alt";
  -webkit-font-feature-settings: "kern", "liga", "clig", "calt";
  font-feature-settings: "kern", "liga", "clig", "calt";
  line-height: 1.2;
  padding-bottom: 24px;
  padding-top: 765px;
  position: relative;
  text-rendering: optimizeLegibility;
  text-transform: uppercase;
}
#title h1:after {
  background: #333333;
  content: '';
  display: block;
  height: 6px;
  margin-bottom: 14px;
  margin-top: 21px;
  width: 200px;
}
.OTAGO731022 #title h1:first-letter {
  text-transform: none;
}
.OTAGO730903 #title h1 {
  background-image: url(../gfx/title-2019-white.png);
  background-position: 0 220px;
}
#title h1.notopimage {
  background: url(../gfx/title-2019.png) 0px 300px no-repeat;
  background-size: 350px;
}
.OTAGO704953 #title h1,
.OTAGO703651 #title h1 {
  background-image: url(../gfx/title-2018-black.png);
}
#title ul#breadcrumbs {
  display: none;
}
#title img {
  border-bottom: 1px solid #dddddd;
}
#contentwrapper {
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
}
#content {
  padding-top: 0px;
}
#content p.smalltag:first-of-type {
    display: block;
  font-style: normal;
}
#content p.smalltag:first-of-type + h2 {
    margin-top: 35px;
}
#content h2 {
  background: none;
  font-family: 'Libre Caslon Text', 'Minion Pro', Minion, Georgia, 'Montserrat', 'Open Sans', Helvetica, sans-serif;
  font-size: 28px;
  line-height: 1.5;
  padding-bottom: 0;
}
#content h3 {
  color: #727ab9;
  font-size: 32px;
  margin-bottom: 28px;
  margin-top: 35px;
}
#content h3,
#right h3 {
  color: #333333;
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.4;
}
#content h4 {
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 21px;
  margin-top: 28px;
}
#content p {
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 19px;
}
#content p img {
  border: none;
  padding: 0;
}
#content p.caption186,
#content p.caption232 {
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
}
#content p.caption186 strong,
#content p.caption232 strong,
#content p strong {
  font-weight: 700;
}
#content blockquote {
  background: none;
  border: none;
  margin-bottom: 35px;
  border-left: none;
  padding: 0;
  position: relative;
}
#content blockquote p {
  color: #ffffff;
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  font-style: normal;
  line-height: 1.4;
  margin-bottom: 0;
}
#content blockquote p:nth-of-type(2) {
  margin-left: 21px;
  margin-top: 21px;
  position: absolute;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  top: 0;
  width: 30%;
}
#content blockquote p em {
  background: none;
  display: inline-block;
  font-family: 'Libre Caslon Text', Minion Pro, Georgia, Times New Roman, serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 14px;
  text-transform: uppercase;
}
#content blockquote p img {
  border: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding: 0;
}
#content blockquote.pullquote {
  float: right;
  margin-left: 6%;
  margin-top: 0;
  width: 36%;
}
#content blockquote.pullquote p {
  border-bottom: 4px solid #333333;
  color: #333333;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 35px;
  padding-top: 0;
}
#content .topofpage {
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-weight: 300;
}
#content h2:first-of-type strong {
  color: #ffffff;
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
}


#content blockquote p strong {
  color: #444444;
  font-weight: normal;
}
#content ul {
  margin-left: 14px;
}
#content li {
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}
#content ul.pagesubnav {
  background: #f1f1f1;
  border: 1px solid #dddddd;
  border-radius: 3px;
}
#content ul.pagesubnav li a {
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-weight: 300;
}
#content hr {
  border-top: 1px solid #dddddd;
  clear: both;
  margin-bottom: 35px;
  margin-top: 35px;
}
#content p.circle-border img {
    padding: 0;
    margin: 0 0 14px 21px;
    border-radius: 50%;
    border: 14px solid #ff7175;
    float: right;
    max-width: 186px;
}
/* Page navigation */
#content .next-item {
  background: url(/_assets/_gfx/no-circle-arrow-blue-forward.svg) right 0 no-repeat;
  background-size: 25px;
  height: auto;
  top: 0;
  width: 86px;
}
#content .previous-item {
  background: url(/_assets/_gfx/no-circle-arrow-blue-back.svg) 0 0 no-repeat;
  background-size: 25px;
  height: auto;
  top: 0;
  width: 86px;
}
#content .next-item:hover {
	background: url(/_assets/_gfx/no-circle-arrow-blue-forward.svg) right 0 no-repeat;
    background-size: 25px;
	height: 200px;
}
#content .previous-item:hover {
	background: url(/_assets/_gfx/no-circle-arrow-blue-back.svg) 0 0 no-repeat;
    background-size: 25px;
    height: 200px;
}
#content .next-item a,
#content .previous-item a {
    opacity: 0;
    transition: all 0.3s ease-out;
    border-bottom: none;
}
#content .next-item a:hover,
#content .previous-item a:hover {
    opacity: 1;
}
#content .next-item a:active,
#content .previous-item a:active {
    border-bottom: none;
}
#content .next-item:active {
    background: url(/_assets/_gfx/no-circle-arrow-blue-forward.svg) right 5px no-repeat;
    background-size: 35px;
}
#content .previous-item:active {
    background: url(/_assets/_gfx/no-circle-arrow-blue-back.svg) 0 5px no-repeat;
    background-size: 35px;
}
#content .next-item a,
#content .previous-item a {
    font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0;
  line-height: 1.5;
    padding-top: 76px;
  opacity: 1;
  text-transform: none;
}
#content .next-item a:hover,
#content .previous-item a:hover {
  border-bottom: none;
}
.funding {
  border: 1px solid #dddddd;
  padding: 14px 14px 7px 14px;
  margin-top: 7px;
  margin-bottom: 21px;
}
#content .funding h3,
#content .funding h4 {
  margin: 14px 0 7px 0;
}

/* Full width caption */
#content p.fullwidthimage {
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
}

/* Welcome */

body.OTAGO703606 #title h1 {
  color: #304a80;
}

body.OTAGO704953 #content img,
body.OTAGO703606 #content p img:first-of-type {
  border: 50px solid #ef5c6c;
  border-radius: 100%;
  max-height: 140px;
  max-width: 140px;
  padding: 0;
}
body.OTAGO703606 #content p img:first-of-type {
  border: 50px solid #f5f5f5;
}
body.OTAGO703606 #content .introduction {
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 300;
  margin-bottom: 42px;
}
body.OTAGO703606 #content .introduction em {
  color: #304a80;
}
body.OTAGO703606 #content h2:first-of-type {
  padding-left: 0;
  padding-right: 0;
  padding-top: 35px;
}
body.OTAGO703606 #content h2:first-of-type strong {
  color: #304a80;
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-weight: 700;
}



/* Auckland Islands */

#content .grid-container {
  display: flex;
  flex-wrap: wrap;
}
.OTAGO731107 #content .grid-container {
  margin-bottom: 42px;
  margin-top: 42px;
}
.OTAGO731107 #content .grid-container .grid-third {
  width: 47.5%;
}
.OTAGO731107 #content .grid-container .grid-third:not(:last-of-type) {
  margin-right: 5.0%;
}
.OTAGO731107 #content .grid-container .grid-third:nth-of-type(1) {
  margin-right: 0;
  width: 100%;
}
#content .grid-container .grid-third img {
  margin-bottom: 7px;
  margin-left: 0;
  width: 100%;
}
.OTAGO731107 #content .grid-container .grid-third p {
  font-size: 13px;
}
.OTAGO731107 #content h2:not(:first-of-type) {
  font-size: 40px;
  line-height: 1.3;
}
.OTAGO731107 #content h2 span {
  border-bottom: 5px solid #333333;
  display: inline-block;
  font-size: 20px;
  margin-bottom: 7px;
  padding-bottom: 7px;
  width: 150px;
}
.OTAGO731107 #content h3 {
  font-size: 23px;
}
.OTAGO731107 #content h4 {
  font-weight: 700;
}
.OTAGO731107 #content ol {
  display: flex;
  list-style-type: none;
  margin-bottom: 98px;
  margin-left: 0;
}
.OTAGO731107 #content ol li {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  width: 30%;
}
.OTAGO731107 #content ol li a {
  border-bottom: 0;
}
.OTAGO731107 #content ol li:not(:last-of-type) {
  margin-right: 5%;
}
.OTAGO731107 #content ol li span {
  border-bottom: 3px solid #333333;
  display: block;
  font-family: 'Libre Caslon Text', 'Minion Pro', Minion, Georgia, Times New Roman, serif;
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

#content .smalltag.photo-icon {
  background: url(/_assets/_gfx/camera-icon-grey.svg) no-repeat 0 4px;
  background-size: 21px;
  color: #777777;
  padding-left: 30px;
}

/* Right */

#right h3 {
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 7px;
}
#right p,
#right ul {
    border-bottom: none;
}


/* Frontpage */

body.OTAGO730903 #title h1 {
  margin-bottom: 110px;
  max-width: 100%;
  padding-top: 350px;
  text-transform: none;
}
body.OTAGO730903 #title ul#breadcrumbs {
  display: none;
}
body.OTAGO730903 #content h1 {
  color: #ffffff;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 160px;
}
body.OTAGO730903 #contentwrapper {
  position: relative;
  z-index: 999;
}
body.OTAGO672218 #content h2 em {
  color: #727ab9;
}
#content .grid4 {
  display: flex;
  flex-wrap: wrap;
  margin-top: 42px;
  max-width: 650px;
  width: 100%;
}
body.OTAGO730903 #content .introduction {
  font-family: 'Libre Caslon Text', 'Minion Pro', Minion, Georgia, Times New Roman, serif;
  font-size: 22px;
  
}
#content .grid4 a.grid1 {
  border-radius: 4px;
  border: 1px solid #dddddd;
  box-shadow: 0 5px 15px #f5f5f5;
  box-sizing: border-box;
  font-family: 'DM Sans', 'Open Sans', Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  padding: 7px 7px 14px 7px;
  margin-bottom: 46px;
  margin-right: 7%;
  min-height: 180px;
  text-align: center;
  transition: all 0.3s ease-out;
  width: 28.6%;
}
#content .grid4 a.grid1:nth-of-type(4) {
  margin-right: 7%;
}
#content .grid4 a.grid1:nth-of-type(3n) {
  margin-right: 0;
}
#content .grid4 a.grid1:hover {
  box-shadow: 0 0 20px #e4e4e4;
  transform: translate3d(0, -4px, 0);
}
#content .grid1 img {
  margin-bottom: 14px;
  border-radius: 2px;
}
.OTAGO703606 #content .grid1:nth-of-type(1) img,
.OTAGO703606 #content .grid1:nth-of-type(3) img {
  border-bottom: 5px solid #ef5c6c;
}
.OTAGO703606 #content .grid1:nth-of-type(2) img {
  border-bottom: 5px solid #8dc2d0;
}
.OTAGO703606 #content .grid1:nth-of-type(4) img {
  border-bottom: 5px solid #f8a774;
}
.OTAGO703606 #content .grid1:nth-of-type(5) img,
.OTAGO703606 #content .grid1:nth-of-type(9) img {
  border-bottom: 5px solid #9fabc7;
}
.OTAGO703606 #content .grid1:nth-of-type(6) img,
.OTAGO703606 #content .grid1:nth-of-type(8) img {
  border-bottom: 5px solid #b8cf92;
}
.OTAGO703606 #content .grid1:nth-of-type(7) img,
.OTAGO703606 #content .grid1:nth-of-type(10) img {
  border-bottom: 5px solid #f4c300;
}
.OTAGO703606 #content .grid1:nth-of-type(11) img {
  border-bottom: 5px solid #304a80;
}
body.OTAGO672218 #right {
  float: none;
  margin-top: -130px;
  margin-left: 0;
  padding-left: 0;
  clear: both;
  position: absolute;
}
body.OTAGO672218 #content .grid1:before {
  display: block;
  content: '';
  width: 92.5%;
  height: 0px;
  background: #727ab9;
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 999;
  transition: height 0.3s ease;
}
body.OTAGO672218 #content .grid1:hover:before {
    height: 4px;
}
.no-flexbox body.OTAGO672218 #content .grid4 { display: block; }
.no-flexbox body.OTAGO672218 #content .grid1 { min-height: 195px; }


/* Dunedin Study */

#content .quote-block-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 35px;
  margin-top: 35px;
  width: 100%;
}
.quote-block {
  box-sizing: border-box;
  padding: 0 21px 14px 0;
  width: 33.3%;
}
#content .quote-block p {
  font-weight: bold;
  line-height: 1.4;
}
#content .quote-block p em {
  display: inline-block;
  font-family: 'Libre Caslon Text', 'Minion Pro', Minion, Georgia, 'Montserrat', 'Open Sans', Helvetica, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-top: 14px;
  text-transform: uppercase;
}


/* Research medals */

#content .grid-half {
  margin-bottom: 35px;
  margin-right: 5%;
  width: 47.5%;
}
#content .grid-half:nth-of-type(2n) {
  margin-right: 0;
}
#content .grid-half p img {
  margin-bottom: 0;
  margin-left: 0;
  width: 100%;
}
.OTAGO731585 #content h2 {
  border-top: 1px solid #000000;
  margin-bottom: 21px;
  margin-top: 42px;
  padding-top: 42px;
}
.OTAGO731585 #content h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}


@media only screen and (min-width: 1024px) and (max-width: 1160px) {
  .titleinner,
  div#nav_holder,
  .topnavinner,
  #contentwrapper,
  footer.wrapper, div.footer_wrapper {
    width: 100%;
    box-sizing: border-box;
  }
  div#nav_wrapper {
    left: 23px;
  }
  .titleinner {
    overflow: hidden;
  }
  body.individualprofile #title img {
    max-width: 2000px;
    width: 1160px;
  }
  #content .previous-item {
    left: 114px;
  }
  #content .next-item {
    right: -114px;
  }
  /* Frontpage */
  body.OTAGO672218 #content .grid1 {
    width: 20.53%
  }
  body.OTAGO672218 #content {
    width: 100%;
    box-sizing: border-box;
  }
  body.OTAGO672218  #title h1 {
    padding-bottom: 21px;
  }
  body.OTAGO672218 #content .grid4 {
    width: 100%;
    margin-right: 0;
  }
}





@media only screen and (max-width: 1024px) {
  #content .content-inner {
    max-width: 90%;
    margin: 100px 5% 50px 5%;
  }
  .titleinner,
  div#nav_holder,
  .topnavinner,
  footer.wrapper, div.footer_wrapper {
    width: 100%;
    box-sizing: border-box;
  }
  .titleinner {
    max-width: 100%;
  }
  div#nav_holder {
    width: 90%;
  }
  div#nav_wrapper {
    left: -23px;
  }
  #title h1.notopimage {
    max-width: 100%;
    box-sizing: border-box;
  }
  #title h1 {
    padding-top: 690px;
  }
  .titleinner {
    overflow: hidden;
  }
  body.individualprofile #title h1 {
    background-position: 0 250px;
  }
  body.individualprofile #title img {
    max-width: 2000px;
    width: 1024px;
  }
  #contentwrapper {
    width: 100%;
    box-sizing: border-box;
  }
  #content {
    padding-left: 238px;
    float: none;
    width: 90%;
    box-sizing: border-box;
  }
  #content .grid4 {
    width: 100%;
  }
  #content .next-item {
    right: -90px;
  }
  #right {
    float: none;
    width: 95%;
  }
  /* Frontpage */
  body.OTAGO672218 #content .grid1 {
    width: 31.6%;
    margin-right: 2.5%;
    margin-bottom: 21px;
  }
  body.OTAGO672218 #content .grid1:nth-of-type(3n) {
    margin-right: 0;
  }
  body.OTAGO672218 #right {
    margin-top: 0px;
    position: static;
  }
  .OTAGO672678 #content blockquote.teng {
    background-position: right 0;
    padding: 14px;
  }
  .OTAGO672678 #content blockquote.teng p {
    max-width: 35%;
  }
}




@media only screen and (max-width: 768px) {
  #wrapper {
    width: 100%;
  }
  #title h1 {
    padding-top: 530px;
    width: 87%;
    box-sizing: border-box;
  }
  .titleinner {
    overflow: hidden;
  }
  #contentwrapper,
  .titleinner {
    border-left: none;
    border-right: none;
  }
  body.individualprofile #title h1 {
    background-position: 186px 180px;
    background-size: 200px;
  }
  body.individualprofile #title img {
    max-width: 2000px;
    width: 768px;
  }
  #title h1 {
    margin: 0 0 0 69px;
    box-sizing: border-box;
  }
  .titleinner h1 {
    max-width: 100% !important;
  }
  #content {
   padding-left: 18px;
   margin-left: 0px;
  }
  #contentwrapper {
    width: 92%;
  }
  #content .previous-item {
    top: -80px;
  }
  #content .next-item {
    top: -80px;
    right: -100px;
  }
  #right {
    background: none;
  }
}



@media only screen and (max-width: 700px) {
  div#nav_holder.active { left: 24px; }
  body.individualprofile #title img {
    margin-left: 0;
    top: 0;
    max-width: 700px;
    width: 700px;
  }
  #title h1 {
    padding-left: 0;
    margin-left: 42px;
    margin-bottom: 14px;
    padding-top: 470px;
  }
  body.individualprofile #title h1 {
    background-position: 0px 180px;
    background-size: 200px;
  }
  #content {
    width: 99%;
    margin-right: 0;
  }
  #content .previous-item {
    left: -3%;
    top: 0%;
    background-size: 20px;
    height: 40px;
  }
  #content .previous-item:hover {
    background-size: 18px;
    height: 40px;
  }
  #content .next-item {
    right: -4%;
    top: 0%;
    background-size: 20px;
    height: 40px;
  }
  #content .next-item:hover {
    background-size: 18px;
    height: 40px;
  }
  #content .grid4 {
    width: 100%;
  }
  body.OTAGO440802 #content .grid1:before {
    width: 89%;
  }
  #right {
    border-top: none;
  }
}


@media only screen and (max-width: 600px) {
  body.individualprofile #title img {
    max-width: 600px;
    width: 600px;
  }
  #title h1 {
    padding-top: 420px;
    background-position: 0 150px !important;
    padding-right: 21px;
  }
  body.OTAGO672218 #title h1 {
    font-size: 50px;
  }
  #content blockquote {
    padding-left: 20px;
  }
}


@media only screen and (max-width: 450px) {
  body.OTAGO672218 #title h1 {
    font-size: 40px;
  }
  body.OTAGO672218 #content .grid1 {
    width: 48%;
    margin-right: 4%;
  }
  body.OTAGO672218 #content .grid1:nth-of-type(3n) {
    margin-right: 4%;
  }
  body.OTAGO672218 #content .grid1:nth-of-type(2n) {
    margin-right: 0;
  }
}


@media only screen and (max-width: 400px) {
  body.individualprofile #title img {
    max-width: 400px;
  }
  #title h1 {
    padding-top: 280px;
    font-size: 45px;
    margin-left: 35px;
    background-position: 0 100px !important;
    background-size: 150px !important;
  }
  #content h2 {
    font-size: 25px;
  }
}
