/* JTX textile studies — photo-first, cotton white, forest accents, slate contrast. */
.towel-portfolio,
.showcase-callout {
  --showcase-navy: #14232c;
  --showcase-slate: #45535d;
  --showcase-cotton: #fbfcfa;
  --showcase-border: var(--line, #dce6dd);
  font-family: var(--sans, 'Plus Jakarta Sans', sans-serif);
}
.towel-portfolio {
  padding-block: clamp(52px, 7vw, 100px);
  color: var(--showcase-navy);
  background-color: var(--showcase-cotton);
  border-block: 1px solid var(--showcase-border);
}
.towel-portfolio .section-heading { margin-bottom: 32px; }
.towel-portfolio .section-heading h2 { font-size: clamp(38px, 5.3vw, 70px); }
.towel-portfolio .section-lede { background: transparent; }
.towel-portfolio .section-lede > p { margin: 0; color: var(--showcase-slate); }
.towel-portfolio .section-lede .showcase-disclosure {
  margin-top: 14px;
  color: var(--muted, #59695e);
  font-size: 12px;
  line-height: 1.7;
}
.towel-portfolio p { text-wrap: pretty; }

/* Photo filters never share the catalog's selectors or state. */
.showcase-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px 21px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--showcase-border);
}
.showcase-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.showcase-filter {
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--showcase-border);
  border-radius: 2px;
  background: transparent;
  color: var(--showcase-slate);
  font-size: 12px;
  font-weight: 600;
  transition: background .18s, border-color .18s, color .18s;
}
.showcase-filter:hover { background: var(--sage, #f2f7f2); border-color: #a3b9a7; color: var(--forest, #14532d); }
.showcase-filter.is-active { border-color: var(--forest, #14532d); background: var(--forest, #14532d); color: white; }
.showcase-filter:active { background: var(--deep, #103622); color: white; }
.showcase-count { margin: 0; color: var(--muted, #59695e); font-size: 10px; white-space: nowrap; }

/* Stable 3 / 2 / 1 composition; imagery does the visual work. */
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
.showcase-card { min-width: 0; border: 1px solid var(--showcase-border); background: white; }
.showcase-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #e8eee9;
  color: var(--showcase-navy);
  text-align: left;
  cursor: zoom-in;
}
.showcase-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease, ease);
}
.showcase-photo::after {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgb(20 35 44 / 24%));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.showcase-index {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 70%);
  background: rgb(255 255 255 / 91%);
  color: var(--forest, #14532d);
  font-size: 10px;
}
.showcase-enlarge {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 5px 7px 5px 12px;
  background: rgb(255 255 255 / 94%);
  color: var(--showcase-navy);
  font-size: 10px;
  font-weight: 700;
  transition: color .2s, background .2s;
}
.showcase-enlarge-mark { display: grid; place-items: center; width: 22px; height: 22px; font-size: 19px; font-weight: 400; }
.showcase-photo:hover .showcase-enlarge,
.showcase-photo:focus-visible .showcase-enlarge { color: white; background: var(--forest, #14532d); }
.showcase-photo:focus-visible { outline: 3px solid var(--forest, #14532d); outline-offset: -4px; }
.showcase-photo:active .showcase-enlarge { background: var(--deep, #103622); }
@media (hover: hover) {
  .showcase-photo:hover img { transform: scale(1.035); }
  .showcase-photo:hover::after { opacity: 1; }
}
.showcase-image-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--showcase-slate);
  font-size: 14px;
  text-align: center;
}
.showcase-details { padding: clamp(19px, 2vw, 27px); }
.showcase-kicker { margin: 0 0 9px; color: var(--forest, #14532d); font-size: 10px; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.showcase-details h3 { margin: 0 0 12px; color: var(--showcase-navy); font-size: clamp(21px, 2vw, 28px); line-height: 1.15; letter-spacing: -.04em; }
.showcase-note { margin: 0 0 20px; color: var(--showcase-slate); font-size: 13px; line-height: 1.75; }
.showcase-concept { margin: 0; padding-top: 12px; border-top: 1px solid var(--showcase-border); color: var(--muted, #59695e); font-size: 9px; line-height: 1.7; }
.showcase-specs { border-top: 1px solid var(--showcase-border); }
.showcase-specs summary { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; color: var(--forest, #14532d); font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
.showcase-specs summary::-webkit-details-marker,
.terry-closeups > summary::-webkit-details-marker { display: none; }
.showcase-specs summary > span { font-size: 20px; font-weight: 400; transition: transform .2s; }
.showcase-specs[open] summary > span { transform: rotate(45deg); }
.showcase-specs > p { margin: 0 0 12px; color: var(--muted, #59695e); font-size: 11px; line-height: 1.6; }
.showcase-details dl { margin: 0; border-top: 1px solid var(--showcase-border); }
.showcase-details dl > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--showcase-border); font-size: 11px; line-height: 1.6; }
.showcase-details dt { color: var(--muted, #59695e); }
.showcase-details dd { margin: 0; color: var(--showcase-navy); font-weight: 600; overflow-wrap: anywhere; }
.showcase-gallery-footnote { display: flex; gap: 17px; margin: 24px 0 0; color: var(--muted, #59695e); font-size: 11px; line-height: 1.7; }
.showcase-gallery-footnote > span { flex: 0 0 auto; padding-top: 2px; color: var(--forest, #14532d); font-size: 9px; letter-spacing: .08em; }

/* Original, verified close-ups remain progressively disclosed. */
.terry-closeups { margin-top: 32px; border: 1px solid var(--showcase-border); background: white; }
.terry-closeups > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 25px; color: var(--showcase-navy); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.terry-closeups > summary .showcase-kicker { display: block; margin-bottom: 5px; font-weight: 400; }
.closeups-toggle { font-size: 27px; font-weight: 400; line-height: 1; transition: transform .2s; }
.terry-closeups[open] .closeups-toggle { transform: rotate(45deg); }
.terry-closeups-content { padding: 0 24px 24px; }
.closeups-intro { max-width: 76ch; margin: 0 0 23px; color: var(--showcase-slate); font-size: 13px; line-height: 1.7; }
.showcase-closeup .showcase-details h3 { font-size: 22px; }

/* Separate creative section: these folds are expressly not products. */
.showcase-creatures { margin-top: clamp(36px, 5vw, 70px); padding: clamp(22px, 4vw, 52px); background: var(--showcase-navy); color: white; }
.creatures-title { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.creatures-title .eyebrow { margin-bottom: 17px; color: #c1d9c8; }
.creatures-title h3 { margin: 0; color: white; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.05em; }
.creatures-title > p { max-width: 42ch; margin: 0; color: #ced7dc; font-size: 13px; line-height: 1.8; }
.creatures-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.3vw, 30px); margin-top: 32px; }
.creature { min-width: 0; margin: 0; border: 1px solid #3b4e57; }
.creature-photo { background: #25373f; }
.creature figcaption { padding: 20px 23px 24px; }
.creature figcaption .showcase-kicker { color: #c1d9c8; font-size: 9px; }
.creature h4 { margin: 0 0 9px; color: white; font-size: 22px; line-height: 1.25; letter-spacing: -.035em; }
.creature figcaption > p:last-child { margin: 0; color: #ced7dc; font-size: 12px; line-height: 1.8; }
.showcase-creatures :focus-visible { outline-color: #c1d9c8; }

/* Homepage integration retains the existing showcaseCallout() contract. */
.showcase-callout { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-top: 44px; border: 1px solid var(--showcase-border); background: var(--sage, #f2f7f2); }
.showcase-callout-copy { align-self: center; padding: clamp(25px, 4vw, 55px); }
.showcase-callout-copy .eyebrow { margin-bottom: 20px; }
.showcase-callout h3 { margin: 0 0 20px; color: var(--showcase-navy); font-size: clamp(29px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -.05em; }
.showcase-callout-copy > p:not(.eyebrow) { max-width: 41ch; margin: 0 0 26px; color: var(--showcase-slate); font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.showcase-callout-photo { position: relative; min-width: 0; margin: 0; background: #e8eee9; }
.showcase-callout-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.showcase-callout-photo figcaption { position: absolute; right: 14px; bottom: 14px; left: 14px; width: fit-content; padding: 7px 10px; background: rgb(20 35 44 / 92%); color: white; font-size: 9px; line-height: 1.7; }

/* Native dialog owns focus containment, top-layer positioning and Escape. */
html.jtx-gallery-open { overflow: hidden; }
.showcase-lightbox {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #3b4e57;
  border-radius: 2px;
  background: var(--showcase-navy);
  color: white;
  box-shadow: 0 24px 100px rgb(0 0 0 / 35%);
  overscroll-behavior: contain;
}
.showcase-lightbox::backdrop { background: rgb(10 19 25 / 88%); }
.showcase-lightbox[open] { display: block; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 24px; border-bottom: 1px solid #344751; }
.lightbox-toolbar > span { color: #c1d9c8; font-size: 10px; letter-spacing: .1em; }
.lightbox-close { display: flex; align-items: center; justify-content: center; gap: 13px; min-width: 88px; min-height: 44px; padding: 6px 10px; border: 1px solid transparent; background: transparent; color: white; font-size: 11px; }
.lightbox-close > span:last-child { font-size: 27px; line-height: 1; }
.lightbox-stage { position: relative; display: grid; place-items: center; height: min(61vh, 650px); height: min(61dvh, 650px); min-height: 160px; background: #0e1a22; }
.lightbox-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-image-error { position: absolute; max-width: 46ch; margin: 0; padding: 30px; color: #d5dfe4; font-size: 15px; line-height: 1.8; text-align: center; }
.lightbox-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 23px 28px 27px; }
.lightbox-caption { min-width: 0; max-width: 76ch; }
.lightbox-caption .showcase-kicker { color: #c1d9c8; font-size: 9px; }
.lightbox-caption h3 { margin: 0 0 9px; color: white; font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -.035em; line-height: 1.2; }
.lightbox-caption > p:not(.showcase-kicker) { margin: 0; color: #d5dfe4; font-size: 12px; line-height: 1.75; }
.lightbox-caption > .lightbox-disclosure { margin-top: 10px !important; color: #adbec6 !important; font-size: 10px !important; }
.lightbox-navigation { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 240px; }
.lightbox-position { margin: 0; color: #c1d9c8; font-size: 9px; line-height: 1.7; text-align: right; }
.lightbox-controls { display: flex; gap: 8px; }
.lightbox-controls button { display: grid; place-items: center; width: 48px; height: 46px; padding: 0; border: 1px solid #58707c; background: transparent; color: white; font-size: 23px; transition: background .18s, border-color .18s; }
.lightbox-controls button:hover:not(:disabled),
.lightbox-close:hover { border-color: #c1d9c8; background: #294638; }
.lightbox-controls button:active:not(:disabled),
.lightbox-close:active { background: var(--forest, #14532d); }
.lightbox-controls button:disabled { opacity: .35; cursor: default; }
.lightbox-key-hint { color: #adbec6; font-size: 8px; }
.showcase-lightbox :focus-visible { outline: 2px solid #c1d9c8; outline-offset: 3px; }

@media (max-width: 950px) {
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .towel-portfolio .split-heading { gap: 28px; }
  .creatures-title { grid-template-columns: 1fr; gap: 18px; }
  .creatures-title > p { max-width: 65ch; }
  .showcase-callout-copy { padding: 30px; }
}
@media (max-width: 600px) {
  .showcase-grid, .showcase-callout, .creatures-grid { grid-template-columns: minmax(0, 1fr); }
  .towel-portfolio .split-heading { flex-direction: column; align-items: flex-start; gap: 23px; }
  .towel-portfolio .section-lede { max-width: 100%; padding: 0; }
  .showcase-filter-bar { flex-direction: column; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
  .showcase-filters { width: 100%; gap: 6px; }
  .showcase-filter { flex: 1 0 auto; padding-inline: 12px; font-size: 11px; }
  .showcase-gallery-footnote { flex-direction: column; gap: 7px; }
  .terry-closeups > summary { padding: 20px; font-size: 15px; }
  .terry-closeups-content { padding: 0 15px 15px; }
  .showcase-creatures { padding: 23px 18px; }
  .creatures-grid { margin-top: 24px; }
  .showcase-callout-photo img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .showcase-callout-copy { padding: 30px 24px; }
  .showcase-lightbox { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .lightbox-toolbar { padding: 8px 15px; }
  .lightbox-toolbar > span { font-size: 8px; }
  .lightbox-stage { height: 42vh; height: 42dvh; }
  .lightbox-footer { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .lightbox-navigation { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; max-width: none; }
  .lightbox-position { flex: 1; text-align: left; }
  .lightbox-key-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .towel-portfolio *, .towel-portfolio *::after, .showcase-callout * { transition: none !important; animation: none !important; }
  .showcase-photo:hover img { transform: none; }
}
/* Explicitly override grid/button display rules: native hidden must stay hidden. */
.towel-portfolio [hidden], .showcase-callout [hidden] { display: none !important; }
