* {
  box-sizing: border-box;
}

/*Загрузить еще/Назад*/

.media .media-back,
.media .media-loadmore {
  margin: auto;
  display: table;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  cursor: pointer;
  position: relative;
  border: 2px solid #ff8207;
  border-radius: 3px;
  line-height: 35px;
  width: 200px;
}

.media .media-back:hover,
.media .media-loadmore:hover {
  background-color: #ff8207;
  color: #ffffff;
  transition: 0.3s;
}

.media .media-back {
  width: 100px;
  padding-left: 20px;
}

.media .media-back:after {
  content: "\f060";
  font-family: 'FontAwesome';
  font-size: 16px;
  position: absolute;
  top: 0;
  left: 14px;
}

.media .media-back:active,
.media .media-loadmore:active {
}

/*Фильтры*/
.media .media-tabs li {
  margin: 0 55px 0 0;
}

.media .media-filter-title {
  font-size: 24px;
  color: #333333;
  font-weight: 700;
  line-height: 36px;
}

.media .media-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.media .media-filter-container {
  display: flex;
}

.media .media-filter .media-filter-block:not(:last-child) {
  margin-right: 10px;
}

.media .media-filter .media-filter-block .sfl-div-select ul li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  white-space: unset;
  height: auto;
  min-height: 32px;
  line-height: unset;
  padding: 5px 16px;
}

.media .media-filter .media-filter-block .sfl-div-select.disabled {
  display: none;
}

.media .media-filter .media-filter-block .sfl-checkbox {
  margin-top: 3px;
  display: inline-block;
  margin-right: 10px;
}

/*Альбом и видео*/
.media .js-albums-list,
.media .js-videos-list,
.media .js-posts-list{
  display: flex;
  flex-wrap: wrap;
}

.media .media-item {
  flex-shrink: 0;
  width: calc((100% - 60px) / 4);
  height: auto;
  margin-bottom: 20px;
  box-shadow: rgba(0, 0, 0, 0.2) 0 1px 5px;
}

.media .media-item-image {
  display: block;
  width: 290px;
  height: 193px;
  background-size: cover;
}

.media .media-items:not(.narrow) .media-item:not(:nth-child(4n)) {
  margin-right: 20px;
}

.media .media-items.narrow .media-item {
  width: calc((100% - 40px) / 3);
}

.media .media-items.narrow .media-item:not(:nth-child(3n)) {
  margin-right: 20px;
}

.media .media-item-cont {
  width: 100%;
  padding: 45px 15px 20px 15px;
  height: auto;
  position: relative;
}

.media .media-item-title {
  height: auto;
  min-height: 74px;
  line-height: 24px;
}

.media .media-item-date {
  position: absolute;
  top: 0;
  right: -4px;
  float: right;
  padding: 8px 15px;
  font-size: 11px;
  line-height: 15px;
  font-weight: 400;
  color: #fff;
  background-color: #403f40;
}

.media .media-item-date::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  display: block;
  border: 2px solid transparent;
  border-left: 2px solid #403f40;
  border-top: 2px solid #403f40;
}

.media .media-item-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #363636;
}

.media .media-item-title:hover {
  color: #ff8207;
  transition: 0.3s;
}

.ug-thumb-wrapper.ug-tile .ug-tile-icon.ug-icon-play {
  opacity: 1 !important;
}

.media-items-empty,
.media-photos-empty {
  font-size: 18px;
  color: #222222;
  margin-left: 16px;
  margin-top: 20px;
}

.media-video {
  margin-bottom: 20px;
}
