/* Group Forum Body */
.forum #buddypress div#item-body,
.files #buddypress div#item-body {
  padding-left: 0px;
  padding-right: 0px;
  box-sizing: border-box;
  padding-bottom: 40px;
  padding-top: 0;
}

#buddypress div#item-body {
  padding-top: 20px;
}

.reply #bbpress-forums div.reply,
#bbpress-forums .bbp-replies div.topic,
#bbpress-forums .bbp-replies div.reply {
  margin: 10px 40px 20px 40px;
}

@media screen and (min-width: 901px) {
  #bbpress-forums div.bbp-topic-author,
  #bbpress-forums div.bbp-reply-author {
    width: 175px;
  }

  #bbpress-forums div.bbp-topic-content,
  #bbpress-forums div.bbp-reply-content {
    margin-left: 235px;
  }
}

/* Forum header */
#bbpress-forums li.bbp-header {
  padding: 10px 50px;
}

.bbp-forum-details {
  padding: 20px 50px;
}

/* Forum email */
.bbp-user-nicename {
  word-wrap: break-word;
}

/* Topic / Voices / Replies Bar */
#bbpress-forums li.bbp-body ul.topic {
  margin: 0 50px;
}

/* Group sidebar */
#group-sidebar #item-actions {
  padding-top: 0;
}
#group-sidebar #item-actions h3 {
  margin-bottom: 15px;
}
#group-sidebar #item-actions .sidebar-list {
  padding-bottom: 0;
  margin-bottom: 15px;
}
#group-sidebar #item-actions .sidebar-list li {
  float: none;
}
#group-sidebar #item-actions .sidebar-list li:not(:last-of-type) {
  margin-bottom: 5px;
}
#group-sidebar #item-actions .sidebar-list .nested {
  padding-bottom: 0;
}
#group-sidebar #item-actions > div {
  margin-bottom: 40px;
}
#group-sidebar .no-results {
  margin-bottom: 15px;
}

/* GROUP PAGE STYLING */
.group-single #buddypress {
  display: flex;
  flex-wrap: wrap;
}

.group-single #item-header {
  flex: 1 0 100%;
}

/* Header */
.group-single #buddypress #item-header-cover {
  display: block;
  padding: 20px 30px;
  position: relative;
  width: 100%;
}

.group-single #item-header-cover .group-header-content,
.group-single #item-header-cover .group-header-sidebar {
  flex: 1 1 100%;
}

.group-single #item-header-cover .group-header-sidebar {
  text-align: center;
}

.group-single #buddypress #item-header-cover .group-header-admins {
  text-align: center;
}

.group-single #buddypress #item-header-cover .group-header-admins h3 {
  color: #ffffff;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 400;
}
.group-single #buddypress div#item-header ul#group-admins,
.group-single #buddypress div#item-header ul#group-mods {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -5px;
  margin-right: 5px;
}
.group-single #buddypress div#item-header ul#group-admins li,
.group-single #buddypress div#item-header ul#group-mods li {
  float: none;
  margin-left: 5px;
  margin-right: 5px;
}

.group-single #group-name,
.group-single .group-info-wrapper {
  max-width: none;
}

.group-single .group-info-wrapper {
  display: block;
}

.group-single #group-description {
  margin-bottom: 15px;
  max-width: 800px;
}

.group-single #buddypress #item-header-content {
  margin-top: 0;
  margin-bottom: 0;
}

.group-single #buddypress #item-header-cover #item-header-avatar {
  position: relative;
  width: auto;
  height: auto;
  right: auto;
  margin-bottom: 15px;
  display: block;
}

.group-single #buddypress #item-header-cover #item-header-avatar {
  top: 0;
}

.group-single #buddypress div#item-header-cover #item-header-avatar img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  float: none;
  display: block !important;
  border-radius: 2px;
  background-color: #fff;
  border: 4px solid #fff;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
  position: relative;
}

.group-single .group-search {
  width: 100%;
}

.group-single #item-header #bp-group-search-actions {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}
.group-single #item-header #bp-group-search-actions form {
  margin-bottom: 0;
  justify-content: center;
  width: 100%;
}
.group-single #item-header #bp-group-search-actions p {
  color: #ffffff;
}

.group-single #item-header .group-header-meta {
  margin-top: 0 !important;
  top: 0;
  z-index: 0;
  height: 45px;
}

/* Main content */
.group-single #buddypress #primary {
  float: none;
  flex: 1 0 100%;
  width: 100%;
}

/* Sidebar */
.group-single #secondary {
  float: none;
}
.group-single #group-sidebar {
  top: auto;
}

#groups-order-select {
  display: none;
}
#groups-order-select.active {
  display: block;
}

.group-single #buddypress #item-header-cover #item-buttons {
  float: none;
}

.group-single #buddypress div#item-header div.generic-button {
  display: inline-block;
}

@media screen and (min-width: 769px) {
  .group-single .group-search {
    display: flex;
    justify-content: center;
  }

  .group-single #item-header #bp-group-search-actions {
    margin-right: 15px;
  }
}

@media screen and (min-width: 901px) {
  .group-single #buddypress #item-header-cover {
    display: flex;
    align-items: center;
    padding: 30px 70px;
  }

  .group-single .group-search {
    justify-content: flex-start;
  }

  .group-single #item-header-cover .group-header-content {
    flex: 1 1 80%;
  }

  .group-single #item-header-cover .group-header-sidebar {
    flex: 1 1 25%;
    padding-left: 30px;
  }

  .group-single #buddypress #primary {
    flex: 1 0 76%;
  }

  .group-single #secondary {
    width: auto;
    flex: 1 0 24%;
  }
}
