/* 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;
  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: #0c3156; /* The Cromwell Inn Deep Navy primary brand identifier */
  text-transform: uppercase;
  font-weight: 900; /* Ultra-bold structural headline weighting */
  letter-spacing: -0.5px;
}

/* --- The Cromwell Inn Gallery Header --- */
.gallery-bespoke-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: #ffffff; 
  border-bottom: 5px solid #0c3156; /* The Cromwell Inn Deep Navy top accent boundary rule */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(12, 49, 86, 0.08);
}

.btn-antique-outline {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #0c3156; /* Core Deep Navy for default actions */
  text-decoration: none;
  padding: 12px 28px;
  border: 2px solid #0c3156;
  border-radius: 0px; /* Sharp architectural corners */
  transition: all 0.3s ease;
}

.btn-antique-outline:hover {
  background: #0c3156; /* Fills seamlessly with Cromwell Luxury Gold on hover */
  color: #ffffff;
  border-color: #0c3156;
  transform: translateY(-2px);
}

/* --- Collage Grid Section --- */
.collage-gallery {
  padding: 80px 5%;
  background: #fdfbf7; /* Swapped background canvas into Cromwell warm off-white surface tint */
}

.collage-header {
  text-align: center;
  margin-bottom: 60px;
}

.heritage-tag {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  color: #0c3156; /* Meta tags updated to Cromwell Luxury Gold indicator tone */
  text-transform: uppercase;
  font-weight: 800;
}

.collage-title {
  font-family: 'Jost', sans-serif;
  font-size: 3.5rem;
  color: #0c3156;
  margin: 10px 0;
  font-weight: 900;
  text-transform: uppercase;
}

.collage-title a {
  color: #0c3156;
  text-decoration: none;
  transition: color 0.3s ease;
}

.collage-title a:hover {
  color: #0c3156;
}

.collage-title span {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: rgba(45, 45, 45, 0.7); /* Adjusted subtitle layout alpha tracking */
  text-transform: none;
}

.ornate-separator {
  color: #0c3156; /* Cromwell Luxury Gold separator accent */
  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: #0c3156; 
  border: 1px solid rgba(12, 49, 86, 0.12); /* 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(12, 49, 86, 0.94); /* Background hover overlay uses Cromwell Deep Navy 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: #fdfbf7; /* Crisp warm off-white readability contrasting against overlay */
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 2px solid #0c3156; /* Inline underline marker utilizing Cromwell Luxury Gold */
  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: 100px;
  object-fit: contain;
}

/* --- ACCESSIBLE BACK TO TOP BUTTON --- */
.st6-back-to-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #0c3156; /* Cromwell Deep Navy */
    color: #FFFFFF;
    border: none;
    border-radius: 0px;
    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(12, 49, 86, 0.2);
}

/* 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: #0c3156; /* Cromwell Luxury Gold accent */
    color: #FFFFFF;
}

/* Focus indicator for keyboard accessibility users */
.st6-back-to-top:focus-visible {
    outline: 3px solid #0c3156;
    outline-offset: 2px;
}

/* Adjust placement on small screens */
@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: #0c3156; /* Cromwell Deep Navy background */
  border-top: 3px solid #0c3156; /* Cromwell Luxury Gold Accent Line */
  z-index: 999999;
  padding: 15px 20px; 
  box-sizing: border-box;
  display: none;
  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;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.uni-cookie-text {
  color: #e0e0e0;
  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: #0c3156; /* Luxury Gold hover */
}

.uni-cookie-btn {
  background-color: #0c3156; /* Cromwell Luxury Gold button */
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700; 
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0px;
  transition: all 0.3s ease;
  flex: 0 0 auto;
}

.uni-cookie-btn:hover {
  background-color: #ffffff;
  color: #0c3156; /* Shifts to Deep Navy text on white background hover */
}

.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%;
  }
}