/* Ensures the main body and header reflect the new colours */
.container-header {
  background-color: #fc6e00; /* Replace with your preferred orange hex code */
  background-image: none;
}

/* Optional: Update primary CSS variables to orange across the site */
:root {
  --body-bg: #FFF3E0;
  --body-color: #212529;
  
  --cassiopeia-color-primary: #ffb378;
  --cassiopeia-color-hover: #b45309;
  --cassiopeia-color-link: #d97706;
}

body {
  background-color: var(--body-bg);
}

/* 1. Enlarge the Logo (Desktop & Mobile Aspect-Ratio Safe) */
header.container-header .navbar-brand .brand-logo img {
  width: auto !important;
  height: 100px !important; /* Increase or decrease this number as needed */
  max-width: 100% !important;
  max-height: none !important;
  min-width: unset !important;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  header.container-header .navbar-brand {
    max-width: calc(100% - 60px); /* Leaves space for the collapsible menu toggle */
  }

  header.container-header .navbar-brand .brand-logo img {
    width: 100% !important;
    height: auto !important; /* Prevents vertical stretching on narrow screens */
    max-height: 75px !important;
  }
}

/* 2. Remove Excess Padding Around the Logo Container */
header.container-header > .grid-child:first-child {
  padding-top: 6px !important;
  padding-bottom: 4px !important;
}

header.container-header .navbar-brand {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* 3. Reduce Padding Around the Menu Bar (.container-nav & #mod-menu1) */
header.container-header > .grid-child.container-nav {
  padding-top: 2px !important;
  padding-bottom: 6px !important;
}

#mod-menu1 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#mod-menu1 > li.nav-item > a {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}








/* ==========================================================================
   Cassiopeia Popup Image & Video Gallery (Pop-In / Pop-Out)
   ========================================================================== */

.cj-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.cj-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #111827;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
}

.cj-gallery-item:hover,
.cj-gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  outline: 2px solid var(--cassiopeia-color-primary, #0d6efd);
  outline-offset: 2px;
}

.cj-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.cj-gallery-item:hover img {
  transform: scale(1.04);
}

.cj-badge {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  pointer-events: none;
}

.cj-badge--video {
  background: rgba(185, 28, 28, 0.88);
}

/* Lightbox Backdrop & Pop-In / Pop-Out Animations */
.cj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(9, 13, 22, 0.86);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cj-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: cjBackdropIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cj-lightbox.is-closing {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: cjBackdropOut 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.cj-lightbox__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  width: fit-content;
}

.cj-lightbox.is-open .cj-lightbox__dialog {
  animation: cjPopIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cj-lightbox.is-closing .cj-lightbox__dialog {
  animation: cjPopOut 0.22s cubic-bezier(0.4, 0, 0.8, 0.4) forwards;
}

.cj-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 78vh;
}

/* Preserves full aspect ratio for both vertical & horizontal photos */
.cj-lightbox__img {
  display: block;
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  background: #000000;
}

.cj-lightbox__video,
.cj-lightbox__iframe {
  display: block;
  width: min(88vw, 960px);
  max-width: 92vw;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  border: 0;
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.cj-lightbox__caption {
  margin-top: 0.75rem;
  color: #f8fafc;
  font-size: 0.95rem;
  text-align: center;
  max-width: 80ch;
}

/* Controls */
.cj-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10001;
  transition: background 0.18s ease, transform 0.18s ease;
}

.cj-lightbox__close:hover {
  background: rgba(220, 38, 38, 0.9);
  transform: scale(1.06);
}

.cj-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10001;
  transition: background 0.18s ease, transform 0.18s ease;
}

.cj-lightbox__nav:hover {
  background: rgba(30, 41, 59, 0.96);
  transform: translateY(-50%) scale(1.06);
}

.cj-lightbox__prev {
  left: 1rem;
}

.cj-lightbox__next {
  right: 1rem;
}

/* Keyframes */
@keyframes cjPopIn {
  0% {
    opacity: 0;
    transform: scale(0.72) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes cjPopOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.76) translateY(12px);
  }
}

@keyframes cjBackdropIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes cjBackdropOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cj-lightbox.is-open,
  .cj-lightbox.is-closing,
  .cj-lightbox.is-open .cj-lightbox__dialog,
  .cj-lightbox.is-closing .cj-lightbox__dialog,
  .cj-gallery-item,
  .cj-gallery-item img {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .cj-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .cj-lightbox__nav {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .cj-lightbox__prev {
    left: 0.45rem;
  }

  .cj-lightbox__next {
    right: 0.45rem;
  }
}