/*----------------------- Card piece --------------------------------------------*/

.masonry-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
}



.card-piece-gallery {
	display: flex;
	/* max-width: 272px;
	min-width: 272px; */
	height: auto;
	flex-direction: column;
	/* align-items: flex-start; */
	gap: 16px;

}

.card-piece-gallery.sort {
	padding: 16px;
	border: 1px solid var(--border-low, rgba(0, 0, 0, 0.20));
}

.card-piece-gallery span.icon-drag_indicator {
	display: none;
}

.card-piece-gallery.sort .icon-drag_indicator {
	display: block;
}
.card-piece-gallery .img {
	display: flex;
	justify-content: center;
	align-items: center;
	object-fit: contain;
	background-color: lightgray 50%;
	width: 100%;
	max-height: 470px;
	transition: opacity 0.5s linear;
}
.card-piece-gallery .media {
    display: flex;
	justify-content: center;
	align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    width:100%;	
}

.card-piece-gallery .media:hover .img {
    opacity: .75;
}


/* .card-piece-gallery .media::before {
	content: "";
	background-size: cover;
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
} */

/* .card-piece-gallery .media.dos {
    aspect-ratio: 2 / 3;
}

.card-piece-gallery .media.tres {
    aspect-ratio: 3 / 2;
} */

.card-piece-gallery .card-piece-gallery-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	align-self: stretch;
	flex-grow: 1;
}

.card-piece-gallery .card-piece-gallery-content .info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	align-self: stretch;
}

.card-piece-gallery .card-piece-gallery-content .info .card-piece-gallery-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: stretch;
	gap: 4px;
	justify-content: space-between;
	height: auto;
}


.card-piece-gallery-category,
.card-piece-gallery-detail {
	color: var(--content-card-piece-category, rgba(0, 0, 0, 0.40));
}

.card-piece-gallery .card-piece-gallery-content .info .card-piece-gallery-header .frame {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	align-self: stretch;
}


.card-piece-gallery .card-piece-gallery-content .info .card-piece-gallery-header .frame .card-piece-gallery-category {
	height: 16px;
	flex: 1 0 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.card-piece-gallery .card-piece-gallery-content .info .card-piece-gallery-header .frame .menu {
	display: flex;
	padding: 4px 0px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
}

/* nuevo menú

.card-media .menu.module-body-default {
/*	display: none;
}
*/
/* .card-media .menu.module-body-default {
	display: block;
	position: absolute;
	right: 0;
	bottom: -44px;
	opacity: 1;
} */

.card-piece-gallery .card-piece-gallery-content .info .card-piece-gallery-header .card-piece-gallery-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	align-self: stretch;
	overflow: hidden;
	color: var(--content-high, #000);
	text-overflow: ellipsis;
}

.card-piece-gallery .card-piece-gallery-content .info .card-piece-gallery-header .card-piece-gallery-detail {

	display: flex;
	flex-direction: column;
	align-items: flex-start;

	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	align-self: stretch;
	overflow: hidden;
	text-overflow: ellipsis;
}


.card-piece-gallery .card-piece-gallery-content .info .descripcion {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	align-self: stretch;
}

.card-piece-gallery .card-piece-gallery-content .info .descripcion .content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	align-self: stretch;
}


.card-piece-gallery .card-piece-gallery-content .descripcion {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	align-self: stretch;
}

.card-piece-gallery .card-piece-gallery-content .descripcion .content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	align-self: stretch;
}

.card-piece-gallery .card-piece-gallery-content .descripcion .content hr {
	width: 100%;
	display: block;
	border-top: 1px solid var(--background-mid, #F2F2F2);
	margin: 0;
}

.card-piece-gallery .card-piece-gallery-content .descripcion .content .module-body-secondary {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	align-self: stretch;
	overflow: hidden;
	color: var(--content-mid, rgba(0, 0, 0, 0.50));
	text-overflow: ellipsis;


	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;

}

.card-piece-gallery .card-piece-gallery-content .descripcion .content .detalle {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

/* Imágenes rotas */
/*.card-piece-gallery img::before {
    content: '';
    width: 100%;
    height: calc(100% + 20px);
    background-color: #f3f3f3;
    position: absolute;
    top: 0;
}
.card-piece-gallery img::after {
    content: "\26A0" " " attr(alt);
    font-size: 12px;
    font-family: var(--font-family-body);
    color: rgb(100, 100, 100);
    display: block;
    position: absolute;
    z-index: 2;
    top: 5px;
    padding: 10px;
    left: 0;
    width: 100%;
    height: 100%;
}*/

/*----------------------- hover --------------------------------------------*/


/* .card-piece-gallery:hover img,
.card-piece-gallery:hover .card-piece-gallery-content {
	opacity: .75;
} */

.card-piece-gallery:hover .media button {
	opacity: .75;
}

.card-piece-gallery .media button:hover {
	opacity: 1;
}

.card-piece-gallery .media .action-button.action-button-terciary {
	color: #fff;
	transform: scale(2);
}

.card-piece-gallery .media .action-button.action-button-terciary:before {
	font-family: 'icons' !important;
	content: "\e911";

}

.card-piece-gallery .media .action-button .action-button-primary {
	padding: 16px;
	align-self: center;
	gap: 8px;
}

.card-piece-gallery a.menu {
	display: none;
	pointer-events: none;
}

/*** Error ***/

.card-piece-gallery.error .media:before {
	display: flex;
	justify-content: center;
	align-items: center;
	background-image: none;
	background-color: #F2F2F2;
	font-family: 'icons' !important;
	content: "\e90f";
	font-size: 60px;
	color: #000;
}


/*** Loading ***/

.cargando {
	background-image: none;
	background-color: #F2F2F2;
}

.card-piece-gallery.loading .media:before {
	background-image: none;
	background-color: #F2F2F2;
}

.card-piece-gallery.loading .card-piece-gallery-content .info .card-piece-gallery-header .frame .menu {
	display: none;
}



.card-piece-gallery.loading .card-piece-gallery-category,
.card-piece-gallery.loading .card-piece-gallery-content .info .card-piece-gallery-header .card-piece-gallery-title,
.card-piece-gallery.loading .card-piece-gallery-title,
.card-piece-gallery.loading .module-body-secondary,
.card-piece-gallery.loading .card-piece-gallery-detail,
.card-piece-gallery.loading .card-piece-gallery-content .descripcion .content .module-body-secondary,
.card-piece-gallery.loading .label-button {
	color: var(--background-mid, #F2F2F2);
	background: var(--background-mid, #F2F2F2);
}

.card-piece-gallery.loading .card-piece-gallery-category {
	display: flex;
	width: 40px;
	height: 14px;
	align-items: flex-start;
	gap: 10px;
}

.card-piece-gallery.loading .card-piece-gallery-title {
	display: flex;
	width: 142px;
	height: 22px;
	align-items: flex-start;
	gap: 10px;
}

.card-piece-gallery.loading .module-body-secondary {
	display: flex;
	width: 149px;
	height: 14px;
	align-items: flex-start;
	gap: 10px;
}

.card-piece-gallery.loading hr {
	display: block;
	border-top: 1px solid var(--background-mid, #F2F2F2);
}

.card-piece-gallery.loading {
	background-image: none;
	--bg: #e1e1e1;
	--glare-bg: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.4), transparent);
	position: relative;
	background-color: #fff;
	overflow: hidden;
}

.card-piece-gallery.loading::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: var(--glare-bg);
	transform: translateX(-100%);
	animation: skeleton-glare 1.75s infinite ease-out;
	z-index: 1;
}

@keyframes skeleton-glare {
	to {
		transform: translateX(100%)
	}
}


/************** drag **************/

.card-piece-gallery.drag {
	padding: 16px;
	border: 1px solid var(--border-low, rgba(0, 0, 0, 0.20));
}

.card-piece-gallery.drag span.icon-drag_indicator {
	display: block;
}


/******************************/

.card-piece-gallery .media {
	position: relative;
}

.card-piece-gallery .media button.action-button.action-button-primary {
	position: absolute;
	right: 12px;
	bottom: 12px;
	opacity: 0;
}

.card-piece-gallery .media button.action-button.action-button-terciary.icon-instagram {
	opacity: 0;
}

.card-piece-gallery:hover .media button.action-button.action-button-primary,
.card-piece-gallery:hover .media button.action-button.action-button-terciary:hover {
	opacity: 1;
}



/***************** MEDIA QUERIES ***********************/


@media screen and (max-width: 1439px) {}

@media screen and (max-width: 1279px) {
	/* desde aquí Desktop */

}

@media screen and (max-width: 959px) {

	/* Hasta aquí Mobile */
	/* .masonry-gallery {
		justify-items: center;

	} */
}

@media screen and (max-width: 639px) {
	/* .masonry-gallery {
		justify-items: center;
	} */
	.card-piece-gallery .img {
		object-fit: cover;
    	object-position: top;
	}
}