/* Optimized Font Pairing: Cinzel (Luxury Serif Editorial) + Lato (Premium Clean Sans UI) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Lato:wght@300;400;700&display=swap');

/* 🎯 Dark Theme Body Styling Balanced for Morristown Layout */
body {
  font-family: 'Lato', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #ffffff; /* Crisp white for clean readability */
  text-align: center;
  background: #1e3a47; /* Brand Deep Slate Blue Baseline */
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- Morristown Gallery Header (Dark/Gold Variant) --- */
.gallery-bespoke-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: #ffffff; /* Synced Deep Slate Blue Header */
  border-bottom: 3px solid #c5a059; /* Brand Antique Gold Accent Border */
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

.btn-antique-outline {
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #c5a059; /* Gold text */
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid #c5a059; /* Elegant fine hairline border */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
}

.btn-antique-outline:hover {
  background: #c5a059;
  color: #1e3a47; /* Inverted contrast on focus */
  transform: translateY(-2px);
}

/* --- Collage Grid Section --- */
.collage-gallery {
  padding: 100px 5%;
  background: #1e3a47; /* Seamless integration with deep body hue */
}

.collage-header {
  text-align: center;
  margin-bottom: 60px;
}

.heritage-tag {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  color: #c5a059; /* Brand Antique Gold */
  text-transform: uppercase;
  font-weight: 700;
}

.collage-title {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  color: #ffffff;
  margin: 15px 0;
  text-transform: uppercase;
  font-weight: 900;
  text-decoration:none;
}

/* Fallback handling if you still use italic spans within titles */
.collage-title span {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-weight: 400;
  color: #c5a059; 
}

.ornate-separator {
  color: #c5a059;
  font-size: 20px;
  opacity: 0.35;
}

/* The Masonry Grid Layout Engine */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.collage-item {
  position: relative;
  overflow: hidden;
  background: #152933; /* Darker step-down slate inside the empty spaces */
  border: 1px solid rgb(255 168 0); /* Fine Antique Gold framing outline */
  display: block;
}

.item-wide { grid-column: span 2; }
.item-tall { grid-row: span 2; }

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
  opacity: 0.85; /* Balanced base brightness for dark layout theme colors */
}

/* Hover Caption Overlap Card */
.collage-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 71, 0.93); /* High opacity Deep Slate mask protection layer */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.collage-item:hover .collage-caption {
  opacity: 1;
}

.collage-item:hover img {
  transform: scale(1.04);
  opacity: 0.15;
}

.category {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #c5a059; /* Brand Antique Gold metadata label */
  margin-bottom: 12px;
  font-weight: 700;
}

.collage-caption h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Responsive Adaptations (Tablets & Mobile Viewports)
   ========================================================================== */
@media (max-width: 1024px) {
  .collage-gallery {
    padding: 80px 4%;
  }

  .collage-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .item-wide, .item-tall { 
    grid-column: span 1; 
    grid-row: span 1; 
  }
  
  .collage-title { 
    font-size: 2.5rem; 
  }
}

@media (max-width: 767px) {
  .collage-gallery {
    padding: 60px 4%;
  }

  .collage-grid { 
    grid-template-columns: 1fr; 
    grid-auto-rows: 250px; 
    gap: 15px;
  }
  
  .collage-title { 
    font-size: 2rem; 
  }
  
  .gallery-bespoke-header { 
    background: #1e3a47; 
    padding: 12px 4%;
  }
}

/* SVG Corporate Logo Controller */
.logo-control {
  display: block;
  width: 200px; 
  height: auto;
  max-height: 70px;
  object-fit: contain;
}