/* paradiso_courtyard.css
   Page-scoped styles for Paradiso Courtyard
   Mirrors GreeNox page styling — keep consistent with global style.css
*/

/* page variables */
:root{
  --page-max: 1120px;
  --accent: var(--color-accent);
}

/* Page container */
.project-page {
  padding: 0rem 0 4rem;
  background: var(--color-bg);
  color: var(--color-text);
}

/* HERO (matches page-hero look used sitewide) */
.project-hero {
  background: linear-gradient(135deg, #141414, #1f1f1f);
  color: var(--color-white);
  padding: 3.2rem 0 3rem;
}

.project-hero .project-hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.project-hero .project-title {
  color: var(--color-white);
  font-family: var(--font-heading);
  margin: 0 0 0.35rem;
  margin-top: 2rem;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
}

.project-hero .project-sub {
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
  margin: 0;
  margin-top: 1rem;
}

/* Info strip */
.project-info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border-radius: 1rem;
  padding: 1.2rem 0.5rem;
  margin: 2rem auto;
  gap: 1.2rem;
  max-width: 1120px;
}

.project-info-strip .info-block h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  margin-left: .5rem;
}

.project-info-strip .info-block p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-left: .5rem;
}

/* Overview + sidebar layout */
.project-body {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  padding: 2rem 1.25rem;
}


.project-overview-section {
  padding: 0 0 2rem;
}

.project-overview {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-soft);
}

.project-overview h2,
.project-overview h3 {
  font-family: var(--font-heading);
}

.project-overview h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.project-overview p,
.project-overview li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.project-card {
  background: var(--color-white);
  padding: 1.2rem 1.3rem;
  border-radius: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.project-card p{
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

/* ================================
   GALLERY — Large, borderless featured-project style
   Replaces previous project-gallery block
   ================================ */


.project-gallery-wrap {
  padding-left: 4rem !important;
  padding-right: 4rem !important;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem; /* slightly tighter spacing */
  column-gap: 0.9rem;
  align-items: stretch;
}

/* Make the figure itself the 'card' and set the image size */
.gallery-item {
  position: relative;
  overflow: hidden;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border-radius: var(--radius-base); /* keep same radius as featured cards; set to 0 for fully flush */
  height: 420px; /* double-height — matches featured project cards */
}

/* Remove any residual shadows so it's clean and borderless */
.gallery-item {
  box-shadow: none !important;
}

/* Image fills the card area and is always fully covered */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures full coverage; crops only outer edges, keeps center visible */
  display: block;
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1), filter .25s ease;
  transform-origin: center center;
}

/* Hover: lift and zoom image (premium feel) */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(.94);
  
}

/* Match featured-project title typography + style */
.gallery-caption{
  font-family: "Montserrat", var(--font-heading, system-ui) !important; /* explicit fallback */
  font-weight: 800 !important;
  font-size: clamp(1rem, 1.6vw, 1.2rem) !important; /* responsive, matches featured cards */
  letter-spacing: 0.02em !important;
  line-height: 1.05 !important;
  color: var(--color-white) !important;

  /* look */
  text-shadow: 0 2px 12px rgba(0,0,0,0.6) !important;
  
  /* placement */
  position: absolute !important;
  left: 1.2rem !important;
  bottom: 1.2rem !important;
  z-index: 2 !important;

  /* micro-interaction */
  transition: opacity 0.22s ease, transform 0.22s ease !important;
  opacity: 1 !important;
}


/* keep it visible by default (same as featured) */
.gallery-caption { 
    opacity: 1; 
}

/* micro interaction on hover */
.gallery-item:hover .gallery-caption{
  transform: translateY(-2px);
  opacity: 0.98;
}

/* Slightly reduce size on very small screens to avoid wrapping */
@media (max-width: 520px) {
  .gallery-caption{
    font-size: 4rem;
    padding: 0.35rem 0.6rem;
    left: 0.9rem;
    bottom: 0.9rem;
  }
}

/* responsive / tablet */
@media (max-width: 980px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .gallery-item { height: 360px; }
}

/* responsive / mobile */
@media (max-width: 520px) {
  .project-gallery {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .gallery-item { height: 300px; }
}

/* =========================
   Simple Fullscreen Lightbox
   ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4,4,4,0.88);
  z-index: 9999;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

/* image view */
.lightbox-view {
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-view img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  transition: opacity 220ms ease, transform 220ms ease;
  display: block;
}

/* close button (top-right) */
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 10010;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* nav buttons (left & right center) */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10005;
  background: rgba(0,0,0,0.45);
  color: #ffffff;
  border: none;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* hover */
.lightbox-nav:hover {
  background: rgba(0,0,0,0.62);
  transform: translateY(-50%) scale(1.03);
}

/* hide buttons when not allowed */
.lightbox-nav.hidden {
  display: none !important;
}

/* mobile: smaller nav */
@media (max-width: 520px) {
  .lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 22px;
    left: 10px;
    right: 10px;
  }
  .lightbox-close {
    font-size: 20px;
    right: 14px;
    top: 12px;
  }
}

/* thumbnails in modal */
.modal-thumbs {
  display:flex;
  gap:.5rem;
  margin-top: .8rem;
  flex-wrap:wrap;
}

.modal-thumb {
  width:64px;
  height:48px;
  border-radius:6px;
  overflow:hidden;
  cursor:pointer;
  border:2px solid transparent;
}

.modal-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.modal-thumb.active { border-color: var(--accent); }

/* controls */
.modal-controls .btn {
  margin-right: .6rem;
}

/* reveal animation util */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  margin-top: 2rem;
}
.reveal.in { opacity:1; transform: translateY(0); }

/* responsive */
@media (max-width: 980px) {
  .project-body { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .modal-content { grid-template-columns: 1fr; }
  .modal-side { display:none; }
}

@media (max-width: 520px) {
  .project-gallery { grid-template-columns: 1fr; }
  .gallery-item { min-height: 220px; }
}