/* 1. Desktop & General Wrapper */
.custom-portfolio-wrapper {
    padding-top: 1rem !important;
}

/* 2. Adjust spacing between 3 text columns and the next header */
.custom-portfolio-wrapper .overview-grid {
    margin-bottom: 1.5rem !important; /* Decrease this value to pull 'Explore My Galleries' closer, or increase to push it down */
}

.custom-portfolio-wrapper h2 {
    margin-top: 1rem !important;   /* Adjust space directly above the header */
    margin-bottom: 2rem !important; /* Adjust space between the header and the cards grid */
}

/* 3. Mobile-specific spacing overrides */
@media (max-width: 768px) {
    #hero, 
    #hero.hero-large {
        padding-bottom: 1rem !important;
        min-height: auto !important;
    }
    
    .custom-portfolio-wrapper {
        padding-top: 1rem !important;
        background-color: #18181b !important;
        border-radius: 12px;
        padding: 1.5rem !important;
        margin: 0 1rem !important;
    }
}

.custom-portfolio-wrapper {
    color: #e5e7eb;
}

.overview-col {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 1.5rem;
}

.overview-col h3 {
    color: #ffffff;
}

.overview-col p {
    color: #e5e7eb;
    line-height: 1.7;
}

.section-title {
    color: #ffffff !important;
}


.gallery-card h4 {
    color: #ffffff !important;
}

.gallery-card p {
    color: #d1d5db !important;
}


/* --- Accent color touches on nav --- */
.dropmenu a.active,
.dropmenu a.active:hover {
  background: var(--q2-accent) !important;
}
.dropmenu a:hover:not(.active) {
  color: var(--q2-accent) !important;
}

/* --- Disable hyphenation on the homepage overview cards --- */
.overview-col h3,
.overview-col p {
  hyphens: none;
  -webkit-hyphens: none;
}

/* --- Purple accent on footer social icons --- */
.footer-social a {
  color: var(--q2-accent) !important;
}

/* --- Restore intended colors on the logo, overriding the theme's generic navbar-brand fill rule --- */
.navbar-brand svg .acp-accent {
  fill: url(#purpleGradD) !important;
  stroke: url(#purpleGradD) !important;
}
.navbar-brand svg .acp-sub {
  fill: #e5e7eb !important;
}
.navbar-brand svg .acp-ring {
  fill: none !important;
}
:root[data-theme="dark"] .navbar-brand svg .acp-ring {
  fill: #000 !important;
}
:root[data-theme="light"] .navbar-brand svg .acp-ring {
  fill: #fff !important;
}
:root[data-theme="light"] .navbar-brand svg .acp-sub {
  fill: #333333 !important;
}
:root[data-theme="dark"] .navbar-brand svg .acp-sub {
  fill: #e5e7eb !important;
}
.overview-col-img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 12px;
}

.hero-font-serif h1,
.hero-font-serif h2 {
  font-family: 'Playfair Display', serif;
}
.hero-font-sans h1,
.hero-font-sans h2 {
  font-family: 'Oswald', sans-serif;
}

/* --- Larger social icons on the home page --- */
.overview-social a {
  font-size: 1.75rem;
  line-height: 1;
}

/* --- Tooltips on the social icons --- */
.social-tip {
  position: relative;
}
.social-tip::after {
  content: attr(data-acp-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #18181b;
  color: #e5e7eb;
  border: 1px solid var(--q2-accent, #8428DF);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}
.social-tip:hover::after,
.social-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

/* The framework clips links that contain an icon, which hides the tooltip above them */
.social-tip {
  overflow: visible;
}

/* --- Larger social icons on phones --- */
@media (max-width: 768px) {
  .overview-social {
    gap: 1.75rem !important;
  }
  .overview-social a {
    font-size: 2.25rem;
    padding: 0.35rem;
  }
}
