/* Optimized Font Pairing: Unified Clean UI Stack */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

/* 🎯 Light Theme Clean Body Styling */
body {
  font-family: 'Jost', Arial, sans-serif; /* Clean industrial sans-serif matching brand requirements */
  margin: 0;
  padding: 0;
  color: #2D2D2D; /* Structural Deep Charcoal for readable high-contrast layout execution */
  text-align: center;
  background: #ffffff; 
}

h1 {
  font-family: 'Jost', sans-serif;
  font-size: 3rem;
  color: #004A99; /* Studio 6 Corporate Blue primary brand identifier */
  text-transform: uppercase;
  font-weight: 900; /* Ultra-bold structural headline weighting */
  letter-spacing: -0.5px;
}

/* --- Studio 6 Gallery Header --- */
.gallery-bespoke-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: #ffffff; 
  border-bottom: 5px solid #004A99; /* Brand Corporate Blue top accent boundary rule */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 74, 153, 0.06);
}

.btn-antique-outline {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #004A99; /* Core corporate brand blue for default actions */
  text-decoration: none;
  padding: 12px 28px;
  border: 2px solid #004A99;
  border-radius: 0px; /* Sharp architectural corners for minimalist layout designs */
  transition: all 0.3s ease;
}

.btn-antique-outline:hover {
  background: #E31837; /* Fills seamlessly with Studio 6 Signature Red on interaction points */
  color: #ffffff;
  border-color: #E31837;
  transform: translateY(-2px);
}

/* --- Collage Grid Section --- */
.collage-gallery {
  padding: 80px 5%;
  background: #F2F4F7; /* Swapped background canvas into Concrete Gray matching property site color schemes */
}

.collage-header {
  text-align: center;
  margin-bottom: 60px;
}

.heritage-tag {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  color: #004A99; /* Meta tags updated to crisp Signature Red indicator tone */
  text-transform: uppercase;
  font-weight: 800;
}

.collage-title {
  font-family: 'Jost', sans-serif;
  font-size: 3.5rem;
  color: #004A99;
  margin: 10px 0;
  font-weight: 900;
  text-transform: uppercase;
}

.collage-title a {
  color: #004A99;
  text-decoration: none;
  transition: color 0.3s ease;
}

.collage-title a:hover {
  color: #E31837;
}

.collage-title span {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: rgba(45, 45, 45, 0.7); /* Adjusted subtitle layout alpha tracking using deep charcoal baseline */
  text-transform: none;
}

.ornate-separator {
  color: #004A99;
  font-size: 20px;
}

/* The Masonry Grid */
.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: #2D2D2D; 
  border: 1px solid rgba(0, 74, 153, 0.1); /* Framed with structural layout strokes */
  display: block;
  border-radius: 0px; /* Zero radius unembellished corners to maintain strict brand grid alignment */
}

.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.2, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 1; 
}

/* Hover Caption Card Overlay */
.collage-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 74, 153, 0.96); /* Background hover overlay uses clean corporate Studio 6 Blue matrix */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.collage-item:hover .collage-caption {
  opacity: 1;
}

.collage-item:hover img {
  transform: scale(1.05);
  opacity: 0.15;
}

.category {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #F2F4F7; /* Crisp concrete white readability contrasting against overlay */
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 2px solid #E31837; /* Inline underline marker utilizing signature red */
  padding-bottom: 4px;
}

.collage-caption h2, .collage-caption h3 {
  font-family: 'Jost', sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
  .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: 600px) {
  .collage-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .collage-title { font-size: 2rem; }
  .gallery-bespoke-header { background: #ffffff; }
}

/* SVG/PNG Logo Adjustment */
.logo-control {
  display: block;
  width: 200px; 
  height: auto;
  max-height: 70px;
  object-fit: contain;
}
/* --- ACCESSIBLE BACK TO TOP BUTTON --- */
.st6-back-to-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #2D2D2D; /* Match your content panel/button charcoal dark grey */
    color: #FFFFFF;
    border: none;
    border-radius: 0px; /* Sharp architectural edges matching your layout theme */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button reveal state */
.st6-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* High contrast hover color transition */
.st6-back-to-top:hover {
    background-color: #E31837; /* Studio 6 Red brand signature accent */
    color: #FFFFFF;
}

/* Focus indicator for keyboard accessibility users */
.st6-back-to-top:focus-visible {
    outline: 3px solid #004A99; /* Brand Blue crisp focus ring */
    outline-offset: 2px;
}

/* Adjust placement on small screens to prevent overlap with thumb zones */
@media (max-width: 768px) {
    .st6-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
/* --- UNIVERSAL COOKIE BANNER --- */
.uni-cookie-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111111; /* Sleek dark architectural tone matching your estate bar */
  border-top: 3px solid #E31837; /* Studio 6 Brand Red Accent Line */
  z-index: 999999;
  padding: 15px 20px; 
  box-sizing: border-box;
  display: none; /* Controlled dynamically by JavaScript */
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.uni-cookie-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Spreads text left and button right for a balanced layout */
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.uni-cookie-text {
  color: #e0e0e0; /* Off-white for clean readability */
  font-family: 'Jost', sans-serif;
  font-size: 14px; 
  text-align: left;
  line-height: 1.5;
  flex: 1 1 70%;
}

.uni-cookie-link {
  color: #ffffff; 
  text-decoration: underline;
  margin-left: 4px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.uni-cookie-link:hover {
  color: #ffcc00; /* High contrast hover color */
}

.uni-cookie-btn {
  background-color: #E31837; /* Studio 6 Red button instead of yellow */
  color: #ffffff; /* Stark white text for visibility */
  border: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700; 
  text-transform: uppercase; /* Structural crisp lettering */
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0px; /* Removed round capsule look to match your site's sharp buttons */
  transition: all 0.3s ease;
  flex: 0 0 auto;
}

.uni-cookie-btn:hover {
  background-color: #004A99; /* Smooth shift to Studio 6 Brand Blue on hover */
  color: #ffffff;
}

.uni-cookie-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Responsive adjustment for mobile screen breakpoints */
@media (max-width: 768px) {
  .uni-cookie-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .uni-cookie-text {
    text-align: center;
    font-size: 13px;
  }
  .uni-cookie-btn {
    width: 100%; /* Full width button on small mobile screens */
  }
}