/* Client album page. Builds on the site's stylesheet: same teal ground, amber blades, type and buttons. */
.al { min-height: 100dvh; display: flex; flex-direction: column; }
.al-top {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
}
.al-top__brand img { height: 44px; width: auto; }
.al-top__tools { display: flex; align-items: center; gap: 14px; }
.al-out { background: none; border: 0; padding: 8px 2px; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; }
.al-state { margin: auto; padding: 40px var(--gutter); text-align: center; font-weight: var(--w-soft); max-width: 30em; }

/* sign in */
.al-gate { position: relative; flex: 1; display: grid; place-items: center; padding: 12px var(--gutter) 56px; overflow: hidden; }
.al-gate__deco {
  position: absolute; inset-inline-end: -6%; bottom: -12%; height: 100%; aspect-ratio: 228 / 341;
  background: var(--amber); opacity: .2; pointer-events: none;
  -webkit-mask: var(--swoosh) center / 100% 100% no-repeat; mask: var(--swoosh) center / 100% 100% no-repeat;
  animation: swooshDraw 1.2s var(--ease) both;
}
html[dir="rtl"] .al-gate__deco { transform: scaleX(-1); }
@media (min-width: 960px) { .al-gate__deco { opacity: .92; inset-inline-end: 7%; } }
.al-gate__in { position: relative; width: min(100%, 420px); display: grid; gap: 14px; }
.al-gate__title {
  margin: 0; font-family: var(--f-display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: clamp(2.5rem, 9vw, 3.6rem); line-height: var(--display-lh); letter-spacing: var(--display-track);
}
.al-gate__sub { margin: 0 0 6px; font-weight: var(--w-soft); max-width: 26em; }
.al-form { display: grid; gap: 16px; background: var(--teal-deep); border-radius: 6px; padding: 22px 20px 24px; }
.al-field { display: grid; gap: 6px; font-size: .92rem; }
.al-input {
  width: 100%; min-height: 54px; padding: 10px 14px; border: 2px solid transparent; border-radius: 6px;
  background: var(--white); color: var(--teal-ink); font: inherit; font-size: 17px; font-weight: 500;
}
.al-input:focus { outline: none; border-color: var(--amber); }
.al-pw { position: relative; display: block; }
/* The field is always left-to-right, the button follows the page direction: keep the typed text clear of it on whichever side it sits. */
html[dir="rtl"] .al-pw .al-input { padding-left: 84px; }
html[dir="ltr"] .al-pw .al-input { padding-right: 84px; }
.al-pw__eye { position: absolute; inset-block: 7px; inset-inline-end: 7px; border: 0; border-radius: 4px; background: #e2eeee; color: var(--teal-deep); padding: 0 12px; font-size: .84rem; }
.al-msg { margin: 0; padding: 10px 14px; border-radius: 6px; background: #fdecea; color: #8c1d18; font-size: .93rem; font-weight: 500; }
.al-form__go { width: 100%; min-height: 56px; font-size: 1.05rem; }
.al-form__go:disabled { opacity: .6; cursor: progress; }
.al-back { justify-self: start; font-size: .92rem; text-underline-offset: 4px; }

/* album */
.al-page { flex: 1; padding-block: clamp(18px, 4vw, 44px) 72px; }
.al-eyebrow { margin: 0; color: var(--amber); font-size: .9rem; font-weight: 500; }
.al-title {
  margin: 0; text-wrap: balance; overflow-wrap: anywhere;
  font-family: var(--f-display); font-style: var(--display-style); font-weight: var(--display-weight);
  font-size: clamp(2.3rem, 8vw, 4.6rem); line-height: var(--display-lh); letter-spacing: var(--display-track);
}
.al-meta { margin: 6px 0 0; font-weight: var(--w-soft); color: var(--mist); }
.al-ttl { margin: 20px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 14px 16px; border-radius: 6px; background: var(--teal-deep); max-width: 44em; }
.al-ttl .ic { width: 26px; height: 26px; margin-top: 2px; color: var(--amber); }
.al-ttl__txt { display: grid; gap: 2px; line-height: 1.6; }
.al-ttl__txt strong { font-weight: 600; }
.al-ttl__txt span { font-size: .9rem; font-weight: var(--w-soft); color: var(--mist); }
.al-ttl__bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.al-ttl__bar i { display: block; height: 100%; border-radius: 6px; background: var(--amber); }
.al-ttl.is-urgent { box-shadow: inset 0 0 0 2px var(--amber); }
.al-ttl.is-urgent .al-ttl__txt strong { color: var(--amber); }
.al-done-top { margin: 22px 0 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border: 1.5px solid var(--amber); border-radius: 6px; max-width: 44em; }
.al-done-top .ic { color: var(--amber); margin-top: .3em; }
.al-get { margin-top: 28px; display: grid; gap: 10px; }
.al-get__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.al-get__btns .btn { flex: 1 1 100%; min-height: 58px; justify-content: space-between; text-align: start; }
.al-get__btns .btn small { font-size: .84rem; font-weight: 400; opacity: .85; white-space: nowrap; }
.al-get__lead { display: inline-flex; align-items: center; gap: .6em; }
@media (min-width: 700px) { .al-get__btns .btn { flex: 0 1 auto; gap: 1.6em; } }
.al-get__note { margin: 0; font-size: .9rem; font-weight: var(--w-soft); color: var(--mist); max-width: 46em; }
.al-hint { margin: 34px 0 14px; font-size: .92rem; font-weight: var(--w-soft); color: var(--mist); }
.al-empty { margin: 40px 0; font-weight: var(--w-soft); }
.al-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; background: var(--teal-deep); }
.al-tile__open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.al-tile__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.al-tile__open:hover img { transform: scale(1.04); }
.al-tile__dl {
  position: absolute; bottom: 8px; inset-inline-end: 8px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber); color: var(--teal-ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(6, 41, 45, .45);
}
.al-tile__dl:hover { background: var(--amber-hi); }
.al-tile__dl .ic { width: 22px; height: 22px; }

/* "I have downloaded my files" */
.al-confirm { margin-top: 56px; background: var(--teal-deep); border-radius: 6px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 14px; justify-items: start; max-width: 720px; }
.al-confirm.is-done { box-shadow: inset 0 0 0 2px var(--amber); }
.al-confirm__title { margin: 0; font-family: var(--f-display); font-style: var(--display-style); font-weight: var(--display-weight); font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.3; letter-spacing: var(--display-track); }
.al-confirm__text { margin: 0; max-width: 36em; }
.al-confirm .btn { min-height: 58px; }
.al-confirm .btn:disabled { opacity: .6; cursor: progress; }
.al-confirm__hint { margin: 0; font-size: .88rem; font-weight: var(--w-soft); color: var(--mist); }

/* yes / no */
.al-ask { position: fixed; inset: 0; z-index: 150; background: rgba(4, 28, 31, .78); display: grid; place-items: center; padding: 20px; }
.al-ask__box { width: min(100%, 460px); background: var(--white); color: var(--teal-ink); border-radius: 8px; padding: 24px 22px; display: grid; gap: 20px; }
.al-ask__text { margin: 0; font-size: 1.06rem; font-weight: 500; line-height: 1.75; }
.al-ask__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.al-ask__btns .btn--line { border-color: var(--teal-deep); color: var(--teal-ink); }
.al-ask__btns .btn--line:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); }

/* lightbox: the site's, plus a download bar */
.al .lb__fig { padding-bottom: 104px; }
.al .lb__fig img { max-height: calc(100dvh - 160px); }
.al-lbbar { position: absolute; inset: auto 0 calc(12px + env(safe-area-inset-bottom, 0px)) 0; display: grid; justify-items: center; gap: 4px; padding-inline: 12px; z-index: 2; }
.al-lbbar__dl { min-height: 48px; font-size: .95rem; }
.al-lbbar__count { margin: 0; font-size: .84rem; color: var(--mist); font-variant-numeric: tabular-nums; }
