html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.navbar .nav-link,
.navbar .dropdown-item,
.navbar .navbar-brand,
.navbar .navbar-text {
  font-size: 1.15rem;
}

.card-header {
  font-size: 1.2rem;
  background-color: var(--bs-primary);
  color: var(--bs-danger-text-emphasis);
}

.curtain-video-shell {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 0;
}

.curtain-video-shell video {
  display: block;
}

.curtain-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.curtain-video-overlay.is-visible {
  opacity: 1;
}

.curtain-video-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-image: url("/images/curtains.jpg");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  will-change: transform;
}

.curtain-video-panel.left {
  left: 0;
  background-position: left center;
}

.curtain-video-panel.right {
  right: 0;
  background-position: right center;
}

.curtain-video-overlay.is-animating .curtain-video-panel.left {
  animation: curtain-open-left 1.2s ease-in forwards;
}

.curtain-video-overlay.is-animating .curtain-video-panel.right {
  animation: curtain-open-right 1.2s ease-in forwards;
}

@keyframes curtain-open-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes curtain-open-right {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

body.headshot-crop-modal-open {
  overflow: hidden;
}

.headshot-crop-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1100;
}

.headshot-crop-modal.is-open {
  display: flex;
}

.headshot-crop-dialog {
  width: min(92vw, 980px);
  max-height: 92vh;
  overflow: auto;
  background: #002b36;
  color: #fdf6e3;
  border-radius: 0.75rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
  padding: 1.5rem;
}

.headshot-crop-header {
  margin-bottom: 1rem;
}

.headshot-crop-title {
  margin: 0;
  font-size: 1.5rem;
}

.headshot-crop-subtitle {
  margin: 0.4rem 0 0;
  color: rgba(253, 246, 227, 0.8);
}

.headshot-crop-body {
  display: grid;
  gap: 1rem;
}

.headshot-crop-workspace {
  display: flex;
  justify-content: center;
}

.headshot-crop-viewport {
  position: relative;
  width: min(60vw, 384px);
  aspect-ratio: 3 / 4;
  max-width: 100%;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-color: #111;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.75rem;
  cursor: grab;
  touch-action: none;
}

.headshot-crop-viewport.is-dragging {
  cursor: grabbing;
}

.headshot-crop-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.65rem;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.headshot-crop-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.headshot-crop-controls {
  display: grid;
  gap: 0.5rem;
}

.headshot-crop-file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.headshot-crop-file-row .form-label {
  flex: 0 0 auto;
}

.headshot-crop-file-row .form-control {
  flex: 1 1 auto;
}

.headshot-crop-controls input[type="range"] {
  width: 100%;
}

.headshot-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 576px) {
  .headshot-crop-dialog {
    padding: 1rem;
  }

  .headshot-crop-viewport {
    width: min(82vw, 320px);
  }

  .headshot-crop-file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .headshot-crop-actions {
    flex-direction: column-reverse;
  }
}
