.jarritos-sliding-gallery-wrap {
	position: relative;
}

.jarritos-sliding-gallery img {
	width: 100%;
	height: auto;
	display: block;
}

/* Admin loading lock */
.jarritos-admin-loading {
	opacity: 0.6;
	pointer-events: none;
}

.jarritos-admin-ready {
	opacity: 1;
	pointer-events: auto;
}

/* Admin layout */
.jarritos-gallery-group {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 8px;
	padding: 16px;
	margin: 20px 0;
}

.jarritos-gallery-group-header {
	display: grid;
	grid-template-columns: 32px minmax(240px, auto) auto 1fr auto;
	align-items: stretch;
	gap: 12px;
	border-bottom: 1px solid #dcdcde;
	padding-bottom: 10px;
	margin-bottom: 14px;
}

.jarritos-gallery-group-header h2 {
	margin: 0 0 6px;
}

.jarritos-gallery-order {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 2px;
	align-self: stretch;
}

.jarritos-gallery-order .button {
	min-width: 28px;
	width: 28px;
	height: 22px;
	min-height: 22px;
	line-height: 18px;
	padding: 0;
	text-align: center;
}

.jarritos-gallery-order .jarritos-move-gallery-up {
	align-self: start;
}

.jarritos-gallery-order .jarritos-move-gallery-down {
	align-self: end;
}

.jarritos-gallery-meta-row {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 160px;
	gap: 12px;
	margin-bottom: 12px;
}

.jarritos-gallery-meta-row label span {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.jarritos-gallery-meta-row input {
	width: 100%;
}

.jarritos-gallery-options-row {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 16px;
}

.jarritos-gallery-items-header {
	display: grid;
	grid-template-columns: 32px 52px 1fr 1fr 2fr auto 2fr auto;
	gap: 8px;
	align-items: center;
	font-weight: 600;
	color: #50575e;
	margin-bottom: 6px;
	padding: 0 8px;
}

.jarritos-gallery-item-row {
	display: grid;
	grid-template-columns: 32px 52px 1fr 1fr 2fr auto 2fr auto;
	gap: 8px;
	align-items: center;
	padding: 8px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin-bottom: 8px;
	background: #f6f7f7;
}

.jarritos-gallery-item-row input {
	width: 100%;
	min-height: 32px;
}

.jarritos-gallery-item-preview {
	width: 44px;
	height: 44px;
	background: #fff;
	border: 1px solid #dcdcde;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.jarritos-gallery-item-preview a,
.jarritos-gallery-item-preview img {
	width: 100%;
	height: 100%;
	display: block;
}

.jarritos-gallery-item-preview img {
	object-fit: cover;
}

.jarritos-row-order {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 2px;
	align-self: stretch;
}

.jarritos-row-order .button {
	min-width: 28px;
	width: 28px;
	height: 22px;
	min-height: 22px;
	line-height: 18px;
	padding: 0;
	text-align: center;
}

.jarritos-row-order .jarritos-move-item-up {
	align-self: start;
}

.jarritos-row-order .jarritos-move-item-down {
	align-self: end;
}

.jarritos-danger-button {
	background: #b32d2e !important;
	border-color: #b32d2e !important;
	color: #fff !important;
}

.jarritos-danger-button:hover {
	background: #8a2424 !important;
	border-color: #8a2424 !important;
	color: #fff !important;
}

.jarritos-sliding-gallery .qodef-e-media-image {
	overflow: visible !important;
}

.jarritos-sliding-gallery .qodef-e-media-image img {
	width: 100%;
	height: auto !important;
	max-height: none !important;
	object-fit: unset !important;
    border-radius: 20px;
}

.jarritos-sliding-gallery .qodef-e-inner {
	position: relative;
}

.jarritos-gallery-status {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
	padding: 8px 10px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font-weight: 600;
}

.jarritos-gallery-count {
	color: #1d2327;
}

.jarritos-gallery-duplicates {
	color: #b32d2e;
}

.jarritos-gallery-item-row.jarritos-duplicate-image {
	background: #fff0f0;
	border-color: #d63638;
	box-shadow: inset 4px 0 0 #d63638;
}