*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --site-bg: #e1e8f1;
  --surface: #fff;
  --surface-muted: #f8f9fa;
  --border: #d6dee8;
  --text: #212529;
  --muted: #6c757d;
  --link: #0d6efd;
  --primary: #0d6efd;
  --primary-hover: #0b5ed7;
  --secondary: #6c757d;
  --media-placeholder: #c3c3c3;
  --danger: #dc3545;
  --warning: #ffc107;
  --success: #198754;
  --info-bg: #cff4fc;
  --info-border: #9eeaf9;
  --info-text: #055160;
  --radius: 0.375rem;
  --gutter-x: 1.5rem;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  margin: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
ul {
  margin-top: 0;
}

h1,
.h1 { font-size: 2.5rem; }
h2,
.h2 { font-size: 2rem; }
h3,
.h3 { font-size: 1.75rem; }
h4,
.h4 { font-size: 1.5rem; }
h5,
.h5 { font-size: 1.25rem; }
h6,
.h6 { font-size: 1rem; }

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

dl,
ul {
  margin-bottom: 1rem;
}

dt {
  font-weight: 700;
}

dd {
  margin-left: 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--gutter-x) * -0.5);
  margin-left: calc(var(--gutter-x) * -0.5);
}

.row > * {
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
}

.g-1 {
  --gutter-x: 0.25rem;
  row-gap: 0.25rem;
}

.gutter-20.row { margin-right: -10px; margin-left: -10px; }
.gutter-20 > [class^="col-"],
.gutter-20 > [class^=" col-"] { padding-right: 10px; padding-left: 10px; }
.gutter-10.row { margin-right: -5px; margin-left: -5px; }
.gutter-10 > [class^="col-"],
.gutter-10 > [class^=" col-"] { padding-right: 5px; padding-left: 5px; }
.gutter-0.row { margin-right: 0; margin-left: 0; }
.gutter-0 > [class^="col-"],
.gutter-0 > [class^=" col-"] { padding-right: 0; padding-left: 0; }

.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: break-word;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-body {
  flex: 1 1 auto;
  padding: 1rem;
}

.card-header {
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border);
}

.card-img-top {
  width: 100%;
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.btn {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  background: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled,
.btn[disabled] {
  pointer-events: none;
  opacity: 0.65;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary { color: #fff; background: var(--secondary); border-color: var(--secondary); }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-warning { color: #000; background: var(--warning); border-color: var(--warning); }
.btn-light { color: #000; background: #f8f9fa; border-color: #f8f9fa; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { color: #fff; background: var(--primary); }
.btn-outline-secondary { color: var(--secondary); border-color: var(--secondary); }
.btn-outline-secondary:hover { color: #fff; background: var(--secondary); }
.btn-outline-danger { color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { color: #fff; background: var(--danger); }
.btn-outline-warning { color: #7a5a00; border-color: var(--warning); }
.btn-outline-warning:hover { color: #000; background: var(--warning); }

.link-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  line-height: 1.5;
}

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

.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.search-bar .input-group > .btn {
  min-width: 4.75rem;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.navbar > .container {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: 0 30%, 0 50%, 0 70%;
  background-repeat: no-repeat;
  background-size: 100% 2px;
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  border: 0;
  color: var(--link);
  background: transparent;
}

.nav-link:hover {
  text-decoration: none;
}

.nav-tabs {
  border-bottom: 1px solid var(--border);
}

.nav-tabs .nav-link {
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.nav-tabs .nav-link.active {
  border-color: var(--border) var(--border) var(--surface);
  background: var(--surface);
  color: var(--text);
}

.nav-pills .nav-link {
  border-radius: var(--radius);
}

.nav-pills .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.nav-pills .nav-link.active:hover {
  color: #fff;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.collapse:not(.show) {
  display: none;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  clear: both;
  border: 0;
  color: var(--text);
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
}

.dropdown-item:hover {
  background: var(--surface-muted);
  text-decoration: none;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
}

[dir="rtl"] .dropdown-toggle::after {
  margin-right: 0.255em;
  margin-left: 0;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.45);
}

.modal.show {
  display: block;
}

.app-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(33, 37, 41, 0.94);
  color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 1.75rem auto;
  padding: 0 0.75rem;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  outline: 0;
}

.modal-header,
.modal-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 1rem;
}

.modal-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-title {
  margin-bottom: 0;
}

.btn-close {
  width: 1em;
  height: 1em;
  padding: 0.25em;
  border: 0;
  opacity: 0.5;
  background: transparent;
}

.btn-close::before {
  content: "x";
  display: block;
  color: #000;
  font-size: 1.25rem;
  line-height: 0.8;
}

.alert {
  position: relative;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.alert-warning { color: #664d03; background: #fff3cd; border-color: #ffecb5; }
.alert-danger { color: #842029; background: #f8d7da; border-color: #f5c2c7; }
.alert-info { color: var(--info-text); background: var(--info-bg); border-color: var(--info-border); }
.alert-success { color: #0f5132; background: #d1e7dd; border-color: #badbcc; }

.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}

.page-link {
  display: block;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  margin-left: -1px;
  background: var(--surface);
}

.page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.page-item:last-child .page-link {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  color: var(--text);
  vertical-align: top;
}

.table > :not(caption) > * > * {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.table-sm > :not(caption) > * > * {
  padding: 0.25rem;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  background: #e9ecef;
  border-radius: var(--radius);
}

.progress-bar {
  display: flex;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  white-space: nowrap;
  background: var(--primary);
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.18) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% {
    background-position-x: 1rem;
  }
}

.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.bg-light { background: var(--surface-muted) !important; }
.bg-secondary { background: var(--secondary) !important; }
.bg-danger { background: var(--danger) !important; }
.text-center { text-align: center !important; }
.text-end,
.text-right { text-align: right !important; }
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-danger { color: var(--danger) !important; }
.text-light { color: #f8f9fa !important; }
.text-uppercase { text-transform: uppercase !important; }
.fw-bold,
.font-weight-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }
.fst-italic { font-style: italic !important; }
.small,
small { font-size: 0.875em; }
.lead { font-size: 1.25rem; font-weight: 300; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.fs-6 { font-size: 1rem !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.align-items-center { align-items: center !important; }
.align-middle { vertical-align: middle !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.z-2 { z-index: 2 !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.invisible { visibility: hidden !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.rounded { border-radius: var(--radius) !important; }
.rounded-pill { border-radius: 50rem !important; }
.rounded-start-2 { border-top-left-radius: var(--radius) !important; border-bottom-left-radius: var(--radius) !important; }
.border-top { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }
.border-top-0 { border-top: 0 !important; }
.border-primary { border-color: var(--primary) !important; }
.border-danger { border-color: var(--danger) !important; }
.border-warning { border-color: var(--warning) !important; }

.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.mx-0 { margin-right: 0 !important; margin-left: 0 !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-auto { margin-left: auto !important; }
.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.mr-0 { margin-right: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.px-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

.list-inline {
  padding-left: 0;
  list-style: none;
}

.list-inline-item {
  display: inline-block;
}

.list-inline-item:not(:last-child) {
  margin-right: 0.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.img-thumbnail {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
}

.top-bar {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.header-help {
  color: var(--muted);
}

.logo {
  width: 120px;
  margin: 5px 0;
  display: block;
}

:lang(ja) .logo,
:lang(zh-Hans) .logo,
:lang(zh-Hant) .logo {
  width: 160px;
}

.logo span {
  display: none;
}

.main-wrap {
  min-height: 55vh;
}

.photos-list {
  margin: 0 calc(var(--gutter-x) * -0.5);
  background: var(--site-bg);
}

.album-intro {
  margin: 0 calc(var(--gutter-x) * -0.5);
}

.album-photos,
.actor-albums {
  position: relative;
  margin-top: -28px;
  margin-right: 10px;
  text-align: right;
}

.album-photos .badge,
.actor-albums .badge {
  background: rgba(0, 0, 0, 0.5);
}

.card-cover,
.actor-cover,
.album-photo {
  position: relative;
  overflow: hidden;
  background-color: var(--media-placeholder);
}

.card-cover:not(.is-loaded),
.actor-cover:not(.is-loaded),
.album-photo:not(.is-loaded) {
  background-color: var(--media-placeholder);
}

.card-cover::after {
  display: block;
  padding-bottom: 150%;
  content: "";
}

.actor-cover::after {
  display: block;
  padding-bottom: 100%;
  content: "";
}

.album-photo::after {
  display: block;
  content: "";
}

.card-cover img,
.actor-cover img,
.album-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--media-placeholder);
  color: transparent;
  object-fit: cover;
}

.card-cover {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.actor-cover {
  border-radius: var(--radius);
}

.album-photo {
  min-height: 250px;
}

.album-photo-small {
  position: relative;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  background-color: var(--media-placeholder);
}

.album-photo-small:not(.is-loaded) {
  background-color: var(--media-placeholder);
}

.album-photo-small img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--media-placeholder);
  color: transparent;
  object-fit: cover;
}

.albums-list img,
.photos-list img {
  opacity: 0.001;
  transition: opacity 0.2s ease-in-out;
}

.albums-list img.is-loaded,
.photos-list img.is-loaded {
  opacity: 1;
}

.album-dropdown {
  top: 3px;
  right: 3px;
  z-index: 2;
}

.album-dropdown > button.dropdown-toggle {
  padding: 0 0.3em;
}

.navbar-dropdown {
  width: min(500px, calc(100vw - 2rem));
}

.cc-logos img {
  width: 48px;
}

.errorMessage {
  color: var(--danger) !important;
}

#album-captcha-form #captcha_code {
  width: 220px;
  margin: 0 auto;
}

#st_gdpr_iframe {
  display: none;
}

[dir="rtl"] .row {
  direction: rtl;
}

[dir="rtl"] .row > * {
  direction: rtl;
}

[dir="rtl"] .text-end,
[dir="rtl"] .text-right {
  text-align: left !important;
}

[dir="rtl"] .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-0 { margin-left: 0 !important; margin-right: 0 !important; }
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .album-dropdown { right: auto; left: 3px; }
[dir="rtl"] .app-toast { right: auto; left: 1rem; }

@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .text-md-end { text-align: right !important; }
  .text-md-start { text-align: left !important; }
  .ml-md-auto { margin-left: auto !important; }
  .ml-md-0 { margin-left: 0 !important; }
  .mt-md-0 { margin-top: 0 !important; }
  .mt-md-3 { margin-top: 1rem !important; }
  .mt-md-n2 { margin-top: -0.5rem !important; }
  .my-md-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
  .p-md-5 { padding: 3rem !important; }
  .justify-content-md-center { justify-content: center !important; }
  .flex-md-column { flex-direction: column !important; }
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .mt-lg-0 {
    margin-top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .search-bar {
    order: 3;
  }
}
