// BP Groups loop.
// @version 3.0.0

.buddypress-wrap {

	.groups-list { // ul

		li {

			.list-title {
				text-align: center;
			}

			.group-details {
				clear: left;
			}

			.group-desc {
				@include responsive-font(13);
				color: $meta-text;
				font-style: italic;
				margin: 0 0 $marg-sml;
			}

			p {
				margin: 0 0 0.5em;
			}

			@include medium-up() {

				.list-title,
				.item-meta {
					text-align: left;
					width: auto;
				}

				.item-meta,
				.last-activity{
					display: inline-block;
				}

				.last-activity:before{
					content: '/';
					padding: 0 3px;
				}

			} // close @media

		} // close li

		li.group-no-avatar div.group-desc {
			margin-left: 0;
		}

	} // close .groups-list

	// User account group loop
	.mygroups {

		.groups-list.grid {

			.wrap {
				min-height: 450px;
				padding-bottom: 0;
			}
		}
	}

}

// If groups loop is in grid mode then description on narrow multi grids
// can be too large so modify font-size by grid class parents.

.buddypress-wrap {

	.groups-list.grid {

		@include medium-up {

			&.three,
			&.four {

				.group-desc {

					@include font-size(14);
				}
			}
		} // @media
	}
}

// If BP Dir Navs or user screen main navs are selected as vertical
// We need to just adjust the loop item elements a little
// to cope with the decreased width.

@include medium-up() {

	.buddypress { // body class

		.bp-vertical-navs {

			.groups-list {

				.item-avatar {
					margin-right: 3%;
					width: 15%;
				}
			}
		}
	}
}
