.lookbook-page {
  width: min(1760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 80px;
}

.lookbook-status {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 15px;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.look-card {
  position: relative;
  width: 100%;
  display: block;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  padding: 0;
  background: rgba(17, 17, 15, 0.06);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  line-height: 0;
}

.look-card img {
  width: 100%;
  height: auto;
  display: block;
}

.look-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(17, 17, 15, 0.28));
  pointer-events: none;
  transition: opacity 220ms ease;
}

.look-card:hover::after {
  opacity: 0.7;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 12, 14, 0.72);
  opacity: 0;
  transition: opacity 260ms ease;
}

.lightbox.is-hidden {
  display: none;
}

.lightbox:not(.is-hidden) {
  opacity: 1;
}

.lightbox-window {
  width: min(1200px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  background: #181a1e;
  border-radius: 20px;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: scale(0.88) translateY(20px);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.lightbox-window.is-open {
  transform: scale(1) translateY(0);
}

.lightbox-scroll {
  overflow-y: auto;
  padding: 24px 28px 28px;
  scrollbar-width: thin;
}

.lightbox-content {
  display: grid;
  gap: 18px;
}

.lightbox-left {
  display: grid;
  gap: 24px;
}

body.is-locked {
  overflow: hidden;
}

.lightbox-image {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 72vh;
}

.lightbox-image img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.lightbox-meta {
  display: grid;
  gap: 6px;
  padding: 0 2px;
}

.lightbox-collection {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.lightbox-meta h2 {
  margin: 0;
  font-size: 32px;
  color: #f4f0e8;
}

.lightbox-meta p:last-child {
  max-width: 64ch;
  margin: 0;
  color: #9da4b3;
  font-size: 14px;
  line-height: 1.55;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lightbox-collection-gallery {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.collection-gallery-heading {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7f8796;
}

.collection-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.collection-thumb {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.collection-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.collection-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

@media (min-width: 860px) {
  .lightbox-scroll {
    overflow: visible;
    padding: 0;
    flex: 1;
    display: flex;
    min-height: 0;
  }

  .lightbox-content {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 0;
  }

  .lightbox-left {
    position: sticky;
    top: 0;
    width: 62%;
    flex-shrink: 0;
    padding: 24px 18px 28px 28px;
    align-self: flex-start;
  }

  .lightbox-collection-gallery {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 24px 28px 28px 18px;
    margin: 0;
    border: none;
  }

  .collection-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .masonry-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .masonry-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .lookbook-page {
    width: min(100%, calc(100% - 24px));
    padding-top: 96px;
  }

  .lightbox {
    padding: 12px;
    align-items: end;
  }

  .lightbox-window {
    border-radius: 16px;
    max-height: calc(100vh - 24px);
  }

  .lightbox-scroll {
    padding: 16px 16px 20px;
  }

  .lightbox-image {
    border-radius: 10px;
    max-height: 60vh;
  }

  .lightbox-image img {
    max-height: 60vh;
  }

  .lightbox-meta h2 {
    font-size: 24px;
  }

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

@media (max-width: 560px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}
