:root {
	--jg-page-gutter: 24px;
	--jg-gallery-width: 1170px;
	--jg-reading-width: 760px;
	--jg-gallery-gap: 3px;
}

html { scroll-behavior: smooth; }
body { margin: 0; }
body, button, input, select, textarea { font-family: 'Cutive Mono', 'Courier New', monospace; }
body { font-size: 17px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'DM Sans', Arial, sans-serif; font-weight: 600; }
strong, b { font-family: 'DM Sans', Arial, sans-serif; font-size: .92em; font-weight: 600; }
a { text-underline-offset: 3px; }
::selection { background: #d8ded3; color: #1e1d1a; }

.wp-site-blocks { overflow: clip; }

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--paper);
}
.site-header {
	position: relative;
	z-index: 1;
	background: var(--wp--preset--color--paper) !important;
	color: #1e1d1a !important;
	border-bottom: 1px solid transparent;
	transition: border-color 180ms ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(30, 29, 26, .18); }
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }

.site-header__inner {
	width: min(100% - 48px, var(--jg-gallery-width));
	min-height: 78px;
	margin-inline: auto;
}

.site-header .wp-block-site-title,
.site-header .wp-block-site-title a,
.site-header__menu a { color: inherit; text-decoration: none; }
.site-header .wp-block-site-title,
.site-header .wp-block-site-title a { font-family: 'DM Sans', Arial, sans-serif; font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.site-header .custom-logo { width: auto; max-height: 42px; object-fit: contain; }
.site-header__menu { padding: 12px 16px; background: var(--wp--preset--color--paper) !important; color: #1e1d1a !important; font-family: 'DM Sans', Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.site-header__menu-items { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-header__menu-items a,
.site-header__menu .wp-block-button__link,
.site-header .wp-element-button { display: block; background: transparent !important; color: #1e1d1a !important; border: 0; border-radius: 0; box-shadow: none; }

.site-footer {
	margin-top: 0;
	padding: 36px 24px;
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--paper);
}

.site-footer__inner { width: min(100%, var(--jg-gallery-width)); margin-inline: auto; }
.site-footer .wp-block-site-title { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.site-footer .wp-block-paragraph { margin: 0; color: var(--wp--preset--color--muted); font-size: 12px; }

.gallery-content { width: 100%; max-width: none; }
.gallery-content .wp-block-post-content > .wp-block-image,
.gallery-content > .wp-block-image {
	width: min(calc(100% - 16px), var(--jg-gallery-width));
	max-width: var(--jg-gallery-width);
	margin: 0 auto var(--jg-gallery-gap) !important;
	float: none;
}
.gallery-content .wp-block-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}
.gallery-content .wp-block-post-content > .wp-block-gallery,
.gallery-content > .wp-block-gallery,
.gallery-content > .work-gallery {
	width: min(calc(100% - 16px), var(--jg-gallery-width));
	max-width: var(--jg-gallery-width);
	margin: 0 auto !important;
	gap: var(--jg-gallery-gap);
}
.gallery-content > .wp-block-gallery .wp-block-image { width: 100% !important; margin: 0; }
.gallery-content > .wp-block-gallery img { display: block; width: 100%; height: auto; object-fit: contain; }

.work-intro {
	width: min(calc(100% - 48px), var(--jg-gallery-width));
	margin: 0 auto;
	padding: clamp(52px, 8vw, 96px) 0 40px;
}
.work-intro__eyebrow,
.work-story__eyebrow {
	margin: 0 0 18px;
	color: var(--wp--preset--color--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
}
.work-intro__eyebrow:empty::before { content: 'Tipo de trabajo · Localización'; }
.work-story__eyebrow:empty::before { content: 'El reportaje'; }
.work-story h2:empty::before { content: 'La historia'; }
.work-intro__title { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; letter-spacing: .015em; font-weight: 600; }
.gallery-content .work-intro__title,
.gallery-content h1.wp-block-post-title { text-align: left; }
.work-intro__subtitle { margin: 16px 0 28px; color: var(--wp--preset--color--muted); font-size: 16px; line-height: 1.6; text-align: left; }
.work-facts { border-top: 1px solid var(--wp--preset--color--line); }
.work-facts__row { display: grid !important; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr); gap: 18px; align-items: baseline; margin: 0 !important; padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; }
.work-facts__row p { margin: 0; font-size: 16px; line-height: 1.55; }
.work-facts__label { color: #73716c !important; font-family: 'Cutive Mono', 'Courier New', monospace; font-size: 15px !important; font-weight: 400; line-height: 1.5; opacity: 1 !important; visibility: visible !important; }
.work-facts__value { font-weight: 400; }
.work-facts__label:empty::before { color: #73716c; }
.work-facts__row:nth-child(1) .work-facts__label:empty::before { content: 'Pareja o cliente'; }
.work-facts__row:nth-child(2) .work-facts__label:empty::before { content: 'Lugar'; }
.work-facts__row:nth-child(3) .work-facts__label:empty::before { content: 'Organización'; }
.work-facts__row:nth-child(4) .work-facts__label:empty::before { content: 'Fotografía'; }
.work-facts__row:nth-child(4) .work-facts__value:empty::before { content: 'Joaquín González'; }

.work-story {
	width: min(calc(100% - 16px), var(--jg-gallery-width));
	max-width: var(--jg-gallery-width);
	margin: 0 auto;
	padding: clamp(72px, 11vw, 128px) 0 88px;
}
.work-story h2 { margin: 0 0 24px; font-size: clamp(25px, 2.8vw, 36px); line-height: 1.15; letter-spacing: .04em; }
.work-story__copy { color: #4b4944; font-size: 17px; line-height: 1.6; }
.work-story__copy p { margin: 0 0 18px; }
.work-story__signature { margin: 28px 0 38px; font-size: 13px; font-weight: 600; }
.work-story__credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--line); }
.work-story__credits p { display: grid; gap: 6px; margin: 0; font-size: 13px; }
.work-story__credits-label { color: var(--wp--preset--color--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.home-intro { width: min(calc(100% - 48px), var(--jg-gallery-width)); margin: 0 auto; padding: clamp(70px, 12vw, 150px) 0; }
.home-intro h1 { max-width: 18ch; margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.06; letter-spacing: .01em; }
.home-intro .wp-block-site-tagline { max-width: 55ch; color: var(--wp--preset--color--muted); font-size: 18px; }
.work-index { width: min(calc(100% - 48px), var(--jg-gallery-width)); margin: 0 auto; padding-bottom: 100px; }
.work-index .wp-block-post-template { gap: 48px 24px; }
.work-index .wp-block-post-featured-image img { display: block; width: 100%; height: auto; }
.work-index .wp-block-post-title { margin: 14px 0 0; font-size: 24px; }
.work-index .wp-block-post-title a { text-decoration: none; }

.page-content { width: min(calc(100% - 48px), var(--jg-reading-width)); margin-inline: auto; padding-block: 72px 100px; }
.single-content { width: min(calc(100% - 48px), var(--jg-reading-width)); margin-inline: auto; padding-block: 64px 100px; }
.single-content .wp-block-post-title { margin: 0 0 32px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; letter-spacing: .015em; }
.archive-header, .search-header { width: min(calc(100% - 48px), var(--jg-gallery-width)); margin: 0 auto; padding: 72px 0 40px; }
.archive-loop { width: min(calc(100% - 48px), var(--jg-gallery-width)); margin: 0 auto; padding-bottom: 100px; }
.archive-loop .wp-block-post-template { gap: 42px 24px; }
.not-found { width: min(calc(100% - 48px), var(--jg-reading-width)); margin: 0 auto; padding: 120px 0; text-align: center; }

@media (max-width: 700px) {
	:root { --jg-page-gutter: 20px; }
	body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
	.site-header__inner { width: calc(100% - 40px); min-height: 68px; }
	.site-header__menu { font-size: 12px; }
	.site-header__menu-items { gap: 16px; }
	.work-intro { width: calc(100% - 40px); padding: 44px 0 28px; }
	.work-intro__title { font-size: clamp(30px, 8vw, 40px); }
		.work-facts__row { grid-template-columns: minmax(108px, 34%) minmax(0, 1fr); gap: 12px; padding: 10px 0; }
	.gallery-content .wp-block-post-content > .wp-block-image,
	.gallery-content .wp-block-post-content > .wp-block-gallery,
	.gallery-content > .wp-block-image,
	.gallery-content > .wp-block-gallery,
	.gallery-content > .work-gallery { width: calc(100% - 16px); }
	.work-story { width: calc(100% - 16px); padding-top: 72px; padding-bottom: 64px; }
	.work-story__copy { font-size: 16px; }
	.work-story__credits { grid-template-columns: 1fr; gap: 18px; }
	.page-content, .single-content { width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
