/* Haircuts (Story 5725, 2026-11-08) -- what the Computers / Houses styles do not cover:
   the photo strip on a visit card, the gallery, the rating stars and the photo viewer. */

.hc-stars { color: #c8962c; letter-spacing: 1px; white-space: nowrap; }
.hc-stars .off { color: #cfc6b4; }

/* ---- photos on a visit card ---- */
.hc-photos { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 2px; -webkit-overflow-scrolling: touch; }
.hc-thumb { position: relative; flex: 0 0 auto; width: 96px; height: 96px; border-radius: 8px; overflow: hidden;
            background: #ece6da; border: 1px solid #d8cfbd; cursor: pointer; padding: 0; }
.hc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-thumb .hc-tag { position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 700; padding: 1px 5px;
                    border-radius: 4px; background: rgba(60, 60, 60, .78); color: #fff; }
.hc-thumb .hc-tag.before { background: rgba(140, 90, 30, .85); }
.hc-photo-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---- the gallery ---- */
.hc-gallery { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 24px; }
.hc-gallery.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hc-gcard { background: #fffdf8; border: 1px solid #e2d9c7; border-radius: 12px; padding: 10px 12px; }
.hc-gcard-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.hc-gcard-date { font-weight: 700; font-size: 1.05em; }
.hc-gcard-meta { color: #6b6253; font-size: .92em; }
.hc-gcard-felt { color: #4d463b; font-style: italic; margin: 4px 0 6px; }
.hc-gphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hc-gphoto { position: relative; border-radius: 10px; overflow: hidden; background: #ece6da; border: 1px solid #d8cfbd;
             aspect-ratio: 3 / 4; cursor: pointer; padding: 0; }
.hc-gphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-gphoto .hc-tag { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; padding: 2px 6px;
                     border-radius: 5px; background: rgba(60, 60, 60, .78); color: #fff; }
.hc-gphoto .hc-tag.before { background: rgba(140, 90, 30, .85); }
.hc-gphoto .hc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 12px;
                     background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; }
.hc-gallery.is-grid .hc-gcard { padding: 6px; }
.hc-gallery.is-grid .hc-gphotos { grid-template-columns: 1fr; }
.hc-gallery.is-grid .hc-gcard-felt { display: none; }
.hc-nophoto { color: #8a8170; font-size: .92em; padding: 8px 0; }

/* ---- the photo viewer (closes by its own buttons or Escape only) ---- */
.hc-viewer { position: fixed; inset: 0; z-index: 4000; background: rgba(20, 18, 14, .94); display: flex;
             flex-direction: column; align-items: stretch; }
.hc-viewer-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #f3ede2; }
.hc-viewer-title { flex: 1 1 auto; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-viewer-img { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; }
.hc-viewer-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.hc-viewer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.hc-viewer .ed-btn { min-width: 84px; }
@media (max-width: 480px) { .hc-viewer-bottom .ed-btn { min-width: 0; flex: 1 1 0; padding-left: 6px; padding-right: 6px; } }
