.bungalow-contest-description {
  display: block;
  position: relative;
}

.bungalow-contest-description:after,
.bungalow-contest-description:before {
  border: solid transparent;
  bottom: 100%;
  content: " ";
  height: 0;
  left: 46px;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.bungalow-contest-description:after {
  border-color: rgba(255, 255, 255, 0);
  border-bottom-color: #ffffff;
  border-width: 10px;
  margin-left: -10px;
}

.bungalow-contest-description:before {
  border-color: rgba(204, 204, 204, 0);
  border-bottom-color: var(--border-color);
  border-width: 11px;
  margin-left: -11px;
}

.bungalow-contest-images {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: -20px 0 0 -20px;
  max-width: 658px;
  padding: 0;
}

.bungalow-contest-images li {
  flex: 0 0 20%;
  max-width: 20%;
  padding: 20px 0 0 20px;
}

.bungalow-contest-images figure img {
  margin: 0 auto;
}

.bungalow-contest-images figcaption {
  overflow-x: auto;
}

.bungalow-contest-candidate td {
  font-size: 0.75rem !important;
}

.bungalow-contest-ratings {
  margin-top: 1rem;
}

.rating:not(:checked) > input {
  position: absolute;
  top: -9999px;
  clip: rect(0, 0, 0, 0);
}

.rating:not(:checked) > label {
  color: #eeeeee;
  float: right;
  font-size: 1.5rem;
  margin-top: -0.6rem;
  overflow: hidden;
  text-shadow: 0 0 1px #cccccc;
  white-space: nowrap;
  width: 1.5rem;
}

.bungalow-contest-candidate:not(.inhabited) .rating:not(:checked) > label {
  cursor: pointer;
}

.bungalow-contest-candidate.inhabited .rating:not(:checked) > label {
  cursor: not-allowed;
}

.rating:not(:checked) > label:before {
  content: '★ ';
}

.bungalow-contest-candidate:not(.inhabited) .rating:not(:checked) > label:hover,
.bungalow-contest-candidate:not(.inhabited) .rating:not(:checked) > label:hover ~ label {
  color: #00aaff;
}

.rating > input:checked ~ label {
  color: #ffaa00;
}

.rating {
  position: relative;
}

.rating .success {
  left: -1rem;
  position: absolute;
  top: 0;
}
