.img-for-upload {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-upload-input {
  display: none;
}

hr.newline {
  background-color: #A00000;
  opacity: 100%;
  height: 2px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  overflow: visible;
}

hr.newline:after {
  content: "New";
  font-size: .9em;
  color: #700000;
  display: inline-block;
  position: relative;
  top: -0.8em;
  padding: 0 0.25em;
  background-color: var(--bs-body-bg);
  opacity: 100%;
}

.navbar-brand {
  cursor: pointer;
}

.nav-item.nav-link.active {
  font-weight: 700;
}

.navbar-nav a.nav-link {
  flex: 0 0 180px;
}

.main-menu-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .95);
}

.swiftarr-breadcrumb-item+.swiftarr-breadcrumb-item {
  padding-left: 0.25rem;
}

.swiftarr-breadcrumb-item+.swiftarr-breadcrumb-item::before {
  padding-right: 0.5rem;
  color: var(--bs-secondary-color);
  content: "/";
}

.swiftarr-breadcrumb-item.active {
  color: var(--bs-secondary-color);
}

.duration-select {
  display: flex;
  width: 100px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

[data-bs-theme="dark"] .duration-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

duration-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.swiftarr-namecell {
  white-space: nowrap;
}

.swiftarr-image-box {
  width: 100%;
  height: 200;
  max-width: 100%;
}

.swiftarr-post-image {
  max-width: 100%;
  max-height: 200px;
}

.swiftarr-closeup-box {
  display: grid;
  /* margin-top: 90px; */
  /* padding-top: 5px; */
  /* padding-bottom: 5px; */
  background-color: #333;
}

.swiftarr-closeup-image {
  max-width: 100%;
  max-height: 100vh;
  margin: auto;
}

.bg-primary-50 {
  background-color: #0d6efd80 !important;
}

.bg-light-50 {
  background-color: #f8f9fa80 !important;
}

[data-bs-theme="dark"] .bg-light-50 {
  background-color: #21252980 !important;
}

/* Bootstrap's .bg-light is hardcoded light gray and doesn't theme-switch.
   Override in dark mode so cards using `card-body bg-light` (and similar)
   get a dark surface and readable text. */
[data-bs-theme="dark"] .bg-light {
  background-color: var(--bs-tertiary-bg) !important;
  color: var(--bs-body-color) !important;
}

.swiftarr-textfield {
  max-width: 300px;
}

.swiftarr-searchbar {
  background-color: #063953;
}

.soon-button {
  position: fixed;
  right: 20px;
  bottom: 10px;
  border-radius: 16px;
}

.event-soon-badge {
  background: url('/img/event-soon.png') 0 0/16px repeat-y;
}

.event-now-badge {
  background: url('/img/event-now.png') 0 0/16px repeat-y;
}

.swiftarr-deck-map {
  max-width: 100%;
  width: 20em;
  padding: 1em;
}

/* Overrides a Bootstrap class to make the background darker. */
.modal-backdrop.show {
  opacity: .85;
}

@media (max-width: 425px) {
  .performer-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
@media (min-width: 425px) {
  .performer-img {
    max-width: 400px;
    min-width: 400px;
    height: auto;
    object-fit: cover;
  }
}

.InkMarkdown h2 {
	margin-top: 20px;
	margin-bottom: 20px;
}

/* Body background — themed */
.navbar-awning {
  position: relative;
  isolation: isolate;
}
.navbar-awning::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('/img/header-waves.png');
  background-repeat: repeat-x;
  pointer-events: none;
}
[data-bs-theme="dark"] .navbar-awning::before {
  filter: brightness(1.55);
}

body {
  background-image: url('/img/background.png');
  background-size: 100%;
}
[data-bs-theme="dark"] body {
  background-image: url('/img/background-dark.png');
}

/* Theme toggle icon swap — show only the icon matching current preference */
#themeToggle .theme-icon-auto,
#themeToggle .theme-icon-light,
#themeToggle .theme-icon-dark { display: none; }
html[data-theme-pref="auto"]  #themeToggle .theme-icon-auto  { display: inline; }
html[data-theme-pref="light"] #themeToggle .theme-icon-light { display: inline; }
html[data-theme-pref="dark"]  #themeToggle .theme-icon-dark  { display: inline; }

/* Subtle border for identicons/avatars in dark mode (drop if testing shows it's overkill) */
[data-bs-theme="dark"] img[src*="/api/v3/image/user/"] {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.25rem;
}
