/* Hidden nutritional gallery — stays in layout for Elementor lightbox anchors */
.sgd-tabela-gallery {
	position: absolute;
	left: -9999px;
	top: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* Zigzag: reverse column order on even items (desktop only; Elementor tablet ≤ 1024px) */
@media (min-width: 1025px) {
	.e-loop-item:nth-of-type(even) .elementor-top-section > .elementor-container {
		flex-direction: row-reverse;
	}
}

/* Nutritional table modal (matches original Elementor popup) */
.sgd-tabela-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.8);
}

.sgd-tabela-modal[hidden] {
	display: none;
}

.sgd-tabela-modal__dialog {
	position: relative;
	width: min(1080px, 90vw);
	max-height: 90vh;
	background: #fff;
	border-radius: 30px;
	overflow: hidden;
}

.sgd-tabela-modal__content {
	max-height: 90vh;
	padding: 75px 25px 25px 25px;
	overflow-y: auto;
	box-sizing: border-box;
}

.sgd-tabela-modal .sgd-tabela-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	margin: 0;
	padding: 14px 40px;
	border: 0;
	border-radius: 12px;
	background: #e1b527;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	color: #fff;
	line-height: 0;
	cursor: pointer;
}

.sgd-tabela-modal .sgd-tabela-modal__close:hover {
	background: #5c4738;
	background-image: none;
}

.sgd-tabela-modal .sgd-tabela-modal__close svg {
	display: block;
	width: 16px;
	height: 16px;
}

.sgd-tabela-modal__content img,
.sgd-tabela-modal__content a {
	pointer-events: none;
}

.sgd-tabela-modal__content img {
	display: block;
	max-width: 100%;
	height: auto;
}
