.sub-head {
  font-style: italic;
  text-align: center;
}

#box-list .boxes {
  column-gap: 20px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  padding-bottom: 25px;
  padding-top: 25px;
}

#box-list .boxes .box {
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-basis: 200px;
  padding: 10px;
}

#box-list .boxes .box input[type='checkbox'],
#box-view .items .item input[type='checkbox'] {
  float: right;
}

#box-list .boxes .box .title {
  display: block;
  font-weight: bold;
}

#box-list .boxes .box .meta {
  color: var(--text-main);
  display: block;
  text-decoration: none;
}

#box-list .boxes .box img {
  margin-top: 10px;
  max-height: 275px;
}

#images-grid-field {
  margin-bottom: 20px;
}

#images-grid-field .image-field {
  background-color: var(--button-base);
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  max-height: 150px;
  padding: 10px;
}

#images-grid-field .image-field .preview {
  display: none;
}

#images-grid-field .image-field .preview[src] {
  display: flex;
}

.image-grid {
  column-gap: 10px;
  display: flex;
  flex-wrap: wrap;
}

.image-grid .image {
  flex-basis: 150px;
  position: relative;
}

.image-grid .btn-delete-image {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  bottom: 0;
  left: 0;
  margin: -5px 0 0 0;
  padding: 5px;
  width: 100%;
}

.image-grid .btn-delete-image:hover {
  background: rgba(0, 0, 0, 1);
}

#box-view .items {
  column-gap: 20px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  padding-bottom: 25px;
  padding-top: 25px;
}

#box-view .items .item {
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-basis: 200px;
  padding: 10px;
}

#box-view .items .item .title {
  display: block;
  font-weight: bold;
}

#box-view .items .item img {
  margin-top: 10px;
  max-height: 275px;
}

.breadcrumb {
  margin-bottom: -20px;
}

.breadcrumb::after {
  content: '›';
  font-size: 20px;
  font-weight: bold;
  line-height: 20px;
}

form {
  width: 100%;
}

form input {
  box-sizing: border-box;
  width: 100% !important;
}

form input,
form textarea,
form .image-grid {
  margin-bottom: 20px;
}

.logout {
  float: right;
}

body {
  padding-bottom: 40px;
}

.actions-header {
  display: flex;
  float: right;
}

.actions-header button {
  display: block;
  padding: 10px;
  width: 60px;
}

.actions-footer {
  background-color: var(--background-body);
  border-top: 1px solid var(--border);
  bottom: 0;
  left: 0;
  position: fixed;
  width: calc(100% - 20px);
}

.actions-footer .inner {
  display: flex;
  justify-content: space-between;
  margin: auto;
  max-width: 800px;
  padding: 10px;
}

.actions-footer .inner.centered {
  justify-content: center;
}

input[type='submit'].bg-success,
.bg-success {
  background-color: #22752b;
}

input[type='submit'].bg-success:hover,
.bg-success:hover {
  background-color: #113915;
}

.bg-negative {
  background-color: #8a1313;
}

.bg-negative:hover {
  background-color: #440a0a;
}

p.description {
  white-space: pre-line;
}

#modal-wrapper {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

#modal {
  background-color: var(--background-body);
  border: 1px solid var(--border);
  left: 40px;
  padding: 40px 20px 20px 20px;
  position: absolute;
  right: 40px;
  top: 40px;
}

#btn-modal-close {
  background: transparent;
  float: right;
  position: absolute;
  right: 0;
  top: 0;
}

#move-form select {
  max-width: 100%;
}

@media only screen and (max-width: 768px) {
  #box-list .boxes .box,
  #box-view .items .item {
    flex-basis: 150px;
  }
}

@media only screen and (max-width: 400px) {
  #box-view .items {
    column-gap: 10px;
    row-gap: 10px;
  }
  #box-list .boxes .box,
  #box-view .items .item {
    flex-basis: 125px;
  }
}
