/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  font-family: 'Albert Sans', sans-serif;
  color: #121212;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
  display: none;
}

/* HEADER / NAV */
header {
}

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 20px;
  max-width: 100%;
}

.nav-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-right {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
}

nav a {
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.5;
}

.logo a {
  font-family: 'Albert Sans', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.006em;
}

.art-count {
  font-size: 12px;
  color: #666;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 8px;
}

.card {
  display: block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease-out,
              transform 1s ease-out;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-image {
  aspect-ratio: 3 / 4;
  background-color: #f0f0f0;
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) {
  .card:hover .card-image img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card { opacity: 1; transform: none; transition: none; }
  .card-image img { transition: none; }
}


.card-info {
  padding: 10px 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: #fff;
}

.card-title {
  font-size: 12px;
  font-weight: 400;
  color: #121212;
  letter-spacing: 0.03em;
}

.card-meta {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.04em;
}

/* FOOTER */
footer {
  padding: 60px 8px 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.footer-grid h2,
.footer-grid h3 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

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

.footer-grid p {
  font-size: 16px;
  line-height: 1.4;
  color: #555;
  margin-bottom: 8px;
}

.footer-grid p:last-child {
  margin-bottom: 0;
}

.footer-grid a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.footer-grid a:hover {
  opacity: 0.5;
}

.footer-bottom {
  margin-top: 60px;
  font-size: 11px;
  color: #999;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  overflow-y: auto;
  padding: 60px 20px 40px;
}

.lightbox.active {
  display: block;
}

.lightbox-image-area {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.18s ease-out;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.lightbox-arrows {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
}

.lightbox-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: left;
  max-width: 600px;
  width: 100%;
  padding: 0 16px;
}

.lightbox-title {
  font-size: 17px;
  font-weight: 500;
  color: #121212;
  letter-spacing: 0.005em;
}

.lightbox-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin-top: 12px;
}

.lightbox-desc .meta-inline {
  color: #b8b8b8;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  color: #121212;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 101;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.4;
}

/* Desktop: side arrows + tighter bottom */
@media (min-width: 701px) {
  .lightbox-arrows {
    position: static;
    display: contents;
  }
  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
  }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
  .lightbox-image-area {
    bottom: 140px;
  }
}

/* BURGER + FULLSCREEN MENU (mobile only) */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 50;
  position: relative;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #121212;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-burger.is-open span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav-fullscreen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-fullscreen.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-fullscreen a {
  font-size: 28px;
  font-weight: 500;
  color: #121212;
  letter-spacing: 0.01em;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  nav {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .logo {
    justify-self: start;
  }
  .logo a {
    font-size: 22px;
  }
  .nav-left,
  .nav-right {
    display: none;
  }
  .nav-burger {
    display: flex;
    justify-self: end;
  }
}

@media (max-width: 500px) {
  nav {
    padding: 12px 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  footer {
    padding: 40px 8px 20px;
  }
}
