/* === GLOBAL === */
body, p, h1, h2, h3, h4, h5, h6 {
  background-color: #ffffff !important;
  color: #0000ff !important;
  font-family: 'Orator', sans-serif !important;
}

a, a:visited {
  color: #0000ff !important;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Hide default WordPress page title */
h1.entry-title,
.page-title,
.page-header,
.entry-header {
  display: none !important;
}

@media (min-width: 769px) {
  .mobile-header {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
}

/* === PORTFOLIO LAYOUT DESKTOP === */
@media (min-width: 769px) {
  .portfolio-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 0 40px;
    width: 100%;
  }

  .desktop-menu {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 12px;
    position: sticky;
    top: 40px;
    height: auto;
    z-index: 10;
  }

  .desktop-menu a {
    font-family: 'Orator', sans-serif;
    font-size: 16px;
    text-decoration: none;
    color: #0000ff;
  }

  .portfolio-content {
    flex: 1;
    width: 100%;
  }

  .portfolio-content section {
    margin-bottom: 80px;
  }

  .portfolio-content img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
  }
}


/* === MOBILE HEADER + NAV === */
@media (max-width: 768px) {
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 10000;
    border-bottom: 1px solid #ddd;
  }

  .site-title {
    text-align: center;
    font-family: 'Orator', sans-serif;
    font-size: 18px;
    padding: 10px 0 5px;
    color: #0000ff;
  }

  .portfolio-menu {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 10px 16px;
    border-top: 1px solid #ddd;
    background: white;
  }

  .portfolio-menu a {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 6px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    white-space: nowrap;
    color: #0000ff;
    text-decoration: none;
  }

  .portfolio-menu a:hover {
    opacity: 0.7;
  }

  .portfolio-layout {
    flex-direction: column;
    padding-top: 100px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .portfolio-content section {
    margin-bottom: 60px;
  }

  .portfolio-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
  }
}

/* === SMOOTH SCROLL + ANCHOR OFFSET === */
:root{
  /* adjust if your headers change */
  --offset-desktop: 80px;  /* sticky desktop menu ~ top:40 + spacing */
  --offset-mobile: 100px;  /* fixed mobile header height */
}

/* glide to anchors */
html { scroll-behavior: smooth; }

/* make any #section stop below the header */
[id] { scroll-margin-top: var(--offset-desktop); }

@media (max-width: 768px) {
  [id] { scroll-margin-top: var(--offset-mobile); }
}

/* Make any zoomed image/SVG fit inside the viewport on mobile */
.wp-block-image img,
.wp-lightbox img,
.wp-block-image a img {
  width: 100%;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;   /* prevents side-cropping */
}
