body {
  background-color: #252120;
}

.splash {
  background-color: #252120;
}

.splash__ch-r,
.splash__ch-b {
  mix-blend-mode: screen;
}

/* Invert logo / icon images so they appear white on dark */
.topbar__logo-img,
.nav-insta__icon,
.topbar__insta-mobile img,
#logo-base {
  filter: invert(1);
}


/* Scrolls with the page instead of staying fixed */
.topbar {
  position: relative;
  background-color: #252120;
}

.page {
  padding-top: 0;
}

/* Nav colour overrides for dark background */
.nav-item:hover,
.nav-item:focus-visible {
  color: var(--white);
  outline: none;
}

.nav-item.is-active {
  color: var(--white);
  pointer-events: none;
}

.nav__lang:hover,
.nav__lang:focus-visible {
  color: var(--white);
}

.hamburger span {
  background-color: var(--white);
}

.mobile-nav {
  background-color: #252120;
}

.mobile-nav__item {
  color: var(--grey);
  font-weight: 700;
}

.mobile-nav__item.is-active {
  color: var(--white);
}

.nav-insta {
  color: var(--white);
}

.cur-h,
.cur-v {
  background: rgba(227, 222, 210, 0.25);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
}

/* tablet */
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* desktop */
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .topnav {
    display: none;
  }

  .topbar__mobile-actions {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .overlay-content {
    position: absolute;
    top: 15dvh;
    bottom: 15dvh;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    max-height: none;
    margin: 0;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
}

.gallery video {
  width: 100%;
  height: auto;
  display: block;
}



.card {
  cursor: pointer;
  background: var(--black);
  border: 2px solid var(--green);
  overflow: hidden;
  transition: transform 0.3s;
  padding: 20px;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card:hover {
  transform: scale(1.03);
}

.card-title {
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--white);
  text-transform: uppercase;
  padding-top: 10px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999; 
}

.overlay.active {
  display: flex;
}

.overlay-content {
  background-color: var(--black);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--green);
}

.overlay-body {
  overflow-y: auto;
  flex: 1;
  padding: 20px;
}

.overlay-title {
  font-weight: bold;
  color: var(--white);
  text-transform: uppercase;
}

.overlay-artist {
  font-weight: 300;
  color: var(--white);
  text-transform: uppercase;
  padding-top: 10px;
}

.overlay-medium {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--white);
  padding-top: 10px;
  padding-bottom: 10px;
}

.overlay-description {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--white);
}


.artwork-title,.artist,.medium,.description {
  display: none;
}

/* ── Image lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px) brightness(0.45);
  -webkit-backdrop-filter: blur(12px) brightness(0.45);
}

.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__download {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lightbox__download img {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
}

.lightbox__download:hover { opacity: 1; }

.gallery img {
  cursor: zoom-in;
}
