/* Artistic Asymmetric Masonry Portfolio Layout - Natural Image Aspect Ratios, Zero Cropping, Zero White Borders & Static Order */

.portfolio {
  padding-top: 110px !important;
  padding-bottom: 90px !important;
  padding-left: 10vw !important;
  padding-right: 10vw !important;
  background: var(--paper, #fbfaf8) !important;
}

.portfolio .project-grid {
  display: block !important;
  columns: 4 220px !important;
  column-gap: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.portfolio .project {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 32px 0 !important;
  break-inside: avoid !important;
  vertical-align: top !important;
  position: relative !important;
  min-width: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Subtle staggered vertical offsets for artistic asymmetry within column flow */
.portfolio .project:nth-child(4n + 2) {
  margin-top: 36px !important;
}
.portfolio .project:nth-child(4n + 4) {
  margin-top: 24px !important;
}

/* Interactive button wrapper */
.portfolio .project .project-open {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

/* Image styling - Natural aspect ratio scaling, zero cropping, zero filler lines */
.portfolio .project img.project-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  border: 0 !important;
  background: transparent !important;
  filter: grayscale(1) !important;
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.2, 1, 0.3, 1) !important;
}

.portfolio .project-open:hover img.project-image,
.portfolio .project-open:focus-visible img.project-image,
.portfolio .project:hover img.project-image {
  filter: grayscale(0) !important;
  transform: scale(1.02) !important;
}

/* Overlay caption - Hidden by default, visible on hover at bottom left */
.portfolio .project .project-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%) !important;
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
  z-index: 2 !important;
}

.portfolio .project-open:hover .project-overlay,
.portfolio .project-open:focus-visible .project-overlay,
.portfolio .project:hover .project-overlay {
  opacity: 1 !important;
}

/* Heading font for title (Playfair Display) */
.portfolio .project .project-overlay strong {
  display: block !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  text-transform: none !important;
}

/* Navigation font for category metadata (Space Grotesk / Manrope uppercase tracking) */
.portfolio .project .project-overlay small {
  display: block !important;
  font-family: 'Space Grotesk', 'Manrope', Arial, sans-serif !important;
  font-size: 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.88) !important;
  margin-top: 3px !important;
}

/* Hide legacy elements */
.portfolio .project .project-signature {
  display: none !important;
}

/* Fixed floating contact button & form submit button design harmony */
.fixed-contact {
  position: fixed !important;
  right: 24px !important;
  bottom: 20px !important;
  z-index: 99 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  padding: 0 16px !important;
  background: rgba(251, 250, 248, 0.94) !important;
  border: 1px solid #1b1c1a !important;
  border-radius: 20px !important;
  color: #1b1c1a !important;
  font-family: 'Space Grotesk', 'Manrope', Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease !important;
}

.fixed-contact span,
.contact-form button span {
  display: inline-block !important;
  margin-left: 6px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

.fixed-contact:hover {
  background: #1b1c1a !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.contact-form button {
  justify-self: start !important;
  margin-top: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  padding: 0 18px !important;
  background: #1b1c1a !important;
  border: 1px solid #1b1c1a !important;
  border-radius: 20px !important;
  color: #fbfaf8 !important;
  font-family: 'Space Grotesk', 'Manrope', Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease !important;
}

.contact-form button:hover {
  background: rgba(251, 250, 248, 0.94) !important;
  color: #1b1c1a !important;
  transform: translateY(-1px) !important;
}

/* Brand Logo Always Dark Ink (No Burgundy on hover or visited state) */
.brand,
.brand:link,
.brand:visited,
.brand:hover,
.brand:active,
.brand-name,
.brand:hover .brand-name,
.brand:visited .brand-name,
.brand-mark,
.brand:hover .brand-mark,
.brand:visited .brand-mark,
.brand-mark strong,
.brand-mark small {
  color: #1b1c1a !important;
  border-color: #1b1c1a !important;
}

/* Nav Link Baby Blue Hover Accent */
.site-nav a:hover,
.site-nav .nav-contact:hover,
.nav-group>a:hover,
.nav-dropdown a:hover,
.site-nav a:hover span,
.site-nav .nav-group:hover>a {
  color: #70a5d8 !important;
}

.side-arrow {
  display: grid !important;
}

/* Scaled-down Headings & Refined Layout Alignment */
.detail-page {
  padding-top: 115px !important;
  padding-bottom: 70px !important;
}

.detail-page h1 {
  font-size: clamp(38px, 5.2vw, 82px) !important;
  line-height: 0.98 !important;
  margin-top: 16px !important;
  margin-bottom: 28px !important;
}

.reviews-list blockquote {
  font-size: clamp(14px, 1.25vw, 17px) !important;
  line-height: 1.45 !important;
}

.site-footer h2 {
  font-size: clamp(34px, 4.2vw, 64px) !important;
  margin: 12px 0 20px !important;
}

/* Responsive grid scaling */
@media (max-width: 1000px) {
  .portfolio {
    padding-left: 6vw !important;
    padding-right: 6vw !important;
  }
}

/* Mobile Navigation & Mobile Dropdown Enhancements */
@media (max-width: 700px) {
  .portfolio {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
  }
  .portfolio .project-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .portfolio .project,
  .portfolio .project-large,
  .portfolio .project-narrow,
  .portfolio .project-mid,
  .portfolio .project-wide,
  .portfolio .project-offset {
    grid-column: span 1 !important;
    margin-top: 0 !important;
  }
  .fixed-contact {
    right: 16px !important;
    bottom: 16px !important;
    padding: 0 12px !important;
    font-size: 8.5px !important;
  }
  .side-arrow {
    right: 14px !important;
    bottom: 60px !important;
    top: auto !important;
    transform: none !important;
    width: 32px !important;
    height: 32px !important;
    z-index: 98 !important;
  }
  .site-header.nav-open .nav-dropdown {
    position: static !important;
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 8px 0 0 12px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

