/* ==========================================================================
   Gnome Custom Styles
   Shared across all pages for Barba.js PJAX compatibility
   ========================================================================== */

/* --- Header: Logo & Nav Centering --- */
@media (min-width: 992px) {
  .header__controls > .row {
    justify-content: center !important;
  }
  .header__controls > .row > .order-lg-1,
  .header__controls > .row > .order-lg-3 {
    flex: 1 1 0;
  }
  .header__controls > .row > .order-lg-1 {
    text-align: right;
    padding-right: 20px;
  }
  .header__controls > .row > .order-lg-3 {
    text-align: left;
    padding-left: 20px;
  }
  .header__controls > .row > .order-lg-2 {
    flex: 0 0 auto;
    text-align: center;
  }
}

/* Remove template's 35px right margin on logo image wrapper */
.logo__wrapper-img {
  margin-right: 0 !important;
}

/* Hide custom cursor */
#js-arts-cursor { display: none !important; }

/* Heading weight */
.section-content h2.h2,
h2.h2 {
  font-weight: 300;
}

/* --- Homepage: Clouds Animation --- */
.clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  animation: fade-in 10s 1s;
  transform: rotate(180deg);
}
.clouds img {
  position: absolute;
  bottom: 0;
  max-width: 100%;
  animation: clouds calc(4s * var(--i)) linear infinite;
  opacity: .7;
}
@keyframes clouds {
  0%   { opacity: 0; transform: scale(1); }
  25%, 75% { opacity: 0.2; }
  100% { opacity: 0; transform: scale(3); }
}

/* --- Homepage: Discover Grid --- */
.discover-grid .hover-zoom__inner {
  width: 100%;
  height: 350px;
  overflow: hidden;
}
.discover-grid .hover-zoom__zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Inner Pages: Hero Masthead --- */
.section-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.section-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.section-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.section-hero__content {
  position: relative;
  z-index: 2;
  transition: opacity 1.2s ease;
}
/* Hide hero text during Barba PJAX transitions; JS removes class + fades in after */
.hero-transitioning .section-hero__content {
  opacity: 0 !important;
}

/* --- Age Gate Popup --- */
.popup-container {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 350px;
  padding: 40px;
  margin: 20% auto 0;
  background: white;
  text-align: center;
  box-shadow: 0 0 15px 10px rgba(0, 0, 0, 0.1);
}
@media (max-width: 640px) {
  .popup-container {
    padding: 40px 20px;
  }
}
.popup-body {
  box-sizing: border-box;
  font-size: 24px;
  margin-bottom: 25px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 640px) {
  .popup-body {
    font-size: 26px;
    margin-bottom: 15px;
  }
}
.popup-btn {
  box-sizing: border-box;
  padding: 10px 20px;
  margin-right: 10px;
  border: none;
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px;
  color: white;
  background-color: rgba(0,0,0,.8);
}
