html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body.photo-lightbox-active {
  overflow: hidden;
}

.photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.photo-lightbox.open {
  display: flex;
}

.photo-lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-lightbox-content img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  touch-action: none;
}

/* Fills the whole screen (no browser chrome) when true fullscreen is active on mobile. */
.photo-lightbox:fullscreen,
.photo-lightbox:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
}

.photo-lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0 1rem;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.photo-lightbox-close:hover,
.photo-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.photo-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
}

.photo-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

.photo-lightbox-prev {
  left: 0.5rem;
}

.photo-lightbox-next {
  right: 0.5rem;
}

@media (max-width: 576px) {
  .photo-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}