/* Site-specific responsive adjustments. */
.navbar-brand {
  max-width: calc(100% - 3.5rem);
  white-space: normal;
  line-height: 1.15;
}

@media (max-width: 991.98px) {
  .navbar-brand {
    max-width: none;
  }

  .navbar-collapse {
    flex-basis: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 0.35rem;
  }

  .navbar-nav {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0 !important;
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0.5rem;
  }

  .navbar-nav .nav-item:first-child .nav-link {
    padding-left: 0;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    padding-right: 0;
  }
}

.hero-title {
  text-wrap: balance;
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .btn-lg {
    width: 100%;
  }
}

img {
  max-width: 100%;
  height: auto;
}

strong {
  overflow-wrap: anywhere;
}

.project-lightbox-trigger {
  cursor: zoom-in;
}

.project-lightbox-trigger:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

.project-lightbox:not([open]) {
  display: none;
}

.project-lightbox[open] {
  position: fixed;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4rem clamp(4rem, 10vw, 8rem) 5rem;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: transparent;
}

.project-lightbox::backdrop {
  background: rgba(8, 11, 13, 0.88);
  backdrop-filter: blur(4px);
}

.project-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.project-lightbox-caption,
.project-lightbox-count {
  position: absolute;
  bottom: 1.25rem;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
}

.project-lightbox-caption {
  right: 5rem;
  left: 5rem;
}

.project-lightbox-count {
  right: 1rem;
  bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.project-lightbox-control {
  position: absolute;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.project-lightbox-control:hover,
.project-lightbox-control:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.24);
}

.project-lightbox-control:focus-visible {
  outline: 2px solid #f4b942;
  outline-offset: 3px;
}

.project-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.project-lightbox-previous,
.project-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.project-lightbox-previous {
  left: 1rem;
}

.project-lightbox-next {
  right: 1rem;
}

@media (max-width: 575.98px) {
  .project-lightbox[open] {
    padding: 4rem 3.75rem 5rem;
  }

  .project-lightbox-image {
    max-height: calc(100dvh - 8rem);
  }

  .project-lightbox-control {
    width: 2.75rem;
    height: 2.75rem;
  }

  .project-lightbox-previous {
    left: 0.5rem;
  }

  .project-lightbox-next {
    right: 0.5rem;
  }
}