#content-wrap {
  min-height: 100dvh;
}

/* Only the visible panel sets the page height. Without this, a short
   panel (About) inherits the height of the tallest one (Gallery) and
   leaves a big empty gap above the footer. */
#panels {
  align-items: flex-start;
}

.panel:not(.is-current) {
  max-height: 100dvh;
  overflow: hidden;
}

.panel {
    padding-top: 110px;
}

/* ---- Footer: navy fill, magnolia text - same treatment as the
     buttons and nav. Sits persistently below the panels, visible
     regardless of which panel (About/Gallery/Contact) is active. ---- */
#site-footer {
  flex-shrink: 0;
  background: var(--color-navy);
  padding: var(--space-4) var(--space-6);
  /* Clear the fixed #to-top button (bottom: space-3, 44px tall) so it never covers the credit. */
  padding-bottom: calc(var(--space-3) + 44px + var(--space-2));
}

.footer__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo {
  display: block;
  height: 84px;
  width: auto;
  margin-bottom: var(--space-1);
}

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--color-white-plaster);
  opacity: 0.65;
}

.footer__details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.footer__details a {
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--color-white-plaster);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}

.footer__details a:hover,
.footer__details a:focus-visible {
  color: var(--color-copper-light);
  border-color: var(--color-copper-light);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-white-plaster);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(240, 235, 223, 0.15);
}

.footer__copyright > span {
  opacity: 0.55;
}

/* Agency credit: quiet like the copyright, copper name to match link hovers. */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: rgba(240, 235, 223, 0.7);
  transition: color var(--duration-fast) var(--ease-standard);
}

.credit img {
  border-radius: 4px;
}

.credit b {
  font-weight: var(--weight-medium);
  color: var(--color-copper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.credit:hover,
.credit:focus-visible {
  color: var(--color-white-plaster);
}

.credit:hover b,
.credit:focus-visible b {
  border-color: var(--color-copper-light);
}
