/* This file will hold styles that are loaded using the same media query as the narrow grid. */
/* If you are using the default media queries provided by Omega, these styles will also
 *  apply to the normal and widescreen layouts. You may override these styles in the normal 
 *  and widescreen CSS files as appropriate. */
.region-footer-first .copyright-block .niwa-logo {
  display: block;
  width: 250px;
  height: 63px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('../images/sprite@2x/niwa-logo.png');
}

.media-element-container:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.region-footer-first a.close, .front .panel-display .grid-12 .inside .field-name-body p, figcaption,
.file-image .field-name-media-description {
  font-family: "Sentinel SSm A", "Sentinel SSm B", georgia, "times new roman", times, serif;
  font-weight: 700;
  font-style: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'symbols';
  src: url("../fonts/WebSymbolsLiga/websymbolsligaregular.eot");
  src: url("../fonts/WebSymbolsLiga/websymbolsligaregular.eot?#iefix") format("embedded-opentype"), url("../fonts/WebSymbolsLiga/websymbolsligaregular.woff") format("woff"), url("../fonts/WebSymbolsLiga/websymbolsligaregular.ttf") format("truetype"), url("../fonts/WebSymbolsLiga/websymbolsligaregular.svg#WebSymbolsRegular") format("svg");
}
/*
@font-face{ 
	font-family: 'Arbutus';
		src: url('../fonts/arbutus_slab/arbutusslab-regular-webfont.eot');
		src: url('../fonts/arbutus_slab/arbutusslab-regular-webfont.eot?#iefix') format('embedded-opentype'),
			url('../fonts/arbutus_slab/arbutusslab-regular-webfont.woff') format('woff'),
			url('../fonts/arbutus_slab/arbutusslab-regular-webfont.ttf') format('truetype'),
			url('../fonts/arbutus_slab/arbutusslab-regular-webfont.svg#Arbutus') format('svg');
}


@font-face{ 
	font-family: 'Tex';
		src: url('../fonts/tex-gyre-heros/regular/texgyreheros-regular-webfont.eot');
		src: url('../fonts/tex-gyre-heros/regular/texgyreheros-regular-webfont.eot?#iefix') format('embedded-opentype'),
			url('../fonts/tex-gyre-heros/regular/texgyreheros-regular-webfont.woff') format('woff'),
			url('../fonts/tex-gyre-heros/regular/texgyreheros-regular-webfont.ttf') format('truetype'),
			url('../fonts/tex-gyre-heros/regular/texgyreheros-regular-webfont.svg#Tex') format('svg');

    font-weight:normal;
    font-style: normal;
}

@font-face{ 
	font-family: 'Tex';
		src: url('../fonts/tex-gyre-heros/bold/texgyreheros-bold-webfont.eot');
		src: url('../fonts/tex-gyre-heros/bold/texgyreheros-bold-webfont.eot?#iefix') format('embedded-opentype'),
			url('../fonts/tex-gyre-heros/bold/texgyreheros-bold-webfont.woff') format('woff'),
			url('../fonts/tex-gyre-heros/bold/texgyreheros-bold-webfont.ttf') format('truetype'),
			url('../fonts/tex-gyre-heros/bold/texgyreheros-bold-webfont.svg#Tex') format('svg');

    font-weight:500;
    font-style: normal;
}

@font-face{ 
	font-family: 'Tex';
		src: url('../fonts/tex-gyre-heros/italic/texgyreheros-italic-webfont.eot');
		src: url('../fonts/tex-gyre-heros/italic/texgyreheros-italic-webfont.eot?#iefix') format('embedded-opentype'),
			url('../fonts/tex-gyre-heros/italic/texgyreheros-italic-webfont.woff') format('woff'),
			url('../fonts/tex-gyre-heros/italic/texgyreheros-italic-webfont.ttf') format('truetype'),
			url('../fonts/tex-gyre-heros/italic/texgyreheros-italic-webfont.svg#Tex') format('svg');

    font-weight:normal;
    font-style: italic;
}

@font-face{ 
	font-family: 'Tex';
		src: url('../fonts/tex-gyre-heros/bolditalic/texgyreheros-bolditalic-webfont.eot');
		src: url('../fonts/tex-gyre-heros/bolditalic/texgyreheros-bolditalic-webfont.eot?#iefix') format('embedded-opentype'),
			url('../fonts/tex-gyre-heros/bolditalic/texgyreheros-bolditalic-webfont.woff') format('woff'),
			url('../fonts/tex-gyre-heros/bolditalic/texgyreheros-bolditalic-webfont.ttf') format('truetype'),
			url('../fonts/tex-gyre-heros/bolditalic/texgyreheros-bolditalic-webfont.svg#Tex') format('svg');

    font-weight:bold;
    font-style: italic;
}*/
.icons-sprite, .icons-bullet_triangle, .icons-email, .icons-facebook, .icons-google, .icons-linkedin, .icons-message-24-error, .icons-message-24-help, .icons-message-24-info, .icons-message-24-ok, .icons-message-24-warning, .icons-placeholder, .icons-rss, .icons-search, .icons-twitter {
  background-image: url('../images/icons-s1a91d84ab2.png');
  background-repeat: no-repeat;
}

.icons-bullet_triangle {
  background-position: 0 0;
}

.icons-email {
  background-position: 0 -9px;
}

.icons-facebook {
  background-position: 0 -41px;
}

.icons-google {
  background-position: 0 -76px;
}

.icons-linkedin {
  background-position: 0 -108px;
}

.icons-message-24-error {
  background-position: 0 -140px;
}

.icons-message-24-help {
  background-position: 0 -164px;
}

.icons-message-24-info {
  background-position: 0 -188px;
}

.icons-message-24-ok {
  background-position: 0 -212px;
}

.icons-message-24-warning {
  background-position: 0 -236px;
}

.icons-placeholder {
  background-position: 0 -260px;
}

.icons-rss {
  background-position: 0 -285px;
}

.icons-search {
  background-position: 0 -320px;
}

.icons-twitter {
  background-position: 0 -345px;
}

.zone-menu-wrapper {
  background: #ececec;
}

.section-header .zone-branding-wrapper {
  height: auto;
  background-color: #fff;
  background-image: url('../images/content_banner.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  /*
  .branding-data, .strapline {
    padding-bottom: 32px;
    padding-top: 32px;
  }*/
}

.site-name {
  float: left;
}

.site-name > a {
  margin: 0;
}

/* Header */
.not-front .section-header {
  background: url('../images/content_banner.jpg') no-repeat top center;
}

.section-header .custom-banner {
  height: auto;
  background-size: cover;
}

.region-branding-inner {
  display: table;
  width: 100%;
}

.branding-data,
.strapline {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: table-cell;
  width: 50%;
  padding-top: 32px;
  padding-bottom: 32px;
  vertical-align: middle;
}
.custom-banner .branding-data, .custom-banner
.strapline {
  padding-top: 75px;
  padding-bottom: 75px;
}

.strapline h1 {
  display: block;
  width: 70%;
  float: right;
}

.section-header .aux-menu {
  float: right;
  max-width: 450px;
  display: block;
}
.section-header .aux-menu .menu {
  float: right;
}

.region-menu.grid-12 {
  margin: 0 10px;
}

/* Global Search */
.global-search .container-inline {
  height: auto;
}
.global-search .form-text, .global-search .form-submit {
  margin: 6px 0;
  height: 30px;
}
.global-search .form-text {
  width: 100%;
}

.lt-ie9 .global-search .form-text {
  line-height: 24px;
}

.region-content {
  padding: 0 0 40px 0;
}

.region-footer-first .block {
  margin-bottom: 0;
}
.region-footer-first a.close {
  display: inline-block;
  margin: 16px 0;
  font-size: 28px;
}
.region-footer-first .copyright-block {
  width: 160px;
  padding-top: 23px;
}
.region-footer-first .copyright-block .niwa-logo {
  width: 160px;
  height: 40px;
  background-size: 160px 40px;
}
.region-footer-first .links-nsc {
  width: 340px;
}
.region-footer-first .links-nsc .menu {
  width: 160px;
  float: left;
  margin-right: 20px;
}
.region-footer-first .links-nsc .menu:nth-child(2) {
  margin-right: 0;
}
.region-footer-first .useful-links {
  width: 160px;
  margin-right: 0;
}
.region-footer-first .contact {
  width: 160px;
}

.secondary-menu {
  padding: 12px 0 40px 0;
  border-top: solid 3px #33b2df;
}
.secondary-menu h2 {
  font-size: 20px;
  margin: 0 0 12px 0;
}
.secondary-menu ul.menu {
  display: block;
  margin: 0;
}

.grid-4 .panel-pane.secondary-menu h2.pane-title {
  border: none;
  padding: 0;
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #33b2df;
  display: block;
  padding-left: 32px;
  background: url('../images/nav-icon.png') no-repeat left center;
}

.front .panel-display .grid-12 .inside {
  position: relative;
}
.front .panel-display .grid-12 .inside .field-name-body {
  position: absolute;
  display: none;
  bottom: 20px;
  left: 20px;
  max-width: 300px;
}
.front .panel-display .grid-12 .inside .field-name-body p {
  margin: 0;
}

.view-niwa-menu-link-child-nodes .view-content {
  overflow: hidden;
}
.view-niwa-menu-link-child-nodes .view-content .views-row {
  width: 340px;
  float: left;
  margin-right: 20px;
}
.view-niwa-menu-link-child-nodes .view-content .views-row:nth-child(2n) {
  margin-right: 0;
}

/* Key contacts page */
.field-name-field-key-contacts-users {
  margin-bottom: 40px;
}
.field-name-field-key-contacts-users .profile .field-name-field-photo {
  float: right;
  width: 100px;
  padding: 6px 0 0 20px;
  margin-bottom: 0;
}
.field-name-field-key-contacts-users .profile .field-name-field-jobtitle,
.field-name-field-key-contacts-users .profile .field-name-field-telephone,
.field-name-field-key-contacts-users .profile .field-name-field-email,
.field-name-field-key-contacts-users .profile .field-name-field-areasofexpertise,
.field-name-field-key-contacts-users .profile .field-name-field-biography-teaser {
  float: left;
  max-width: 380px;
}

.user-profile > .group-left {
  max-width: 450px;
  margin-bottom: 0px;
}
.user-profile > .group-right {
  width: 220px;
}
.user-profile .field-name-field-photo {
  max-width: 220px;
  margin-left: 20px;
}
.user-profile .field-name-field-photo img {
  max-width: 220px;
}

/* User profiles */
/* Teasers inside body content (submenutrees usually) are usually vertical blocks */
.container-12 .grid-9 .panel-reflow .panel-pane,
.container-12 .region.grid-9 .node-teaser {
  float: left;
  width: 250px;
  /* non-960-grid */
  margin-right: 20px;
}
.container-12 .grid-9 .panel-reflow .panel-pane:nth-child(2n),
.container-12 .region.grid-9 .node-teaser:nth-child(2n) {
  margin-right: 0;
}
.container-12 .grid-9 .panel-reflow .panel-pane:nth-child(2n+1),
.container-12 .region.grid-9 .node-teaser:nth-child(2n+1) {
  clear: left;
}

.container-12 .grid-12 .panel-reflow .panel-pane,
.container-12 .region.grid-12 .node-teaser {
  float: left;
  width: 340px;
  margin-right: 20px;
}
.container-12 .grid-12 .panel-reflow .panel-pane:nth-child(2n),
.container-12 .region.grid-12 .node-teaser:nth-child(2n) {
  margin-right: 0;
}
.container-12 .grid-12 .panel-reflow .panel-pane:nth-child(2n+1),
.container-12 .region.grid-12 .node-teaser:nth-child(2n+1) {
  clear: left;
}

/* Three columns of teasers won't fit on this page if there is a right column, make the teasers smaller and in two columns */
.grid-9 .ds-twocol-66-33-stacked .ds-left .node-teaser {
  float: none;
  width: 100%;
}

/* Galleries page /news-publications/photo-gallery */
.view-node-gallery-gallery-summaries .views-row,
.view-niwa-videos-list .views-row {
  float: left;
  width: 250px;
  margin-right: 20px;
}
.view-node-gallery-gallery-summaries .views-row:nth-child(2n),
.view-niwa-videos-list .views-row:nth-child(2n) {
  margin-right: 0;
}
.view-node-gallery-gallery-summaries .views-row:nth-child(2n+1),
.view-niwa-videos-list .views-row:nth-child(2n+1) {
  clear: left;
}

.view-image-search-d7 .views-row {
  float: left;
  width: 250px;
  margin-right: 20px;
}
.view-image-search-d7 .views-row:nth-child(2n) {
  margin-right: 0;
}
.view-image-search-d7 .views-row:nth-child(2n+1) {
  clear: left;
}

/* Individual galleries seen on /news-and-publications/photo-gallery */
.media-gallery-media .media-gallery-media-item-thumbnail {
  margin: 0 20px 20px 0;
}
.media-gallery-media .media-gallery-item {
  border: none;
}

.media-element-container img {
  margin-bottom: 6px;
}
.media-element-container .field-type-text {
  font-style: italic;
}

/* Different width rules for gallery tiles depending on whether the sidebar is present */
.container-12 {
  /* when sidebar is on, media gallery items are 250 and 2 cols */
  /* when sidebar is off, media gallery items are 220, we have space for 3 cols */
}
.container-12 .grid-9 .media-gallery-view-full > .field-items > .field-item,
.container-12 .grid-9 .media-gallery-view-full .mg-gallery {
  width: 250px !important;
}
.container-12 .grid-12 .media-gallery-view-full > .field-items > .field-item,
.container-12 .grid-12 .media-gallery-view-full .mg-gallery {
  width: 220px !important;
}

/**
 * Embedded images, media files etc.
 *
 * WYSIWYG embed styles
 * Originally file-entity media divs,
 * Extended to render as html5 figure elements.
 */
/**
  <div class="media media-element-container media-medium">
    <figure class="file file-image view-mode-medium">
     <a href="/files/styles/large/public/Craig%20Stevens%20in%20Antarctica.jpg" >
      <img src="/files/styles/medium/public/Craig%20Stevens%20in%20Antarctica.jpg" width="380" height="296">
     </a>
     <figcaption>Craig Stevens in Antarctica. [photographer]</figcaption>
    </figure>
  </div>
*/
/* Caption */
figcaption,
.file-image .field-name-media-description {
  font-style: italic;
  line-height: 16px;
}

/* Caption when image in sidebar */
.ds-right .field-name-media-description {
  border-bottom: solid 1px #333;
  padding: 10px 0 10px 0;
  margin: 0 0 30px 0;
}

/* Caption when image embedded in text */
figcaption,
.media .file-image .field-name-media-description {
  padding: 10px 0 0px 0;
}

.media .file-image {
  margin: 0 0 10px 0;
}

.field-name-field-creator {
  font-size: 0.8em;
  font-weight: normal;
  line-height: 1.2em;
  text-align: right;
}

/* All */
.media-large_left,
.media-medium_left,
.media-small_left,
.media-large_right,
.media-medium_right,
.media-small_right,
.file-large-left,
.file-medium-left,
.file-small-left,
.file-large-right,
.file-medium-right,
.file-small-right {
  line-height: 23px;
}

/* Left */
.media-large_left,
.media-medium_left,
.media-small_left,
.file-large-left,
.file-medium-left,
.file-small-left {
  float: left;
  margin: 10px 10px 10px 0;
}

/* Right */
.media-large_right,
.media-medium_right,
.media-small_right,
.file-large-right,
.file-medium-right,
.file-small-right {
  float: right;
  margin: 10px 0 10px 10px;
}

/* Unaligned (centered) */
.media-large,
.media-medium {
  margin-left: auto;
  margin-right: auto;
}

/* Large */
.media-large,
.file-large {
  width: 100%;
  height: auto;
}

/* Medium */
.media-medium,
.file-medium,
.media-medium_left,
.file-medium-left,
.media-medium_right,
.file-medium-right {
  width: 50%;
  height: auto;
  /* Aim at 50%, but if there is more space, no point being bigger than a medium image. */
  max-width: 380px;
}

/* Small */
.media-small,
.file-small,
.media-small_left,
.file-small-left,
.media-small_right,
.file-small-right {
  width: 33.33%;
  height: auto;
  max-width: 200px;
}

/**
  Introducing masonry. To views and panels and submenutrees.
  The Masonry tiles need to do the same as our reflowing teasers.
 */
.container-12 .grid-9 .masonry-item {
  width: 250px;
}

.container-12 .grid-12 .masonry-item {
  width: 340px;
}

.grid-9 .ds-twocol-66-33-stacked .ds-left .masonry-item {
  width: 100%;
}

.eco-voyage {
  background: url('../images/eco-voyage.jpg') no-repeat center;
  height: 68px;
  line-height: 68px;
  padding: 0;
}

.region-content .search-form .form-wrapper > .form-item {
  display: table;
  float: left;
}
.region-content .search-form .form-wrapper > .form-item > label + input {
  margin-left: 1em;
}
.region-content .search-form .form-submit {
  float: left;
  margin: 0;
}
