.audio-video-module{
	position: relative;
	box-sizing: border-box;
}
.audio-video-module *{
	box-sizing: border-box;
}
.audio-video-module .btn{
	display: inline-block;
	margin: 0;
	white-space: nowrap;

}
.audio-video-module .active-media {
	position: relative;
	display: flex;
	margin-bottom: 2rem;
} 
.audio-video-module .active-media .artwork{
	border-radius: 5px;
	background: #f8f8f8;
	border: 1px solid #e6e3ee;
	overflow: hidden;

	background-size: cover;
	width: 200px;
	height: 200px;
	background-repeat: no-repeat;
}
.audio-video-module .active-media .artwork img{
	display: none;
}
.audio-video-module .active-media .details{
	padding: 1em 0;
	flex: 1;
}
.audio-video-module .active-media .artwork + .details{
	padding: 1em 1em 1em 2rem;
}

.audio-video-module .active-media h2 {
	margin: 0;
}

.audio-video-module .list-controls {
	position: relative;
	margin-bottom: 1em;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em;
	border-radius: 5px;
	background: rgba(218, 218, 218, 0.1);
	border: 1px solid rgba(190, 190, 190, 0.5);
	flex-wrap: wrap;
	gap:1em;
}
.audio-video-module .list-controls label{
	display: flex;
	align-items: center;
	gap:0.5em;
	*{
		margin:0;
		white-space: nowrap;
	}
}


.audio-video-module {
	text-align: center;
}
.audio-video-module > *{
	text-align: left;
}
.audio-video-module .item-list-grid .item > div{
	border-radius: 5px;
	overflow: hidden;
}
.audio-video-module .item-list-grid .item-title{
	text-align: center;
	margin: 0;
}
.audio-video-module .item-list-grid .item-description{
	display: none;
}
.audio-video-module .item-list .actions{
	display: flex;
	align-items: start;
	justify-content: end;
	justify-items: center;
	padding: 1em;
	background: rgba(242, 242, 242, 0.5);
	margin: -1em -1em -1em 0;
	gap:0.5em;
}

.audio-video-module .item-list .actions a{
	white-space: nowrap;
}
.audio-video-module .media-list .item {
	min-height: 100px;
	padding: 1em;
	margin-bottom: 1em;
	overflow: hidden;
	border-radius: 5px;
	background: rgba(218, 218, 218, 0.1);
	border: 1px solid rgba(190, 190, 190, 0.5);
	display: flex;

	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
	flex-wrap: wrap;
	gap:1em;
}
.audio-video-module .item-list-grid .item-image a{
	height:0;
	padding-bottom:100%;
	background-color: #f2f2f2;
}
.audio-video-module .media-list .item .thumbnail{
	border-radius: 5px;
	background-color: #f8f8f8;
	border: 1px solid #e6e3ee;
	overflow: hidden;

	background-size: cover;
	width: 150px;
	height: 150px;
	background-repeat: no-repeat;
	margin: 0;
}
.audio-video-module .media-list .item .thumbnail .cover{
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}
.audio-video-module .item-list-grid .item-image img,
.audio-video-module .media-list .item .thumbnail img{
	display: none;
}
.audio-video-module .media-list .item .media-info{
	flex: 1;	
	min-width:150px;
}

/* dialog */
.audio-video-dialog .aurora-dialog-content{
	padding:2em 1em 1em;
	display: flex;
	gap:1em;
	&:after{
		display: none;
	}
}
.audio-video-dialog .aurora-dialog-content .media-player {
	min-width: 55%;
}
.audio-video-dialog .aurora-dialog-content .media-player video{
	width:100%;
	max-width: 100%;
	height:auto;
}
.audio-video-dialog .aurora-dialog-content .media-player .frame-wrapper{
	overflow: hidden;
  padding-top: 56.25%;
  position: relative;
}

.audio-video-dialog .aurora-dialog-content .media-player .frame-wrapper video,
.audio-video-dialog .aurora-dialog-content .media-player .frame-wrapper iframe,
.audio-video-dialog .aurora-dialog-content .media-player .frame-wrapper .audio-element {
   border: 0;
   height: 100%;
   left: 0;
   position: absolute;
   top: 0;
   width: 100%;
}

.audio-video-dialog .aurora-dialog-content .media-player.audio-file .frame-wrapper{
	padding-top: 100%;
}
.audio-video-dialog .aurora-dialog-content .media-player .frame-wrapper .audio-element img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

.audio-video-dialog .aurora-dialog-content .media-player .frame-wrapper .audio-element audio{
	position: absolute;
	bottom: 0;
	width: calc(100% - 2rem);
	left: 0;
	height: 30px;
	margin: 1em;
}

.audio-video-dialog .aurora-dialog-content .media-details h2 {
	margin: 0;
}

.audio-video-dialog .aurora-dialog-content .media-details p {
	margin: 0 0 20px 0;
}
.audio-video-dialog .aurora-dialog-content .media-details p:last-child{
	margin-bottom: 0;
}
.audio-video-dialog  .item-tags{
	clear: none;
	margin:10px 0;
}
.audio-video-dialog .aurora-dialog-content .meta-extended dd{ display: inline-block; margin-right: 0.25em;}
.audio-video-dialog .aurora-dialog-content .meta-extended dt{
	display: block;
	font-size: 1em;
	font-weight: bold;
	line-height: 1em;
	margin-top: 1em;
	margin-right: 0.25em;
}

.audio-video-dialog .aurora-dialog-content .media-details{
	display: flex;
	gap: 1em;
	flex-direction: column;
}

.audio-video-dialog .buttons{
	white-space: nowrap;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap:0.5em;
}

.audio-video-dialog select[name="linkedfilename"]{
	display: block;
	margin:1em 0;	
}
.audio-video-dialog .aurora-dialog-content h3{
	padding: 0;
}
.audio-video-module .loading{ position: fixed; z-index: 3999; left: 0; top: 0; width: 100%; height: 100%; background: #000; opacity: 0.3; }
.audio-video-module .loading i{position: absolute; left: 50%; top:50%; color:#fff; margin:0.5em 0 0 0.5em;	
}
.audio-video-module.player-mode .media-meta{float: left; width:40%; margin-right:2%; margin-bottom:2%;}
.audio-video-module.player-mode .media-player{float: right; }


div[data-max-width*="512"]{
	.audio-video-module .list-controls {
		flex-direction: column;
		label,input, span.select2, span.select-wrapper{
			width:100% !important;
			
		}
	}
}

div[data-max-width*="680"]{
	
	.audio-video-module .item-list .actions{
		display: flex;
		min-width:100%;
		flex:1;
		margin:0 -1em -1em -1em;
		flex-direction: row;
		justify-content: end;
	}
	.audio-video-module .item-list .actions a:not(:only-child){
		flex:1;
	}
}

@media all and (max-width:512px) {
	.audio-video-dialog .aurora-dialog-content{
		padding-top:2em;
		flex-direction: column;
	}
	.audio-video-dialog .aurora-dialog-content .media-details{
		align-items: center;
		text-align: center;
	}

}
@media all and (max-width:480px) {
	.audio-video-module .item-list .actions a{
		flex:1;
	}
}