/* com_afc photo contests. Thumbnails use the .thumb / .portrait look of the FotoTJv5 template. */
#foto-container {
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

#foto-container img {
  border: 1px solid transparent;
}

#foto-container h4 {
  margin-top: 1rem;
}

.com-afc div.imgtitle,
.mod-afc div.imgtitle {
  margin-bottom: 1rem;
  font-size: 12px;
  text-align: center;
}

.afc-place {
  display: inline-block;
  margin-top: .25rem;
  padding: .05rem .5rem;
  border-radius: 999px;
  background: #eef5fc;
  color: var(--fototj-primary-dark, #2a6496);
  font-weight: bold;
}

.afc-status .badge {
  font-size: .85rem;
  font-weight: normal;
}

/* Vote form: the five scores in one row (as on the photo site). */
#voteForm .radio {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}

#voteForm .radio .form-check {
  margin: 0;
}

#voteForm .radio .form-check-label {
  font-weight: bold;
  cursor: pointer;
}

/* Carousel of the contest photos under the photo. */
.afc-carousel {
  padding: 0 2.5rem;
}

.afc-carousel .carousel-control-prev,
.afc-carousel .carousel-control-next {
  width: 2.5rem;
}

.afc-carousel .carousel-control-prev-icon,
.afc-carousel .carousel-control-next-icon {
  filter: invert(.5);
}

.afc-carousel .thumb.afc-current {
  outline: 3px solid var(--fototj-primary, #428bca);
  outline-offset: -3px;
}

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

/* Module "contests": cards for the newest, table for the others. */
.mod-afc-contests .card {
  height: 100%;
}

/* The home rows centre their content; the list of past contests reads better left-aligned. */
.mod-afc-contests table td {
  text-align: left;
}

.mod-afc-contests table td.text-end {
  text-align: right;
}

.mod-afc-contests .card-title {
  margin-bottom: .35rem;
  font-size: 1.05rem;
}

.mod-afc-winners img {
  max-width: 95%;
  height: auto;
}
