/* West Eleven's original implementation of a sticky image and scroll catalogue. */
#gallery.gallery-collection {
  --collection-paper: #f2eee6;
  --collection-ink: #282b25;
  --collection-muted: #666a5f;
  background: var(--collection-paper);
  color: var(--collection-ink);
  padding: clamp(92px, 14vh, 155px) clamp(24px, 11vw, 200px) clamp(76px, 11vh, 125px);
  overflow: clip;
}
.gallery-collection .collection-heading { max-width: 1120px; }
.gallery-collection .collection-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: var(--collection-muted);
  font-size: 11px;
  letter-spacing: .13em;
}
.collection-eyebrow i { display: block; width: 48px; height: 1px; background: currentColor; opacity: .55; }
.gallery-collection .collection-title {
  margin: 29px 0 0;
  font-family: Baskerville, Georgia, 'Times New Roman', Tajawal, serif;
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 120px);
  line-height: .99;
  letter-spacing: -.038em;
}
.collection-title em { font-weight: 400; }
html[lang="ar"] .gallery-collection .collection-title {
  font-family: Tajawal, serif;
  font-size: clamp(40px, 6.5vw, 98px);
  line-height: 1.2;
  letter-spacing: 0;
}
html[lang="ar"] .collection-title em { font-style: normal; color: #62675c; }
.gallery-collection .collection-lead {
  color: #595e52;
  max-width: 47ch;
  font-size: 17px;
  line-height: 1.8;
  margin: 30px 0 0;
}
.gallery-collection .collection-filters {
  margin: clamp(32px, 5vh, 58px) 0 0;
  padding: 0;
  gap: 12px 24px;
}
.gallery-collection .collection-filter {
  padding: 7px 0;
  color: var(--collection-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  font-size: 12px;
  border-radius: 0;
  transition: color .25s, border-color .25s;
}
.gallery-collection .collection-filter[aria-pressed="true"] {
  background: transparent;
  color: var(--collection-ink);
  border-color: var(--collection-ink);
}
.gallery-collection .collection-body {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 86px);
  align-items: start;
  margin-top: clamp(45px, 8vh, 85px);
  direction: ltr;
}
.collection-stage {
  position: sticky;
  top: clamp(94px, 16vh, 160px);
  height: min(63vh, 660px);
  min-height: 340px;
  margin: 0;
  background: #e3dfd5;
  overflow: hidden;
  isolation: isolate;
}
.collection-image-stack { position: absolute; inset: 0; }
.collection-plate { position: absolute; inset: 0; opacity: 0; transition: opacity .72s cubic-bezier(.3, .2, .2, 1); }
.collection-plate.is-selected { opacity: 1; }
.collection-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.collection-plate-contain { background: #151511; }
.collection-plate-contain img { object-fit: contain; }
.collection-image-controls {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 65px;
  margin: 0;
  padding: 23px 20px 14px;
  background: linear-gradient(transparent, #10130ee8);
  color: #fff;
  direction: ltr;
}
.collection-image-count { font-family: Arial, sans-serif; font-size: 11px; font-variant-numeric: tabular-nums; margin-right: auto; letter-spacing: .08em; }
.collection-image-arrow { background: transparent; color: inherit; width: 29px; height: 32px; font-size: 18px; }
.collection-open-image { background: transparent; color: inherit; font-size: 10px; padding: 8px 0 8px 7px; white-space: nowrap; }
html[lang="ar"] .collection-open-image { font-size: 12px; }
.collection-list { list-style: none; padding: 0; margin: 0; direction: ltr; }
html[dir="rtl"] .collection-list { direction: rtl; }
.collection-row { border-top: 1px solid #34372b38; opacity: .43; transition: opacity .5s ease; }
.collection-row:last-child { border-bottom: 1px solid #34372b38; }
.collection-row.is-selected, .collection-row:focus-within, .collection-row:hover { opacity: 1; }
.collection-row-button {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  column-gap: 15px;
  align-items: baseline;
  width: 100%;
  min-height: 120px;
  padding: 25px 0;
  border: 0;
  background: transparent;
  color: var(--collection-ink);
  text-align: start;
}
.collection-row-number { font-family: Arial, sans-serif; font-size: 11px; color: var(--collection-muted); letter-spacing: .08em; }
.collection-row-name {
  font-family: Baskerville, Georgia, 'Times New Roman', Tajawal, serif;
  font-size: clamp(25px, 2.8vw, 42px);
  line-height: 1.08;
  transition: transform .55s cubic-bezier(.2, .6, .2, 1);
}
.collection-row.is-selected .collection-row-name { transform: translateX(7px); }
html[dir="rtl"] .collection-row.is-selected .collection-row-name { transform: translateX(-7px); }
html[lang="ar"] .collection-row-name { font-family: Tajawal, sans-serif; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.3; }
.collection-row-group { font-size: 10px; color: var(--collection-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .07em; }
html[lang="ar"] .collection-row-group { font-size: 11px; letter-spacing: 0; }
.collection-row-note { grid-column: 2 / -1; font-size: 12px; color: #555a4e; line-height: 1.8; max-width: 43ch; margin-top: 10px; }
.collection-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 55px; color: var(--collection-muted); }
.collection-footer > span { font-size: 10px; letter-spacing: .09em; }
.gallery-collection .collection-all-images {
  display: flex;
  gap: 35px;
  align-items: center;
  background: transparent;
  color: var(--collection-ink);
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #34372b6e;
  font-size: 11px;
  margin: 0;
}
.collection-all-images:after { content: '↗'; font-size: 20px; }
.gallery-collection .gallery-footnote { font-size: 10px; line-height: 1.7; color: #71766a; margin-top: 34px; }
.gallery-collection button:focus-visible { outline: 2px solid #58634b; outline-offset: 5px; }
.collection-heading { animation: none; }
.collection-visible .collection-title { animation: collection-title-enter 1.05s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes collection-title-enter { from { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 25% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@media (max-width: 900px) {
  #gallery.gallery-collection { padding-inline: clamp(22px, 7vw, 55px); padding-block: 95px 75px; }
  .gallery-collection .collection-title { font-size: clamp(46px, 8vw, 75px); }
  .gallery-collection .collection-body { grid-template-columns: 1fr; gap: 27px; margin-top: 40px; }
  .collection-stage { top: 88px; height: min(31svh, 310px); min-height: 190px; z-index: 2; box-shadow: 0 12px 24px #25251d12; }
  .collection-row-button { min-height: 125px; grid-template-columns: 35px minmax(0, 1fr); padding-block: 21px; }
  .collection-row-group { grid-column: 2; margin-top: 7px; }
  .collection-row-note { grid-column: 2; margin-top: 7px; }
  .collection-row-name { font-size: 32px; }
  .collection-image-controls { min-height: 58px; padding: 20px 15px 10px; }
  .collection-footer { flex-direction: column; align-items: start; gap: 19px; }
}
@media (max-width: 480px) {
  .gallery-collection .collection-lead { font-size: 15px; margin-top: 21px; }
  .gallery-collection .collection-filters { gap: 9px 19px; margin-top: 30px; }
  .gallery-collection .collection-filter { font-size: 11px; }
  .collection-row-name, html[lang="ar"] .collection-row-name { font-size: 27px; }
  .collection-row-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-visible .collection-title { animation: none; }
  .collection-plate, .collection-row, .collection-row-name { transition: none; }
  .collection-row { opacity: 1; }
}
