/* Tucson Repertory Orchestra · the front page's Pictures (14 Nov 2026): three ribbons of photographs.
   Script: /js/pictures.js. This sheet is loaded by the front page only (src/pages/index.html), not built into site.css. */

.pw-row { padding-bottom: 26px; }
.pw-row .pw-intro { margin: 0; font-style: italic; font-size: 21px; line-height: 1.35; color: var(--ink-soft); }
.pw-row .pw-links { margin: 8px 0 0; font-size: 16.5px; }

.pw { --pw-h: clamp(98px, 10.5vw, 178px); --pw-hb: clamp(130px, 15vw, 252px); --pw-gap: 8px; margin: 0 0 44px; }
.pw[hidden] { display: none; }

/* the stage runs the full width of the window; the script measures how far that is from the column */
.pw-stage { position: relative; display: grid; gap: var(--pw-gap); overflow: hidden; margin: 0 calc(-1 * var(--pw-bleed-r, 0px)) 0 calc(-1 * var(--pw-bleed-l, 0px)); padding: 16px 0; }
.pw-stage::before, .pw-stage::after { content: ''; position: absolute; top: 0; bottom: 0; width: clamp(22px, 8vw, 170px); z-index: 3; pointer-events: none; }
.pw-stage::before { left: 0; background: linear-gradient(to right, var(--paper) 4%, transparent); }
.pw-stage::after { right: 0; background: linear-gradient(to left, var(--paper) 4%, transparent); }

.pw-ribbon { height: var(--pw-h); overflow: hidden; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; transition: opacity 1.5s ease var(--pw-wait, 0s), transform 2.2s cubic-bezier(.16, .72, .2, 1) var(--pw-wait, 0s); }
.pw-ribbon.big { height: var(--pw-hb); }
.pw-ribbon.dragging { cursor: grabbing; }
.pw:not(.in) .pw-ribbon { opacity: 0; transform: translate3d(var(--pw-from, 0px), 0, 0); }
.pw-track { display: flex; column-gap: var(--pw-gap); height: 100%; will-change: transform; }

.pw-tile { position: relative; flex: none; height: 100%; margin: 0; overflow: hidden; background: var(--paper-deep); }
.pw-tile.gone { visibility: hidden; }
.pw-tile img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) contrast(1.08) brightness(1.04); transform: scale(1.001); transition: opacity 1.1s ease, filter 1.6s ease, transform 1.8s cubic-bezier(.2, .7, .2, 1); -webkit-user-drag: none; pointer-events: none; }
.pw-tile img.ok { opacity: 1; }
/* asleep: the photograph in monochrome, toned by the paper it sits on */
.pw-tile::after { content: ''; position: absolute; inset: 0; background: #e3d3b4; mix-blend-mode: multiply; opacity: .9; transition: opacity 1.6s ease; pointer-events: none; }
.pw-tile.lit img { filter: none; }
.pw-tile.lit::after { opacity: 0; }

.pw-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 30px 12px 9px; background: linear-gradient(to top, rgba(28, 26, 23, .9), rgba(28, 26, 23, .55) 55%, transparent); color: var(--paper); font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.28; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s ease; pointer-events: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
@media (hover: hover) {
  .pw-ribbon:not(.dragging) .pw-tile:hover img { filter: none; transform: scale(1.045); transition-duration: 1.1s, .5s, 1.8s; }
  .pw-ribbon:not(.dragging) .pw-tile:hover::after { opacity: 0; transition-duration: .5s; }
  .pw-ribbon:not(.dragging) .pw-tile:hover figcaption { opacity: 1; transform: none; }
  .pw-ribbon:not(.dragging) .pw-tile:hover { cursor: zoom-in; }
}

/* under the ribbons, in the column: how many, and the two buttons */
.pw-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; }
.pw-note { margin: 0; font-size: 15.5px; font-style: italic; color: var(--ink-soft); }
.pw-note b { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #7f5e1c); margin-right: 12px; }
.pw-acts { display: flex; gap: 8px; }
.pw-btn { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 9px 14px; border: 1px solid var(--rule-light); background: transparent; color: var(--ink); cursor: pointer; }
.pw-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pw-btn:focus-visible { outline: 2px solid var(--accent, #7f5e1c); outline-offset: 2px; }
.pw-btn[hidden] { display: none; }

/* the photograph opened whole (the site's lightbox, with a soft arrival) */
.pw-lightbox img { opacity: 0; transition: opacity .45s ease; }
.pw-lightbox img.ok { opacity: 1; }
.pw-lightbox .cap span { white-space: nowrap; }
.pw-lightbox button:focus-visible { outline: 2px solid var(--accent-light, #d9b45a); outline-offset: -6px; }

/* reduced motion: nothing moves by itself; each row is a strip to scroll, in color */
.pw-still .pw-ribbon { overflow-x: auto; overflow-y: hidden; cursor: default; touch-action: auto; scrollbar-width: thin; scrollbar-color: var(--rule-light) transparent; transition: none; }
.pw-still .pw-ribbon { height: calc(var(--pw-h) + 12px); padding-bottom: 12px; }
.pw-still .pw-ribbon.big { height: calc(var(--pw-hb) + 12px); }
.pw-still .pw-track { will-change: auto; }
.pw-still .pw-tile img, .pw-still .pw-tile::after, .pw-still .pw-tile figcaption { transition: none; }
.pw-still .pw-tile { cursor: zoom-in; }
.pw-still .pw-stage::before, .pw-still .pw-stage::after { width: clamp(14px, 4vw, 70px); }

@media (max-width: 760px) {
  .pw { margin-bottom: 34px; }
  .pw-stage { padding: 10px 0; }
  .pw { --pw-gap: 6px; }
  .pw-note b { display: block; margin: 0 0 4px; }
  .pw-bar { align-items: flex-end; }
}
@media print { .pw { display: none; } }
