@import url(https://fonts.googleapis.com/css?family=Open+Sans:300italic,300&subset=latin,latin-ext);

/*****************

Department of Women's and Children's Health BASECAMP CSS

*****************/

#title h1 {
  padding: 200px 43px 14px 23px;
  font-size: 36px;
  line-height: 1.2;
  background: url(gfx/title.png) 20px 6px no-repeat;
  opacity: 1;
  font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
  font-weight: 300;
  color: #1b568c;
  position: static;
	max-width: 627px;
	margin-top: 3px;
  font-display: swap;
}
.titleinner {
  background: url(gfx/banner-inside.jpg) center 0px no-repeat;
  padding-top: 3px;
  padding-bottom: 0px;
}
.titleinner img {
  display: none;
}
.titleinner h1 {
  margin-top: 0px;
}
#content h2 {
  padding-bottom: 7px;
  font-size: 28px;
  font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
  font-weight: 300;
  line-height: 1.2;
  margin-top: 28px;
  clear: both;
  font-display: swap;
}
#content h2:first-of-type {
  margin-top: 0;
}
#content p + h2:first-of-type {
	margin-top: 28px;
}
#content ul.mugshot {
	list-style-type: none;
	margin: 0;
}
#content .mugshot .grid_quarter {
	min-height: 240px;
	display: block;
	line-height: 1.3;
  margin-bottom: 21px;
}
#content .mugshot .grid_quarter a {
	border-bottom: none;
	font-family: Georgia, "Times New Roman", Times, serif;
}
#content .mugshot .grid_quarter img {
	border: 1px solid #e9e9e9;
	max-height: 270px;
	overflow: hidden;
	transition: all 0.2s ease-out;
	box-shadow: 0 0 10px #f1f1f1;
}
#content .mugshot .grid_quarter img:hover {
	box-shadow: 0 0 20px #cccccc;
}
#content .grid_quarter {
	width: 128px;
	margin-right: 46px;
}
#content .grid_quarter:nth-of-type(4n) {
	margin-right: 0;
}
.OTAGO051017 #content .grid_quarter:nth-of-type(4n+1) {
  clear: left;
}
#content .grid_quarter img {
	max-width: 100%;
}
#content .grid1:nth-of-type(3n) {
	margin-right: 0;
}
body.n3401 #title h1 {
  padding-top: 180px;
  padding-bottom: 0;
}
body.n3401 #title h1.notopimage {
	text-indent: -9999px;
	height: 0;
}
body.n3401 #content h1 {
	font-size: 38px;
  line-height: 1.2;
	font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
  font-weight: 300;
  line-height: 1.2;
	padding-bottom: 28px;
	color: #1b568c;
}
/*  Profiles h1 */
/*body.n5172 #title h1.notopimage {
	text-indent: -9999px;
	height: 0;
}*/
/* Alumni */
/*body.n5172 #content h1 {
	font-size: 38px;
    line-height: 1.2;
	font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
    line-height: 1.2;
	padding-bottom: 28px;
	color: #1b568c;
}*/
#right {
  background-size: 26px 100%;
}


/*====  FRONTPAGE  =====================================*/

body.frontpage {
  background-position: center top;
}
body.frontpage .titleinner {
  background: url(gfx/banner.jpg) center 0px no-repeat;
  padding-top: 14px;
  padding-bottom: 21px;
}
body.frontpage #title h1 {
  padding: 270px 0px 0px 23px;
  font-size: 33px;
  line-height: 1.2;
  background: url(gfx/title.png) 25px 31px no-repeat;
  opacity: 1;
  font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
  font-weight: 300;
}
body.frontpage #title h1.notopimage {
  max-width: 882px;
}


/*==== Tablet styles =====================================*/

@media only screen and (min-width: 769px) and (max-width: 1024px) {
	#content .grid1:nth-of-type(3n) {
		margin-right: 46px;
	}
	#content .grid1:nth-of-type(2n) {
		margin-right: 0;
	}
  #content .grid_quarter {
		margin-right: 23px;
		width: 124px;
	}
	#content .grid_quarter:nth-of-type(4n) {
		margin-right: 23px;
	}
	#content .grid_quarter:nth-of-type(3n) {
		margin-right: 0px;
	}
}

@media only screen and (max-width: 768px) {
	#title h1 {
    padding-right: 0;
  }
  body.frontpage #title h1 {
    padding-right: 0;
  }
  #right {
      border-bottom: none;
  }
	#content .grid1:nth-of-type(3n) {
		margin-right: 46px;
	}
	#content .grid1:nth-of-type(2n) {
		margin-right: 0;
	}
  #content .grid_quarter {
		margin-right: 23px;
		width: 124px;
	}
	#content .grid_quarter:nth-of-type(4n) {
		margin-right: 23px;
	}
	#content .grid_quarter:nth-of-type(3n) {
		margin-right: 0px;
	}
}

/*==== Mobile styles =====================================*/

@media only screen and (max-width: 700px) {
    body.frontpage .titleinner,
    .titleinner {
      background: url(gfx/banner-inside.jpg) -400px 0px no-repeat;
      width: 92%;
    }
    .titleinner h1 {
      max-width: 100% !important;
    }
    #title h1 {
      padding: 200px 0px 0px 0px;
      background: url(gfx/title.png) 14px 28px no-repeat;
      background-size: 240px;
      font-size: 36px;
    }
    body.frontpage #title h1 {
      padding: 177px 0px 0px 0px;
      background: url(gfx/title.png) 14px 10px no-repeat;
      background-size: 240px;
      font-size: 30px;
    }
    #content p.caption_280 {
      float: none;
      margin-left: 0;
      width: 100%;
      max-width: 400px;
    }
    #content p.caption_280 img {
      float: none;
      width: 100%;
      max-width: 100%;
    }
    #content .mugshot .grid1 {
  		min-height: 20px;
  		width: 43%;
  		float: left;
	  }
	  #content .mugshot .grid1 a {
		  margin-bottom: 21px;
		  display: block;
	  }
	  #content .mugshot .grid1 img {
		  float: none;
		  margin-left: 0;
		  max-width: 100%;
	  }
    #content .grid_quarter:nth-of-type(4n) {
		  margin-right: 3%;
	  }
  	#content .grid_quarter:nth-of-type(3n) {
  		margin-right: 0px;
  	}
}
