/* Footer (parts footer-hr/en) and the photo band above it on the home page. */

.mano-photo-band.mano-photo-band {
	margin-block: 0;
}

.mano-photo-band img {
	display: block;
	width: 100%;
}

/* Home photo pair (Figma 303:17 / 303:18, update 28/10): two photos side by side, 726 tall, a white
   "Rezervirajte" button in the middle of each. Cover blocks with no overlay. */
.mano-photo-pair.mano-photo-pair {
	gap: 0;
	margin-block: 0;
}

.mano-photo-pair__half.wp-block-cover {
	min-height: 726px;
	padding: var(--wp--preset--spacing--gutter);
}

footer.wp-block-template-part {
	margin-block-start: 0;
}

/* Footer (Figma 296:3806, update 28/10): ManO bež band, four columns of Inter 12/19 under 13px
   titles, each column between thin vertical rules (0.5px, 159 tall); rule, 61, column 190, 61, rule. */
.mano-footer {
	padding: 70px var(--wp--preset--spacing--gutter) 69px;
	background: var(--wp--preset--color--mano-bez);
	color: var(--wp--preset--color--dark-kaptol);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 19px;
}

.mano-footer a {
	color: inherit;
	text-decoration: none;
}

.mano-footer a:hover,
.mano-footer a:focus-visible {
	text-decoration: underline;
}

.mano-footer .mano-footer__columns {
	justify-content: center;
	gap: 0;
	margin: 0;
}

.mano-footer .mano-footer__columns > .wp-block-column {
	box-sizing: border-box;
	flex: 0 1 312px;
	min-height: 159px;
	padding: 0 61px;
	border-left: 0.5px solid currentColor;
}

.mano-footer .mano-footer__columns > .wp-block-column:last-child {
	border-right: 0.5px solid currentColor;
}

.mano-footer__col > * {
	margin: 0;
}

.mano-footer__col > * + * {
	margin-top: 6px;
}

/* "Pratite nas": one text block in Figma, lines 19 apart, an empty line between the restaurants. */
.mano-footer__col--follow > * + * + * {
	margin-top: 0;
}

.mano-footer__col--follow > .mano-footer__group {
	margin-top: 19px;
}

.mano-footer__title {
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 600;
	line-height: 1.2;
}

/* Footer menu: one link per line, 6 apart like the other columns. */
.mano-footer__menu .wp-block-navigation__container {
	gap: 6px;
}

.mano-footer__menu .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: inherit;
}

/* Tablet and small laptop: two columns per row. Core forces nowrap from 782px. */
@media (min-width: 782px) and (max-width: 1199px) {
	.mano-footer .mano-footer__columns {
		flex-wrap: wrap !important;
		row-gap: 48px;
	}

	.mano-footer .mano-footer__columns > .wp-block-column {
		flex-basis: 50% !important;
		flex-grow: 0 !important;
	}

	.mano-footer .mano-footer__columns > .wp-block-column:nth-child(2n) {
		border-right: 0.5px solid currentColor;
	}
}

@media (max-width: 781px) {
	/* Taller crop on phones: the full-width landscape photo is too small at 390px.
	   An explicit height overrides the image block's inline aspect-ratio. */
	.mano-photo-band.mano-photo-band img {
		height: min(100vw, 70svh);
		object-fit: cover;
	}

	/* Photo pair (Figma 353:152, image 3 / Rectangle 53): the photos stacked, 402×437 each, the white
	   button 70px above each photo's bottom, Inter 11/13 medium, 35 tall. */
	.mano-photo-pair__half.wp-block-cover {
		min-height: 437px !important; /* the block stores 726px inline */
		align-items: flex-end;
		padding: 0 16px 70px;
	}

	.mano-photo-pair .wp-block-button .wp-block-button__link {
		padding: 11px 22px;
		background-color: var(--wp--preset--color--topla-bijela);
		color: var(--wp--preset--color--dark-kaptol);
		font-size: 11px;
		font-weight: 500;
		line-height: 13px;
		letter-spacing: normal;
	}

	/* Footer (Figma 353:320 / 359:767): two columns of Inter 11/19 under 11px titles, 173 wide and
	   24 apart at 402, two rows 65 apart; each column ends 6px under its last line on a thin rule.
	   34px above (146 in the restaurant footer), 100 below. */
	.mano-footer {
		padding: 34px 16px 100px;
		font-size: 11px;
	}

	.mano-footer .mano-footer__columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 65px 24px;
	}

	.mano-footer .mano-footer__columns > .wp-block-column {
		min-width: 0;
		min-height: 0;
		padding: 0 0 5px; /* + the rule: 119 tall, the rule 6px under the last line */
		border: 0;
		border-bottom: 0.5px solid currentColor;
	}

	.mano-footer .mano-footer__columns > .wp-block-column:last-child {
		border-right: 0;
	}

	.mano-footer__title {
		font-size: 11px;
		line-height: 13px;
	}

	/* "Pratite nas": no empty line between the restaurants, 6 apart like the other lines. */
	.mano-footer__col--follow > * + * + * {
		margin-top: 6px;
	}

	.mano-footer__col--follow > .mano-footer__group {
		margin-top: 6px;
	}
}

/* Standard-density screens draw a 0.5px rule as a full pixel; half the colour keeps Figma's weight. */
@media (max-width: 781px) and (max-resolution: 1.5dppx) {
	.mano-footer .mano-footer__columns > .wp-block-column {
		border-bottom-color: color-mix(in srgb, currentColor 50%, transparent);
	}
}
