/* React Bits Accordion Gallery, adapted to Malie Kai's existing type and palette. */
.collection{--collection-sage:#596f63;--collection-sea:#76938d;--collection-sun:#d9b775;--collection-ink:#243f34;--focus:#243f34;background:#edf2ee;color:var(--collection-ink)}
.collection-heading{max-width:1350px;margin:0 auto 40px;display:flex;align-items:end;justify-content:space-between;gap:24px}
.collection-heading h2{font-size:clamp(40px,4.4vw,68px);line-height:1.08}
.collection-hint{font-size:14px;color:#4b6258;max-width:24ch;text-align:right;line-height:1.6}
.collection-hint .touch-hint{display:none}
.accordion-gallery{--ag-gap:12px;--ag-radius:16px;max-width:1350px;margin:0 auto;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ag-panel{position:relative;min-width:0;list-style:none;border-radius:var(--ag-radius);background:var(--collection-sea);overflow:hidden}
.ag-media img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain}
.ag-toggle{display:none}
.ag-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:var(--collection-sage);color:var(--white)}
.ag-caption h3{margin:0;font-family:var(--display);font-size:clamp(23px,2vw,32px);line-height:1.12;font-weight:400;letter-spacing:-.025em}
.ag-caption a{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 0;font-size:14px;flex-shrink:0;text-decoration:underline}
.ag-caption a svg{width:18px;height:18px;color:var(--collection-sun)}
.ag-caption a:focus-visible{outline-color:var(--white)}
.ag-enhanced{display:flex;gap:var(--ag-gap);height:560px;contain:layout}
.ag-enhanced .ag-panel{flex:1 1 0;min-height:0}
.ag-enhanced .ag-media{position:absolute;left:50%;top:50%;width:var(--ag-media-width);height:var(--ag-media-height);pointer-events:none}
.ag-enhanced .ag-media img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;padding:16px 8px 80px;user-select:none;-webkit-user-drag:none}
.ag-enhanced .ag-toggle{display:block;position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:inherit;background:transparent;color:var(--ink);cursor:pointer;text-align:left;padding:0}
.ag-enhanced .ag-toggle:focus-visible{outline-offset:-5px}
.ag-closed-label{position:absolute;bottom:20px;left:50%;transform:translateX(-50%) rotate(180deg);writing-mode:vertical-rl;white-space:nowrap;font-family:var(--display);font-size:22px;line-height:1.2;letter-spacing:-.02em;padding:14px 9px;border-radius:10px;background:var(--paper);color:var(--collection-ink)}
.ag-selected .ag-closed-label{visibility:hidden}
.ag-enhanced .ag-caption{position:absolute;bottom:0;left:0;width:100%;min-height:76px;visibility:hidden;pointer-events:none}
.ag-enhanced .ag-selected .ag-caption{visibility:visible;pointer-events:auto}
.ag-panel:has(:focus-visible){outline:3px solid var(--focus);outline-offset:4px}
@media(max-width:1050px){.collection-heading{margin-bottom:32px}.ag-caption{padding:14px}.ag-caption h3{font-size:24px}.ag-caption a{font-size:13px;gap:4px}.ag-closed-label{font-size:19px}}
@media(max-width:700px){
  .collection-heading{align-items:start;flex-direction:column;gap:14px;margin-bottom:28px}
  .collection-heading h2{font-size:40px}
  .collection-hint{max-width:none;text-align:left;font-size:14px}
  .collection-hint .desktop-hint{display:none}.collection-hint .touch-hint{display:inline}
  .accordion-gallery{grid-template-columns:1fr;gap:24px;--ag-radius:12px}
  .ag-enhanced{flex-direction:column;gap:var(--ag-gap)}
  .ag-enhanced .ag-panel{min-height:64px}
  .ag-closed-label{writing-mode:horizontal-tb;transform:none;left:18px;bottom:auto;top:50%;translate:0 -50%;padding:6px 10px;font-size:21px}
  .ag-enhanced .ag-caption{padding:12px 16px;min-height:76px}
  .ag-caption h3{font-size:25px}
  .ag-caption a{font-size:14px}
}
