/* 1.17.1 product sample catalogue: one row per photo set, small uniform thumbnails, lightbox. */
.yse-cat { display: block; margin: 8px 0 0; padding: 0; border-bottom: 1px solid var(--yw-rule, #d6d4ce); }
.yse-cat-set { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--yw-rule, #d6d4ce); margin: 0; }
.yse-cat-head { min-width: 0; }
.yse-cat-num { display: block; margin: 0 0 4px; font-family: var(--yw-serif, serif); font-size: 13px; line-height: 1; color: var(--yw-faint, #a5a29b); }
.yse-cat .yse-cat-name { margin: 0; font-family: var(--yw-serif, serif); font-size: 21px; font-weight: 500; line-height: 1.22; letter-spacing: 0; color: var(--yw-ink, #141414); text-transform: none; }
.yse-cat-count { display: block; margin-top: 6px; font-size: 11px; font-weight: 500; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; color: var(--yw-faint, #a5a29b); }
.yse-cat .yse-cat-text { grid-column: 2; margin: -8px 0 0; max-width: 62ch; font-size: 13px; line-height: 1.6; color: var(--yw-mute, #6d6a63); }
.yse-cat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 140px)); gap: 8px; align-content: start; }
@media (min-width: 901px) and (max-width: 1180px) {
	.yse-cat-set { grid-template-columns: 1fr; gap: 12px; }
	.yse-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
	.yse-cat-num, .yse-cat-count { margin: 0; }
	.yse-cat .yse-cat-text { grid-column: 1; margin: 0; }
	.yse-cat-row { grid-template-columns: repeat(5, minmax(0, 140px)); }
}
.yse-cat .yse-cat-item { position: relative; margin: 0 !important; overflow: hidden; background: var(--yw-tile, #ecebe7); aspect-ratio: 4 / 3; width: auto !important; }
.yse-cat .yse-cat-item--wide { grid-column: span 2; aspect-ratio: 3 / 2; background: #f1f0ec; }
.yse-cat .yse-cat-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.yse-cat .yse-cat-item img { display: block; width: 100% !important; height: 100% !important; max-width: none; aspect-ratio: auto !important; object-fit: cover; margin: 0; border-radius: 0; transition: transform 500ms cubic-bezier(.2, .7, .2, 1); }
.yse-cat .yse-cat-item--wide img { object-fit: contain; }
.yse-cat .yse-cat-link:hover img { transform: scale(1.04); }
.yse-cat .yse-cat-link:focus-visible { outline: 2px solid var(--yw-ink, #141414); outline-offset: 2px; }
.yse-cat .yse-cat-item figcaption { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.yiwen-product-gallery-starter > .yse-cat { margin-top: 6px !important; }
.yse-samples > .yse-cat { margin-top: 32px; }
@media (min-width: 901px) {
	.yse-product-details > .yse-samples > .yse-cat { grid-column: 3 / -1; }
}
@media (max-width: 900px) {
	.yse-cat-set { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
	.yse-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
	.yse-cat-num { margin: 0; }
	.yse-cat .yse-cat-name { font-size: 19px; }
	.yse-cat-count { margin: 0; }
	.yse-cat .yse-cat-text { grid-column: 1; margin: 0; }
	.yse-cat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}
/* Lightbox (reuses the theme's lightbox look, adds previous / next). */
.yse-lb { position: fixed; inset: 0; z-index: 100001; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px 72px; background: rgba(20, 20, 20, .97); }
.yse-lb[hidden] { display: none; }
.yse-lb img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.yse-lb-stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.yse-lb-cap { margin: 16px 0 0; color: #ecebe7; font-size: 13px; letter-spacing: .04em; text-align: center; }
.yse-lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(236, 235, 231, .35); border-radius: 0; background: rgba(20, 20, 20, .5); color: #fff; font: 300 28px/1 var(--yw-sans, sans-serif); cursor: pointer; }
.yse-lb button:hover, .yse-lb button:focus-visible { background: #fff; color: #141414; }
.yse-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.yse-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.yse-lb-close { top: 12px; right: 16px; }
body.yse-lb-open { overflow: hidden; }
@media (max-width: 640px) {
	.yse-lb { padding: 56px 8px 88px; }
	.yse-lb-prev, .yse-lb-next { top: auto; bottom: 16px; transform: none; }
	.yse-lb-prev { left: calc(50% - 56px); }
	.yse-lb-next { right: calc(50% - 56px); }
	.yse-lb-cap { position: absolute; left: 12px; right: 12px; bottom: 72px; }
}
.yiwen-product-gallery-starter > .yse-cat-more { margin-top: 14px !important; font-size: 13px; }
