/*
 * NOWON Band - HTML template
 * Gallery page: featured photo, the reel, albums by year, photographers,
 * press photos and the fullscreen photo viewer.
 *
 * TABLE OF CONTENTS
 *  01. Featured photo
 *  02. The wall: head, chips and reel
 *  03. The wall: year ruler
 *  04. By year: album shelf
 *  05. Photographers: polaroids
 *  06. Press photos: file list
 *  07. Photo viewer
 *  08. Media queries
 */

/* ==========================================================================
   01. Featured photo
   ========================================================================== */
.gal-feat__stage {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: var(--stripes), var(--surface);
}

.gal-feat__photos {
  position: absolute;
  inset: 0;
}

.gal-feat__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.gal-feat__photo.is-on {
  opacity: 1;
}

.gal-feat__photo .slot-size {
  top: 38%;
}

.gal-feat__bars {
  position: absolute;
  left: clamp(20px, 3vw, 44px);
  right: clamp(20px, 3vw, 44px);
  top: clamp(16px, 2vw, 28px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.gal-feat__bar {
  display: block;
  height: 14px;
  padding: 5px 0;
  border: 0;
  background: transparent;
}

.gal-feat__track {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(245, 237, 216, .25);
}

.gal-feat__fill {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  border-radius: 2px;
  background: var(--cream);
}

.gal-feat__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 40px;
  padding: clamp(20px, 3vw, 44px);
  background: linear-gradient(transparent, rgba(18, 17, 16, .92) 60%);
}

.gal-feat__caps {
  display: grid;
  min-width: 0;
}

.gal-feat__cap {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s ease, visibility 0s .4s;
}

.gal-feat__cap.is-on {
  visibility: visible;
  opacity: 1;
  transition: opacity .4s ease, visibility 0s;
}

.gal-feat__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .25em;
}

.gal-feat__cat {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--ink);
}

.gal-feat__no {
  align-self: center;
  color: var(--muted);
}

.gal-feat__title {
  margin-top: 16px;
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 84px);
  line-height: .92;
  letter-spacing: -.045em;
}

.gal-feat__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.gal-feat__ctrl {
  display: flex;
  gap: 10px;
}

.gal-feat__btn {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.gal-feat__btn:not(.icon-btn--acc) {
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .4);
}

.gal-feat__full {
  height: 56px;
  font-size: 11px;
  letter-spacing: .2em;
}

/* ==========================================================================
   02. The wall: head, chips and reel
   ========================================================================== */
.gal-wall {
  --gw-k: 1;
  overflow-x: clip;
}

.gal-wall__ghost {
  position: absolute;
  right: -20px;
  top: 0;
  font-weight: 700;
  font-size: clamp(160px, 20vw, 340px);
  line-height: .8;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--acc) 30%, transparent);
  pointer-events: none;
}

.gal-wall .section-head {
  position: relative;
  margin-bottom: 0;
}

.gal-wall__ctrl {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gal-wall__pos {
  font-size: 14px;
  white-space: nowrap;
}

.gal-wall__pause {
  height: 56px;
  padding: 0 20px;
  font-size: 11px;
  letter-spacing: .2em;
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .35);
}

.gal-wall__btn {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.gal-wall__btn:not(.icon-btn--acc) {
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .35);
}

.gal-wall__chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.gal-wall__chip,
.gal-wall__clear {
  padding: 0 16px;
  letter-spacing: .18em;
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .25);
}

.gal-wall__clear,
.gal-wall__clear:hover {
  background: var(--cream);
  color: var(--ink);
  box-shadow: none;
}

.gal-wall__clear[hidden] {
  display: none;
}

.gal-wall__reel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: calc(600px * var(--gw-k));
  margin-top: 30px;
  padding: 0 var(--gw-pad, 20px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.gal-wall__reel::-webkit-scrollbar {
  display: none;
}

.gal-wall__cell {
  flex: none;
  width: calc(420px * var(--gw-k));
}

.gal-wall__cell--wide {
  width: calc(640px * var(--gw-k));
}

.gal-wall__cell--tall {
  width: calc(320px * var(--gw-k));
}

.gal-wall__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  text-align: left;
  cursor: zoom-in;
  opacity: .35;
  transform: scale(.84);
  transition: transform .4s cubic-bezier(.3, 1.2, .5, 1), opacity .4s ease;
}

.gal-wall__cell.is-near .gal-wall__item {
  opacity: .6;
  transform: scale(.92);
}

.gal-wall__cell.is-centre .gal-wall__item {
  opacity: 1;
  transform: scale(1.08);
}

.gal-wall__item:focus-visible {
  opacity: 1;
  outline-offset: 6px;
}

.gal-wall__photo {
  display: block;
  height: calc(440px * var(--gw-k));
  border-radius: 14px;
}

.gal-wall__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow .3s ease;
}

.gal-wall__cell.is-centre .gal-wall__photo::after {
  box-shadow: inset 0 0 0 2px var(--acc);
}

.gal-wall__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
}

.gal-wall__city {
  min-width: 0;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.gal-wall__year {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.gal-wall__cap {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.gal-wall__none {
  padding: 30px 0;
  color: var(--muted);
  font-size: 17px;
}

/* ==========================================================================
   03. The wall: year ruler
   ========================================================================== */
.gal-wall__ruler {
  position: relative;
  height: 40px;
  margin-top: 20px;
}

.gal-wall__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: var(--line-2);
}

.gal-wall__rail-fill {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  background: var(--acc);
  transition: width .2s ease;
}

.gal-wall__ticks {
  position: absolute;
  inset: 0;
}

.gal-wall__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.gal-wall__tick--0 {
  left: 0;
  transform: none;
}

.gal-wall__tick--1 {
  left: 12.5%;
}

.gal-wall__tick--2 {
  left: 25%;
}

.gal-wall__tick--3 {
  left: 37.5%;
}

.gal-wall__tick--4 {
  left: 50%;
}

.gal-wall__tick--5 {
  left: 62.5%;
}

.gal-wall__tick--6 {
  left: 75%;
}

.gal-wall__tick--7 {
  left: 87.5%;
}

.gal-wall__tick--8 {
  left: 100%;
  transform: translateX(-100%);
}

.gal-wall__yr {
  display: block;
  padding: 16px 4px 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
}

.gal-wall__yr:hover {
  color: var(--cream);
}

.gal-wall__yr.is-on {
  color: var(--acc);
  font-weight: 800;
}

.gal-wall__yr.is-empty {
  color: rgba(143, 136, 122, .4);
  cursor: default;
}

/* ==========================================================================
   04. By year: album shelf
   ========================================================================== */
.gal-shelf {
  --shelf-h: 500px;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: var(--shelf-h);
  padding: 0 10px;
  border-bottom: 16px solid var(--surface-2);
  box-shadow: 0 24px 30px -20px rgba(0, 0, 0, .8);
}

.gal-shelf__book {
  --lean: 0deg;
  --ty: 0px;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: calc(var(--shelf-h) - 110px);
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: var(--surface-2);
  color: var(--cream);
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(245, 237, 216, .12);
  transform-origin: bottom center;
  transform: rotate(var(--lean)) translateY(var(--ty));
  transition: flex .6s cubic-bezier(.3, 1.1, .4, 1), height .5s ease, transform .5s var(--spring), background-color .3s ease;
}

.gal-shelf__book--1 {
  height: calc(var(--shelf-h) - 84px);
  background: #1f1d1b;
}

.gal-shelf__book--2 {
  height: calc(var(--shelf-h) - 58px);
  background: #34302c;
}

.gal-shelf__book.is-before {
  --lean: 2.5deg;
}

.gal-shelf__book.is-after {
  --lean: -2.5deg;
}

.gal-shelf__book.is-open {
  --ty: -8px;
  flex: 0 0 min(860px, 62%);
  height: calc(var(--shelf-h) - 30px);
  background: var(--acc);
  color: var(--ink);
}

.gal-shelf__spine {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
}

.gal-shelf__spine:focus-visible {
  outline-offset: -4px;
}

.gal-shelf__spine-text {
  position: absolute;
  left: 50%;
  top: 50%;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .25em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg);
  transition: opacity .2s ease;
}

.gal-shelf__book.is-open .gal-shelf__spine {
  z-index: 0;
  pointer-events: none;
}

.gal-shelf__book.is-open .gal-shelf__spine-text {
  opacity: 0;
}

.gal-shelf__open {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility 0s .2s;
}

.gal-shelf__book.is-open .gal-shelf__open {
  visibility: visible;
  opacity: 1;
  transition: opacity .3s ease .2s, visibility 0s;
}

.gal-shelf__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.gal-shelf__year {
  font-weight: 800;
  font-size: clamp(48px, 5vw, 76px);
  line-height: .85;
  letter-spacing: 0;
}

.gal-shelf__title {
  margin-top: 12px;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.05;
}

.gal-shelf__story {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.gal-shelf__go {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .2em;
  text-align: left;
}

.gal-shelf__go:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gal-shelf__go:focus-visible {
  outline-color: var(--ink);
}

.gal-shelf__prints {
  position: relative;
  min-width: 0;
  border-left: 2px solid rgba(18, 17, 16, .25);
}

.gal-shelf__print {
  --x: 0%;
  --y: 0%;
  --r: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(40%, 190px);
  aspect-ratio: 3 / 4;
  padding: 6px 6px 18px;
  border-radius: 2px;
  background: var(--cream);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform .6s var(--spring) .2s;
}

.gal-shelf__print--1 {
  transition-delay: .3s;
}

.gal-shelf__print--2 {
  transition-delay: .4s;
}

.gal-shelf__book.is-open .gal-shelf__print--0 {
  --x: -62%;
  --y: 4%;
  --r: -10deg;
}

.gal-shelf__book.is-open .gal-shelf__print--1 {
  --y: -4%;
}

.gal-shelf__book.is-open .gal-shelf__print--2 {
  --x: 62%;
  --y: 4%;
  --r: 10deg;
}

.gal-shelf__pic {
  display: block;
  height: 100%;
  background: var(--stripes), var(--surface-2);
}

.gal-shelf__pic .slot-size__name {
  font-size: 9px;
}

/* ==========================================================================
   05. Photographers: polaroids
   ========================================================================== */
.gal-lens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 50px 40px;
  margin-top: 10px;
  padding: 30px 10px;
  perspective: 1400px;
}

.gal-lens__card {
  --r: -4deg;
  --tr: -6deg;
  --ly: 0px;
  --depth: 10;
  --dx: calc(var(--mx, 0) * var(--depth) * -1px);
  --dy: calc(var(--my, 0) * var(--depth) * -1px);
  --sh: 0 16px 30px rgba(0, 0, 0, .45);
  position: relative;
  display: block;
  width: 100%;
  height: clamp(380px, 30vw, 460px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transform: translate(var(--dx), var(--dy)) rotate(var(--r)) translateY(var(--ly));
  transition: transform .5s var(--spring);
}

.gal-lens__card--1 {
  --depth: 20;
  --r: 3deg;
  --tr: 4deg;
}

.gal-lens__card--2 {
  --r: -2deg;
  --tr: -3deg;
}

.gal-lens__card--3 {
  --depth: 20;
  --r: 5deg;
  --tr: 7deg;
}

.gal-lens__card.is-flipped,
.gal-lens__card:focus-visible {
  --r: 0deg;
  --ly: -16px;
  --sh: 0 40px 70px rgba(0, 0, 0, .6);
  --dx: 0px;
  --dy: 0px;
}

.gal-lens__card:focus-visible {
  outline-offset: 8px;
}

.gal-lens__tape {
  position: absolute;
  left: 50%;
  top: -14px;
  z-index: 3;
  width: 110px;
  height: 30px;
  margin-left: -55px;
  background: rgba(233, 225, 204, .65);
  transform: rotate(var(--tr));
}

.gal-lens__flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.3, 1.1, .4, 1);
}

.gal-lens__card.is-flipped .gal-lens__flip,
.gal-lens__card:focus-visible .gal-lens__flip {
  transform: rotateY(180deg);
}

.gal-lens__front,
.gal-lens__back {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: var(--sh);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gal-lens__front {
  display: block;
  padding: 14px 14px 70px;
  background: var(--cream);
}

.gal-lens__photo {
  display: block;
  height: 100%;
  background: var(--stripes), var(--surface-2);
}

/* Photographer portraits keep the face in the landscape frame. */
.gal-lens__photo > img {
  object-position: 50% 30%;
}

.gal-lens__sign {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: var(--surface-2);
}

.gal-lens__name {
  display: block;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 22px;
  line-height: 1.2;
}

.gal-lens__role {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
}

.gal-lens__back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: var(--acc);
  color: var(--ink);
  transform: rotateY(180deg);
}

.gal-lens__top,
.gal-lens__back-name,
.gal-lens__note,
.gal-lens__kit,
.gal-lens__site {
  display: block;
}

.gal-lens__back-name {
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.gal-lens__note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.gal-lens__kit {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.gal-lens__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.gal-lens__key {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .22em;
}

.gal-lens__val {
  font-weight: 700;
  text-align: right;
}

.gal-lens__end {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.gal-lens__count {
  font-weight: 800;
  font-size: 64px;
  line-height: .8;
}

.gal-lens__see {
  font-weight: 700;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .18em;
  text-align: right;
}

/* ==========================================================================
   06. Press photos: file list
   ========================================================================== */
.gal-files-sec {
  overflow-x: clip;
}

.gal-files__total {
  text-align: right;
}

.gal-files__big {
  font-weight: 700;
  font-size: clamp(80px, 9vw, 150px);
  line-height: .8;
  font-variant-numeric: tabular-nums;
}

.gal-files__sum {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .25em;
}

.gal-files {
  position: relative;
  border-top: 2px solid var(--cream);
}

.gal-files__row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 96px minmax(0, 1.2fr) 130px minmax(0, 1.2fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(245, 237, 216, .14);
  transition: background-color .2s ease, color .2s ease;
}

.gal-files__row.is-hot {
  background: var(--acc);
  color: var(--ink);
}

.gal-files__tick {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--acc);
  font-size: 13px;
  line-height: 24px;
}

.gal-files__tick[aria-pressed="true"] {
  background: var(--acc);
}

.gal-files__tick[aria-pressed="true"]::before {
  content: "✓";
}

.gal-files__row.is-hot .gal-files__tick {
  color: var(--acc);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.gal-files__row.is-hot .gal-files__tick[aria-pressed="true"] {
  background: var(--ink);
}

.gal-files__thumb {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  background: var(--stripes), var(--surface-2);
}

.gal-files__thumb .slot-size__name {
  margin: 0;
  font-size: 8px;
  letter-spacing: .1em;
}

.gal-files__name {
  min-width: 0;
}

.gal-files__title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
}

.gal-files__res {
  margin-top: 4px;
  font-size: 12px;
  opacity: .75;
}

.gal-files__res-mb {
  display: none;
}

.gal-files__mb {
  font-size: 13px;
  white-space: nowrap;
}

.gal-files__acts {
  display: contents;
}

.gal-files__credit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gal-files__credit-text {
  min-width: 0;
  font-size: 14px;
  opacity: .8;
}

.gal-files__copy,
.gal-files__v,
.gal-files__dl {
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .15em;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.gal-files__copy {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .3);
}

.gal-files__copy.is-done {
  background: var(--acc);
  color: var(--ink);
  box-shadow: none;
}

.gal-files__row.is-hot .gal-files__copy,
.gal-files__row.is-hot .gal-files__ver {
  box-shadow: inset 0 0 0 1.5px rgba(18, 17, 16, .4);
}

.gal-files__row.is-hot .gal-files__copy.is-done {
  background: var(--ink);
  color: var(--acc);
}

.gal-files__ver {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .3);
}

.gal-files__v {
  height: 36px;
  padding: 0 14px;
}

.gal-files__v[aria-pressed="true"] {
  background: var(--cream);
  color: var(--ink);
}

.gal-files__row.is-hot .gal-files__v[aria-pressed="true"] {
  background: var(--ink);
  color: var(--acc);
}

.gal-files__dl {
  min-width: 148px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .18em;
}

.gal-files__row.is-hot .gal-files__dl {
  background: var(--ink);
  color: var(--acc);
}

.gal-files__dl:focus-visible,
.gal-files__row.is-hot :focus-visible {
  outline-color: var(--cream);
}

.gal-files__prog {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--p, 0%);
  height: 3px;
  background: var(--acc);
  transition: width .1s linear;
}

.gal-files__peek {
  position: absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  z-index: 3;
  width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--stripes), var(--surface-2);
  box-shadow: 0 0 0 6px var(--cream), 0 30px 60px rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transform: translate(30px, -50%);
  transition: opacity .2s ease;
}

.gal-files__peek.is-on {
  opacity: 1;
}

.gal-files__peek.is-left {
  transform: translate(-310px, -50%);
}

.gal-files__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.gal-files__batch {
  height: 56px;
  padding: 0 30px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
}

.gal-files__batch.is-empty {
  background: rgba(245, 237, 216, .12);
  color: var(--faint);
}

/* ==========================================================================
   07. Photo viewer
   ========================================================================== */
.gal-lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(10, 9, 8, .96);
  color: var(--cream);
}

.gal-lb[hidden] {
  display: none;
}

.gal-lb__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px var(--pad);
}

.gal-lb__no {
  font-size: 13px;
}

.gal-lb__close {
  width: 48px;
  height: 48px;
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .35);
  font-size: 18px;
}

.gal-lb__mid {
  display: grid;
  flex: 1;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 0 var(--pad);
}

.gal-lb__nav {
  font-size: 20px;
}

.gal-lb__nav:not(.icon-btn--acc) {
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .35);
}

.gal-lb__stage {
  height: 100%;
  max-height: calc(100vh - 260px);
  border-radius: 14px;
}

.gal-lb__stage > img {
  object-fit: contain;
}

.gal-lb__foot {
  padding: 18px var(--pad) 24px;
}

.gal-lb__caps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 15px;
}

.gal-lb__cap {
  font-weight: 800;
}

.gal-lb__by {
  color: var(--muted);
}

.gal-lb__strip {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  overflow: hidden;
}

.gal-lb__thumb {
  flex: none;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  opacity: .55;
  transition: opacity .2s ease;
}

.gal-lb__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent;
}

.gal-lb__thumb:hover,
.gal-lb__thumb.is-on {
  opacity: 1;
}

.gal-lb__thumb.is-on::after {
  box-shadow: inset 0 0 0 2px var(--acc);
}

.gal-lb__thumb:focus-visible {
  outline-offset: -2px;
}

/* ==========================================================================
   08. Media queries
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .gal-lens__card:hover {
    --r: 0deg;
    --ly: -16px;
    --sh: 0 40px 70px rgba(0, 0, 0, .6);
    --dx: 0px;
    --dy: 0px;
  }

  .gal-lens__card:hover .gal-lens__flip {
    transform: rotateY(180deg);
  }
}

@media (max-width: 1199px) {
  .gal-lens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .gal-wall {
    --gw-k: .75;
  }

  .gal-files__row {
    grid-template-columns: 28px 72px minmax(0, 1fr);
    row-gap: 14px;
  }

  .gal-files__thumb {
    width: 72px;
    height: 54px;
  }

  .gal-files__mb {
    display: none;
  }

  .gal-files__res-mb {
    display: inline;
  }

  .gal-files__acts {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px 16px;
    padding-left: 48px;
  }

  .gal-files__credit {
    flex: 1 1 260px;
  }

  .gal-files__peek {
    display: none;
  }
}

@media (max-width: 999px) {
  .gal-feat__stage {
    aspect-ratio: 4 / 3;
  }

  .gal-shelf {
    --shelf-h: 420px;
    gap: 4px;
  }

  .gal-shelf__book.is-open {
    flex-basis: 60%;
  }

  .gal-shelf__spine-text {
    font-size: 16px;
    letter-spacing: .2em;
  }

  .gal-shelf__open {
    grid-template-columns: minmax(0, 1fr);
  }

  .gal-shelf__prints {
    display: none;
  }
}

@media (max-width: 759px) {
  .gal-wall__ctrl {
    flex-wrap: wrap;
    gap: 10px;
  }

  .gal-wall__pos {
    flex-basis: 100%;
  }

  .gal-files__total {
    text-align: left;
  }
}

@media (max-width: 699px) {
  .gal-wall {
    --gw-k: .55;
  }

  .gal-wall__yr-c {
    display: none;
  }

  .gal-wall__city {
    font-size: 20px;
  }

  .gal-wall__cap {
    font-size: 13px;
  }

  .gal-shelf {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    height: auto;
    padding: 0;
  }

  .gal-shelf__book,
  .gal-shelf__book--1,
  .gal-shelf__book--2 {
    --lean: 0deg;
    --ty: 0px;
    flex: none;
    height: 52px;
    border-radius: 6px;
  }

  .gal-shelf__book.is-before,
  .gal-shelf__book.is-after {
    --lean: 0deg;
  }

  .gal-shelf__book.is-open {
    flex: none;
    height: auto;
  }

  .gal-shelf__spine-text {
    left: 20px;
    transform: translateY(-50%);
  }

  .gal-shelf__open {
    position: relative;
    display: none;
    padding: 22px 20px;
  }

  .gal-shelf__book.is-open .gal-shelf__open {
    display: grid;
  }

  .gal-lb__mid {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .gal-lb__nav {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .gal-lb__stage {
    max-height: calc(100vh - 240px);
  }
}

@media (max-width: 599px) {
  .gal-lens {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }

  .gal-feat__stage {
    aspect-ratio: 4 / 5;
  }

  .gal-feat__btn,
  .gal-feat__full {
    height: 48px;
  }

  .gal-feat__btn {
    width: 48px;
  }

  .gal-feat__full {
    padding: 0 18px;
  }

  .gal-files__row {
    grid-template-columns: 24px 56px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 4px;
  }

  .gal-files__thumb {
    width: 56px;
    height: 42px;
  }

  .gal-files__acts {
    padding-left: 0;
  }

  .gal-files__dl {
    margin-left: auto;
  }

  .gal-files__batch {
    width: 100%;
    padding: 0 16px;
    letter-spacing: .15em;
  }
}
