/*
  Based on BootstrapMade MyPortfolio.
  Template URL: https://bootstrapmade.com/myportfolio-bootstrap-portfolio-website-template/
  This stylesheet was reduced to the selectors used by this site.
*/

body {
  font-family: "Inconsolata", monospace;
  color: #0d1e2d;
}

a { color: #777; }
a:hover { color: #000; }

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: "Raleway", sans-serif;
}

.site-section { padding: 7rem 0; }

.filters a {
  color: #000;
  display: inline-block;
  padding: 0 10px;
  position: relative;
}

.filters a:hover,
.filters a:focus,
.filters a:active {
  text-decoration: none;
}

.filters a:hover::before,
.filters a.active::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background: #000;
}

.item {
  border: 0;
  margin-bottom: 30px;
}

.item .item-wrap {
  display: block;
  position: relative;
  overflow: hidden;
}

.item .item-wrap::after {
  z-index: 2;
  position: absolute;
  content: "";
  inset: 0;
  background: rgba(0, 0, 0, .7);
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.item .item-wrap img,
.item .item-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

.item .item-wrap img {
  transform: scale(1);
  transition: transform .3s ease;
}

.item .item-wrap > .work-info {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  z-index: 3;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  margin-top: 20px;
  transition: opacity .3s ease, margin .3s ease, visibility .3s ease;
}

.item .item-wrap > .work-info h3 {
  font-size: 20px;
  margin-bottom: 0;
}

.item .item-wrap > .work-info span {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .2rem;
}

.item .item-wrap:hover { text-decoration: none; }
.item .item-wrap:hover img { transform: scale(1.05); }
.item .item-wrap:hover::after { opacity: 1; visibility: visible; }
.item .item-wrap:hover .work-info { margin-top: 0; opacity: 1; visibility: visible; }

.custom-navbar {
  padding-top: 50px;
  width: 100%;
}

.custom-navbar .navbar-brand { font-size: 1.7rem; }

/* Interactive logo replacing the old 4.7 MB looping header video. */
.logo-snowglobe {
  width: clamp(84px, 9vw, 132px);
  aspect-ratio: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.logo-snowglobe:active { cursor: grabbing; }
.logo-snowglobe canvas { width: 100%; height: 100%; display: block; }

.footer { padding: 0 0 4rem; }
.footer a { color: #000; }

@media (max-width: 780px) {
  .site-section { padding: 4rem 0; }
  .custom-navbar > .container { padding-right: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .item .item-wrap::after,
  .item .item-wrap img,
  .item .item-wrap > .work-info {
    transition: none;
  }
}


/* Floating OPEN cursor for clickable portfolio images/videos. */
.media-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  transform: translate3d(-120px, -120px, 0);
  will-change: transform;
}

.media-cursor__bubble {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ed1b24;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-indent: .16em;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform, opacity;
}

.media-cursor.is-visible .media-cursor__bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  #portfolio-grid .item-wrap[href],
  #portfolio-grid .item-wrap[href] img,
  #portfolio-grid .item-wrap[href] video,
  #portfolio-grid .item-wrap[href] .work-info {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .media-cursor { display: none; }
}
