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 var(--bs-body-bg), 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.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;
}

/* Таблица предметов: размеры строк, изображения и ширина колонки названия */
.items-table .item-image-cell {
  width: 1%;
  white-space: nowrap;
}

.items-table .item-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  border-radius: 0.25rem;
}

.items-table-small .item-image {
  width: 80px;
  height:80px;
}

.items-table-medium .item-image {
  width: 200px;
  height: 200px;
}

.items-table .items-col-name {
  max-width: 400px;
  word-wrap: break-word;
  word-break: break-word;
}

.items-table .item-actions {
  white-space: nowrap;
}

/* Пагинация для списка предметов */
.items-pagination {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.items-pagination .pagination .page-link {
  border-radius: 999px;
  padding-inline: 0.75rem;
}

.items-pagination .page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: var(--bs-btn-active-color, #fff);
}

.items-page-size-form .form-select-sm {
  width: auto;
  min-width: 80px;
}

/* Расширенный контейнер для широких экранов */
@media (min-width: 1200px) {
  .container {
    max-width: 1600px;
  }
}

[x-cloak] {
    display: none !important;
}

/* Прячем меню по умолчанию */
.photo-card-container .action-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

/* Показываем меню при наведении на контейнер фото */
.photo-card-container:hover .action-menu {
    opacity: 1;
    pointer-events: auto;
}

.photo-card-container .action-menu button {
    cursor: pointer;
}
