@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

body,
button,
input,
select,
textarea,
.site,
.header,
.container-header,
.mod-menu,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif !important;
}

/* Page background */
html,
body,
.site,
.site-grid {
  background: #f4f2ee !important;
}

/* Featured/category article layout */
.featured-oldstyle {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

.featured-oldstyle-image img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-oldstyle-date {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.featured-oldstyle-text h2 {
  margin-top: 0;
}

.featured-oldstyle .item-title a,
.featured-oldstyle .item-title a:hover,
.featured-oldstyle .item-title a:focus {
  text-decoration: none;
}

/* Header */
.container-header {
  background: linear-gradient(to bottom, #0b1f3a, #071629);
  color: #fff;
  padding-top: 3rem;
}

.container-header .navbar-brand {
  display: none !important;
}

.container-header .container-below-top,
.container-header .container-nav,
.site-grid,
.container-component {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Custom logo/title module */
.container-header .container-below-top {
  padding: 2.5rem 0 1rem;
}

.hala-header-brand,
.hala-header-inner {
  width: 100%;
}

.hala-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hala-header-title {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
}

.hala-header-logo {
  max-height: 95px;
  width: auto;
}

/* Menu wrapper */
.container-header .container-nav {
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
}

/* Desktop menu */
.container-header .mod-menu {
  background: #252827;
  margin: 0;
  padding: 0;
  display: flex;
}

.container-header .mod-menu > li {
  border-right: 1px solid rgba(255,255,255,.08);
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button {
  color: #fff !important;
  text-transform: uppercase;
  padding: 1.35rem 1.6rem;
  font-size: .95rem;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > button:hover,
.container-header .mod-menu .metismenu-item > button:hover,
.container-header .mod-menu .metismenu-item.active > button {
  color: #e94b3c !important;
  background: #202322;
}

.container-header .mod-menu .metismenu-item > button {
  color: #fff !important;
}

/* Content width */
.site-grid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Tablet */
@media (max-width: 980px) {
  .container-header {
    padding: 2rem 1rem 0;
  }

  .container-header .container-below-top,
  .container-header .container-nav,
  .site-grid,
  .container-component {
    max-width: none;
    width: 100%;
  }

  .hala-header-inner {
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .hala-header-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hala-header-logo {
    max-height: 75px;
  }
}

/* Mobile menu button */
@media (max-width: 768px) {
  .container-header .navbar-toggler {
    display: flex !important;
    align-items: center;
    gap: .75rem;
    background: #252827 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0;
    padding: .9rem 1.2rem;
    width: 100%;
    text-align: left;
  }

  .container-header .navbar-toggler-icon {
    filter: invert(1);
  }

  .container-header .navbar-toggler::after {
    content: "VALMYND";
    color: #fff;
    font-size: 1rem;
  }

  .container-header .mod-menu {
    display: block;
    margin-top: .75rem;
    width: 100%;
  }

  .container-header .mod-menu > li {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button {
    padding: .9rem 1.2rem;
  }
}

/* Small phone */
@media (max-width: 600px) {
  .featured-oldstyle {
    grid-template-columns: 1fr;
  }

  .container-header {
    padding-top: 1rem;
  }

  .container-header .container-below-top {
    padding: 1.25rem 0 .75rem;
  }

  .hala-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
  }

  .hala-header-title {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
    white-space: nowrap;
  }

  .hala-header-logo {
    max-height: 48px;
    flex-shrink: 0;
  }

  .container-header .container-nav {
    margin-top: .75rem;
  }
}

/* Very narrow */
@media (max-width: 420px) {
  .hala-header-title {
    font-size: 1.55rem;
  }

  .hala-header-logo {
    max-height: 38px;
  }
}
/* Force below-top module to use full header width */
.container-header .container-below-top {
  display: block !important;
  max-width: 980px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.container-header .container-below-top > *,
.container-header .container-below-top .mod-custom,
.container-header .container-below-top .custom,
.container-header .container-below-top .hala-header-brand,
.container-header .container-below-top .hala-header-inner {
  width: 100% !important;
  max-width: 100% !important;
}

.container-header .container-below-top .hala-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.container-header .hala-header-title {
  color: #fff !important;
}

.container-header .hala-header-logo {
  margin-left: auto !important;
}

/* Tablet hamburger fix: Joomla/Cassiopeia often collapses before 768px */
@media (max-width: 991px) {
  .container-header .navbar-toggler {
    display: flex !important;
    align-items: center !important;
    gap: .75rem !important;
    background: #252827 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: .9rem 1.2rem !important;
    width: 100% !important;
    text-align: left !important;
  }

  .container-header .navbar-toggler-icon {
    filter: invert(1) !important;
  }

  .container-header .navbar-toggler::after {
    content: "VALMYND";
    color: #fff;
    font-size: 1rem;
  }

  .container-header .container-nav {
    background: #fff !important;
    padding: 1rem !important;
  }
}
.layout-Masonry .br-sigpro-grid {
  margin: 0 -6px;
}


/* PhotoSwipe: keep controls above image and clickable */
.pswp,
.pswp__ui,
.pswp__top-bar,
.pswp__button,
.pswp__button--close,
.pswp__button--zoom,
.pswp__button--arrow--prev,
.pswp__button--arrow--next {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

.pswp__button {
  cursor: pointer;
}

.pswp__button--arrow--prev,
.pswp__button--arrow--next {
  width: 80px !important;
  height: 120px !important;
}

/* Hide Cassiopeia/back-to-top button while PhotoSwipe is open */
body:has(.pswp--open) .back-to-top-link {
  display: none !important;
}

/* SECTION */
.hl-poster-section {
  background: #f4f2ee;
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 1180px;
  border-radius: 6px;
}

.card,
.moduletable,
.container-component {
  background: transparent !important;
}

/* TITLE */
.hl-poster-section h2 {
  text-align: center;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}

/* GRID */
.hl-poster-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

@media (max-width: 900px) {
  .hl-poster-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hl-poster-row {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.hl-poster-card {
  display: block;
}

/* IMAGE */
.hl-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* OPTIONAL NICE HOVER */
.hl-poster-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.22);
}

/* MOBILE */
@media (max-width: 600px) {
  .hl-poster-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 900px) {
  .hl-hide-tablet {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .hl-hide-mobile {
    display: none !important;
  }
}

/* Header/menu white panel -> same off-white background */
.container-header .container-nav,
.container-header .container-below-top + .container-nav,
.container-header .container-nav > .grid-child,
.container-header .navbar {
  background: #f4f2ee !important;
}