/* 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&family=Oswald:wght@500;600;700&display=swap');

/* 🎯 Light/Clean Theme Body Styling */
body {
  font-family: 'Jost', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #2D2D2D; /* Structural Deep Charcoal for readable high-contrast layout */
  text-align: center;
  background: #ffffff; 
}

h1 {
  font-family: 'Jost', sans-serif;
  font-size: 3rem;
  color: #111111; /* Riverside Motel Primary Dark Identifier */
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* --- Riverside Motel Gallery Header --- */
.rmv-gal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: #ffffff; 
  border-bottom: 5px solid #D32F2F; /* Riverside Motel Crimson Red Accent Line */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rmv-gal-logo-wrapper {
  display: inline-block;
}

.rmv-gal-logo-control {
  display: block;
  width: 200px; 
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.rmv-gal-btn-outline {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #111111; /* Dark Charcoal for default action border & text */
  text-decoration: none;
  padding: 12px 28px;
  border: 2px solid #111111;
  border-radius: 0px; /* Sharp architectural corners */
  transition: all 0.3s ease;
}

.rmv-gal-btn-outline:hover {
  background: #D32F2F; /* Riverside Crimson Red fill on hover */
  color: #ffffff;
  border-color: #D32F2F;
  transform: translateY(-2px);
}

/* --- Collage Grid Section --- */
.rmv-gal-collage {
  padding: 80px 5%;
  background: #f8f9fa; /* Soft clean neutral off-white background canvas */
}

.rmv-gal-collage-header {
  text-align: center;
  margin-bottom: 60px;
}

.rmv-gal-badge {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  color: #D32F2F; /* Riverside Crimson Red indicator tone */
  text-transform: uppercase;
  font-weight: 800;
}

.rmv-gal-title {
  font-family: 'Oswald', 'Jost', sans-serif;
  font-size: 3.5rem;
  color: #111111;
  margin: 10px 0;
  font-weight: 700;
  text-transform: uppercase;
}

.rmv-gal-title a {
  color: #111111;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rmv-gal-title a:hover {
  color: #D32F2F;
}

.rmv-gal-separator {
  color: #D32F2F; /* Accent red separator */
  font-size: 20px;
}

/* The Masonry Grid */
.rmv-gal-collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.rmv-gal-item {
  position: relative;
  overflow: hidden;
  background: #111111; 
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: block;
  border-radius: 0px; /* Strict grid alignment */
}

.rmv-gal-item-wide { grid-column: span 2; }
.rmv-gal-item-tall { grid-row: span 2; }

.rmv-gal-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 Overlay */
.rmv-gal-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.92); /* Background hover overlay uses Riverside Dark 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;
}

.rmv-gal-item:hover .rmv-gal-caption {
  opacity: 1;
}

.rmv-gal-item:hover img {
  transform: scale(1.05);
  opacity: 0.15;
}

.rmv-gal-category {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 2px solid #D32F2F; /* Accent red line under category tag */
  padding-bottom: 4px;
}

.rmv-gal-caption h2, .rmv-gal-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) {
  .rmv-gal-collage-grid { grid-template-columns: repeat(2, 1fr); }
  .rmv-gal-item-wide, .rmv-gal-item-tall { grid-column: span 1; grid-row: span 1; }
  .rmv-gal-title { font-size: 2.5rem; }
}

@media (max-width: 600px) {
  .rmv-gal-collage-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .rmv-gal-title { font-size: 2rem; }
  .rmv-gal-header { background: #ffffff; }
}

/* --- ACCESSIBLE BACK TO TOP BUTTON --- */
.st6-back-to-top {
  position: fixed;
  bottom: 70px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #111111;
  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(0, 0, 0, 0.3);
}

/* 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: #D32F2F; /* Riverside Red accent on hover */
  color: #FFFFFF;
}

/* Focus indicator for keyboard accessibility users */
.st6-back-to-top:focus-visible {
  outline: 3px solid #D32F2F;
  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: #111111; /* Dark background */
  border-top: 3px solid #D32F2F; /* Riverside Red 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: #D32F2F;
}

.uni-cookie-btn {
  background-color: #D32F2F; /* Riverside Red 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: #111111;
}

.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%;
  }
}