/*
Theme Name: Tom Westberg Kadence Child
Theme URI: https://tjwestberg.com/
Description: Minimal Kadence child theme for Tom Westberg's artist portfolio.
Author: Tom Westberg Site
Template: kadence
Version: 1.29.0
Text Domain: tom-westberg-kadence-child
*/

:root {
  --tw-bg: #f7f5f0;
  --tw-text: #171717;
  --tw-muted: #6f6b64;
  --tw-border: #d8d3ca;
}

body {
  background: var(--tw-bg);
  color: var(--tw-text);
}

.single-painting .content-area {
  margin-top: 0;
  margin-bottom: 0;
}

.tw-painting-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}

.tw-painting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 72px;
  align-items: start;
}

.tw-artwork-button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.tw-artwork-button img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.tw-painting-meta {
  position: sticky;
  top: 40px;
  padding-top: 8px;
}

.tw-painting-title {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tw-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tw-detail-list li {
  padding: 12px 0;
  border-top: 1px solid var(--tw-border);
  font-size: 1rem;
  line-height: 1.5;
}

.tw-detail-list li:last-child {
  border-bottom: 1px solid var(--tw-border);
}

.tw-label {
  display: inline-block;
  min-width: 96px;
  color: var(--tw-muted);
}

.tw-price {
  margin-top: 28px;
  font-size: 1.25rem;
  font-weight: 600;
}

.tw-status-sold {
  letter-spacing: 0.08em;
}

.tw-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.tw-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--tw-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity .2s ease;
}

.tw-button:hover {
  opacity: .7;
}

.tw-button-primary {
  background: var(--tw-text);
  color: var(--tw-bg);
}

.tw-button-secondary {
  background: transparent;
  color: var(--tw-text);
}

.tw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(0,0,0,.96);
  padding: 28px;
}

.tw-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tw-lightbox img {
  max-width: 96vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tw-lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .tw-painting-wrap {
    padding: 40px 20px 64px;
  }

  .tw-painting-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tw-painting-meta {
    position: static;
  }

  .tw-artwork-button img {
    max-height: none;
  }
}


/* Room visualization */
.tw-room-section {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--tw-border);
}

.tw-room-heading {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 500;
}

.tw-room-intro {
  margin: 0 0 24px;
  color: var(--tw-muted);
}

.tw-room-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8e2d8;
}

.tw-room-stage > img.tw-room-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-room-art {
  position: absolute;
  left: 51%;
  top: 38%;
  transform: translate(-50%, -50%);
  line-height: 0;
  z-index: 2;
  transition: width .2s ease, padding .2s ease, background .2s ease, box-shadow .2s ease;
}

.tw-room-art img {
  display: block;
  width: 100%;
  height: auto;
}

.tw-room-art[data-frame="none"] {
  padding: 0;
  background: transparent;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.tw-room-art[data-frame="natural"] {
  padding: var(--tw-frame-px, 7px);
  background: #b78b5a;
  box-shadow:
    inset 0 0 0 1px rgba(70,42,20,.32),
    0 10px 22px rgba(0,0,0,.22);
}

.tw-room-art[data-frame="black"] {
  padding: var(--tw-frame-px, 7px);
  background: #171717;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 10px 22px rgba(0,0,0,.24);
}

.tw-room-art[data-frame="white"] {
  padding: var(--tw-frame-px, 7px);
  background: #f3f1eb;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.18),
    0 10px 22px rgba(0,0,0,.20);
}

.tw-room-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.tw-room-controls-label {
  margin-right: 4px;
  color: var(--tw-muted);
  font-size: .95rem;
}

.tw-frame-choice {
  border: 1px solid var(--tw-border);
  background: transparent;
  color: var(--tw-text);
  padding: 9px 13px;
  cursor: pointer;
  font-size: .9rem;
}

.tw-frame-choice.is-active {
  border-color: var(--tw-text);
  background: var(--tw-text);
  color: var(--tw-bg);
}

.tw-room-note {
  margin: 14px 0 0;
  color: var(--tw-muted);
  font-size: .88rem;
}

@media (max-width: 700px) {
  .tw-room-section {
    margin-top: 64px;
  }

  .tw-room-stage {
    aspect-ratio: 3 / 2;
  }

  .tw-frame-choice {
    padding: 8px 10px;
  }
}


/* Works page */
.tw-works-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 32px 110px;
}

.tw-works-header {
  margin-bottom: 64px;
}

.tw-works-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.tw-works-list {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.tw-work {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .65fr);
  gap: 64px;
  align-items: center;
}

.tw-work-image-link {
  display: block;
  text-decoration: none;
}

.tw-work-image-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  object-position: left center;
}

.tw-work-info {
  align-self: center;
}

.tw-work-name {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tw-work-name a {
  color: inherit;
  text-decoration: none;
}

.tw-work-name a:hover {
  opacity: .65;
}

.tw-work-details {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--tw-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.tw-work-price {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tw-text);
}

.tw-work-sold {
  letter-spacing: .08em;
}

.tw-work-view {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--tw-text);
  color: var(--tw-text);
  text-decoration: none;
  font-size: .95rem;
}

.tw-work-view:hover {
  opacity: .65;
}

.tw-works-empty {
  color: var(--tw-muted);
}

@media (max-width: 820px) {
  .tw-works-wrap {
    padding: 44px 20px 72px;
  }

  .tw-works-header {
    margin-bottom: 44px;
  }

  .tw-works-list {
    gap: 74px;
  }

  .tw-work {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tw-work-image-link img {
    max-height: none;
    object-position: center;
  }

  .tw-work-name {
    margin-bottom: 12px;
  }
}


/* Homepage */
.tw-home {
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 32px 100px;
}

.tw-home-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 48px;
}

.tw-home-title {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 8.2rem);
  line-height: .88;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.tw-home-kicker {
  margin: 0 0 8px;
  color: var(--tw-muted);
  font-size: 1rem;
  white-space: nowrap;
}

.tw-home-feature {
  position: relative;
}

.tw-home-feature-link {
  display: block;
  text-decoration: none;
}

.tw-home-feature-image {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  object-position: center;
}

.tw-home-feature-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-top: 16px;
  color: var(--tw-text);
}

.tw-home-feature-name {
  font-size: 1rem;
}

.tw-home-feature-year {
  color: var(--tw-muted);
  font-size: .95rem;
}

.tw-home-explore {
  margin-top: 46px;
}

.tw-home-explore a {
  display: inline-block;
  color: var(--tw-text);
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--tw-text);
}

.tw-home-explore a:hover {
  opacity: .65;
}

.tw-home-empty {
  padding: 60px 0;
  color: var(--tw-muted);
}

@media (max-width: 760px) {
  .tw-home {
    padding: 42px 20px 72px;
  }

  .tw-home-intro {
    display: block;
    margin-bottom: 34px;
  }

  .tw-home-kicker {
    margin-top: 18px;
  }

  .tw-home-feature-caption {
    display: block;
  }

  .tw-home-feature-year {
    display: block;
    margin-top: 4px;
  }
}


/* Final masthead treatment */
#masthead .site-container,
.site-header-row-container-inner .site-container {
  max-width: 1440px;
}

.site-header-main-section-left .site-branding {
  padding: 0;
}

.site-title,
.site-title a {
  font-size: 1rem !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--tw-text) !important;
  text-decoration: none;
}

.primary-menu-container > ul > li > a {
  font-size: .88rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-main-header-inner-wrap {
  min-height: 78px;
}

/* Homepage v2: the art, not the artist name, is the hero */
.tw-home {
  padding-top: 54px;
}

.tw-home-intro {
  display: block;
  margin-bottom: 28px;
}

.tw-home-title {
  display: none;
}

.tw-home-kicker {
  margin: 0;
  font-size: .92rem;
  letter-spacing: .04em;
}

.tw-home-feature-image {
  max-height: 76vh;
}

@media (max-width: 760px) {
  .site-main-header-inner-wrap {
    min-height: 64px;
  }

  .tw-home {
    padding-top: 32px;
  }
}


/* Homepage alignment refinement */
.tw-home-intro,
.tw-home-feature,
.tw-home-explore {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.tw-home-intro { margin-bottom: 28px; }

/* Contact */
.tw-contact {
  max-width: 980px;
  margin: 0 auto;
  padding: 82px 32px 110px;
}
.tw-contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 90px;
  align-items: start;
}
.tw-contact h1 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.03em;
}
.tw-contact-copy {
  color: var(--tw-muted);
  line-height: 1.7;
}
.tw-contact-painting {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--tw-border);
  font-size: .95rem;
}
.tw-form-field { margin-bottom: 22px; }
.tw-form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tw-form-field input,
.tw-form-field textarea {
  width: 100%;
  border: 1px solid var(--tw-border);
  background: transparent;
  color: var(--tw-text);
  padding: 13px 14px;
  font: inherit;
  border-radius: 0;
}
.tw-form-field textarea { min-height: 180px; resize: vertical; }
.tw-form-submit {
  border: 1px solid var(--tw-text);
  background: var(--tw-text);
  color: var(--tw-bg);
  padding: 13px 22px;
  cursor: pointer;
  font: inherit;
}
.tw-form-status {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--tw-border);
}
.tw-form-honeypot {
  position: absolute !important;
  left: -9999px !important;
}
@media (max-width: 760px) {
  .tw-contact { padding: 48px 20px 72px; }
  .tw-contact-grid { grid-template-columns: 1fr; gap: 42px; }
}


/* About */
.tw-about {
  max-width: 1240px;
  margin: 0 auto;
  padding: 82px 32px 115px;
}
.tw-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 78px;
  align-items: start;
}
.tw-about-photo {
  margin: 0;
}
.tw-about-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.tw-about-copy {
  max-width: 590px;
  padding-top: 8px;
}
.tw-about-label {
  margin: 0 0 24px;
  color: var(--tw-muted);
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tw-about-name {
  margin: 0 0 34px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.035em;
}
.tw-about-copy p {
  margin: 0 0 22px;
  font-size: 1.06rem;
  line-height: 1.75;
}
.tw-about-copy .tw-about-quote {
  margin-top: 32px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.015em;
}
@media (max-width: 820px) {
  .tw-about {
    padding: 48px 20px 78px;
  }
  .tw-about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .tw-about-copy {
    max-width: none;
    padding-top: 0;
  }
}


/* Custom Framing */
.tw-custom-framing {
  max-width: 1240px;
  margin: 90px auto 0;
  padding: 0 32px 95px;
}
.tw-custom-framing-head {
  max-width: 720px;
  margin-bottom: 34px;
}
.tw-custom-framing h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.025em;
}
.tw-custom-framing-intro {
  margin: 0;
  line-height: 1.7;
  color: var(--tw-muted);
}
.tw-frame-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.tw-frame-example {
  margin: 0;
}
.tw-frame-example img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
}
.tw-frame-example figcaption {
  padding-top: 16px;
}
.tw-frame-example h3 {
  margin: 0 0 7px;
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.tw-frame-example p {
  margin: 0;
  max-width: 520px;
  line-height: 1.65;
}
.tw-frame-note {
  margin: 34px 0 0;
  max-width: 820px;
  line-height: 1.7;
}

/* Make the room-view canvas frame read more like a real floater frame:
   outer frame + narrow dark reveal before the artwork. */
.tw-room-art[data-frame="natural"],
.tw-room-art[data-frame="black"],
.tw-room-art[data-frame="white"] {
  padding: 5px;
  background: #181818;
  box-sizing: content-box;
}

.tw-room-art[data-frame="none"] {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  box-sizing: border-box;
}
.tw-room-art.frame-natural,
.tw-room-art[data-frame="natural"] {
  border: 9px solid #a97943;
}
.tw-room-art.frame-black,
.tw-room-art[data-frame="black"] {
  border: 9px solid #171717;
}
.tw-room-art.frame-white,
.tw-room-art[data-frame="white"] {
  border: 9px solid #eeeae1;
}

@media (max-width: 820px) {
  .tw-custom-framing {
    margin-top: 58px;
    padding: 0 20px 72px;
  }
  .tw-frame-examples {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .tw-frame-example img {
    height: auto;
  }
}


/* Framing example refinement */
.tw-frame-example {
  text-align: left;
}
.tw-frame-example img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}
@media (max-width: 820px) {
  .tw-frame-example img {
    height: auto;
    max-height: none;
  }
}


/* v1.16: physically closer floater-frame simulation
   Outer frame = actual frame finish
   Narrow inner reveal = approx. 1/4 inch gap between canvas and frame */
.tw-room-art[data-frame="natural"],
.tw-room-art[data-frame="black"],
.tw-room-art[data-frame="white"] {
  padding: var(--tw-gap-px, 2px) !important;
  background: #171717 !important;
  border-style: solid !important;
  border-width: var(--tw-frame-px, 9px) !important;
  box-sizing: content-box !important;
}

.tw-room-art[data-frame="natural"] {
  border-color: #b57a3e !important;
}

.tw-room-art[data-frame="black"] {
  border-color: #171717 !important;
}

.tw-room-art[data-frame="white"] {
  border-color: #eeeae1 !important;
}

.tw-room-art[data-frame="none"] {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}


/* v1.19: framing-price note on individual painting pages */
.tw-painting-price-note {
  margin-top: 8px;
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(0,0,0,.68);
}

.tw-painting-price-note strong {
  color: inherit;
  font-weight: 600;
}


/* v1.22: slightly larger artist name in site header */
.site-header .site-title,
.site-header .site-title a,
#masthead .site-title,
#masthead .site-title a {
  font-size: 18px !important;
}


/* v1.23: understated social links in the site footer */
.tw-site-social {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: 18px;
}
.tw-site-social a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}
.tw-site-social a:hover,
.tw-site-social a:focus {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .tw-site-social {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
  }
}

/* v1.25: reliable custom social footer */
.tw-social-footer {
  padding: 18px 24px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.tw-social-footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 8px;
}
.tw-social-footer a:hover,
.tw-social-footer a:focus {
  text-decoration: underline;
}

/* v1.28 launch candidate footer */
.tw-launch-footer {
  padding: 18px 24px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.tw-launch-footer a {
  color: inherit;
  text-decoration: none;
}
.tw-launch-footer a:hover,
.tw-launch-footer a:focus {
  text-decoration: underline;
}
.tw-launch-footer .tw-footer-sep {
  margin: 0 8px;
}

/* v1.29: suppress Kadence's native footer; use only our launch footer */
#colophon.site-footer,
.site-footer-wrap {
  display: none !important;
}
