/* All model galleries from RIMI: local responsive files, native expandable detail views. */
.ml-wardrobes-page .wd-gallery-note{max-width:760px;color:var(--ab-muted);margin-bottom:32px}
.ml-wardrobes-page .wd-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 30px;align-items:start}
.ml-wardrobes-page .wd-model{min-width:0;scroll-margin-top:calc(var(--ml-header-height,90px) + 24px)}
.ml-wardrobes-page .wd-model h3{font-size:26px;font-weight:400;margin:0 0 18px;line-height:1.25;min-height:2.5em}
.ml-wardrobes-page .wd-photo-link{display:block;background:var(--ab-soft);cursor:zoom-in}
.ml-wardrobes-page .wd-photo-link img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.ml-wardrobes-page .wd-model-details{margin-top:12px;border-bottom:1px solid var(--ab-line)}
.ml-wardrobes-page .wd-model-details summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:10px 0;cursor:pointer;list-style:none;font-size:14px}
.ml-wardrobes-page .wd-model-details summary::-webkit-details-marker{display:none}
.ml-wardrobes-page .wd-model-details summary span{font-size:24px;transition:transform .2s}
.ml-wardrobes-page .wd-model-details[open] summary span{transform:rotate(45deg)}
.ml-wardrobes-page .wd-model-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:6px 0 18px;align-items:start}
.ml-wardrobes-page .wd-model .wd-model-source,.ml-wardrobes-page .wd-gallery-source{font-size:12px;line-height:1.6;color:var(--ab-muted);margin:14px 0 0}
.ml-wardrobes-page .wd-model-source a,.ml-wardrobes-page .wd-gallery-source a{text-decoration:underline;text-underline-offset:4px}
.ml-wardrobes-page .wd-gallery-source{margin-top:30px}
@media(max-width:700px){.ml-wardrobes-page .wd-model-grid{grid-template-columns:1fr;gap:32px}}
@media(prefers-reduced-motion:reduce){.ml-wardrobes-page .wd-model-details summary span{transition:none}}

/* Full-screen wardrobe image; no tint over the photograph. */
.ml-wardrobes-page .wd-hero{height:100svh;min-height:420px;position:relative;overflow:hidden;background:#292c29}
.ml-wardrobes-page .wd-hero>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.ml-wardrobes-page .wd-hero-content{position:absolute;left:7%;right:7%;bottom:7%;color:#fff;text-shadow:0 2px 16px #0009}
.ml-wardrobes-page .wd-hero h1{margin:0;font-size:clamp(44px,8vw,110px);line-height:1.1}
.ml-wardrobes-page .wd-intro{padding-top:64px}
@media(max-width:700px){.ml-wardrobes-page .wd-hero{min-height:400px}.ml-wardrobes-page .wd-hero>img{object-position:43% center}.ml-wardrobes-page .wd-intro{padding-top:40px}.ml-wardrobes-page .wd-model h3{min-height:0}}

/* Catalog cards open local model pages. */
.ml-wardrobes-page .wd-model-page-link{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}
.ml-wardrobes-page .wd-model-page-link>img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.ml-wardrobes-page .wd-model-page-link h3{margin:20px 0 12px;min-height:2.5em}
.ml-wardrobes-page .wd-card-description{color:var(--ab-muted);font-size:15px;line-height:1.7;margin:0 0 18px;min-height:3.4em}
.ml-wardrobes-page .wd-model-more{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--ab-line);padding:12px 0;font-size:14px;margin-top:auto;min-height:44px}
.ml-wardrobes-page .wd-model-grid{align-items:stretch}
.ml-wardrobes-page .wd-model-page-link:focus-visible{outline:2px solid currentColor;outline-offset:6px}
.ml-wardrobes-page .wd-model-page-link:hover .wd-model-more{text-decoration:underline;text-underline-offset:5px}
.wd-detail-page .wd-product{padding-top:calc(var(--ml-header-height,90px) + 40px)}
.wd-back{display:inline-block;color:inherit;margin-bottom:30px;text-decoration:underline;text-underline-offset:5px}
.wd-product-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:5vw;align-items:start}
.wd-product-cover{position:sticky;top:calc(var(--ml-header-height,90px) + 24px);background:var(--ab-soft)}
.wd-product-cover img{display:block;width:100%;height:auto}
.ml-wardrobes-page .wd-product-info h1{font-size:clamp(36px,4.5vw,68px);margin:18px 0 24px;letter-spacing:-.035em}
.wd-product-description{font-size:17px;line-height:1.8;margin:0 0 26px}
.wd-specs{margin:0 0 24px}.wd-specs>div{display:grid;grid-template-columns:110px 1fr;gap:18px;border-top:1px solid var(--ab-line);padding:14px 0;font-size:14px;line-height:1.65}.wd-specs dt{color:var(--ab-muted)}.wd-specs dd{margin:0}
.wd-product-note{color:var(--ab-muted);font-size:13px;line-height:1.7;margin-bottom:24px}
.wd-product-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.ml-wardrobes-page .wd-product-photos .wd-photo-link img{height:auto;aspect-ratio:auto;object-fit:contain}
@media(max-width:900px){.wd-product-layout{grid-template-columns:1fr;gap:32px}.wd-product-cover{position:static}.ml-wardrobes-page .wd-product-info h1{font-size:clamp(36px,7vw,60px)}}
@media(max-width:700px){.ml-wardrobes-page .wd-model-page-link h3{min-height:0}.wd-product-photos{grid-template-columns:1fr;gap:18px}.ml-wardrobes-page .wd-card-description{min-height:0}.wd-specs>div{grid-template-columns:90px 1fr;gap:14px}}

/* The complete model gallery sits beside its description. */
.wd-carousel{min-width:0;background:transparent}
.wd-product-layout>*{min-width:0}
.wd-carousel-track{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;background:var(--ab-soft);border-radius:0}
.wd-carousel-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.wd-carousel-slide .wd-photo-link{width:100%;aspect-ratio:4/3;height:min(65svh,560px);display:flex;align-items:center;justify-content:center}
.ml-wardrobes-page .wd-carousel-slide .wd-photo-link img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.wd-carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}
.wd-carousel-controls button{display:grid;place-items:center;width:48px;height:44px;border:1px solid var(--ab-line);background:transparent;color:inherit;font:inherit;font-size:22px;cursor:pointer}
.wd-carousel-counter{font-size:13px;font-variant-numeric:tabular-nums;color:var(--ab-muted)}
.wd-carousel-thumbs{position:relative;display:flex;gap:10px;overflow-x:auto;scrollbar-width:thin;padding:4px 2px 8px;margin-top:12px;overscroll-behavior-x:contain}
.wd-carousel-thumb{flex:0 0 76px;box-sizing:border-box;width:76px;height:60px;padding:2px;border:1px solid transparent;background:var(--ab-soft);cursor:pointer;opacity:.55}
.wd-product-cover .wd-carousel-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.wd-carousel-thumb[aria-current="true"]{border-color:currentColor;opacity:1}
.wd-carousel-thumb:hover{opacity:1}
.wd-carousel button:focus-visible,.wd-carousel-track:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.wd-carousel-controls[hidden],.wd-carousel-thumbs[hidden]{display:none}
@media(max-width:900px){.wd-carousel-slide .wd-photo-link{height:min(60svh,520px)}}
@media(max-width:700px){.wd-carousel-slide .wd-photo-link{height:auto;aspect-ratio:4/3}.wd-carousel-thumb{flex-basis:68px;width:68px;height:54px}}

.wd-storage h2 { scroll-margin-top: calc(var(--ml-header-height, 90px) + 52px); }
.ml-wardrobes-page .wd-storage h2 {
  font-size: clamp(32px, 4.35vw, 66px);
  overflow-wrap: anywhere;
}
.wd-storage__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(24px, 3vw, 48px);
}
.wd-storage__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 444 / 318;
  object-fit: cover;
}
.wd-storage__grid article:last-child img { object-position: center 59%; }
.ml-wardrobes-page .wd-storage__grid h3 {
  margin: 16px 0 7px;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.2;
}
.wd-storage__grid p { margin: 0; color: var(--ab-muted); }
@media (max-width: 700px) {
  .wd-storage__grid { grid-template-columns: 1fr; gap: 26px; }
}
