html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
  scroll-behavior: smooth;
  font-family: 'Montserrat',sans-serif;
  background-color: #f5f5f5;
}

body {
  padding-top: 80px;
}

.nav, .pagination, .carousel, .panel-title a, .clickable { cursor: pointer; }

body.home {
	background-image: url(assets/jbe3_rubberstamp.jpg);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

img.splash {
	width: 100%;
	margin-top: -100px;
}

.navbar {
  background: linear-gradient(to bottom, #3a3a3a, #000);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.09);
  color: #aaa;
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    overflow-y: auto;
    visibility: hidden;
    background: linear-gradient(to bottom, #3a3a3a, #000);
    transition: visibility .3s ease-in-out, -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out, -webkit-transform .3s ease-in-out;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  .navbar {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }
}

.dropdown-toggle::after {
  margin-left: .5em;
  vertical-align: .1em;
}

.navbar a {
  color: #aaa;
}

.navbar li.nav-item .nav-link {
  padding: 1.5rem 1rem;
}

.navbar li.nav-item .nav-link:hover,
.navbar li.nav-item .nav-link:focus,
.navbar li.nav-item .nav-link:active {
  background: linear-gradient(to bottom, #4a4a4a, #000);
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-item .dropdown-menu {
  margin-top: 0;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-underline .nav-link:hover {
  color: #007bff;
}

.nav-underline .active {
  font-weight: 500;
  color: #343a40;
}

.dropdown-menu {
  padding: 0;
}

.dropdown-item {
  padding: .5rem 1.5rem;
}

.text-white-50 { color: rgba(255, 255, 255, .5); }

.bg-purple { background-color: #6f42c1; }

.lh-100 { line-height: 1; }
.lh-125 { line-height: 1.25; }
.lh-150 { line-height: 1.5; }

.portfolio-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  text-align: center;
}

.portfolio-heading {
  padding-top: 80px;
  margin-top: -40px;
  margin-bottom: 30px;
  font-family: 'Loved by the King', 'Montserrat', sans-serif;
  font-size: 3em;
}

.portfolio-item {
  display: flex;
  align-items: center;
  background-color: #fff;
  width: 350px;
  height: 350px;
  margin-right: 40px;
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.portfolio-card {
  display: none;
  position: absolute;
  width: 100%;
  bottom: 0;
  padding: 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, .9));
  height: 70px;
  max-height: 70px;
  min-height: 70px;
  color: #fff;
  text-align: left;
  transition-property: max-height;
  transition-duration: 2s;
  transition-timing-function: ease;
}

.portfolio-title {
	font-weight: bold;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portfolio-description {
	font-size: .8em;
	font-style: italic;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portfolio-card:hover {
	height: unset;
	max-height: 100%;
}

.portfolio-card:hover .portfolio-title,
.portfolio-card:hover .portfolio-description {
	overflow: visible;
	white-space: normal;
}

.portfolio-item img {
	max-height: 350px;
}

.modal.show {
  display: block;
}

@media (max-width: 415px) {
	.portfolio.container {
	  display: block;
	}

    .portfolio-item {
      margin-right: 0;
    }
}