/*
=========================================================
PROGRAMMENY
=========================================================
 * En meny med som listar program med bild eller
 * förkortning.
 *
 * Limepark AB, 2018
=========================================================*/


/*
---------------------------------------------------------
PROGRAMMENY
--------------------------------------------------------- */



.lp-program-menu__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
  margin: 1.6rem -2rem;
  padding: 0;

  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
}

.lp-program-menu__list-item {
  box-sizing: border-box;
  margin-bottom: 3.2%;
  max-width: 25%;
  padding: 0 2rem;

  -webkit-box-flex: 1;
  -ms-flex: 1 0 25%;
  flex: 1 0 25%;
}

.lp-program-menu__list-item:nth-child(6n) {
  margin-right: 0;
}

.lp-program-menu__image-container {
  border-radius: 50%;
  margin: 0 auto;
  max-width: 14rem;
  overflow: hidden;
  position: relative;
  -webkit-transition: -webkit-box-shadow 0.2s ease;
  transition: -webkit-box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}

.lp-clickable-area.lp-program-menu__list-item:hover .lp-program-menu__image-container {
  -webkit-box-shadow: 0 0 0 1rem #dedede;
  box-shadow: 0 0 0 1rem #dedede;
}

.lp-program-menu__image-container img {
  vertical-align: middle;
  width: 100%;
}

.lp-program-menu__dummy-image {
  padding-top: 100%;
  width: 100%;
}

.lp-program-menu__image-container span {
  -webkit-box-align: center;
  align-items: center;
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  font-size: 4.5rem;
  font-weight: 700;
  height: 100%;
  left: 0;
  letter-spacing: 0.1em;
  position: absolute;
  top: 0;
  width: 100%;

  -webkit-box-pack: center;
  justify-content: center;
}

.lp-program-menu__image-container--with-abbreviation {
  background: #666;
}

.lp-program-menu__image-container--with-abbreviation:before {
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
  content: '';
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.lp-program-menu__list-item a {
  display: block;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
