.button-group:after {
  content: '';
  display: block;
  clear: both;
}

.button-group button {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 10px;
  background-color: #F8F8F8;
  background-image: linear-gradient( hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.1) );
  border: 1px solid #CCC;
  float: left;
  border-radius: 0;
  margin-left: -1px;
}

.button-group button:first-child {
  border-radius: 5px 0 0 5px;
}

.button-group button:last-child {
  border-radius: 0 5px 5px 0;
}

button:focus,
button.active {
  background: #f04e23;
  color: #fff;
  outline: none;
}
.grid-item.prisoner {
  background-image: url("assets/man.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position-y: bottom;
  background-position-x: center;
  background-size: 50%;
  width: 50px;
  height: 90px;
  opacity: 0.5;
  margin: 3px 5px;
}

.grid-item.prisoner.starving,
.grid-item.prisoner.starving.tortured {
  background-image: url("assets/starving.png")!important;
  background-size: 45%!important;
  height: 90px!important;
}

.grid-item.prisoner.tortured {
  background-image: url("assets/tortured.png")!important;
  background-size: 80%!important;
  height: 90px;
}

.grid-item.prisoner.young {
  background-image: url("assets/young_man.png");
}

.grid-item.prisoner.old {
  background-image: url("assets/old_man.png");
  background-size: 60%;
  height: 90px;
}

.grid-item.prisoner.woman {
  background-image: url("assets/old_woman.png");
}

.grid-item.prisoner:hover {
  opacity: 1;
  cursor: pointer;
}

.grid-item.def {
  width: 250px;
  min-height: 65px;
  margin: 5px 10px;
  padding: 10px;
  font-size: 11px;
  color: #777;
}

.grid-item.case.def {
	cursor: pointer;
}

.grid-item.term.def,
.grid-item.profession.def,
.grid-item.ages.def {
  width: 200px;
}

.grid-item.year.def {
  width: 100px;
}

.grid-item.term.def .title,
.grid-item.profession.def .title,
.grid-item.ages.def .title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 20px;
  font-weight: normal;
  color: #555;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
}

.grid-item.year.def .title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  line-height: 20px;
  color: #aaa;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
}

.grid-item .title {
  font-size: 14px;
  font-weight: bold;
  line-height: 14px;
  color: #000;
  margin-bottom: 10px;
}

.grid-item .description {
  display: block!important;
  font-size: 12px;
  line-height: 14px;
}

.grid-item .description p {
  margin-bottom: 10px;
}

.grid-item.end-case,
.grid-item.end-item {
  width: 100%;
  height: 30px;
}

.read-more {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

.photo > img {
  max-width: 100%;
}

.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme .tippy-arrow {
  border-top: 7px solid #fff;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent
}

.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme .tippy-arrow {
  border-bottom: 7px solid #fff;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent
}

.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme .tippy-arrow {
  border-left: 7px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent
}

.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme .tippy-arrow {
  border-right: 7px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent
}

.tippy-tooltip.light-theme {
  color: #26323d;
  box-shadow: 0 0 20px 4px rgba(154, 161, 177, .15), 0 4px 80px -8px rgba(36, 40, 47, .25), 0 4px 4px -2px rgba(91, 94, 105, .15);
  background-color: #fff;
  text-align: left;
}

.tippy-tooltip.light-theme .popup-title {
  text-transform: uppercase;
  font-weight: bold;
}

.tippy-tooltip.light-theme .popup-body {
  color: #777;
}

.tippy-tooltip.light-theme .popup-footer {
  font-size: .6rem;
  font-weight: bold;
  text-transform: uppercase;
  padding-top: .3rem;
}

.tippy-tooltip.light-theme .tippy-backdrop {
  background-color: #fff
}

.tippy-tooltip.light-theme .tippy-roundarrow {
  fill: #fff
}

.tippy-tooltip.light-theme[data-animatefill] {
  background-color: transparent
}

.modal h2 {
  font-size: 18px;
  margin: 0 0 0.8em;
}

.modal header {
  position: static!important;
  display: flex;
  justify-content: space-between;
  background: transparent!important;
  width: initial!important;
	margin-bottom: 0px!important;
}

.modal header .pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 0px!important;
}

.modal header .pager .arrow {
  cursor: pointer;
}

.modal header .pager svg {
  vertical-align: middle;
}

.modal header .pager .counter {
  margin: 0px 10px;
}

.card {
  display: flex;
  position: relative;
  margin: 0.5rem 0 1rem 0;
  background-color: #fff;
  transition: box-shadow .25s;
  border-radius: 2px;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

.card .card-photo {
  max-width: 50%;
  position: relative;
}

.card .card-photo img {
  display: block;
  border-radius: 2px 2px 0 0;
  position: relative;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  max-width: 100%;
  max-height: 200px;
  width: auto;
}

.card .card-photo .caption {
  position: absolute;
  box-sizing: border-box;
  bottom: 0px;
  width: 100%;
  padding: 2px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
}

.card .card-content {
  flex-grow: 1;
  padding: 20px 20px 10px 20px;
  border-radius: 0 0 2px 2px;
  position: static;
}

.card .card-content .article {
  margin-top: 10px;
}

.card .card-content .article,
.card .card-content .location {
  font-size: 12px;
}

.modal-content {
  font-size: 16px;
}

.modal-content p {
  margin-bottom: 10px;
}

@media screen and (max-width: 500px) {
  .modal--fade .modal-close:before, .modal--show .modal-close:before {
    background: #f04e23!important;
  }
  .modal header {
    display: block;
  }
  .modal header .pager {
    padding: 10px 0px;
  }
}
