/* Doroszenko Portfolio Colophon – sizes and layout only.
   Font families are NOT set here: headings inherit the theme's heading font (h3, and
   data-inherit-heading-family="h5" for the caption and button), text inherits the body font. */

.jdp, .jdp-cap, .jdp-lead, .jdp-pill { --jdp-mute: #8c8c8c; }
.jdp[data-theme="dark"] { --jdp-mute: #8a8a8a; }

/* caption under the title: year · medium */
.row .col p.jdp-cap, p.jdp-cap {
	font-size: 15px; line-height: 1.4; font-weight: 400; letter-spacing: 0;
	color: var(--jdp-mute); margin: 8px 0 24px; padding: 0;
}

/* empty paragraphs the editor adds around the shortcodes */
p:empty:has(+ .jdp-cap), p:empty:has(+ .jdp-lead), p:empty:has(+ .jdp-pill), .jdp-cap + p:empty, .jdp-lead + p:empty, .jdp-pill + p:empty { display: none; }

/* lead */
.row .col p.jdp-lead, p.jdp-lead {
	font-size: 24px; line-height: 1.38; font-weight: 400;
	margin: 0 0 22px; padding: 0; color: inherit;
}

/* 3D button */
a.jdp-pill, .row .col a.jdp-pill {
	display: inline-flex; align-items: center; gap: .5em;
	font-size: 16px; line-height: 1; font-weight: 500;
	border: 1px solid currentColor; border-radius: 100px; padding: .75em 1.4em;
	color: inherit; text-decoration: none; margin: 4px 0 24px;
	transition: background-color .25s, color .25s;
}
a.jdp-pill svg { width: 1.1em; height: 1.1em; flex: none; }
a.jdp-pill:hover { opacity: .6; }

/* ------------------------------------------------------------ colophon */
.jdp {
	color: #000; margin: 40px 0 60px; padding: 0;
	clear: both; position: relative; box-sizing: border-box; max-width: 100%;
}
.jdp[data-theme="dark"] {
	color: #fff; background: #0b0b0b;
	box-shadow: 0 0 0 100vmax #0b0b0b; clip-path: inset(0 -100vmax);
	margin: 0; padding: 10px 0 60px;
}
.jdp *, .jdp *::before, .jdp *::after { box-sizing: border-box; }
.jdp a { color: inherit; }

.jdp p.jdp-ctx {
	font-size: 19px; line-height: 28px; color: var(--jdp-mute);
	margin: 0 0 28px; padding: 0; max-width: 820px;
}
.jdp p.jdp-ctx a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.jdp .jdp-colo, .jdp .jdp-tags {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px;
	border-top: 1px solid currentColor; padding-top: 22px;
}
.jdp .jdp-tags { margin-top: 26px; padding-top: 18px; font-size: 16px; line-height: 1.6; }
.jdp .jdp-tags .jdp-wide { grid-column: span 2; }

.jdp h3.jdp-h, .row .col .jdp h3.jdp-h {
	font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: 0; text-transform: none;
	margin: 0 0 14px; padding: 0; color: inherit;
}
.jdp .jdp-tags h3.jdp-h, .row .col .jdp .jdp-tags h3.jdp-h { margin-bottom: 8px; }
.jdp .jdp-sub { margin-top: 14px; }

.jdp dl { margin: 0; padding: 0; font-size: 16px; line-height: 1.5; }
.jdp dt { color: var(--jdp-mute); font-weight: 400; margin: 10px 0 0; padding: 0; float: none; width: auto; }
.jdp dt:first-child { margin-top: 0; }
.jdp dd { margin: 0; padding: 0; color: inherit; }
.jdp dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.jdp .jdp-tags a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.jdp .jdp-tags a:hover { border-bottom-color: currentColor; }
.jdp .jdp-tags i { font-style: normal; color: var(--jdp-mute); padding: 0 .35em; }

@media (max-width: 999px) {
	.jdp .jdp-colo, .jdp .jdp-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.jdp .jdp-colo, .jdp .jdp-tags { grid-template-columns: minmax(0, 1fr); }
	.jdp .jdp-tags .jdp-wide { grid-column: auto; }
	.row .col p.jdp-lead, p.jdp-lead { font-size: 21px; }
}

/* ------------------------------------------------------------ frame around title, text and colophon */
.jdp-frame {
	position: relative; box-sizing: border-box; max-width: 100%;
	border-radius: 5px; padding: 44px 40px 8px; margin: 30px 0 30px;
	overflow: hidden; isolation: isolate;
}
.wpb_wrapper > .jdp-frame, .jdp-frame { margin-bottom: 30px !important; }
.jdp-frame[data-frame="white"] { background: #fff; border: 1px solid #d7d7d7; }
.jdp-frame[data-frame="white"][data-on="grey"] { border-color: transparent; }
.jdp-frame[data-frame="grey"]  { background: #f1f1f1; }
.jdp-frame[data-frame="dark"]  { background: #161616; }
.jdp-frame[data-frame="white"], .jdp-frame[data-frame="grey"] { color: #000; }
.jdp-frame[data-frame="white"] .wpb_text_column, .jdp-frame[data-frame="grey"] .wpb_text_column,
.jdp-frame[data-frame="white"] .wpb_text_column *, .jdp-frame[data-frame="grey"] .wpb_text_column * { color: #000; }
.jdp-frame[data-frame="white"] .jdp-cap, .jdp-frame[data-frame="grey"] .jdp-cap { color: #8c8c8c !important; }
.jdp-frame .jdp, .jdp-frame .jdp[data-theme="dark"] {
	background: none; box-shadow: none; clip-path: none; margin: 28px 0 36px; padding: 0;
}
.jdp-frame > *:first-child { margin-top: 0 !important; }
.jdp-frame .row_col_wrap_12_inner, .jdp-frame .vc_row.inner_row { margin-left: 0; margin-right: 0; }
.jdp-frame img { border-radius: 3px; }
@media (max-width: 690px) {
	.jdp-frame { padding: 24px 20px 4px; margin-top: 20px; }
}

/* hero row inside the frame uses the colophon grid: image = columns 1–2, text = columns 3–4 */
.jdp-frame .wpb_row.jdp-hero { margin: 0 !important; padding: 0 !important; }
.jdp-frame .jdp-hero > .row_col_wrap_12_inner, .jdp-frame .jdp-hero > .row_col_wrap_12 {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 30px; row-gap: 30px;
	width: 100% !important; margin: 0 !important; padding: 0 !important;
}
.jdp-frame .jdp-hero > div > .wpb_column {
	width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important;
}
.jdp-frame .jdp-hero > div > .wpb_column:nth-child(1) { grid-column: 1 / 3; }
.jdp-frame .jdp-hero > div > .wpb_column:nth-child(2) { grid-column: 3 / 5; }
.jdp-frame .jdp-hero > div > .wpb_column > .vc_column-inner { padding: 0 !important; }
/* image column: narrower by the gap increase (30px grid gap + 40% = 42px), text stays on the Credits column */
.jdp-frame .jdp-hero > div > .wpb_column:nth-child(1) > .vc_column-inner { padding: 0 12px 0 0 !important; }
@media (max-width: 999px) {
	.jdp-frame .jdp-hero > .row_col_wrap_12_inner, .jdp-frame .jdp-hero > .row_col_wrap_12 { grid-template-columns: minmax(0, 1fr); }
	.jdp-frame .jdp-hero > div > .wpb_column:nth-child(1), .jdp-frame .jdp-hero > div > .wpb_column:nth-child(2) { grid-column: auto; }
	.jdp-frame .jdp-hero > div > .wpb_column:nth-child(1) > .vc_column-inner { padding: 0 !important; }
}

/* context sentence moved under the description: same typography as the description */
p.jdp-ctx.jdp-ctx-moved, .row .col p.jdp-ctx.jdp-ctx-moved {
	font-size: 19px; line-height: 28px; font-weight: 400; color: inherit;
	margin: 16px 0 0; padding: 0; max-width: none;
}
.jdp-ctx-moved a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.jdp-frame[data-frame="white"] .jdp-ctx-moved, .jdp-frame[data-frame="grey"] .jdp-ctx-moved { color: #000; }

/* full-width rows inside the frame: keep them within the frame padding, take the frame colour */
.jdp-frame > .wpb_row.full-width-content {
	margin-left: 0 !important; margin-right: 0 !important; left: auto !important; right: auto !important;
	width: auto !important; max-width: 100% !important;
}
.jdp-frame .row-bg-wrap { display: none !important; }

/* single-column rows inside the frame (e.g. a separate title row): no side gutters, so the content starts on the grid edge */
.jdp-frame .wpb_row.inner_row:not(.jdp-hero) > .row_col_wrap_12_inner { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
.jdp-frame .wpb_row:not(.jdp-hero) > div > .wpb_column:only-child { padding-left: 0 !important; padding-right: 0 !important; }
.jdp-frame .wpb_row:not(.jdp-hero) > div > .wpb_column:only-child > .vc_column-inner { padding-left: 0 !important; padding-right: 0 !important; }

/* rows and columns inside the frame take the frame colour (Salient row/column colours would show as boxes) */
.jdp-frame .wpb_row.has-row-bg-color { background-color: transparent !important; }
.jdp-frame .row-bg, .jdp-frame .column-bg-overlay { background-color: transparent !important; }
.jdp-frame[data-frame="dark"] .nectar-cta:not(:hover) .link_wrap { background-color: transparent !important; }
