/*
 * Styles for pages built from native WordPress blocks (Bio and any page converted the same way).
 * Loaded on the website AND inside the block editor, so editors see the real design while they type.
 * Every rule is keyed to a class that is stored on the block ("Additional CSS class(es)"), never to inline styles.
 */

/* ---------- Page bands (full-width sections) ---------- */
.sg-band { position: relative; box-sizing: border-box; width: 100%; max-width: none; margin: 0; background: #fff; color: #292929; padding: clamp(32px, 4vw, 56px) clamp(24px, 6vw, 96px); font-family: Jost, Helvetica, sans-serif; }
.sg-band .wp-block-group { margin-left: 0; margin-right: 0; }
.sg-band .sg-wrap { box-sizing: border-box; max-width: 1320px; margin: 0 auto; }
/* Groups wrap their blocks in an extra container; let the group itself lay its blocks out. */
.sg-band.wp-block-group > .wp-block-group__inner-container, .sg-band .wp-block-group > .wp-block-group__inner-container { display: contents; }
.sg-band :is(h1, h2, p, figure, blockquote) { margin-block-start: 0; margin-inline: 0; }
.sg-band img { max-width: 100%; }

/* ---------- Page heading (title + one-line description) ---------- */
.sg-band .page-heading { max-width: 64ch; margin: 0 0 48px; }
.sg-band .page-heading h1 { font: 300 clamp(36px, 5vw, 64px)/1.1 'Cormorant Garamond', Georgia, serif; margin: 0 0 24px; color: #292929; }
.sg-band .page-heading p { font-size: 16px; line-height: 1.8; color: #625E58; margin: 0; }
.sg-band .breadcrumbs { margin-bottom: 24px; }

/* ---------- Small text styles ---------- */
.sg-band .sg-eyebrow { margin: 0 0 18px; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: #6E6963; line-height: 1.4; }
.sg-band .sg-section-heading { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 300; line-height: 1.12; color: #292929; }

/* ---------- Artist introduction ---------- */
.sg-artist { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(34px, 5.5vw, 86px); align-items: center; }
.sg-artist .sg-artist-portrait { margin: 0; }
.sg-artist .sg-artist-portrait img { display: block; width: 100%; height: auto; object-fit: contain; }
.sg-artist__text { display: flex; flex-direction: column; gap: 26px; max-width: 50ch; }
.sg-artist__text :is(p, blockquote, figure) { margin: 0; }
.sg-artist__text .sg-eyebrow { margin: 0; }
.sg-artist__text .sg-pullquote { margin: 0; padding: 0; border: 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic; font-size: clamp(23px, 2.7vw, 36px); line-height: 1.24; color: #292929; }
.sg-artist__text .sg-pullquote p { margin: 0; font: inherit; line-height: inherit; color: inherit; }
.sg-artist__text p { font-size: 15px; line-height: 1.9; color: #4E4842; margin: 0; }
.sg-artist__text .sg-eyebrow { font-size: 10.5px; line-height: 1.4; color: #6E6963; }
.sg-facts { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.sg-facts .sg-fact { display: flex; gap: 20px; padding: 15px 0; margin: 0; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.sg-artist__text .sg-facts .sg-fact p { margin: 0; font-size: inherit; letter-spacing: inherit; line-height: 1.4; color: #292929; }
.sg-artist__text .sg-facts .sg-fact p:first-child { flex: 0 0 9ch; color: #6E6963; }

/* ---------- Studio ---------- */
.sg-studio-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.sg-studio-head :is(.wp-block-group, h2) { margin-top: 0; }
.sg-studio-head .sg-eyebrow { font-size: 10px; letter-spacing: .28em; margin: 0 0 18px; }
.sg-studio-text { max-width: 64ch; font-size: 14px; line-height: 1.85; color: #6E6963; }
.sg-studio-text p { margin: 0 0 14px; font-size: inherit; line-height: inherit; color: inherit; }
.sg-studio-text p:last-child { margin-bottom: 0; }

/* ---------- Photo grids (Gallery blocks) ---------- */
.wp-block-gallery.has-nested-images.sg-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin: 0; padding: 0; }
.wp-block-gallery.has-nested-images.sg-gallery--eye { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.wp-block-gallery.has-nested-images.sg-gallery figure.wp-block-image:not(#individual-image) { display: block; width: auto; max-width: 100%; margin: 0; flex: none; position: relative; }
.wp-block-gallery.has-nested-images.sg-gallery figure.wp-block-image:not(#individual-image) img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; flex: none; }
.wp-block-gallery.has-nested-images.sg-gallery figure.wp-block-image:not(#individual-image) figcaption { position: static; display: block; max-height: none; overflow: visible; padding: 0; margin: 14px 0 0; background: none; color: #6E6963; font-size: 11px; line-height: 1.6; text-align: left; text-shadow: none; -webkit-mask-image: none; mask-image: none; }
.wp-block-gallery.has-nested-images.sg-gallery--eye figure.wp-block-image:not(#individual-image) figcaption { margin-top: 18px; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: #292929; }
.wp-block-gallery.has-nested-images.sg-gallery figure.wp-block-image:not(#individual-image)::before, .wp-block-gallery.has-nested-images.sg-gallery figure.wp-block-image:not(#individual-image)::after { content: none; display: none; }
/* Two portrait photographs are shown as a 3:2 crop with a chosen focus (class set on the image block). */
.wp-block-gallery.has-nested-images.sg-gallery figure.wp-block-image.sg-focus-38:not(#individual-image) img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 38%; }
.wp-block-gallery.has-nested-images.sg-gallery figure.wp-block-image.sg-focus-35:not(#individual-image) img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 35%; }

/* ---------- Questions and contact invitation (shared look with the rest of the site) ---------- */
.sg-band .faq-section .faq-intro { margin: 16px 0; font-size: 16px; line-height: 1.8; color: #625E58; max-width: 52ch; }
.sg-band .faq-section .sg-eyebrow { font-size: 10px; letter-spacing: .2em; }
.sg-band .faq-section .sg-section-heading { margin: 0; }
.sg-band .sg-quiet-link { margin: 0; font-size: 12px; }
.sg-band .sg-quiet-link a { text-decoration: underline; text-underline-offset: 5px; color: inherit; }
.sg-band .faq-list details { margin: 0; }
.sg-band .contact-invite-text :is(h2, p) { margin-top: 0; }
.sg-band.contact-invite .sg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sg-band.contact-invite { border-top: 1px solid #e5e5e5; }
.sg-band.contact-invite .contact-invite-text p { margin: 12px 0 0; line-height: 1.7; font-size: 14px; color: #625E58; }
.sg-band.contact-invite .wp-block-buttons { margin: 0; }
.sg-band.contact-invite .wp-block-button { margin: 0; }
.sg-band.contact-invite .wp-block-button__link { display: block; flex-shrink: 0; text-align: center; min-height: 48px; box-sizing: border-box; padding: 15px 28px; font: inherit; font-size: 13px; line-height: 1.4; border: 1px solid #aaa; border-radius: 0; background: #fff; color: #292929; text-decoration: none; }
.sg-band.contact-invite .wp-block-button__link:hover { background: #f2f2f2; border-color: #292929; color: #292929; }

/* Questions layout (also shown while editing) */
.sg-band .faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-top: 32px; border-top: 1px solid #D9D3C9; }
.sg-band .faq-list details { border-bottom: 1px solid #e5e5e5; }
.sg-band .faq-list summary { padding: 22px 30px 22px 0; font-size: 16px; line-height: 1.6; cursor: pointer; }
.sg-band .faq-list details p { margin: 0 0 24px; font-size: 15px; line-height: 1.85; color: #625E58; max-width: 60ch; }
@media (max-width: 760px) { .sg-band .faq-section { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .sg-artist { grid-template-columns: minmax(0, 1fr); }
  .sg-artist__text { max-width: 60ch; }
  .wp-block-gallery.has-nested-images.sg-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
}
@media (max-width: 600px) {
  .sg-band.contact-invite .sg-wrap { flex-direction: column; align-items: stretch; gap: 20px; }
}
@media (max-width: 540px) {
  .wp-block-gallery.has-nested-images.sg-gallery, .wp-block-gallery.has-nested-images.sg-gallery--eye { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- Automatic blocks (editor placeholder) ---------- */
.sg-auto-block { padding: 14px 18px; border: 1px dashed #b9b3aa; background: #f7f5f1; color: #4E4842; font: 400 13px/1.5 Jost, Helvetica, sans-serif; }
.sg-auto-block strong { font-weight: 500; }

/* ---------- Buttons on every block page ---------- */
.sg-band .wp-block-buttons { margin: 0; }
.sg-band .wp-block-button { margin: 0; }
.sg-band .wp-block-button__link { display: inline-block; box-sizing: border-box; min-height: 48px; padding: 15px 28px; font: inherit; font-size: 13px; line-height: 1.4; border: 1px solid #aaa; border-radius: 0; background: #fff; color: #292929; text-decoration: none; text-align: center; }
.sg-band .wp-block-button__link:hover { background: #f2f2f2; border-color: #292929; color: #292929; }
.sg-band .actions.wp-block-buttons { margin: 32px 0; }

/* ---------- Artwork pages ---------- */
.sg-band .detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 48px; align-items: start; }
.sg-band .detail .wp-block-image { margin: 0; }
.sg-band .detail .wp-block-image img, .sg-band .detail-extra .wp-block-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.sg-band .sg-hint { margin: 12px 0 0; font-size: 12px; color: #625E58; }
.sg-band .sg-hint a { text-decoration: underline; text-underline-offset: 5px; }
.sg-band .sg-medium { margin: 0 0 16px; font-size: 13px; line-height: 1.6; }
.sg-band .sg-dl { display: grid; grid-template-columns: 100px 1fr; gap: 16px; font-size: 14px; line-height: 1.6; margin: 16px 0 0; }
.sg-band .sg-dl p { margin: 0; }
.sg-band .sg-dl .sg-dt { color: #625E58; }
.sg-band .detail h1 { font: 300 clamp(36px, 5vw, 64px)/1.1 'Cormorant Garamond', Georgia, serif; margin: 0 0 24px; }
.sg-band .detail-extra { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; width: calc((100% - 48px) * 2 / 3); margin-top: 32px; }
.sg-band .detail-extra .wp-block-image figcaption { margin-top: 12px; font-size: 11px; color: #6E6963; }
.sg-band .actions:not(.wp-block-buttons) { display: flex; flex-wrap: wrap; gap: 24px; margin: 32px 0; }
.sg-band .actions:not(.wp-block-buttons) p { margin: 0; font-size: 14px; }
.sg-band .actions:not(.wp-block-buttons) a { text-decoration: underline; text-underline-offset: 5px; color: inherit; }
@media (max-width: 760px) { .sg-band .detail { grid-template-columns: minmax(0, 1fr); gap: 32px; } .sg-band .detail-extra { width: 100%; } }

/* ---------- Artwork strip (linked photographs) ---------- */
.wp-block-gallery.has-nested-images.sg-gallery--strip { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 28px); }
.wp-block-gallery.has-nested-images.sg-gallery--strip figure.wp-block-image:not(#individual-image) img { aspect-ratio: 3 / 2; object-fit: cover; }
.sg-art-strip .sg-quiet-link { margin: 28px 0 0; }

/* ---------- Homepage ---------- */
.sg-section-heading { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 300; line-height: 1.12; color: #292929; }
.collection-heading .sg-section-heading { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; font-weight: 400; letter-spacing: 0; text-wrap: balance; }
.gallery-section .wp-block-group > .wp-block-group__inner-container, .collection-section .wp-block-group > .wp-block-group__inner-container { display: contents; }
.gallery-section .gallery-heading p, .collection-section .collection-heading p { margin-block: 0; }
.gallery-section .gallery-heading p.eyebrow, .collection-section .collection-heading p.eyebrow { margin-bottom: 18px; }
.sg-current { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.sg-current__media { margin: 0; }
.sg-current__media .wp-block-image { margin: 0; }
.sg-current__media img { display: block; width: 100%; height: auto; }
.sg-current__text { display: flex; flex-direction: column; gap: 20px; max-width: 46ch; }
.sg-current__text .sg-eyebrow { margin: 0; letter-spacing: .26em; }
.sg-current__text > p:not(.sg-eyebrow), .sg-current__text p:not(.sg-eyebrow) { margin: 0; font-size: 15px; line-height: 1.85; color: #4E4842; text-wrap: pretty; }
.sg-band .sg-current__title { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; }
.sg-current__title em { font-weight: 300; }
.sg-current__actions.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; align-items: center; }
.sg-current .wp-block-button.sg-ghost .wp-block-button__link { padding: 14px 32px; min-height: 0; border: 1px solid rgba(25, 24, 23, .3); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.sg-current .wp-block-button.sg-rule .wp-block-button__link { padding: 0 0 5px; min-height: 0; border: 0; border-bottom: 1px solid rgba(25, 24, 23, .3); background: none; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; }
@media (max-width: 800px) { .sg-current { grid-template-columns: minmax(0, 1fr); } .sg-current__text { max-width: 60ch; } }
.sg-band .artwork-contact-links { margin-top: 16px; }
.sg-band .artwork-contact-links p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #625E58; }

/* ---------- Blog: archive page (blocks) and articles ---------- */
.sg-band .sg-journal-list { margin-top: 8px; }
.sg-band .sg-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.sg-band .sg-post-card { min-width: 0; border-top: 1px solid #e5e5e5; padding-top: 24px; }
.sg-band .sg-post-card .sg-post-image { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin: 0 0 24px; background: #f4f2ee; }
.sg-band .sg-post-card .sg-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .5s ease; }
.sg-band .sg-post-card .sg-post-image:hover img { transform: scale(1.02); }
.sg-band .sg-post-card .eyebrow { margin: 0; }
.sg-band .sg-post-card h2 { margin: 16px 0; font: 300 clamp(28px, 2.6vw, 36px)/1.15 'Cormorant Garamond', Georgia, serif; }
.sg-band .sg-post-card p { margin: 16px 0; line-height: 1.8; }
.sg-band .sg-post-card .eyebrow + h2 { margin-top: 12px; }
.sg-band .sg-journal-list .nav-links { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; margin-top: 48px; }
.sg-band .sg-journal-list .archive-empty { margin: 0; padding: 8px 0 0; font-size: 16px; line-height: 1.7; }
@media (max-width: 900px) { .sg-band .sg-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sg-band .sg-post-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sg-band .sg-post-card .sg-post-image img { transition: none; } .sg-band .sg-post-card .sg-post-image:hover img { transform: none; } }

.sg-band .sg-article { max-width: 820px; margin: 0 auto; }
.sg-band .sg-article .page-heading { margin-bottom: 32px; }
.sg-band .sg-article .page-heading h1 { margin-bottom: 16px; }
.sg-band .sg-article .sg-post-meta { margin: 0; font-size: 13px; letter-spacing: .02em; color: #625E58; }
.sg-band .sg-article .sg-post-meta a { text-decoration: underline; text-underline-offset: 4px; }
.sg-band .sg-article-figure { margin: 0 0 40px; }
.sg-band .sg-article-figure img { display: block; width: 100%; height: auto; }
.sg-band .sg-article-figure figcaption { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #625E58; }
.sg-band .sg-article-body { font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; color: #3a3631; }
.sg-band .sg-article-body > * { margin: 24px 0 0; }
.sg-band .sg-article-body > :first-child { margin-top: 0; }
.sg-band .sg-article-body h2 { margin-top: 48px; font: 300 clamp(30px, 3.4vw, 42px)/1.2 'Cormorant Garamond', Georgia, serif; color: #292929; }
.sg-band .sg-article-body h3 { margin-top: 36px; font: 300 30px/1.3 'Cormorant Garamond', Georgia, serif; color: #292929; }
.sg-band .sg-article-body :is(ul, ol) { padding-left: 26px; }
.sg-band .sg-article-body a, .sg-band .sg-tags a { text-decoration: underline; text-underline-offset: 4px; }
.sg-band .sg-article-body img { max-width: 100%; height: auto; }
.sg-band .sg-article-body blockquote { border-left: 2px solid #bbb; padding-left: 24px; margin-left: 0; }
.sg-band .sg-article-body table { display: block; overflow-x: auto; }
.sg-band .sg-tags { margin: 40px 0 0; font-size: 14px; color: #625E58; }
.sg-journal-article .post-navigation { max-width: 820px; margin: 56px auto 0; }
.sg-journal-article .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.sg-journal-article a:focus-visible, .sg-journal-list a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 600px) { .sg-band .sg-article-body { font-size: 16px; } }
.sg-journal-article .breadcrumbs { max-width: 820px; margin-left: auto; margin-right: auto; }


/* ---------- Match the original design: spacing and sizes that the block conversion had lost ---------- */
/* Homepage section headings keep their 18px of room below (the underline itself stays switched off in the theme). */
.home-page main :is(section, .sg-band):not(#current) h2.sg-section-heading { position: relative; padding-bottom: 18px; }
/* "Contact the studio" band: heading size as in the original */
.sg-band.contact-invite .sg-section-heading, .home-page .contact-invite .sg-section-heading { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; }
@media (max-width: 600px) { .sg-band.contact-invite .sg-wrap { flex-direction: column; align-items: stretch; gap: 20px; } .sg-band.contact-invite .wp-block-buttons { align-self: flex-start; } }
/* Photograph strips: each photo fills its column (core gallery widths were making them half size) */
.wp-block-gallery.has-nested-images.sg-gallery--strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 28px); }
.wp-block-gallery.has-nested-images.sg-gallery--strip.columns-default figure.wp-block-image:not(#individual-image), .wp-block-gallery.has-nested-images.sg-gallery--strip figure.wp-block-image:not(#individual-image) { width: 100% !important; max-width: none; margin: 0; flex: none; }
.wp-block-gallery.has-nested-images.sg-gallery--strip figure.wp-block-image > a { display: block; background: #F1EEE8; }
.wp-block-gallery.has-nested-images.sg-gallery--strip figure.wp-block-image img { display: block; width: 100%; height: auto; }
/* FAQ page: narrower reading column and original title size */
.sg-band.faq-page > .sg-wrap, .sg-band.faq-page .sg-wrap { max-width: 900px; }
.sg-band.faq-page .page-heading { max-width: 760px; margin-bottom: 28px; }
.sg-band.faq-page .page-heading h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; margin-bottom: 16px; }
.sg-band.faq-page .page-heading p { max-width: 60ch; overflow-wrap: break-word; }
.sg-band.faq-page .faq-list { border-top: 1px solid #d9d3c9; }
@media (max-width: 600px) { .sg-band.faq-page .page-heading { margin-bottom: 24px; } .sg-band.faq-page .page-heading p { font-size: 14px; } .sg-band.faq-page .faq-list summary { font-size: 15px; padding-block: 18px; } }
.home-page .faq-section h2.sg-section-heading { padding-bottom: 0 !important; }

/* Small spacing matches with the original design */
/* FAQ intro: the "All questions" link sits 20px under the intro, with no extra line box below it */
.sg-band .faq-section p.sg-quiet-link { margin: 20px 0 0 !important; line-height: 18px; }
/* "Contact the studio" band: the line under the heading keeps its 12px gap */
.sg-band.contact-invite .contact-invite-text p { margin: 12px 0 0 !important; }
.sg-band.contact-invite h2.sg-section-heading + p { margin: 12px 0 0 !important; }

/* Artwork grids on block pages: keep the whole picture visible inside its frame, as in the original design
   (the original rule only matched old-style page sections). */
.sg-band .artwork-frame img { width: 100% !important; height: 100% !important; max-height: 100%; aspect-ratio: auto !important; object-fit: contain !important; }
