/* WORK PAGE */
.work-main {
  padding-top: 100px;
}

.work-hero {
  text-align: center;
  padding: 6rem 20px 4rem;
}

.work-hero__title {
  font-family: var(--body-font);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: #1a1a1a;
  margin: 1rem 0;
}

/* COLLECTIONS GRID */
.collections {
  padding: 0 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.collection__item {
  display: block;
  color: #1a1a1a;
  text-decoration: none;
}

.collection__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.collection__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection__item:hover .collection__img-wrap img {
  transform: scale(1.03);
}

.collection__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.collection__item:hover .collection__overlay {
  opacity: 1;
}

.collection__overlay span {
  font-family: var(--nav-font);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
}

.collection__info {
  padding: 16px 0 8px;
}

.collection__title {
  font-family: var(--body-font);
  font-size: 1.4rem;
  font-weight: 300;
  color: #1a1a1a;
}

.collection__count {
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-top: 4px;
}

/* COLLECTION DETAIL PAGE */
.collection-main {
  padding-top: 100px;
}

.collection-hero {
  text-align: center;
  padding: 5rem 20px 3rem;
}

.collection__back {
  font-family: var(--nav-font);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.collection__back:hover {
  color: #1a1a1a;
}

.collection-hero__title {
  font-family: var(--body-font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 40px 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.collection-grid__item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}

.collection-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collection-grid__item:hover img {
  transform: scale(1.03);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 20px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.lightbox__arrow:hover {
  opacity: 1;
}

.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.lightbox__close:hover {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .collections__grid,
  .collection-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
  }
}