/* Expanded controls for the Fujin & Raijin image experience. */
/* Keep each reference image, number, name and enquiry inside one card. */
.artwork-gallery-grid > .artwork-card:not(.artwork-card-featured) { display: flex; flex-direction: column; align-self: stretch; overflow: hidden; border: 1px solid rgba(117,99,70,.2); border-radius: 3px; background: #fbf8f1; }
.artwork-gallery-grid .artwork-card .design-caption { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 16px 12px 12px; color: var(--sumi); text-align: center; }
.artwork-card .design-caption .artwork-number { display: block; margin: 0; color: #80673d; font-family: var(--font-serif-en, Georgia, serif); font-size: 12px; line-height: 1.4; letter-spacing: .09em; }
.artwork-card .design-caption .design-name { font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; line-height: 1.5; letter-spacing: .03em; overflow-wrap: anywhere; }
.artwork-gallery-grid > .artwork-card:not(.artwork-card-featured) .artwork-inquiry { align-self: center; margin: auto 12px 16px; text-align: center; }
@media (max-width: 560px) { .artwork-gallery-grid .artwork-card .design-caption { padding: 12px 8px 10px; gap: 4px; } }
.gallery-thumbnails {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-control-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.gallery-position,
.lightbox-position {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .14em;
  white-space: nowrap;
}

.gallery-lightbox {
  box-sizing: border-box;
  width: min(96vw, 1440px);
  overflow: hidden;
}

.lightbox-toolbar {
  gap: 16px;
}

.lightbox-heading,
.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-heading { min-width: 0; }
.lightbox-tools { flex-wrap: wrap; justify-content: flex-end; }
.lightbox-tools [data-zoom-level] {
  min-width: 48px;
  color: var(--text-muted);
  text-align: center;
  font-size: 10px;
}

.lightbox-canvas {
  position: relative;
  display: grid;
  width: 100%;
  height: min(76vh, 880px);
  min-height: 320px;
  overflow: hidden;
  place-items: center;
  background: radial-gradient(ellipse at 45% 38%, #fffdf8, #e8dfd2 82%);
  cursor: zoom-in;
  touch-action: none;
}

.lightbox-canvas.is-zoomed { cursor: grab; }
.lightbox-canvas.is-dragging { cursor: grabbing; }

.lightbox-canvas > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
  transition: transform .16s ease-out;
}

.lightbox-canvas.is-dragging > img { transition: none; }
.lightbox-canvas.is-zoomed > img { cursor: grab; }

.lightbox-canvas .lightbox-nav {
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 800px) {
  .gallery-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lightbox-toolbar { align-items: flex-start; flex-direction: column; }
  .lightbox-tools { width: 100%; justify-content: flex-start; }
  .lightbox-canvas { height: min(68vh, 720px); min-height: 280px; }
}

@media (max-width: 560px) {
  .gallery-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-control-meta { flex-direction: column; gap: 2px; }
  .gallery-lightbox { width: 98vw; max-height: 96vh; padding: 12px; }
  .lightbox-toolbar { gap: 9px; padding-bottom: 9px; }
  .lightbox-tools { gap: 6px; }
  .lightbox-tools button { padding: 7px 9px; }
  .lightbox-canvas { height: min(66vh, 620px); min-height: 240px; }
  .lightbox-canvas .lightbox-prev { left: 6px; }
  .lightbox-canvas .lightbox-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-canvas > img { transition: none; }
}

/* Compact image viewer attached to the featured product card. */
.wind-gallery-viewer { grid-column: 1; grid-row: 1 / span 5; align-self: start; min-width: 0; }
.wind-gallery-main { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; }
.wind-gallery-main > img { display: block; width: 100%; max-height: 760px; object-fit: contain; }
.wind-gallery-main:focus-visible, .wind-gallery-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wind-gallery-zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; background: rgba(23,23,20,.76); color: #fff; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.wind-gallery-thumbs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.wind-gallery-thumb { padding: 3px; border: 1px solid rgba(117,99,70,.3); background: rgba(255,255,255,.42); cursor: pointer; }
.wind-gallery-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wind-gallery-thumb img { display: block; width: 100%; height: 90px; object-fit: cover; }
@media (max-width: 560px) {
  .wind-gallery-viewer { grid-column: 1; grid-row: auto; }
  .wind-gallery-thumb img { height: 72px; }
}
/* Brand introduction placed immediately after the hero. */
.brand-story { padding-block: clamp(64px, 9vw, 120px); background: linear-gradient(180deg, #f7f3ec, #f1ebdf); }
.brand-story-inner { max-width: 920px; }
.brand-story-block { max-width: 760px; margin-inline: auto; }
.brand-story-block h2 { margin: 0 0 24px; color: var(--sumi); font-family: var(--font-display, Georgia, serif); font-size: clamp(27px, 4vw, 46px); font-weight: 400; line-height: 1.55; letter-spacing: .025em; }
.brand-story-block p { margin: 0 0 16px; color: var(--text-muted); font-size: clamp(14px, 1.25vw, 16px); line-height: 2.15; }
.brand-story-commission { margin-top: clamp(48px, 7vw, 82px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid rgba(117,99,70,.24); }
.brand-story-block .brand-story-emphasis { margin-top: 28px; color: var(--sumi); font-size: clamp(16px, 1.55vw, 19px); }
.brand-story-emphasis strong { font-weight: 500; }
@media (max-width: 560px) {
  .brand-story { padding-block: 58px; }
  .brand-story-block h2 { margin-bottom: 18px; }
}

/* Shared sizing and controls for both featured glasses. */
.artwork-card-featured .artwork-notices { align-self: stretch; margin-top: 20px; padding-top: 12px; border-top: 1px solid rgba(117,99,70,.16); }
.artwork-card-featured .artwork-notices .artwork-notice,
.collection-section .collection-notice { margin: 6px 0 0; color: #777064; font-size: 11px; font-weight: 400; line-height: 1.7; text-align: right; letter-spacing: normal; }
.collection-section .collection-notice { width: min(100%, 1120px); margin: 24px auto 0; padding-inline: 20px; box-sizing: border-box; }
.artwork-card.artwork-card-featured .wind-gallery-viewer { width: min(100%, 560px, 56vh); max-width: 100%; min-width: 0; align-self: center; }
.product-gallery-stage { position: relative; width: 100%; min-width: 0; overflow: hidden; touch-action: pan-y; }
.artwork-card-featured .wind-gallery-viewer .wind-gallery-main { position: relative; width: 100%; max-width: none; aspect-ratio: 4 / 5; }
.artwork-card-featured .wind-gallery-viewer .wind-gallery-main > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; transform: none; box-shadow: none; user-select: none; -webkit-user-drag: none; }
.artwork-card-featured .wind-gallery-viewer .wind-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(70px, 100%), 1fr)); width: 100%; gap: 8px; margin: 12px auto 0; }
.artwork-card-featured .wind-gallery-viewer .wind-gallery-thumb { flex: 1 1 0; min-width: 0; }
.artwork-card-featured .wind-gallery-viewer .wind-gallery-thumb img { width: 100%; height: 68px; object-fit: contain; transform: none; box-shadow: none; }
.product-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 48px; border: 1px solid rgba(117,99,70,.3); background: rgba(255,253,248,.9); color: var(--sumi); font-size: 30px; cursor: pointer; }
.product-gallery-prev { left: 8px; }
.product-gallery-next { right: 8px; }
.product-gallery-position { margin-top: 10px; text-align: center; font-size: 11px; color: var(--text-muted); }
.product-gallery-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
@media (max-width: 560px) { .artwork-card-featured .wind-gallery-viewer .wind-gallery-thumb img { height: 52px; } }
