/* =========================
   PROJECT PAGE (UNIVERSAL)
========================= */

.project-page {
  background: #fff;
  color: #111;
  padding-top: 84px;
}

/* wider page container */
.project-container {
  width: min(1300px, calc(100% - 80px));
  margin: 0 auto;
}
@media (max-width: 720px) {
  .project-container {
    width: calc(100% - 28px);
  }
}

/* header */
.page-head {
  margin: 18px 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.page-head h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(28px, 2.4vw, 44px);
  letter-spacing: 0.02em;
  color: #111;
}
.page-head .sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: #444;
}
.back-link {
  text-decoration: none;
  font-size: 14px;
  color: #111;
  opacity: 0.75;
}
.back-link:hover {
  opacity: 1;
}

/* Masonry */
.masonry {
  column-count: 3;
  column-gap: 40px;
  padding: 10px 0 44px;
}
@media (max-width: 980px) {
  .masonry {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .masonry {
    column-count: 1;
  }
}

.tile {
  break-inside: avoid;
  margin: 0 0 40px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f7f7;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
}

/* Topbar + Footer (semi-transparent dark, visible on white) */
.topbar {
  background: rgba(18, 18, 20, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar .nav a,
.topbar .brand {
  color: #fff;
}

.footer-glass {
  background: rgba(18, 18, 20, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-glass,
.footer-glass a,
.footer-title,
.footer-sub {
  color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 22px;
}
.lightbox.open {
  display: flex;
}

.lb-inner {
  width: min(1100px, 100%);
  max-height: 86vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.lb-top {
  display: flex;
  justify-content: flex-end;
  color: #fff;
}
.lb-title {
  display: none;
}

.lb-actions {
  display: flex;
  gap: 8px;
}

.lb-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  user-select: none;
}
.lb-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.lb-stage {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
}
.lb-stage img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .dw-footer__socials {
    gap: 10px;
  }
}
