/* Works — fashion / magazine editorial gallery
   Keeps .wr-* surface for works-renewal.js
   Mono hegemony: white / black, no cream-gold, no pills */

.works-hub-page {
  --works-ink: #111;
  --works-body: #333;
  --works-muted: #888;
  --works-line: rgba(0, 0, 0, 0.08);
  --works-paper: #fff;
  --works-wash: #ececec;
  --works-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --works-max: 1200px;
  --wr-text: var(--works-ink);
  --wr-text-light: var(--works-body);
  --wr-text-muted: var(--works-muted);
  --wr-bg: var(--works-paper);
  --wr-bg-light: var(--works-wash);
  --wr-accent: var(--works-ink);
  --wr-accent-dark: var(--works-ink);
  --wr-border: var(--works-line);
  --wr-border-dark: rgba(0, 0, 0, 0.2);
  --wr-red: #111;
  --wr-star: #111;
  --wr-radius: 0;
  --wr-shadow: none;
  --wr-shadow-hover: none;
  --wr-transition: 0.45s var(--works-ease);
  --wr-font: inherit;
  --wr-max-w: var(--works-max);
  --wr-sidebar-w: auto;
  color: var(--works-body);
  background: var(--works-paper);
  -webkit-font-smoothing: antialiased;
}

.works-hub-page .s-header-spacer {
  display: none;
}

.works-hub-page .body-in {
  min-height: 0;
}

/* ========== Hero — magazine masthead ========== */
.works-hero {
  background: #fff;
  color: var(--works-ink);
}

.works-hero__inner {
  width: min(var(--works-max), calc(100% - 32px));
  margin-inline: auto;
  padding: calc(var(--s-header-h, 64px) + 28px) 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.works-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--works-muted);
}

.works-hero__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--works-ink);
}

.works-hero__note {
  margin: 10px 0 0;
  max-width: 28em;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--works-muted);
  text-wrap: pretty;
}

/* ========== Shell ========== */
.wr-page {
  background: var(--works-paper);
  color: var(--works-body);
  line-height: 1.7;
}

.wr-page *,
.wr-page *::before,
.wr-page *::after {
  box-sizing: border-box;
}

.wr-container {
  width: min(var(--works-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
  max-width: none;
}

.wr-page-title {
  display: none;
}

/* Filters above gallery — compact toolbar */
.wr-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 48px;
}

.wr-sidebar {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 28px;
  padding: 12px 0 14px;
  margin: 0;
  border-top: 1px solid var(--works-line);
  border-bottom: 1px solid var(--works-line);
  background: transparent;
}

.wr-sidebar-header {
  display: none;
}

.wr-sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--works-muted);
  cursor: pointer;
  padding: 4px;
}

.wr-filter-group {
  margin: 0;
  min-width: 0;
}

.wr-filter-tags {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.wr-filter-tags-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wr-filter-tags-toggle .wr-filter-label {
  margin-bottom: 0;
}

.wr-filter-tags-toggle__icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--works-muted);
}

.wr-tag-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}

.wr-tag-panel[hidden] {
  display: none !important;
}

.wr-filter-label {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--works-muted);
}

.wr-filter-input,
.wr-filter-select {
  width: auto;
  min-width: 140px;
  max-width: 200px;
  height: 34px;
  padding: 0 4px 0 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--works-ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  outline: none;
  appearance: none;
  transition: border-color 0.25s ease;
}

.wr-filter-input {
  min-width: 160px;
}

.wr-keyword-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wr-keyword-row .wr-filter-input {
  flex: 1 1 auto;
  min-width: 0;
}

.wr-filter-input:focus,
.wr-filter-select:focus {
  border-bottom-color: var(--works-ink);
}

.wr-filter-input::placeholder {
  color: #bbb;
  letter-spacing: 0.06em;
}

.wr-area-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.wr-area-btn {
  padding: 4px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--works-muted);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.wr-area-btn:hover {
  color: var(--works-ink);
}

.wr-area-btn.active {
  color: var(--works-ink);
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--works-ink);
}

.wr-tag-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 100%;
  max-height: none;
  overflow: visible;
}

.wr-tag-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--works-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.wr-tag-check span {
  line-height: 1.4;
  word-break: break-word;
}

.wr-tag-check:hover {
  color: var(--works-ink);
}

.wr-tag-check input[type="checkbox"] {
  width: 12px;
  height: 12px;
  accent-color: var(--works-ink);
  cursor: pointer;
}

.wr-filter-actions {
  margin: 0;
  margin-left: auto;
  padding: 0;
  border: none;
  align-self: flex-end;
}

.wr-btn-clear {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--works-muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.wr-btn-clear:hover {
  color: var(--works-ink);
  background: transparent;
  border-bottom-color: var(--works-ink);
}

.wr-btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--works-ink);
  background: var(--works-ink);
  color: #fff;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.wr-btn-search:hover {
  background: #fff;
  color: var(--works-ink);
}

/* ========== Editorial collage grid ========== */
.wr-main {
  min-width: 0;
  padding-top: 12px;
}

.wr-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--works-ink);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.wr-filter-toggle svg {
  fill: currentColor;
}

.wr-search-count {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--works-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wr-search-count strong {
  color: var(--works-ink);
  font-weight: 400;
}

.wr-api-error {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  color: #444;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.works-preview-note {
  width: min(var(--works-max), calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
}

/* Instagram-dense mosaic: 2px gaps + occasional 2×2 hero tile */
.wr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  grid-auto-flow: dense;
}

.wr-card {
  position: relative;
  display: block;
  background: var(--works-wash);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.wr-card::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/* Explore-style: every 10 items, one large 2×2 */
.wr-card:nth-child(10n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.wr-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-top: 0;
  background: var(--works-wash);
  overflow: hidden;
}

.wr-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1s var(--works-ease), filter 0.6s ease;
  filter: brightness(0.97);
}

.wr-card:hover .wr-card-img img {
  transform: scale(1.08);
  filter: brightness(1.02);
}

.wr-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.wr-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 40px 14px 14px;
  border: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s var(--works-ease);
}

.wr-card:hover .wr-card-body {
  opacity: 1;
  transform: translateY(0);
}

.wr-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.wr-card:nth-child(10n + 1) .wr-card-body {
  padding: 56px 20px 18px;
  opacity: 1;
  transform: none;
}

.wr-card:nth-child(10n + 1) .wr-card-title {
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.06em;
}

.wr-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.wr-card-meta-item + .wr-card-meta-item::before {
  content: "/";
  margin-right: 12px;
  opacity: 0.55;
}

.wr-card-store,
.wr-card-tags {
  display: none;
}

.wr-loader {
  display: none;
  justify-content: center;
  padding: 72px 0;
}

.wr-loader-spinner {
  width: 22px;
  height: 22px;
  border: 1px solid var(--works-line);
  border-top-color: var(--works-ink);
  border-radius: 50%;
  animation: wr-spin 0.7s linear infinite;
}

@keyframes wr-spin {
  to { transform: rotate(1turn); }
}

.wr-no-results {
  padding: 96px 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--works-muted);
}

.wr-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1390;
}

.wr-sidebar-backdrop.visible {
  display: block;
}

/* ========== Stars ========== */
.wr-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.wr-stars svg {
  width: 12px;
  height: 12px;
}

.wr-stars .star-filled { fill: var(--works-ink); }
.wr-stars .star-empty { fill: #ddd; }
.wr-stars .star-half { fill: url(#wr-star-half-grad); }

.wr-stars-num {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--works-ink);
}

/* ========== Detail — Instagram post view ========== */
.wr-page--detail .wr-detail {
  margin: 0 0 48px;
}

.wr-ig-post {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
  background: #fff;
}

.wr-ig-media {
  position: relative;
  width: 100%;
  background: #000;
}

.wr-ig-carousel {
  position: relative;
  width: 100%;
  outline: none;
}

.wr-ig-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wr-ig-track::-webkit-scrollbar {
  display: none;
}

.wr-ig-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
  position: relative;
  /* Works photos / BA are 4:3 landscape — do not force Instagram square */
  aspect-ratio: 4 / 3;
  background: #111;
}

.wr-ig-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.wr-ig-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.wr-ig-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  pointer-events: none;
}

.wr-ig-dots__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.wr-ig-dots__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.wr-ig-slide--labeled a {
  position: relative;
}

.wr-ig-slide-badge {
  position: absolute;
  left: 12px;
  bottom: 36px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.wr-ig-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease;
}

.wr-ig-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.wr-ig-nav svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.wr-ig-nav--prev { left: 12px; }
.wr-ig-nav--next { right: 12px; }

.wr-ig-sheet {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

.wr-detail-masthead {
  margin: 0 0 16px;
}

.wr-detail-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--works-muted);
}

.wr-detail-page-title {
  margin: 0;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--works-ink);
}

.wr-ig-sheet .wr-description {
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--works-line);
  font-size: 14px;
  line-height: 1.85;
  color: var(--works-body);
}

.wr-ig-meta {
  margin-bottom: 24px;
}

.wr-ig-meta .wr-info-card {
  margin-bottom: 24px;
}

.wr-ig-meta .wr-info-card:last-child {
  margin-bottom: 0;
}

.wr-ig-sheet .wr-cta {
  margin: 28px 0 8px;
}

.wr-ba-jump {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--works-muted);
  text-align: center;
}

.wr-ba-jump a {
  color: var(--works-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.wr-ba-jump a:hover {
  opacity: 0.65;
}

.wr-ig-extra {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

.wr-ig-extra .wr-ba,
.wr-ig-extra .wr-youtube,
.wr-ig-extra .wr-instagram,
.wr-ig-extra .wr-exterior,
.wr-ig-extra .wr-reviews {
  margin-top: 32px;
}

.wr-detail-grid,
.wr-gallery-hero,
.wr-gallery-thumbs,
.wr-gallery-main {
  display: none;
}

.wr-detail-body {
  padding: 0;
  width: 100%;
  max-width: none;
}

.wr-detail-info {
  position: static;
  padding: 0;
}

.wr-info-card {
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border: none;
}

.wr-info-card h3 {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--works-muted);
}

.wr-info-row {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--works-line);
  font-size: 14px;
}

.wr-info-row:last-child { border-bottom: none; }

.wr-info-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--works-muted);
}

.wr-info-value {
  text-align: left;
  color: var(--works-ink);
}

.wr-info-value--tags {
  font-size: 12px;
  line-height: 1.7;
  color: var(--works-body);
}

.wr-planner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wr-planner-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--works-wash);
}

.wr-planner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wr-planner-role {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--works-muted);
}

.wr-planner-name {
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--works-ink);
}

.wr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--works-ink);
  background: #fff;
  color: var(--works-ink);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.wr-cta:hover {
  background: var(--works-ink);
  color: #fff;
}

.wr-ba,
.wr-youtube,
.wr-instagram,
.wr-exterior,
.wr-reviews,
.wr-related {
  margin: 40px 0 0;
}

.wr-ba h2,
.wr-youtube h2,
.wr-instagram h2,
.wr-exterior h2,
.wr-reviews h2,
.wr-related h2 {
  margin: 0 0 14px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--works-muted);
}

.wr-related {
  margin-top: 48px;
  padding-top: 0;
  max-width: none;
}

.wr-related h2 {
  width: min(640px, calc(100% - 32px));
  margin-inline: auto;
}

.wr-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (min-width: 768px) {
  .wr-related {
    width: min(1100px, calc(100% - 48px));
    max-width: 1100px;
    margin-inline: auto;
    padding: 0;
  }

  .wr-related h2 {
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
  }

  .wr-related-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }

  .wr-related-item-title {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .wr-related-item a:hover .wr-related-item-title {
    opacity: 1;
  }

  .wr-tag-panel {
    max-height: 96px;
    overflow-y: auto;
    padding-right: 6px;
  }
}

.wr-ba {
  scroll-margin-top: 88px;
}

.wr-ba-lead {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--works-body);
}

.wr-ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.wr-ba-pair + .wr-ba-pair {
  margin-top: 2px;
}

.wr-ba-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.wr-ba-item a {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.wr-ba-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.wr-ba-item a:hover img {
  opacity: 0.94;
}

.wr-ba-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.62) 100%);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.wr-hush-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.wr-hush-tag {
  color: var(--works-muted);
  font-size: 13px;
  text-decoration: none;
}

.wr-hush-tag:hover {
  color: var(--works-ink);
}

.wr-youtube-wrapper {
  position: relative;
  padding-top: 56.25%;
  background: #111;
}

.wr-youtube-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wr-exterior table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wr-exterior th {
  padding: 10px 6px;
  border-bottom: 1px solid var(--works-ink);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-align: left;
  color: var(--works-muted);
}

.wr-exterior td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--works-line);
}

.wr-reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.wr-reviews-avg {
  font-size: 32px;
  line-height: 1;
  color: var(--works-ink);
}

.wr-reviews-count {
  font-size: 11px;
  color: var(--works-muted);
}

.wr-review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--works-line);
}

.wr-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.wr-review-rating { margin-left: auto; }

.wr-review-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--works-body);
}

.wr-related-item {
  position: relative;
  overflow: hidden;
  background: var(--works-wash);
}

.wr-related-item a {
  display: block;
  color: #fff;
  text-decoration: none;
}

.wr-related-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.8s var(--works-ease);
}

.wr-related-item a:hover img {
  transform: scale(1.05);
}

.wr-related-item-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 8px 8px;
  font-size: 10px;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.wr-detail-header { display: contents; }

@media (min-width: 900px) {
  .wr-ig-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(400px, 38%);
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    min-height: calc(100vh - var(--s-header-h, 64px) - 48px);
    border: 1px solid var(--works-line);
  }

  .wr-ig-media {
    position: sticky;
    top: var(--s-header-h, 64px);
    /* Match source photos (4:3) — avoid tall portrait crop of landscape shots */
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: calc(100vh - var(--s-header-h, 64px) - 24px);
  }

  .wr-ig-carousel,
  .wr-ig-track,
  .wr-ig-slide {
    height: 100%;
  }

  .wr-ig-slide {
    aspect-ratio: auto;
  }

  .wr-ig-nav {
    display: flex;
  }

  .wr-ig-sheet {
    max-width: none;
    padding: 28px 24px 32px;
    overflow-y: auto;
    max-height: calc(100vh - var(--s-header-h, 64px));
  }

  .wr-ig-extra {
    max-width: 1100px;
    padding: 0 24px;
  }

  .wr-related h2 {
    max-width: 1100px;
  }
}

@media (max-width: 767px) {
  .wr-ig-sheet {
    padding: 16px 16px 0;
  }

  .wr-ig-extra {
    padding: 0 16px;
  }

  .wr-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========== Story ========== */
.works-story {
  background: #fff;
  border-top: 1px solid var(--works-line);
  padding: 64px 0 72px;
}

.works-story__inner {
  width: min(600px, calc(100% - 32px));
  margin-inline: auto;
}

.works-story__title {
  margin: 0 0 20px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--works-ink);
  line-height: 1.35;
}

.works-story p {
  margin: 0 0 1em;
  font-size: 14px;
  line-height: 2;
  color: var(--works-body);
  text-wrap: pretty;
}

.works-story p:last-child { margin-bottom: 0; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .wr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .wr-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
}

@media (max-width: 767px) {
  .works-hero__inner,
  .wr-container,
  .works-story__inner {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .works-hero__inner {
    width: calc(100% - 32px);
    margin-inline: auto;
    padding-top: calc(var(--s-header-h, 64px) + 20px);
    padding-bottom: 16px;
  }

  .works-hero__title {
    font-size: 28px;
    letter-spacing: 0.04em;
  }

  .works-hero__note {
    margin-top: 8px;
    font-size: 12px;
  }

  .wr-container {
    width: 100%;
  }

  .wr-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    z-index: 1400;
    width: min(320px, 88vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 28px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    border: none;
    background: #fff;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .wr-sidebar.open {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
  }

  .wr-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--works-line);
  }

  .wr-sidebar-heading {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--works-muted);
  }

  .wr-sidebar-close {
    display: block;
  }

  .wr-filter-group,
  .wr-filter-tags {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .wr-tag-panel {
    max-height: 42vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wr-tag-check {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .wr-filter-input,
  .wr-filter-select {
    width: 100%;
    max-width: none;
  }

  .wr-keyword-row {
    width: 100%;
  }

  .wr-keyword-row .wr-btn-search {
    flex: 0 0 auto;
  }

  .wr-area-buttons {
    flex-direction: column;
    gap: 0;
  }

  .wr-filter-actions {
    margin-left: 0;
    align-self: flex-start;
  }

  .wr-filter-toggle {
    display: inline-flex;
    margin: 0 16px 10px;
  }

  .wr-search-count {
    margin: 0 16px 8px;
  }

  .wr-main {
    padding-top: 8px;
  }

  .wr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .wr-card-body {
    padding: 28px 8px 8px;
    opacity: 1;
    transform: none;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.55) 0%,
      transparent 100%
    );
  }

  .wr-card-title {
    display: none;
  }

  .wr-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
  }

  .wr-card-meta-item {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
  }

  .wr-card-badge {
    top: 8px;
    left: 8px;
    font-size: 8px;
  }

  .works-story__inner {
    width: 100%;
  }

  .wr-layout {
    margin-bottom: 40px;
  }

  .wr-sidebar {
    border-top: none;
    border-bottom: none;
  }
}

/* Works image modal (vanilla; replaces broken jQuery Lightbox2) */
html.wr-lb-open,
html.wr-lb-open body {
  overflow: hidden;
}

.wr-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.wr-lb[hidden] {
  display: none !important;
}

.wr-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.wr-lb__dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wr-lb__figure {
  margin: 0;
  max-width: 100%;
  max-height: 92vh;
}

.wr-lb__img {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: calc(92vh - 28px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
}

.wr-lb__cap {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.wr-lb__close,
.wr-lb__nav {
  position: absolute;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.wr-lb__close {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  position: fixed;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.wr-lb__close::before,
.wr-lb__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: #fff;
}

.wr-lb__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wr-lb__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wr-lb__close:hover {
  background: rgba(17, 17, 17, 0.92);
}

.wr-lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
}

.wr-lb__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.wr-lb__nav--prev {
  left: max(8px, env(safe-area-inset-left));
}

.wr-lb__nav--next {
  right: max(8px, env(safe-area-inset-right));
}

.wr-lb__nav--prev::before,
.wr-lb__nav--next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
}

.wr-lb__nav--prev::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}

.wr-lb__nav--next::before {
  transform: translate(-60%, -50%) rotate(45deg);
}
.wr-images-private{margin:0;padding:48px 24px;text-align:center;background:#f3f3f2;color:#666;letter-spacing:.04em;line-height:1.7}.wr-ig-media--private{min-height:220px;display:flex;align-items:center;justify-content:center}
