/* item */
.item.show #content{
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 0 2rem;
	background-color: transparent;
}

.item.show #content .main-block{
	height: max-content;
	padding: 1rem;
	background-color: white;
	box-shadow: 0 .25rem .5rem 0 rgb(0 0 0 / 20%);
}

.item.show #content .main-block > h2{
	margin-bottom: 0;
	text-align: center;
}

/* bloc de champs */
.properties h3{
	margin: 0;
}

.properties.foldable h3{
	cursor: pointer;
}

.properties.foldable h3::after{
	content: "\f078";
	margin-left: .5rem;
	font-family: "Font Awesome 5 Free";
}

.properties.foldable.open h3::after{
	content: "\f077";
}

.properties.foldable .property{
	display: none;
}

.properties.foldable.open .property{
	display: flex;
}

.properties.open{
	border: none;
}

.properties.open h3{
	margin-bottom: 1rem;
}

.item.show #content .main-block .creators{
	margin: 0 auto 2rem;
	text-align: center;
	font-size: 1.25rem;
}

.item.show #content .main-block .creators h4{
	display: none;
}

.item.show #content .main-block .creators .values{
	width: 100%;
}

.item.show #content .main-block .creators .value{
	width: max-content;
	margin: 0 auto;
}

/* propriété */
.property{
	margin-bottom: .5rem;
}

.secondary-block .property{
	flex-direction: column;
}

.secondary-block .property:last-child{
	margin: 0;
}

.property h4{
	width: 20%;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5rem;
	text-align: left;
}

.property .values{
	width: 80%;
	padding: 0;
}

.secondary-block .property h4, .secondary-block .properties .values{
	width: 100%;
}

.property .values .value{
	margin: 0;
	text-align: justify;
}

.property .values .value:not(:last-child){
	padding-bottom: .5rem;
	border: 0;
}

.properties .property .values .value p:last-child{
	margin: 0;
}

.property .value i{
	margin-left: .5rem;
}

.property .value.resource img{
	margin-right: 1rem;
}

/* licences */
.property [class^="license"]{
	margin-right: 1rem;
}

.property .value .license-etalab{
	width: 100px;
	height: auto;
}

/* citation */
.item.show #content .item-citation .value{
	display: block;
}

/* visionneuse */
#btn-lg{
	width: max-content;
	margin: 1rem 0;
	padding: .25rem .5rem;
	border: 2px solid #a79589;
	font-size: 1.25rem;
	cursor: pointer;
}

#btn-lg i{
	margin-right: .5rem;
}

#itemfiles{
	display: none;
}

/* medias */
.item.show .secondary-block .media{
	display: flex;
	flex-direction: column;
	gap: .5rem 0;
	padding: 1rem 0;
}

.item.show .secondary-block .media > h3{
	margin: 0;
}

.item.show .secondary-block .media img{
	cursor: pointer;
}

/* modules */
/* next */
.previous-next-items{
	display: flex;
	grid-column: 1/3;
	justify-content: space-between;
}

.previous-next-items:last-child{
	margin-top: 2rem;
}

.next-item:only-child{
	margin-left: auto;
}

/* solr */
.search-results-wrapper{
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 1rem;
}

/* facettes */
#search-page .metadata + #advanced-search-form-wrapper{
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #ccc;
}

#advanced-search-form #form-search{
	width: 50%;
	margin: 0 auto;
}

#advanced-search-form .field-meta{
	display: none;
}

#advanced-search-form .inputs{
	width: 100%;
}

#form-facets input[type="submit"]{
	margin: 0;
}

.search-facet{
	margin-bottom: 1.5rem;
}

.search-facet h4{
	margin: 0;
	margin-bottom: .25rem;
	padding-bottom: .25rem;
	border-bottom: 1px solid var(--primary);
}

.search-facet-items{
	max-height: 240px;
	overflow-y: auto;
}

.filter-value::after{
	margin-left: 1rem;
}

/* ressources */
.resource-metadata .properties h4{
	display: none;
}

.resource-metadata .properties .values{
	width: 100%;
}

.resource-list.list .resource{
	gap: 1rem;
}

.resource-list.list .resource .resource-thumbnail{
	flex-basis: 200px;
}

.search-results .resource-list.grid .resource-thumbnail{
	display: flex;
	align-items: center;
	justify-content: center;
}

.resource-list .resource .resource-thumbnail a{
	display: block;
	width: 200px;
}

.resource-list .resource .resource-thumbnail img{
	width: 100%;
}

@media screen and (max-width: 1200px){
	#itemSets{
		flex-direction: column;
	}
}

@media screen and (max-width: 640px){
	.resource-list.list .resource{
		display: flex;
		flex-direction: column;
	}
}

@media screen and (max-width: 640px){
	.property{
		flex-direction: column;
	}

	.property h4, .property .values{
		width: 100%;
	}

	/* item */
	.item.show #content{
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	/* solr */
	.search-results-wrapper{
		flex-direction: column;
	}

	#advanced-search-form #form-search{
		width: 100%;
	}
	
	.search-results-header, .search-results-footer{
		gap: .5rem;
	}

	.browse .grid.resource-list{
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: .5rem;
		margin: 0;
	}
}
