/* =========================================== */
/* HERO CONTENT CENTER FIX */
/* Overrides template-features-2026-mega-bundle.css */
/* MUST load after all other CSS */
/* =========================================== */

/* CRITICAL: Override parallax CSS that breaks centering */
#hero-section .hero-content,
#hero-section .hero-content.parallax-very-slow,
.hero-section#hero-section .hero-content,
.hero-section#hero-section .hero-content.parallax-very-slow,
section#hero-section .hero-content,
section#hero-section .hero-content.parallax-very-slow,
.hero-section .hero-content,
.hero-section .hero-content.parallax-very-slow,
.art-gallery-hero .hero-content,
.art-gallery-hero .hero-content.parallax-very-slow,
.hero-section.art-gallery-hero .hero-content,
.hero-section.art-gallery-hero .hero-content.parallax-very-slow {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 1200px !important;
}

/* Ensure container is centered */
#hero-section .hero-content .container,
.hero-section#hero-section .hero-content .container,
section#hero-section .hero-content .container,
.hero-section .hero-content .container,
.art-gallery-hero .hero-content .container,
.hero-section.art-gallery-hero .hero-content .container {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure row is centered */
#hero-section .hero-content .row,
.hero-section#hero-section .hero-content .row,
section#hero-section .hero-content .row,
.hero-section .hero-content .row,
.art-gallery-hero .hero-content .row,
.hero-section.art-gallery-hero .hero-content .row {
  justify-content: center !important;
  align-items: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

/* Ensure column is centered */
#hero-section .hero-content .col-lg-10,
.hero-section#hero-section .hero-content .col-lg-10,
section#hero-section .hero-content .col-lg-10,
.hero-section .hero-content .col-lg-10,
.art-gallery-hero .hero-content .col-lg-10,
.hero-section.art-gallery-hero .hero-content .col-lg-10 {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure all text elements are centered */
#hero-section .hero-content h1,
#hero-section .hero-content .lead,
#hero-section .hero-content .text-lead,
#hero-section .hero-content p,
.hero-section#hero-section .hero-content h1,
.hero-section#hero-section .hero-content .lead,
.hero-section#hero-section .hero-content .text-lead,
.hero-section#hero-section .hero-content p,
section#hero-section .hero-content h1,
section#hero-section .hero-content .lead,
section#hero-section .hero-content .text-lead,
section#hero-section .hero-content p,
.hero-section .hero-content h1,
.hero-section .hero-content .lead,
.hero-section .hero-content .text-lead,
.hero-section .hero-content p,
.art-gallery-hero .hero-content h1,
.art-gallery-hero .hero-content .lead,
.art-gallery-hero .hero-content .text-lead,
.art-gallery-hero .hero-content p,
.hero-section.art-gallery-hero .hero-content h1,
.hero-section.art-gallery-hero .hero-content .lead,
.hero-section.art-gallery-hero .hero-content .text-lead,
.hero-section.art-gallery-hero .hero-content p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure button container is centered */
#hero-section .hero-content .d-flex.justify-content-center,
.hero-section#hero-section .hero-content .d-flex.justify-content-center,
section#hero-section .hero-content .d-flex.justify-content-center,
.hero-section .hero-content .d-flex.justify-content-center {
  justify-content: center !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure corner links are visible */
#hero-section .hero-corner-links,
.hero-section#hero-section .hero-corner-links,
section#hero-section .hero-corner-links,
.hero-section .hero-corner-links {
  position: fixed !important;
  top: calc(var(--navbar-height, 80px) + 1rem + 200px - 270px - 10px) !important;
  right: calc(1.5rem - 10px) !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem !important;
  z-index: 99999 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 90vw !important;
}

#hero-section .hero-corner-link,
.hero-section#hero-section .hero-corner-link,
section#hero-section .hero-corner-link,
.hero-section .hero-corner-link {
  color: #000000 !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  border-radius: 4px !important;
  display: inline-block !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 100000 !important;
  width: auto !important;
  height: auto !important;
}

/* Move View Portfolio button 5px to the left (adjusted from 10px) */
#hero-section .hero-corner-link[href="portfolio.html"],
.hero-section#hero-section .hero-corner-link[href="portfolio.html"],
section#hero-section .hero-corner-link[href="portfolio.html"],
.hero-section .hero-corner-link[href="portfolio.html"] {
  margin-right: 5px !important;
  margin-left: -5px !important;
}
