/**
 * Project presentation styles.
 *
 * Component styles will be added here as the visual system is developed.
 */

.koleda-mosaic-root {
	margin: clamp(2rem, 6vw, 7rem) auto;
	width: min(92vw, 1320px);
}

body.koleda-project--mosaic .rey-siteContainer {
	max-width: none;
	padding-inline: 0;
}

body.koleda-project--mosaic .rey-siteMain-inner,
body.koleda-project--mosaic .rey-postItem,
body.koleda-project--mosaic .rey-postContent {
	max-width: none;
	width: 100%;
}

body.koleda-project--mosaic .rey-postHeader,
body.koleda-project--mosaic .rey-postContent > :not(.koleda-mosaic-root) {
	margin-inline: auto;
	width: min(92vw, 1320px);
}

.koleda-mosaic {
	display: block;
}

@media (min-width: 1441px) {
	.koleda-mosaic-root { width: min(calc(84.375vw + 105px), 1725px); }
}

@media (min-width: 1921px) {
	.koleda-mosaic-root { width: min(calc(74.21875vw + 300px), 2200px); }
}

@media (min-width: 2561px) {
	.koleda-mosaic-root { width: min(calc(46.875vw + 1000px), 2800px); }
}

.koleda-mosaic__block {
	aspect-ratio: var(--block-ratio);
	margin-block: clamp(1rem, 2.4vw, 2.75rem);
	position: relative;
	width: 100%;
}

.koleda-mosaic__item {
	margin: 0;
	position: absolute;
}

.koleda-mosaic__item a,
.koleda-mosaic__image {
	display: block;
	height: 100%;
	width: 100%;
}

.koleda-mosaic__image {
	/* Geometry already matches the image; no cover/crop fallback is allowed. */
	object-fit: contain;
}

.koleda-mosaic__debug {
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font: 11px/1.35 monospace;
	left: 0;
	max-width: 100%;
	padding: 0.45rem 0.6rem;
	position: absolute;
	top: 0;
	z-index: 3;
}

.koleda-mosaic-runtime-debug {
	background: rgba(0, 0, 0, 0.88);
	bottom: 12px;
	color: #fff;
	font: 12px/1.45 monospace;
	left: 12px;
	margin: 0;
	max-width: calc(100vw - 24px);
	padding: 0.65rem 0.8rem;
	position: fixed;
	white-space: pre-wrap;
	z-index: 99999;
}

@media (max-width: 1023px) {
	.koleda-mosaic-root { width: min(92vw, 1100px); }
}

@media (max-width: 767px) {
	.koleda-mosaic-root { width: min(calc(100vw - 24px), 720px); }
	.koleda-mosaic__block { margin-block: 0.8rem; }
}

/* Portfolio views: full frames, editorial rhythm, native links without JS. */
.koleda-portfolio {
	width: min(92vw, 1600px);
	margin: 0 auto;
	padding-block: clamp(1.5rem, 4vw, 4rem) clamp(3rem, 8vw, 8rem);
	color: #20201e;
}
.koleda-portfolio a { color: inherit; }
.koleda-portfolio a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.koleda-portfolio-nav, .koleda-collections { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.koleda-portfolio-nav { font-size: .8rem; letter-spacing: .14em; }
.koleda-portfolio-nav a, .koleda-collections a { padding-block: .65rem; text-decoration: none; border-bottom: 1px solid transparent; }
.koleda-portfolio-nav a[aria-current], .koleda-collections a[aria-current],
.koleda-portfolio-nav a:hover, .koleda-collections a:hover { border-color: currentColor; }
.koleda-portfolio-heading { margin-block: clamp(2.5rem, 6vw, 6rem); max-width: 1050px; }
.koleda-eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.koleda-portfolio-heading h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.8rem, 6vw, 7rem); line-height: 1.06; letter-spacing: -.04em; overflow-wrap: anywhere; }
.koleda-portfolio-heading p:not(.koleda-eyebrow) { max-width: 650px; line-height: 1.7; }
.koleda-collections { margin-bottom: 3rem; font-size: .9rem; }
.koleda-portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 4vw, 5rem); align-items: start; }
.koleda-portfolio-card a { display: block; text-decoration: none; }
.koleda-portfolio-image { display: block; width: 100%; height: auto; object-fit: contain; }
.koleda-portfolio-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.koleda-portfolio-caption h2 { font-size: 1.05rem; font-weight: 400; margin: 0; line-height: 1.4; }
.koleda-portfolio-caption span { font-size: .8rem; }
.koleda-portfolio-card > p { max-width: 34rem; font-size: .9rem; line-height: 1.6; margin-top: .65rem; }
.koleda-portfolio-empty { padding-block: 2rem 5rem; }
.koleda-portfolio .navigation { margin-top: 4rem; }
.koleda-artwork-image { width: min(100%, 1250px); margin: 0 auto; }
.koleda-artwork-image img { max-height: 85vh; width: 100%; object-fit: contain; }
.koleda-artwork-copy { max-width: 700px; margin: 3rem auto 0; line-height: 1.7; }
.koleda-related { margin-top: 3rem; border-top: 1px solid #ccc; padding-top: 2rem; }
.koleda-related h2 { font-size: 1rem; font-weight: 400; }
.koleda-related a { display: block; padding-block: .6rem; }
.koleda-project-heading { padding-bottom: 0; }
.koleda-project-heading .koleda-portfolio-heading { margin-bottom: 2rem; }
.koleda-project-content > :not(.koleda-mosaic-root) { width: min(92vw, 700px); margin-inline: auto; }
.koleda-project-content .koleda-mosaic-root { margin-top: 2rem; }
.koleda-project-return { padding-top: 0; }
@media (max-width: 767px) {
	.koleda-portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
	.koleda-portfolio-heading { margin-block: 2.5rem; }
}

/* Portfolio: Rey gallery and inherited theme typography, with full image frames. */
.koleda-selection {
	--gallery-height: clamp(320px, 60vh, 720px);
	width: calc(100% - clamp(32px, 8vw, 128px));
	max-width: 2400px;
	padding-top: clamp(20px, 3vw, 36px);
	color: inherit;
}
.koleda-selection-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem 3rem;
	margin: clamp(24px, 3vw, 44px) 0 20px;
}
.koleda-selection-heading h1 {
	font-family: inherit;
	font-size: clamp(30px, 3.2vw, 48px);
	font-weight: 500;
	letter-spacing: -.04em;
	line-height: 1.1;
	margin: 0;
}
.koleda-selection-heading > p, .koleda-selection-heading > div {
	font-size: 13px;
	line-height: 1.5;
	opacity: .65;
	margin: 0;
	max-width: 36rem;
}
.koleda-selection .koleda-collections { margin-bottom: 16px; gap: 12px 24px; }
.koleda-selection-gallery.splide { height: auto; visibility: visible; }
.koleda-selection-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid currentColor;
	padding-block: 10px 16px;
}
.koleda-selection-position { margin: 0; font-size: 11px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.koleda-selection-gallery .splide__arrows { display: none; gap: 8px; }
.koleda-selection-gallery.is-initialized .splide__arrows { display: flex; }
.koleda-selection-gallery .splide__arrow {
	position: static;
	transform: none;
	width: 48px;
	height: 40px;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: inherit;
	opacity: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.koleda-selection-gallery .splide__arrow:disabled { opacity: .25; cursor: default; }
.koleda-selection-gallery .splide__arrow:not(:disabled):hover { border-color: currentColor; }
.koleda-selection-gallery .splide__arrow svg { transform: none; width: 32px; height: 20px; fill: none; }
.koleda-selection-gallery .splide__arrow:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.koleda-selection-gallery .splide__track { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
.koleda-selection-gallery.is-initialized .splide__track { overflow: hidden; scroll-snap-type: none; }
.koleda-selection-gallery .splide__list {
	height: auto;
	display: flex;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.koleda-selection-gallery.is-initialized .splide__list { gap: 0; }
.koleda-selection-slide.splide__slide {
	height: auto;
	width: min(calc(var(--photo-ratio) * var(--gallery-height)), 86vw);
	flex: 0 0 auto;
	scroll-snap-align: start;
}
.koleda-selection-link { display: block; color: inherit; text-decoration: none; }
.koleda-selection-photo { height: var(--gallery-height); display: flex; align-items: center; justify-content: center; background: rgba(127,127,127,.035); }
.koleda-selection-photo .koleda-portfolio-image { width: 100%; height: 100%; object-fit: contain; }
.koleda-selection-caption { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; padding-bottom: 5px; }
.koleda-selection-caption h2 { font: inherit; font-size: 12px; font-weight: 400; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.koleda-selection-number { font-size: 10px; opacity: .5; font-variant-numeric: tabular-nums; }
.koleda-selection-open { margin-left: auto; font-size: 18px; line-height: 1; }
@media (max-width: 767px) {
	.koleda-selection { --gallery-height: clamp(300px, 54svh, 540px); }
	.koleda-selection-heading { display: block; margin-top: 28px; }
	.koleda-selection-heading > p, .koleda-selection-heading > div { margin-top: 10px; }
	.koleda-selection-gallery .splide__list { gap: 16px; }
	.koleda-selection-gallery.is-initialized .splide__list { gap: 0; }
	.koleda-selection-slide.splide__slide { width: min(calc(var(--photo-ratio) * var(--gallery-height)), calc(100vw - 32px)); }
}

/* Small functional offer list; the final COLLECT design is a separate increment. */
.koleda-artwork-offers { margin-block: 3rem; }
.koleda-artwork-offers ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; }
.koleda-artwork-offer { border-top: 1px solid currentColor; padding-top: 1rem; overflow-wrap: anywhere; }
.koleda-artwork-offer h3 { font-size: 1.1rem; }
.koleda-offer-price { margin-block: 1rem; }

.koleda-offer-details { margin-block: 1.5rem; }
.koleda-offer-details h2 { font-size: 1.15rem; }
.koleda-offer-details dl > div { display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(0, 2fr); gap: .75rem; margin-block: .4rem; overflow-wrap: anywhere; }
.koleda-offer-details dt { font-weight: 600; }
.koleda-offer-details dd { margin: 0; }

/* Contact acquisition stays readable beside native purchase/offer details. */
.koleda-offer-contact { margin-block: 1.25rem; }
.koleda-offer-contact p { max-width: 42rem; overflow-wrap: anywhere; }
.koleda-contact-button { white-space: normal; max-width: 100%; text-align: center; }
.koleda-contact-button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Collect keeps native product query/pagination, with a clear full-frame offer overview. */
.koleda-collect-intro { margin-bottom: 2.5rem; max-width: 60rem; }
.koleda-collect-intro > p { max-width: 44rem; line-height: 1.65; margin-top: 1rem; }
.koleda-collect-advisory { font-size: .85rem; opacity: .7; }
.koleda-catalog-details { margin-top: 1rem; font-size: .85rem; line-height: 1.5; }
.koleda-catalog-details p { margin-block: .3rem; overflow-wrap: anywhere; }
.koleda-catalog-mode_label { font-weight: 600; }
.koleda-catalog-notice { opacity: .75; }
.koleda-catalog-action { display: inline-block; padding-block: .75rem; color: inherit; }
.koleda-catalog-action:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.koleda-collect .rey-productThumbnail { height: auto; aspect-ratio: auto; }
.koleda-collect img.koleda-catalog-image { width: 100%; height: auto !important; object-fit: contain; }

.koleda-collect-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-block: 1.5rem 2.5rem; }
.koleda-collect-filters label { display: block; flex: 1 1 13rem; max-width: 25rem; font-size: .85rem; }
.koleda-collect-filters label span { display: block; margin-bottom: .4rem; }
.koleda-collect-filters select { width: 100%; max-width: 100%; }
.koleda-collect-filters button { white-space: normal; }
.koleda-collect-clear { padding-block: .65rem; color: inherit; }
.koleda-collect-filter-error { line-height: 1.6; }

.koleda-offer-artworks { margin: 1rem 0; overflow-wrap: anywhere; }
.koleda-offer-artworks p { margin-bottom: .35rem; }
.koleda-offer-artworks ul { padding-left: 1.15rem; }
.koleda-offer-artworks a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* Selected public prose; preserve lines without rendering HTML or private history. */
.koleda-public-provenance{margin:1.5rem 0;padding-block:1rem;border-top:1px solid currentColor}.koleda-public-provenance h2{font-size:1.1rem}.koleda-public-provenance-note{white-space:pre-line;overflow-wrap:anywhere;line-height:1.65}

.koleda-provenance-offer-links{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;list-style:none;margin:0 0 1.5rem;padding:0}.koleda-provenance-offer-links a{overflow-wrap:anywhere}.koleda-artwork-provenance-fragment+.koleda-artwork-provenance-fragment{margin-top:1.5rem}


/* Native Journal / About — explicit content, full-frame public images. */
.koleda-editorial-copy { max-width: 760px; margin: 0 auto 4rem; line-height: 1.85; overflow-wrap: anywhere; }
.koleda-editorial-copy :where(img,video,iframe) { max-width: 100%; }
.koleda-editorial-copy img { height: auto; object-fit: contain; }
.koleda-journal-intro { max-width: 760px; margin-bottom: 2.5rem; }
.koleda-journal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3rem 2rem; }
.koleda-journal-card { min-width: 0; overflow-wrap: anywhere; }
.koleda-journal-card h2 { margin-top: .6rem; font-size: clamp(1.5rem,3vw,2.25rem); }
.koleda-journal-card time,.koleda-journal-story time { font-size: .85rem; color: #666; }
.koleda-journal-image { display: block; margin-bottom: 1.2rem; }
.koleda-journal-image img,.koleda-journal-hero img { width: 100%; height: auto; object-fit: contain; }
.koleda-journal-hero { margin: 0 0 3rem; }
.koleda-journal-excerpt { line-height: 1.7; }
.koleda-journal-pagination { display: flex; flex-wrap: wrap; gap: 1rem; margin: 3rem 0; }
.koleda-journal-pagination .current { font-weight: 700; }
@media(max-width:767px) { .koleda-journal-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* One shared, always-visible navigation. No script-dependent mobile drawer. */
.koleda-site-navigation { width:92%; max-width:1760px; margin-inline:auto; }
.koleda-site-nav ul { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem 2rem; list-style:none; margin:0; padding:0; }
.koleda-site-nav li { margin:0; padding:0; }
.koleda-site-nav a { display:block; min-height:44px; padding:12px 0; color:inherit; font-size:.8rem; letter-spacing:.12em; line-height:20px; text-decoration:none; border-bottom:1px solid transparent; }
.koleda-site-nav a[aria-current], .koleda-site-nav a:hover { border-bottom-color:currentColor; }
.koleda-site-nav a:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.koleda-site-nav.koleda-portfolio-nav { display:block; padding-block:1rem; }
.koleda-footer-nav { padding-block:1.5rem; }
.koleda-navigation .header--separator-bar { display:none; }
@media(max-width:767px) { .koleda-site-nav ul { gap:.25rem 1.25rem; } .koleda-site-nav a { font-size:.75rem; letter-spacing:.1em; } .koleda-site-nav.koleda-portfolio-nav { padding-block:.5rem; } }

/* Owner requirement: a whole crop-free composition fits one viewport, not merely its width. */
.koleda-project-content .koleda-mosaic__block,
.koleda-journal-photographs .koleda-mosaic__block{
 --koleda-fit-height:var(--koleda-project-view-height,calc(100svh - 96px));
 width:min(100%,calc(var(--koleda-fit-height) * var(--block-ratio)));
 margin-inline:auto;
 scroll-margin-top:var(--koleda-project-sticky-offset,16px);
}
.koleda-project-content .koleda-mosaic__block--opening{--koleda-fit-height:var(--koleda-project-opening-height,var(--koleda-project-view-height,calc(100svh - 96px)))}

.koleda-project-heading.koleda-portfolio{padding-top:24px}
.koleda-project-heading .koleda-portfolio-heading{margin-block:24px 20px}
.koleda-project-heading .koleda-portfolio-heading h1{font-size:clamp(28px,3.3vw,48px);line-height:1.15;max-width:1000px}
.koleda-project-content .koleda-mosaic-root{margin-top:20px}

/* Journal discussion: readable native forms, no external avatars. */
.koleda-journal-comments{max-width:780px;margin:3rem auto;padding-top:2rem;border-top:1px solid #ccc;overflow-wrap:anywhere}
.koleda-journal-comments p{line-height:1.6}.koleda-comment-list{padding:0;list-style:none}.koleda-comment{padding:1.2rem 0;border-bottom:1px solid #ddd}.koleda-comment time{font-size:.85rem;margin-left:.6rem}.koleda-journal-comments textarea{display:block;width:100%;min-height:130px;margin:.6rem 0}.koleda-journal-comments :focus-visible{outline:2px solid currentColor;outline-offset:3px}.koleda-comment-pending{font-style:italic}

.koleda-journal-comments a{text-decoration:underline;text-underline-offset:.18em}

/* Portfolio shares Project Mosaic geometry; keep the archive inside its own container. */
.koleda-portfolio--mosaic{width:96vw;max-width:none}
.koleda-portfolio--mosaic .koleda-selection-heading,.koleda-portfolio--mosaic .koleda-collections{max-width:1600px;margin-inline:auto}
.koleda-portfolio--mosaic .koleda-mosaic-root{width:100%;margin:20px auto 40px}
.koleda-portfolio--mosaic .koleda-mosaic__item a:focus-visible{outline:3px solid currentColor;outline-offset:4px}

/* Portfolio scrolls vertically at full width; viewport fitting belongs to Projects. */
.koleda-portfolio--mosaic .koleda-mosaic__block{width:min(100%,calc(var(--koleda-project-view-height,calc(100svh - 96px)) / var(--block-image-height,1)));margin-inline:auto}

/* Collect: a photograph card leads to its unified acquisition page. */
.koleda-collect-photograph .koleda-photograph-link{display:block;color:inherit;text-decoration:none}
.koleda-collect-photograph .koleda-catalog-image{display:block;width:100%;height:auto;object-fit:contain}
.koleda-collect-photograph .woocommerce-loop-product__title{margin:1rem 0 .5rem;font-size:1.1rem;line-height:1.4}
.koleda-collect-photograph .price{margin:.5rem 0}
.koleda-collect-photograph a:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* L01a: native purchased Rey header shell, compact wordmark and its real mobile panel. */
.koleda-navigation .rey-siteHeader-container{width:96vw;max-width:none;padding-inline:0;--header-nav-x-spacing:clamp(.65rem,1.1vw,1.5rem);--v-spacing:24px}
.koleda-navigation .rey-logoTitle{font-size:clamp(21px,1.4vw,28px);line-height:1.15;font-weight:600;letter-spacing:-.045em}
.koleda-navigation .rey-logoDescription{display:none}
.koleda-navigation .rey-siteHeader-row{min-height:84px;gap:24px}
.koleda-navigation .rey-mainNavigation--desktop{justify-content:flex-end;flex-wrap:nowrap;gap:0}
.koleda-navigation .rey-mainMenu--desktop>.menu-item>a{font-size:12px;letter-spacing:.12em;font-weight:500;padding-block:10px}
.koleda-navigation .rey-siteHeader-row .rey-logoWrapper{flex-shrink:0;max-width:40%}
.koleda-navigation .rey-mobileNav-header .rey-logoTitle{font-size:23px}
.koleda-navigation .koleda-native-navigation a:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.koleda-navigation .rey-siteFooter-container,.koleda-navigation .koleda-footer-nav{width:96vw;max-width:none;margin-inline:auto}
.koleda-navigation-fallback .koleda-site-nav ul{justify-content:flex-start}
@media(min-width:1025px){.koleda-navigation-fallback{display:none}}
@media(max-width:1024px){
 .koleda-navigation .rey-siteHeader-row{min-height:72px;gap:12px}
 .koleda-navigation .rey-siteHeader-container{--v-spacing:16px;width:calc(100vw - 32px)}
 .koleda-navigation .rey-siteHeader-row .rey-logoWrapper{max-width:65%}
 .koleda-navigation .rey-mobileNav .rey-mainMenu>.menu-item>a{font-size:clamp(20px,5vw,30px);line-height:1.4;padding-block:12px;letter-spacing:.06em}
 .koleda-navigation .rey-mobileNav-header{padding-bottom:24px}
 .rey-no-js .rey-mainNavigation-mobileBtn{display:none}
}

/* P09b: language is independent of the currency controls; native POST also works without JS. */
.koleda-language-switch{display:flex;align-items:center;gap:2px;flex-shrink:0;margin:0;color:inherit}.koleda-language-switch button{appearance:none;background:transparent;color:inherit;border:0;border-bottom:1px solid transparent;border-radius:0;min-width:40px;min-height:44px;padding:8px;font:11px/1.2 Arial,sans-serif;letter-spacing:.06em}.koleda-language-switch button[aria-pressed="true"]{border-bottom-color:currentColor}.koleda-language-switch button:focus-visible{outline:2px solid currentColor;outline-offset:2px}.koleda-language-footer{width:96vw;margin:12px auto;justify-content:flex-end}@media(max-width:767px){.rey-siteHeader-row:has(.koleda-language-header){flex-wrap:wrap}.koleda-language-header{order:100;flex:1 0 100%;justify-content:flex-end;margin-top:-12px}.koleda-language-header button{min-height:40px}}

/* Journal reuses Project geometry and viewport fitting inside the article's own width. */
.koleda-journal-story .koleda-journal-photographs{display:block;max-width:100%;margin-block:2rem;padding:clamp(12px,2vw,28px);background:#111310;color:#eceee7}
.koleda-journal-photographs>.koleda-mosaic-root{width:100%;max-width:100%;margin:20px auto 0}
.koleda-journal-photographs .koleda-mosaic__item a:focus-visible{outline:2px solid currentColor;outline-offset:3px}

.koleda-journal-photographs .koleda-mosaic__item{margin:0;padding:0}
.koleda-journal-photographs .koleda-mosaic__image{width:100%;height:100%;max-height:none;object-fit:contain}

/* Wide Project canvases keep portrait runs in broad compositions instead of narrow tall islands. */
@media(min-width:2561px){.koleda-project-content .koleda-mosaic-root{width:min(94vw,3400px)}}
