/* Every built-in look on one shot: a grid of thumbnails, and a large view with a before/after
   switch (viewer.js). Used by the Color Lab Camera page and by its manual's Looks page. */
.looks-grid { display: grid; gap: 28px; }
.looks-fam-name { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--w40, rgba(255,255,255,.4)); margin: 0 0 12px; }
.looks-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.look-tile { all: unset; box-sizing: border-box; display: block; cursor: zoom-in; border-radius: 12px; overflow: hidden; border: 1px solid var(--l10, rgba(255,255,255,.1)); background: var(--well, #0c0c0c); transition: border-color .2s, transform .2s; }
.look-tile:hover, .look-tile:focus-visible { border-color: var(--tint, #F5C518); }
.look-tile img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; border: 0; border-radius: 0; }
.look-tile span { display: block; padding: 8px 10px 9px; font-size: 12.5px; line-height: 1.3; color: var(--w80, rgba(255,255,255,.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.looks-hint { margin: 0 0 22px; font-size: 14px; color: var(--w60, rgba(255,255,255,.6)); }

.look-view { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .96); display: grid; grid-template-rows: auto minmax(0, 1fr); color: #fff; font-family: inherit; }
.look-view[hidden] { display: none; }
.look-view-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
.look-view-name { font-size: 17px; font-weight: 500; margin-right: auto; display: grid; gap: 2px; min-width: 0; }
.look-view-name small { font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.look-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1); }
.look-switch button { all: unset; cursor: pointer; padding: 7px 18px; border-radius: 999px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.look-switch button[aria-pressed="true"] { background: #F5C518; color: #000; font-weight: 600; }
.look-switch button:focus-visible, .look-nav:focus-visible, .look-close:focus-visible { outline: 2px solid #F5C518; outline-offset: 2px; }
.look-close, .look-nav { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 20px; line-height: 1; flex: none; }
.look-close:hover, .look-nav:hover { background: rgba(255,255,255,.2); }
.look-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 14px 18px; min-height: 0; }
.look-pic { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.look-pic img { grid-area: 1 / 1; max-width: 100%; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); width: auto; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 10px; margin: 0; border: 0; pointer-events: none; }
.look-pic img.look-before { opacity: 0; }
.look-pic.shows-before img.look-before { opacity: 1; }
.look-tag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.6); font-size: 12px; letter-spacing: .04em; pointer-events: none; }
@media (max-width: 700px) {
  .looks-tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .look-stage { grid-template-columns: 1fr; padding: 0 0 12px; }
  .look-nav { position: absolute; bottom: 18px; z-index: 1; }
  .look-nav.prev { left: 16px; } .look-nav.next { right: 16px; }
  .look-view-bar { padding: 12px 14px; gap: 10px; }
  .look-pic img { border-radius: 0; max-height: calc(100dvh - 150px); }
  .look-tag { bottom: 72px; }
}
