.og-grid {

	list-style: none;

	margin: 0 auto;

	text-align: center;

	width: 100%;

    overflow: hidden;

}



.og-grid li {
	display: inline-block;
	margin: 0;
	margin-left: 0px;
	margin-bottom: 1px;
	vertical-align: top;
	height: auto;
}



.og-grid li > a,.og-grid li > a img {
	 border: none;
	outline: none;
	display: block;
	position: relative;
	width: 100%;
	
	background-position: center center;
	background-repeat: no-repeat;
    background-size: 147% auto;
}
.og-grid li > a{
	 box-shadow: 0 0 16px rgba(0, 0, 0, 0.1) inset;
	
}



.og-grid li.og-expanded > a::after {
	top: auto;
	
	content: " ";
	height: 19px;
	width: 31px;
	position: absolute;
	pointer-events: none;
	z-index:101;
	left: 50%;
	margin: -14px 0 0 -20px;
	background-image: url(../img/fletxa.png);
	background-position: center top;
	background-repeat: no-repeat;
}



.og-expander {
	max-height:500px;
	position: absolute;
	background-image: -webkit-linear-gradient(180deg,rgba(241,241,241,1.00) 0%,rgba(255,255,255,1.00) 31.58%,rgba(255,255,255,1.00) 70.16%,rgba(241,241,241,1.00) 100%);
	background-image: linear-gradient(270deg,rgba(241,241,241,1.00) 0%,rgba(255,255,255,1.00) 31.58%,rgba(255,255,255,1.00) 70.16%,rgba(241,241,241,1.00) 100%);
	
	top: auto;
	left: 0;
	width: 100%;
	text-align: left;
	height: 0;
	overflow: hidden;
    margin-top:1px;
    z-index: 100;
	border-top:1px dotted #ccc;
	border-bottom:1px dotted #ccc;
	box-shadow: 0 17px 17px rgba(0,0,0,0.3);
	

}

.og-expanded{
	max-height:701px;
}


.og-expander-inner {
	height: 100%;
}



.og-close {

	position: absolute;

	width: 40px;

	height: 40px;

	top: 20px;

	right: 20px;

	cursor: pointer;

}



.og-close::before,

.og-close::after {

	content: '';

	position: absolute;

	width: 100%;

	top: 50%;

	height: 1px;

	background: #888;

	-webkit-transform: rotate(45deg);

	-moz-transform: rotate(45deg);

	transform: rotate(45deg);

}



.og-close::after {

	-webkit-transform: rotate(-45deg);

	-moz-transform: rotate(-45deg);

	transform: rotate(-45deg);

}



.og-close:hover::before,

.og-close:hover::after {

	background: #333;

}

.og-fullimg {
	position:absolute;
	left:50%;
	margin-left:-492px;
	width: 450px;
    height: 421px;
	padding:20px;
	overflow: hidden;
	margin-top:19px;
	background-color: rgba(240, 240, 240, 1);
	
}

.og-details {
	padding-left: 20px;
	padding-bottom: 0;
	position:absolute;
	left:50%;
	width:450px;
	top:50%;
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}



.og-fullimg {
	
	text-align: center;

}



.og-fullimg img {

	display: inline-block;

	max-height: 100%;

	max-width: 100%;

}



.og-details h3 {

	font-weight: 300;

	font-size: 24px;

	padding: 40px 0 10px;

	margin-bottom: 10px;

    color: #333;

}



.og-details p {

	font-weight: 400;

	font-size: 16px;

	line-height: 22px;

	color: #333;

}



.og-details a {

	font-weight: 300;

	font-size: 15px;

	color: #333;

	text-transform: uppercase;

	letter-spacing: 2px;

	padding: 10px 20px;

	border: 1px solid #fff;

	display: inline-block;

	margin: 30px 0 0;

	outline: none;
	
	background-color: rgba(240, 240, 240, 1);

}



.og-details a::before {

	content: '\2192';

	display: inline-block;

	margin-right: 10px;

}



.og-details a:hover {

	border-color: #999;

	color:rgba(255,255,255,1.00);
	background-color:rgba(68,68,68,1.00);

}



.og-loading {

	width: 20px;

	height: 20px;

	border-radius: 50%;

	background: #ddd;

	box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;

	position: absolute;

	top: 50%;

	left: 50%;

	margin: -25px 0 0 -25px;

	-webkit-animation: loader 0.5s infinite ease-in-out both;

	-moz-animation: loader 0.5s infinite ease-in-out both;

	animation: loader 0.5s infinite ease-in-out both;

}



@-webkit-keyframes loader {

	0% { background: #ddd; }

	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }

	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }

}



@-moz-keyframes loader {

	0% { background: #ddd; }

	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }

	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }

}



@keyframes loader {

	0% { background: #ddd; }

	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }

	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }

}



@media screen and (max-width: 830px) {



	.og-expander h3 { font-size: 32px; }

	.og-expander p { font-size: 13px; }

	.og-expander a { font-size: 12px; }



}


@media screen and (max-width: 650px) {



	.og-fullimg { display: none; }

	.og-details { float: none; width: 100%; }



}
.resultats_peces {
	overflow:hidden;
	padding-left:0px;
	padding-right:0px;
}
.resultats_peces li.tall{
 clear:both;
 margin-left:0;
}
/*
.resultats_peces li{
 	float: left;
    list-style-type: none;
    margin-bottom: 30px;
    margin-left: 16px;
    margin-right: 0;
    width: calc(33.3333% - 17px);
	
}*/
.resultats_peces li p{
	margin:0;
}
.resultats_peces p.image{
	/* height:346px; */
	width:100%;
	padding-left:0px;
	padding-right:0px;
	position:relative;
	margin-bottom:6px;
	overflow:hidden;
	
	
}
.resultats_peces li h3{
    font-size: 1.4em;
    font-weight: bold;
    
    line-height: 1.2;
}
.resultats_peces li img {
 /*   bottom: 0;
    left: 50%;
	width:auto;
    max-height: 100%;
    max-width: 100%;
    position: absolute;
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
	*/
}
article.node .main-content .resultados-set p.image, article.node .main-content .resultats_peces p.image{
	display:flex;
	align-items: flex-end;
	margin-bottom:1rem;
}
article.node .main-content .simpleList .resultados-set li > * {
	flex-basis:20%;
	margin:0;
}
article.node .main-content .simpleList .resultados-set p.image, 
article.node .main-content .simpleList .resultats_peces p.image,
article.node .main-content .simpleList .resultados-set p.data, 
article.node .main-content .simpleList .resultats_peces p.data{
	flex-basis:10%;
	
}

/* Variants llistat */

/* LLista simple, sense imatges i amb la mínima informació */

.simpleList .resultats_peces li{
	
}
.simpleList .resultats_peces p.image{
	
}
.simpleList .resultats_peces p,.simpleList .resultats_peces h3 {
	
	
}
.simpleList .resultats_peces h3 {
    
}
.simpleList .resultats_peces .material, .simpleList .resultats_peces .tamany, .simpleList .resultats_peces .inventari, .simpleList .resultats_peces .lloc {
    display: block;
}


/* OG */

.resultats_peces .og-expander img{

	position:absolute;
	left:50%;
	top:50%;
	-webkit-transform: translateY(-50%) translateX(-50%);
	-moz-transform: translateY(-50%) translateX(-50%);
	-ms-transform: translateY(-50%) translateX(-50%);
	transform: translateY(-50%) translateX(-50%);
	 max-height: calc(100% - 30px);
    max-width: calc(100% - 30px);

}

.og-grid table td{
    padding-right: 20px;
}

.paginacion-resultats{

	clear: both;
}

.paginacion-resultats a.current-page{

   font-weight: bold;
}



.next-set{
    display: block;
    clear: both;
}
.resultados-set{
	
} 
.resultados-set:first-child .tornar-llistat{
	display:none;


}
.resultados-set span{

    color:#000;

    font-size: 13px;

    font-weight: 300;

    display: block;

    margin-bottom: 30px;

    margin-top: 11px;
	padding-top:5rem;
	border-top:1px solid;

}
.resultados-set:first-child span{ 
border:none;}

.resultados-set .tornar-llistat {
    float: right;
	margin:0;
	padding:0;
	border:0;
}
.destacats .resultados-set span{
display:none;
}


#infinite-scroll{
	position:relative;
	z-index:20;
	
	/*width:75%;
	float:right;
	*/
	flex-basis:75%;
}
#infscr-loading {
	margin-right:80px;
	position:relative;
}

