/* ============================================
   EACUS - Works Renove Detail Page Styles
   Used by: works-renove.html
   ============================================ */

/* Constraint */
.site-wrapper > section,
.site-wrapper > footer,
.works-detail-spec,
.works-detail-gallery {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

/* --- Page Hero (smaller title than standard works pages) --- */
.page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 50vh;
  min-height: 320px;
  max-height: 500px;
  overflow: hidden;
}

.page-hero img { width: 100%; height: 100%; object-fit: cover; }

.page-hero-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px 60px;
}

/* Smaller title than standard works pages */
.page-hero-title {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.2em;
}

/* --- Works Detail Spec --- */
.works-detail-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 35px 40px;
}

.spec-section h3,
.features-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.spec-table {
  width: 100%;
  font-size: 15px;
  border-collapse: collapse;
  border-top: 2px solid var(--color-black);
}

.spec-table tr { border-bottom: 1px solid var(--color-gray-300); }

.spec-table td { padding: 16px 0; vertical-align: top; }

.spec-table td:first-child { width: 40%; color: var(--color-gray-500); }

.features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}

.features-tag {
  display: inline-block;
  border: 1px solid var(--color-gray-300);
  padding: 7px 20px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* --- Works Detail Gallery --- */
.works-detail-gallery {
  padding: 20px 40px 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
}

.works-detail-gallery .gallery-image { cursor: pointer; overflow: hidden; }

.works-detail-gallery .gallery-image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.works-detail-gallery .gallery-image:hover img { transform: scale(1.02); }

.works-detail-gallery .gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* --- Works Nav --- */
.works-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 25px 40px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
}

.works-nav a { transition: color 0.3s; }
.works-nav a:hover { color: var(--color-black); }

/* --- CTA Section --- */
.cta-section {
  margin: 20px 40px 60px;
  border: 1px solid var(--color-gray-300);
  padding: 40px 30px;
  text-align: center;
}

.cta-title { font-size: 16px; font-weight: 500; letter-spacing: 0.1em; margin-bottom: 6px; }
.cta-subtitle { font-size: 14px; color: var(--color-gray-500); margin-bottom: 14px; }
.cta-link { font-size: 12px; color: var(--color-gray-700); }
.cta-link a { text-decoration: underline; transition: opacity 0.3s; }
.cta-link a:hover { opacity: 0.6; }
.cta-divider { width: 40px; height: 1px; background: var(--color-gray-300); margin: 18px auto 0; }

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

.lightbox.active { display: flex; }

.lightbox-close {
  position: absolute; top: 20px; right: 25px;
  color: var(--color-white); font-size: 32px; cursor: pointer;
  z-index: 10001; background: none; border: none;
  font-family: var(--font-display); transition: opacity 0.3s;
}

.lightbox-close:hover { opacity: 0.6; }
.lightbox img { max-width: 85vw; max-height: 85vh; object-fit: contain; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--color-white); font-size: 40px; cursor: pointer;
  background: none; border: none; padding: 20px; transition: opacity 0.3s;
  font-family: var(--font-display);
}

.lightbox-nav:hover { opacity: 0.6; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .site-wrapper { max-width: 100%; }
  .header-nav { padding: 4px 20px 12px; gap: 18px; }
  .page-hero { height: 35vh; min-height: 220px; }
  .page-hero-overlay { padding: 25px 25px; }
  .works-detail-spec { grid-template-columns: 1fr; gap: 20px; padding: 25px 20px; }
  .works-detail-gallery { padding: 15px 20px 40px; }
  .cta-section { margin: 20px 20px 40px; padding: 28px 20px; }
}
