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;
}

.photo-card-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-card-trigger img {
  display: block;
  width: 100%;
}

.photo-gallery__sentinel {
  height: 1px;
}

.photo-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(96vw, 1600px);
  max-height: 96vh;
}

.photo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.photo-dialog__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 1rem 1rem;
  background: #111;
  color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.photo-dialog__close-form {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.photo-dialog__close-button {
  filter: invert(1) grayscale(100%);
  opacity: 0.85;
}

.photo-dialog__close-button:hover {
  opacity: 1;
}

.photo-dialog__image {
  display: block;
  max-width: min(92vw, 1560px);
  max-height: calc(96vh - 8rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  cursor: zoom-out;
  transform-origin: center center;
  transition: transform 0.2s ease-in-out;
}

.photo-dialog__image--quarter-turn {
  max-width: calc(96vh - 8rem);
  max-height: min(92vw, 1560px);
}

.photo-dialog__details {
  min-width: 0;
}

.photo-dialog__admin-tools {
  min-height: 2rem;
}

.photo-dialog__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
 /* color: #fff;*/
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.photo-dialog__nav:hover,
.photo-dialog__nav:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.photo-dialog__nav--previous {
  left: 1rem;
}

.photo-dialog__nav--next {
  right: 1rem;
}

.photo-dialog__nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}