/* BEGIN PORTFOLIO STYLES */

/* this is all just bootstrap 4 */
/* first rows and cols */

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px; }

.col-4, .col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
  
.col {
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -ms-flex-positive: 1;
  flex-grow: 1;
  max-width: 100%; }

.col-4 {
  -ms-flex: 0 0 33.333333%;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
  
/* card deck */

.card-deck {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column; 
  justify-content: center;
}

.card-deck .card {
  margin-bottom: 20px; }

@media (min-width: 576px) {
  .card-deck {
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    margin-right: -15px;
    margin-left: -15px; }

  .card-deck .card {
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 1 0 0%;
    flex: 1 0 0%;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-right: 15px;
    margin-bottom: 30px;
    margin-left: 15px; 
    min-width: 300px;
    max-width: 300px;
    min-height: 285px;
  } }

/* next, card-columns */

.card {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem; 
}

.card > hr {
  margin-right: 0;
  margin-left: 0; }

.card > .list-group:first-child .list-group-item:first-child {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem; }

.card > .list-group:last-child .list-group-item:last-child {
  border-bottom-right-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem; }

.card-columns .card {
  margin-bottom: 0.75rem; }

@media (min-width: 576px) {
  .card-columns {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    -webkit-column-gap: 1.25rem;
    -moz-column-gap: 1.25rem;
    column-gap: 1.25rem;
    orphans: 1;
    widows: 1; }

  .card-columns .card {
    display: inline-block;
    width: 100%; } }

.card-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.25rem; }

.card-title {
  margin-bottom: 0.75rem; 
  font-size: 18px;
}
  
.card-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125); }

.card-header:first-child {
  border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0; }

.card-header + .list-group .list-group-item:first-child {
  border-top: 0; }

.card-footer {
  padding: 0.75rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125); }

.card-footer:last-child {
  border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px); }
      
.card img {
  width: 100%;
  border-bottom-right-radius: calc(0.25rem - 1px);
  border-bottom-left-radius: calc(0.25rem - 1px); 
}

/* adds nav tabs to switch between portfolio views*/

.nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none; }

.nav-item a {
  display: block;
  padding: 0.5rem 1rem; }

.nav-item a:hover, .nav-item a:focus {
  text-decoration: underline; }

.nav-item a .disabled {
  color: #6c757d;
  pointer-events: none;
  cursor: default; }

.nav-tabs {
  border-bottom: 1px solid #dee2e6; }

.nav-tabs .nav-item {
  margin-bottom: -1px; }

.nav-tabs a {
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem; }

.nav-tabs a:hover, .nav-tabs a:focus {
  border-color: #e9ecef #e9ecef #dee2e6; }

.nav-tabs a .disabled {
  color: #6c757d;
  background-color: transparent;
  border-color: transparent; }

.nav-tabs a .active,
.nav-tabs .nav-item.show a {
  color: #495057;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff; }

.tab-content > .tab-pane {
  display: none; }

.tab-content > .active {
  display: block; }
  
/* a few styling tweaks for the cards */

.card-title {
  background-color: #ffffff;
  color: #000000;
}

/* making tabs slightly more prominent, adding breathing room to tab content */

.p-2 {
  padding: 0.5rem !important; }

.pt-3,
.py-3 {
  padding-top: 1rem !important; }

.pb-3,
.py-3 {
  padding-bottom: 1rem !important; }

.nav-tabs .nav-item {
  border-radius: 10px 10px 0 0;
}  

.nav-tabs a {
  font-size: 1.2rem;
  font-weight: bold;
}

.menu--portfolio-tabs a.is-active, .nav-tabs a .active, .nav-tabs .menu-item--active-trail a {
  font-weight: bold;
  text-decoration: underline;
  border-radius: inherit;
  color: #495057;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content {
  padding: 10px;
}

#block-durhamsdata-content {
  margin-bottom: 30px;
}

/* fixing column spacing */

.views-col { width: 48% !important;
  margin-left: 1rem }

/* node formatting for individual items */

.visualization-image {
  display: block;
  margin: 5px 5px 20px 20px;
  padding: 5px;
  border: thin solid black;
  border-radius: .25em;
}

.visualization-image.essay {
  width: auto;
}

.return {
  display: block;
  width: 100%;
  margin-bottom: 2rem;
}

a, .header .main-menu, .header .region-header, .nav-opener .opener span, #search-block-form input[type='submit'] {
  transition: none;
}

img.openaccess { max-height: 32px; }

img.openaccess.small { max-height: 16px; }

.modal { max-width: 100%; }

.blocker { z-index: 200; }

.file-link .field__items, .file-link > .field--name-field-user-guide > .field__item, .file-link > .field--name-field-code-and-tutorial > .field__item { margin-left: 3rem; }

/* animated gif on hover */

.static {
  position: absolute;
  bottom: 0;
  background: white;
}

.static:hover {
  opacity:0;
}

figcaption {
  text-align: center;
  font-style: italic;
}

.portfolio-img-block {
  border: 2px solid rgb(184,184,184);
  padding: 1.5em;
}

/* margin-bottom utility style */

.mb-0 {
  margin-bottom: 0;
}