.audio-video-module{
	position: relative;
	box-sizing: border-box;
}
.audio-video-module *{
	box-sizing: border-box;
}
.audio-video-module .btn{
	display: inline-block;
	margin:1rem 0;
}
.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: 1rem 0;
	flex: 1;
}
.audio-video-module .active-media .artwork + .details{
	padding: 1rem 1rem 1rem 2rem;
}

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

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

.audio-video-module {
	text-align: center;
}
.audio-video-module > *{
	text-align: left;
}
.audio-video-module .item-list-grid{
	margin:1rem -0.5rem;
}
.audio-video-module .item-list-grid .item{
	width:25%;
	margin:0;
}
.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-grid .item-image a{
	height:0;
	padding-bottom:100%;
	background-color: #f2f2f2;
}
.audio-video-module .item-list-grid .item-image img{
	display: none;
}

.audio-video-module .item-list .actions{
	float:right;
	font-weight: normal;
}

.audio-video-module .item-list .actions a{
	margin:0 0.25em;
	vertical-align: middle;
}
.audio-video-module .media-list .item {
	min-height: 100px;
	padding: 1rem;
	margin-bottom: 1rem;
	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;

}
.audio-video-module .item h4,
.audio-video-module .item .title {
	margin: 0;
}

.audio-video-module .item .meta{
	margin:0 0 1rem;
}

.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;

}
.audio-video-module .media-list .item .thumbnail .cover{
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}
.audio-video-module .media-list .item .thumbnail img{
display: none;
}
.audio-video-module .media-list .item .media-info{
	flex: 1;	
}

.audio-video-dialog .aurora-dialog-content{
	padding:30px;
}
.audio-video-dialog .aurora-dialog-content .media-player {
	width: 55%;
	max-width: 100%;
	height: auto;
	float: left;
}
.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: 1rem;
}

.audio-video-dialog .aurora-dialog-content .media-details {
	width: 45%;
	float: left;
	padding-left: 20px;
	box-sizing: border-box;
}

.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 .aurora-dialog-content .media-details .media-description {
	max-height: 85px;
	overflow-y: auto;
	margin: 10px 0;
	padding: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: 1rem;
	font-weight: bold;
	line-height: 1rem;
	margin-top: 1rem;
	margin-right: 0.25em;
}

.audio-video-dialog .aurora-dialog-content .meta-extended{
	padding: 0;
	margin: 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-dialog .buttons{
	white-space: nowrap;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.audio-video-dialog .buttons a{
 margin-right:0.5em;
}

.audio-video-dialog select[name="linkedfilename"]{
	display: block;
	margin:1em 0;	
}

.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; }


/* responsive */
/*
@media all and (max-width:800px) {
	
	.audio-video-module .grid li {
		width: 32%;
		margin-right: 2%;

	}
	.audio-video-module .grid li:nth-child(3n) {
		margin-right: 0;
	}
	

}

@media all and (max-width:600px) {
	
	.audio-video-module .grid li {
		width: 49%;
		margin-right: 2%;
	}
	.audio-video-module .grid li:nth-child(3n) {
		margin-right: 2%;
	}
	 .audio-video-module .grid li:nth-child(2n) {
		margin-right: 0;
	}
	.aurora-dialog-content .media-player {
		width: 100%;
		height: auto;
	}
	
	.aurora-dialog-content .media-details {
		width: 100%;
		padding: 10px 0 0 0;
	}


}

@media all and (max-width:480px) {
	
	.audio-video-module .grid li {
		width: 100%;
		margin-right: 0 !important;
	}
	
	.audio-video-dialog .aurora-dialog-content .media-player{
		width:100%;
	}
	.audio-video-dialog .aurora-dialog-content .media-details{
		padding-left: 0;
		padding-top:20px;
		width:100%;
	}
}
*/

@media all and (max-width:480px) {
	
	.audio-video-module .grid li {
		width: 100%;
		margin-right: 0 !important;
	}
	
	.audio-video-dialog .aurora-dialog-content .media-player{
		width:100%;
	}
	.audio-video-dialog .aurora-dialog-content .media-details{
		padding-left: 0;
		padding-top:20px;
		width:100%;
	}
}



div[data-max-width*="680"] > .audio-video-module .grid li {
	width: 32%;
	margin-right: 2%;

}
div[data-max-width*="680"] > .audio-video-module .grid li:nth-child(3n) {
	margin-right: 0;
}

div[data-max-width*="512"] > .audio-video-module .grid li {
	width: 49%;
}
div[data-max-width*="512"] > .audio-video-module .grid li:nth-child(3n) {
	margin-right: 2%;
}
div[data-max-width*="512"] > .audio-video-module .grid li:nth-child(2n) {
	margin-right: 0;
}

div[data-max-width*="320"] > .audio-video-module .grid li {
	width: 100%;
	margin-right: 0 !important;
}
div[data-max-width*="320"] > .audio-video-module .active-media{
	padding: 10px;
}
div[data-max-width*="320"] > .audio-video-module .active-media .thumbnail {
	width: 100%;
	height: auto;
	position: static;
	left: auto;
	margin-bottom: 10px;
}

div[data-max-width*="320"] > .audio-video-module .list-controls{
	text-align: center;
}
div[data-max-width*="320"] > .audio-video-module .list-controls label[for="search"],
div[data-max-width*="320"] > .audio-video-module .list-controls label[for="sort"]{
float: none;
display: block;
clear: both;
margin-bottom: 1em;

}

div[data-max-width*="512"] > .audio-video-module .item-list .actions a {
    position: absolute;
    left: 10px;
    top: 180px;
    width: 150px;
    text-align: center;
}
