@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&family=Martel+Sans:wght@300;400;600;700&display=swap');

:root {
  --nav-height: 4em;
  --nav-side-width: 20vw;
  --text-col-width: 350px;
  --mobile-frame: min(60vw, 90vh);
  --image-center: 43vh;
}

nav,
nav a,
nav button {
  font-family: 'Cabin', sans-serif;
  font-size: 1.16rem;
  font-weight: 300;
}

.photoIndexColumn,
.albumCounter {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
}

nav {
  text-transform: lowercase;
}

nav .current {
  font-style: italic;
  font-family: 'Cabin', sans-serif;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  font-family: 'Cabin', sans-serif;
  font-size: 1.16rem;
  font-weight: 300;
  text-transform: lowercase;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  margin-top: 0;
}

article p {
  font-family: 'Cabin', sans-serif;
  font-size: 0.8em;
}

.threshold {
  display: none;
  pointer-events: none;
}

nav {
  position: fixed;
  top: 0;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92vw);
  padding: 0 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  height: var(--nav-height);
  min-height: var(--nav-height);
}

nav .navLeft {
  justify-self: start;
}

nav .navCenter {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  line-height: 1.4;
  align-items: center;
}

nav .navRight {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav .navStatic {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 0.8rem;
  line-height: 1.4;
  align-items: center;
}

nav .navArtist a {
  white-space: nowrap;
}

.navSubtitle {
  margin-top: 0.35rem;
  font-size: 0.8em;
  opacity: 0.7;
}

.navDropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.navDropdownToggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.navDropdownToggle.current {
  font-style: italic;
}

.navDropdownMenu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translate(0, 0.35rem);
  background: #fff;
  border: 0;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 18rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 850;
}

.navDropdownMenu .link {
  white-space: nowrap;
}

.navDropdown.is-open .navDropdownMenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0.15rem);
}

.navPlus {
  font-weight: 500;
}

.navIconLink {
  display: inline-flex;
  align-items: center;
}

.navIcon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.navBurger {
  display: none;
}

.navMobileMenu {
  display: none;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.photoIndexColumn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  pointer-events: none;
}

.slideshowCaption {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  max-width: min(80vw, 720px);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #111;
  pointer-events: none;
  z-index: 740;
}

.albumCounter {
  margin-top: 0.7rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
}

.container[data-has-images="true"] article {
  text-align: left;
}

.albumCounterGrid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  width: 5.5rem;
}

.albumCounterGridRight {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 5.5rem;
  z-index: 720;
}

.albumCounterCell {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
  color: #111;
}

.albumCounterCell.is-active {
  color: #111;
}

.albumCounterCell::before {
  content: "-";
  display: inline-block;
}

.scrollEndIndicator {
  position: fixed;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 705;
  pointer-events: none;
}

.scrollEndIndicator.is-visible {
  opacity: 1;
}

.albumCounterCell.is-active::before {
  content: "+";
}

.albumCounterCurrent,
.albumCounterTotal {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

/* Keep only 2 digits for current and total */
.albumCounterCurrent .num:nth-child(1),
.albumCounterCurrent .num:nth-child(2),
.albumCounterTotal .num:nth-child(1),
.albumCounterTotal .num:nth-child(2) {
  display: none;
}

.collection {
  gap: 45vh;
  padding-top: 0;
  padding-bottom: calc((var(--window-height) - var(--mobile-frame)) / 2 + 60vh);
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-x: clip;
}

.collection img {
  top: 1.2rem;
  width: var(--mobile-frame) !important;
  height: var(--mobile-frame) !important;
  max-width: var(--mobile-frame);
  max-height: var(--mobile-frame);
  object-fit: contain;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  transform: translate3d(0, 0, 0) !important;
  opacity: 1;
  transition: opacity 500ms ease;
}

.collection img.is-active {
  z-index: 2;
}

.collection img:last-child {
  margin-bottom: 0;
}

.openCursor {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  display: none;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
}

.openCursorInner {
  transform: translate3d(-50%, -50%, 0);
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.openCursor.active {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .collection,
  .collection * {
    cursor: default;
  }

  .container[data-has-images="true"] article,
  .container[data-has-images="true"] article * {
    cursor: default;
  }

  body.zoom-open,
  body.zoom-open * {
    cursor: none !important;
  }
}

@media (max-width: 860px) {
  .albumCounterGrid,
  .albumCounterGridRight {
    display: none;
  }
}

.imageZoomOverlay {
  position: fixed;
  inset: 0;
  z-index: 880;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  transition: opacity 320ms ease;
}

.imageZoomOverlay.is-open {
  opacity: 1;
}

.imageZoomImage {
  max-width: 86vw;
  max-height: 78vh;
  object-fit: contain;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 1000ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 480ms ease;
}

.imageZoomOverlay.is-open .imageZoomImage {
  transform: scale(1);
  opacity: 1;
  animation: zoomPop 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.imageZoomOverlay.is-closing {
  opacity: 0;
}

.imageZoomOverlay.is-closing .imageZoomImage {
  transform: scale(0.92);
  opacity: 0;
  transition: transform 1000ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 420ms ease;
}

.imageZoomCaption {
  max-width: min(78vw, 860px);
  text-align: center;
  font-size: 0.85em;
  line-height: 1.5;
  width: 100%;
}

body.zoom-open {
  overflow: hidden;
}

@keyframes zoomPop {
  0% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

nav,
article,
.albumTextColumnBg {
  transition: opacity 320ms ease;
}

body.zoom-open nav,
body.zoom-open article,
body.zoom-open .albumTextColumnBg {
  opacity: 0;
  pointer-events: none;
}

/* Keep only 2 digits for current and total: 01/25 */
.photoIndexColumn > span:nth-child(1),
.photoIndexColumn > span:nth-child(2),
.photoIndexColumn > span:nth-child(6),
.photoIndexColumn > span:nth-child(7) {
  display: none;
}

@media (min-width: 861px) {
  nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: none;
    width: var(--nav-side-width);
    padding: 2.2rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    height: 100vh;
  }

  nav .navLeft,
  nav .navCenter,
  nav .navRight {
    width: 100%;
  }

  nav .navCenter {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
    flex: 1;
  }

  nav .navRight {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  nav .navStatic {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .navDropdownMenu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin-top: 0.3rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
    min-width: 0;
    background: transparent;
    animation: navListIn 220ms ease both;
  }

  .navDropdown.is-open .navDropdownMenu {
    display: flex;
  }

  .navDropdown.is-open {
    margin-bottom: 0.6rem;
  }

  .navDropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .navDropdownToggle {
    padding: 0;
    background: transparent;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    font-weight: 300;
  }

.navDropdownMenu .link {
  font-weight: 300;
  padding-left: 0.4rem;
}

.navDropdownMenu .link {
  opacity: 0;
  transform: translateY(-6px);
}

.navDropdown.is-open .navDropdownMenu .link {
  animation: navItemIn 220ms ease forwards;
}

.navDropdown.is-open .navDropdownMenu .link:nth-child(1) { animation-delay: 0ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(2) { animation-delay: 30ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(3) { animation-delay: 60ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(4) { animation-delay: 90ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(5) { animation-delay: 120ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(6) { animation-delay: 150ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(7) { animation-delay: 180ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(8) { animation-delay: 210ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(9) { animation-delay: 240ms; }
.navDropdown.is-open .navDropdownMenu .link:nth-child(10) { animation-delay: 270ms; }

@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes navListIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

  .navPlus {
    transition: transform 220ms ease;
  }

  .navDropdown.is-open .navPlus {
    transform: rotate(45deg);
  }

  .container {
    padding-left: var(--nav-side-width);
    padding-right: var(--nav-side-width);
  }

  .container[data-has-images="true"] article {
    position: fixed;
    top: 2.2rem;
    transform: none;
    right: 0.75rem;
    width: calc(var(--nav-side-width) - 1.5rem);
    max-height: calc(100vh - var(--nav-height) - 4rem);
    overflow: auto;
    margin: 0;
    padding: 0.2rem 0.2rem 0.8rem;
    border: 0;
    background: transparent;
    z-index: 720;
    text-align: left;
  }

  .container[data-has-images="true"] .albumTextColumnBg {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: var(--nav-side-width);
    height: calc(100vh - var(--nav-height));
    background: transparent;
    border-left: 0;
    z-index: 710;
    pointer-events: none;
  }

  .container[data-has-images="false"] article {
    position: relative;
    width: 800px;
    max-width: calc(100vw - 2rem);
    margin: calc(var(--nav-height) + 1.8rem) auto 2.2rem;
    padding: 0;
  }

  .container[data-has-images="false"] .albumTextColumnBg {
    display: none;
  }

  .container[data-has-images="true"].is-slideshow-open article,
  .container[data-has-images="true"].is-slideshow-open .albumTextColumnBg {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

}

@media (max-width: 860px), (hover: none), (pointer: coarse) {
  :root {
    --mobile-frame: min(92vw, 90vh);
    --image-center: 50vh;
  }

  nav {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    width: 100vw;
    left: 0;
    transform: none;
    padding: 0 0.7rem;
    align-items: center;
    height: var(--nav-height);
    min-height: var(--nav-height);
    overflow: visible;
    flex-direction: row;
  }

  nav .navCenter {
    display: none;
  }

  nav .navRight {
    display: none;
  }

  nav .navLeft {
    min-width: 0;
  }

  nav .navArtist a {
    display: inline-block;
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navBurger {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.2rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .navBurger .burgerLine {
    display: block;
    width: 1.25rem;
    height: 1.5px;
    background: #111;
  }

  .navBurger .burgerLine:nth-child(2) {
    width: 1rem;
  }

  .navBurger .burgerLine:nth-child(3) {
    width: 1.25rem;
  }

  nav.menu-open .navBurger .burgerLine:nth-child(2) {
    width: 1.25rem;
  }

  .navMobileMenu {
    display: none;
    position: absolute;
    top: calc(var(--nav-height) - 0.15rem);
    left: 0.7rem;
    right: auto;
    background: #fff;
    border: 0;
    padding: 0.55rem 0.8rem;
    z-index: 900;
    min-width: min(80vw, 18rem);
  }

  nav.menu-open .navMobileMenu {
    display: block;
  }

  .navMobileGroup,
  .navMobileSection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0;
  }

  .navMobileSectionToggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .navMobilePlus {
    transition: transform 220ms ease;
  }

  .navMobileSection.is-open .navMobilePlus {
    transform: rotate(45deg);
  }

  .navMobileSectionList {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-top: 0.35rem;
    padding-left: 0.85rem;
  }

  .navMobileSectionList .link,
  .navMobileGroup .link {
    white-space: nowrap;
  }

  .navMobileSection.is-open .navMobileSectionList {
    display: flex;
    animation: navListIn 0.2s ease both;
  }

  .navMobileSection.is-open .navMobileSectionList .link {
    animation: navItemIn 0.2s ease both;
  }

  .navMobileSection.is-open .navMobileSectionList .link:nth-child(1) { animation-delay: 0ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(2) { animation-delay: 30ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(3) { animation-delay: 60ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(4) { animation-delay: 90ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(5) { animation-delay: 120ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(6) { animation-delay: 150ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(7) { animation-delay: 180ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(8) { animation-delay: 210ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(9) { animation-delay: 240ms; }
  .navMobileSection.is-open .navMobileSectionList .link:nth-child(10) { animation-delay: 270ms; }
  }

  .navMobileHeading {
    font-size: 0.92em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.65;
  }

  .navMobileGroup + .navMobileGroup,
  .navMobileSection + .navMobileSection,
  .navMobileSection + .navMobileGroup,
  .navMobileGroup + .navMobileSection {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 0;
  }

  .slideshowCaption {
    bottom: 0.85rem;
    max-width: min(86vw, 520px);
    font-size: 0.85rem;
  }

  .container .albumTextColumnBg {
    display: none;
  }

  /* Keep text block visible below navigation and dropdown zone */
  article {
    margin-top: calc(var(--nav-height) + 0.6rem);
    width: var(--mobile-frame);
    max-width: var(--mobile-frame);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  /* Mobile image stream: bigger frames while keeping bottom-to-top sticky behavior */
  .collection {
    gap: 70vh;
    padding-top: 4vh;
    padding-bottom: calc((var(--window-height) - var(--mobile-frame)) / 2 + 60vh);
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: clip;
  }

  .collection img {
    top: calc(var(--window-height) * 0.5);
    width: var(--mobile-frame) !important;
    height: var(--mobile-frame) !important;
    max-width: var(--mobile-frame);
    max-height: var(--mobile-frame);
    object-fit: contain;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translate3d(0, -50%, 0) !important;
  }

  .collection img:last-child {
    margin-bottom: 0;
  }

  .albumCounter {
    display: none;
  }

  .imageZoomOverlay {
    padding: 1.2rem;
  }

  .imageZoomImage {
    width: 100%;
    max-width: 100%;
    max-height: 78vh;
  }

  /* Slideshow mobile counter: keep only 2 digits (01/13) */
  .gallery .nav > div:first-child span:nth-of-type(1),
  .gallery .nav > div:first-child span:nth-of-type(2),
  .gallery .nav > div:first-child span:nth-of-type(6),
  .gallery .nav > div:first-child span:nth-of-type(7) {
    display: none;
  }
}

/* Touch tablets: reduce image frame size so images fit better on page */
@media (min-width: 861px) and (max-width: 1180px) and (hover: none), (min-width: 861px) and (max-width: 1180px) and (pointer: coarse) {
  :root {
    --mobile-frame: min(86vw, 90vh);
  }

  .collection {
    gap: 34vh;
  }
}

@media (max-width: 1180px) and (pointer: coarse) and (orientation: landscape) {
  :root {
    --mobile-frame: min(94vw, 90vh);
    --image-center: 50vh;
  }

  .collection {
    gap: 28vh;
  }
}

@media (pointer: coarse) and (orientation: landscape) {
  .container[data-has-images="true"] article {
    max-width: 72vw;
  }
}

@media (max-width: 860px) and (pointer: coarse) and (orientation: landscape) {
  :root {
    --mobile-frame: min(94vw, 90vh);
    --image-center: 50vh;
  }
}
