/* Position caption at top and align content to the right */
.carousel-caption {
	top: 0;
	bottom: auto;
	left: 0;
	right: 6px;
	text-align: center;
	padding-top: 20px;
	padding-right: 20px;
}

/* Base styles for the hero-blurb box */
.hero-blurb {
  display: inline-block;   /* keeps the box hugging content so it sits at the right edge */
  text-align: left;        /* content inside remains left-aligned */
  box-sizing: border-box;  /* include padding/border in width */
  width: 100%;
}

/* Phones and narrow screens */
@media (max-width: 770px) {
	#narrow-brand {
		display: inline;
		padding-top: 10px;
	}

	.carousel-caption {
		display: block;
		padding-right: 5%;
	}

	#wide-brand {
		display: none;
	}

	body > .container {
		padding-top: 51px;
	}

	/* Let list items and links size naturally on small screens */
    .navbar-nav > li {
      height: auto; /* override any fixed height */
    }
    .navbar-nav > li > a {
      display: block;          /* undo flex if applied */
      height: auto;            /* override fixed heights */
      line-height: 1.42857143; /* Bootstrap default */
      padding-top: 10px;       /* Bootstrap default */
      padding-bottom: 10px;    /* Bootstrap default */
    }
    /* Ensure active state uses the same sizing so the gray background fits exactly */
    .navbar-default .navbar-nav > .active > a,
    .navbar-default .navbar-nav > .active > a:hover,
    .navbar-default .navbar-nav > .active > a:focus {
      height: auto;
      line-height: 1.42857143;
      padding-top: 10px;
      padding-bottom: 10px;
    }
}

@media (min-width: 770px) {
	#narrow-brand {
		display: none;
	}

	.carousel-caption {
		display: block;
		padding-right: 5%;
	}

	.hero-blurb {
        width: 100%;
        padding-right: 5%;
    }

	body > .container {
		padding-top: 80px;
	}

	.navbar-nav li a {
		height: 30px;
		line-height: 30px;
		padding-top: 0;
		padding-bottom: 0;
	}

	/* Reduce brand padding so the brand area doesn't force extra height */
    .navbar-brand {
      padding-top: 3px;     /* was 10px */
      padding-bottom: 3px;  /* was 10px */
      padding-left: 30px;   /* keep your existing left padding */
      padding-right: 10px;  /* keep right padding modest */
    }

    /* Ensure the wide-brand wrapper doesn't push the navbar taller */
    #wide-brand {
      padding-top: 10px;     /* was 15px */
    }

	/* Allow the navbar to be short */
    .navbar {
      min-height: 30px;
    }
}

#filler {
	float: left;
	width: 100%;
}

#mainImage {
	height: 450px;
	object-fit: cover;
}

#splitImage {
	max-height: 570px;
}

#splitVideo {
	max-height: 247px;
}

#topPlaceholder {
	height: 80px;
	width: 100%;
}

.carousel-inner img {
	margin: auto;
	min-height: 200px;
	width: 100%;
}

.container {
	margin-left: 0;
	margin-right: 0;
	min-height: 100%;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

.footer {
  background-color: #f5f5f5;
  /* Let it participate in normal flow and size to content */
  position: static;     /* was absolute */
  bottom: auto;         /* unset absolute positioning */
  width: 100%;
  height: auto;         /* was 80px */
  padding: 30px 0;      /* keep vertical spacing */
  margin-top: 50px;
}

.navbar {
	border-radius: 0;
	margin-bottom: 0;
	min-height: 40px;
}

.navbar-brand {
	padding: 10px 30px 10px 30px;
}

.maxWidth {
	width: 100%;
}

.vcenter {
	display: inline-block;
	float: none;
	vertical-align: middle;
}

body {
	margin-bottom: 0;
}

html {
	min-height: 100%;
	position: relative;
}

/* Center nav links vertically */
.navbar-nav > li > a {
  height: 50px;
  line-height: 30px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

/* Center the brand content vertically and keep its image from enlarging the navbar */
.navbar-brand {
  height: 50px;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Override any inline height on the brand logo so it doesn't force extra height */
 .navbar-brand img {
  height: 30px !important; /* 40px navbar minus 5px top/bottom padding */
  width: auto;
}

/* Keep the wide-brand wrapper from pushing the navbar taller */
#wide-brand {
  padding-top: 10px; /* match .navbar-brand vertical padding */
}

