body.buddypress.attachments.directory #bp-attachments-nav {
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--primary);
	box-shadow: none;
}

body.buddypress.attachments.directory .bp-attachments-media-list {
	display: flex;
	flex-wrap: wrap;
}

body.buddypress.attachments.directory .bp-attachments-media-list .bp-media-item {
	position: relative;
	margin: 0.5em;
	flex: 0 0 auto;
    width: 30%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
	background: #eee;
	box-shadow: inset 0 0 15px rgb(0 0 0 / 10%), inset 0 0 0 1px rgb(0 0 0 / 5%);
	box-sizing: border-box;
	overflow: hidden;
}

body.buddypress.attachments.directory .bp-attachments-media-list .bp-media-item figure {
	padding: 0.5em;
	min-width: 90%;
	min-height: 90%;
}

body.buddypress.attachments.directory .bp-attachments-media-list .bp-media-item figure.wp-block-bp-image-attachment {
	padding: 0;
	min-width: 90%;
	min-height: 90%;
}

body.buddypress.attachments.directory figure.aligncenter {
	display: flex;
	align-items: center;
	justify-content: center;
}

body.buddypress.attachments.directory figure.wp-block-bp-video-attachment video {
	margin-top: 1em;
	max-width: 100%;
}

body.buddypress.attachments.directory figure.wp-block-bp-image-attachment img {
	padding-top: 5px;
}

body.buddypress.attachments.directory div.wp-block-bp-file-attachment {
	display: flex;
	align-items: center;
}

body.buddypress.attachments.directory div.wp-block-bp-file-attachment .bp-attachment-file-icon {
	margin-right: 2em;
}

body.buddypress.attachments.directory div.wp-block-bp-file-attachment .bp-attachments-button {
	display: block;
	width: fit-content;
	padding: 0.5em 1em;
	margin-top: 0.5em;
}

body.buddypress.attachments.directory .bp-attachments-media-list .bp-media-item .bp-media-item-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	height: 24px;
	line-height: 1;
	word-wrap: break-word;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	padding: 6px;
	word-wrap: break-word;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
}
body.buddypress.attachments.directory .bp-attachments-media-list .bp-media-item .bp-media-item-title a {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.buddypress.attachments.directory .bp-attachments-media-list .bp-media-item .bp-media-item-author {
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 36px;
	overflow: hidden;
	margin: 6px;
}

body.buddypress.attachments.directory .bp-attachments-media-list .bp-media-item .bp-media-item-author .profile-photo {
	width: 24px;
	height: 24px;
	border: solid 1px #fff;
	background-color: #fff;
}

body.buddypress.attachments.directory .bp-media-item.skeleton {
    aspect-ratio: 1 / 1;
}

body.buddypress.attachments.directory .bp-media-item.skeleton .bp-media-item-author .profile-photo.avatar {
    border-radius: 50%!important;
}

body.buddypress.attachments.directory .bp-media-item.skeleton .wp-block-bp-file-attachment img {
    opacity: 0.3;
}

body.buddypress.attachments.directory .bp-media-item.skeleton .title-placeholder {
    display: block;
    background-color: currentColor;
    width: 100%;
    height: 100%;
}

body.buddypress.attachments.directory .bp-media-item.skeleton .bp-media-item-author .profile-photo.avatar,
body.buddypress.attachments.directory .bp-media-item.skeleton .title-placeholder,
body.buddypress.attachments.directory .bp-media-item.skeleton .wp-block-bp-file-attachment{
    animation: bp-skeleton-loading 1s linear infinite alternate;
}

@keyframes bp-skeleton-loading {

	0% {
		background-color: hsl(200, 20%, 80%);
	}

	100% {
		background-color: hsl(200, 20%, 95%);
	}
}
