.about-page-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #100f16;
    overflow: visible;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
    z-index: 1;
}

.about-page-wrapper::before {
    display: none;
}

body {
    overflow-x: hidden;
}

.about-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
    color: #222;
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    align-items: center;
    gap: 1.5rem;
}

.about-section.row.left .about-image {
    order: 0;
}

.about-section.row.right .about-image {
    order: 1;
}

.about-section.row.right .about-text {
    order: 0;
}

.about-image {
    max-width: 600px;
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-image img {
    max-height: 550px;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.about-image .image-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.about-text {
    flex: 1 1 500px;
    font-size: 1.425rem;
    line-height: 1.75;
    color: #ffffff;
    font-weight: bold;
}

.about-text-section1 {
    font-size: 1.125rem;
    line-height: 1.85;
}

.about-text ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-gallery {
    margin-top: 2.5rem;
    color: #fff;
    font-weight: bold;
}

.about-gallery h2 {
    text-align: center;
    font-weight: bold;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-grid figure {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.gallery-grid img {
    max-height: 90%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}


.gallery-grid figcaption {
    margin-top: 0.75rem;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.4;
    color: #ffffff;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
    font-weight: bold;
}

@media (max-width: 768px) {
    .about-page-content {
        padding: 2rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-grid figure {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem 1rem;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .gallery-grid img {
        max-width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}
/* Ensure links in About Page sections are visible */
.about-text a,
.about-gallery a {
    color: lightblue;
    text-decoration: none;
}

.about-text a:hover,
.about-gallery a:hover {
    color: #aee6ff; /* lighter on hover */
    text-decoration: underline;
}

/* v2.2: Restore original styling against theme/global block overrides. */
body .about-page-wrapper.alignfull {
  position: relative; width: 100%; max-width: none; margin: 0;
  padding: 0; background: #100f16; overflow: visible;
  font-family: 'Segoe UI', sans-serif; box-sizing: border-box;
}
body .about-page-wrapper, body .about-page-wrapper * { box-sizing: border-box; }
body .about-page-wrapper .about-page-content {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 3rem 2rem; color: #fff; position: relative;
}
body .about-page-wrapper .about-section.row.left.about-intro {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; gap: 1.5rem; margin: 0 0 2rem;
  width: 100%;
}
body .about-page-wrapper .about-intro .about-image {
  flex: 1 1 400px; max-width: 600px; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
  margin: 0; order: 0; text-align: center;
}
body .about-page-wrapper .about-intro .about-image img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: 550px; object-fit: contain; border-radius: 10px;
}
body .about-page-wrapper .about-intro .about-intro-text {
  flex: 1 1 500px; min-width: 0; order: 1;
}
body .about-page-wrapper .about-text,
body .about-page-wrapper .about-text p,
body .about-page-wrapper .about-text h2,
body .about-page-wrapper .about-gallery,
body .about-page-wrapper .about-gallery h2,
body .about-page-wrapper .about-gallery figcaption,
body .about-page-wrapper .image-caption {
  color: #fff !important;
}
body .about-page-wrapper .about-text {
  font-size: 1.425rem; line-height: 1.75; font-weight: bold;
}
body .about-page-wrapper .about-text-section1,
body .about-page-wrapper .about-text-section1 p {
  font-size: 1.125rem; line-height: 1.85; font-weight: bold;
}
body .about-page-wrapper .about-text p { margin: 0 0 1rem; }
body .about-page-wrapper .about-writing,
body .about-page-wrapper .about-contact { display: block; margin: 0 0 2rem; width: 100%; }
body .about-page-wrapper .about-writing-preview { max-width: 100%; margin: 1.5rem 0 0; font-weight: normal; }
body .about-page-wrapper .about-writing-preview .about-preview-fallback {
  display: block; padding: 1.25rem; border: 1px solid rgba(255,255,255,.2);
}
body .about-page-wrapper .about-contact h2 { font-size: 1.8rem; margin: 0 0 .75rem; }
body .about-page-wrapper .about-contact-links {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .6rem; overflow-wrap: anywhere;
}
body .about-page-wrapper .about-text a { color: lightblue !important; }
body .about-page-wrapper .about-bluesky-link { display: inline-flex; align-items: center; gap: .5rem; }
body .about-page-wrapper .about-bluesky-link svg { width: 22px; height: 22px; flex-shrink: 0; }
body .about-page-wrapper .about-gallery h2 { font-size: 4rem; }
body .about-page-wrapper .gallery-grid { width: 100%; }
body .about-page-wrapper .gallery-grid figure { margin: 0; }
body .about-page-wrapper .gallery-grid img { width: auto; height: auto; max-width: 100%; max-height: 90%; }
@media (max-width: 768px) {
  body .about-page-wrapper .about-page-content { padding: 2rem 1rem; }
  body .about-page-wrapper .about-section.row.left.about-intro { flex-direction: column; align-items: stretch; }
  body .about-page-wrapper .about-intro .about-image,
  body .about-page-wrapper .about-intro .about-intro-text { flex: none; width: 100%; max-width: 100%; }
  body .about-page-wrapper .about-gallery h2 { font-size: clamp(2rem, 8vw, 4rem); }
  body .about-page-wrapper .gallery-grid img { max-height: 300px; }
}

/* v2.3: Protect the original layout from block theme/global rules. */
body .wp-site-blocks .about-page-wrapper.alignfull {
  width: 100% !important; max-width: none !important; margin-inline: 0 !important;
  background: #100f16 !important;
}
body .about-page-wrapper .about-page-content {
  width: 100% !important; max-width: 1200px !important;
  margin-inline: auto !important; padding: 3rem 2rem !important;
}
body .about-page-wrapper .about-intro {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
  align-items: center !important; gap: 1.5rem !important;
}
body .about-page-wrapper .about-intro-image {
  flex: 1 1 400px !important; max-width: 600px !important; min-width: 0 !important;
}
body .about-page-wrapper .about-intro-text {
  flex: 1 1 500px !important; min-width: 0 !important;
}
body .about-page-wrapper .about-text,
body .about-page-wrapper .about-text p,
body .about-page-wrapper .about-text h2,
body .about-page-wrapper .about-gallery,
body .about-page-wrapper .about-gallery h2,
body .about-page-wrapper figcaption {
  color: #fff !important; font-family: 'Segoe UI', sans-serif !important;
}
body .about-page-wrapper .about-image img {
  width: auto !important; height: auto !important; max-width: 100% !important;
  max-height: 550px !important; object-fit: contain !important;
}
@media (max-width: 768px) {
  body .about-page-wrapper .about-page-content { padding: 2rem 1rem !important; }
  body .about-page-wrapper .about-intro { flex-direction: column !important; }
  body .about-page-wrapper .about-intro-image,
  body .about-page-wrapper .about-intro-text { flex: none !important; width: 100% !important; max-width: 100% !important; }
}

/* v2.4: Let the site's existing background show through (no black panel). */
body .about-page-wrapper,
body .about-page-wrapper.alignfull,
body .wp-site-blocks .about-page-wrapper.alignfull {
  background: transparent !important;
  background-image: none !important;
}
/* Center the embedded article preview without changing its internal design. */
body .about-page-wrapper .about-writing-preview {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  width: 100%;
  margin: 1.5rem auto 0 !important;
}
body .about-page-wrapper .about-writing-preview > *,
body .about-page-wrapper .about-writing-preview .wptl-preview-card,
body .about-page-wrapper .about-writing-preview .about-preview-fallback {
  width: 100%;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* v2.6: Full-viewport background, without changing the original content width. */
body:has(.about-page-wrapper) {
  background: #181721 !important;
  background-image: none !important;
}
body:has(.about-page-wrapper) .wp-site-blocks {
  background-color: #181721 !important;
  background-image: none !important;
}
body .about-page-wrapper,
body .about-page-wrapper.alignfull,
body .wp-site-blocks .about-page-wrapper.alignfull {
  background: #181721 !important;
  background-image: none !important;
}
/* Contact labels stay white; only the linked addresses are blue. */
body .about-page-wrapper .about-contact-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  list-style: disc outside !important;
  padding-left: 1.5rem !important;
  margin: .5rem 0 0 !important;
  gap: .5rem !important;
}
body .about-page-wrapper .about-contact-links li,
body .about-page-wrapper .about-contact-links li span {
  color: #fff !important;
}
body .about-page-wrapper .about-contact-links a,
body .about-page-wrapper .about-contact-links a:visited {
  color: #8ed1fc !important;
}
/* Fit the gallery heading on a desktop row, wrap on small screens. */
body .about-page-wrapper .about-gallery h2 {
  font-size: clamp(1.5rem, 3.05vw, 3.2rem) !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap;
  margin: 0 0 1.5rem !important;
}
/* Eliminate the fixed 500px figure height that creates mobile empty space. */
@media (max-width: 768px) {
  body .about-page-wrapper .gallery-grid { gap: 1rem !important; }
  body .about-page-wrapper .gallery-grid figure {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 .5rem !important;
    margin: 0 !important;
    justify-content: flex-start !important;
  }
  body .about-page-wrapper .gallery-grid img {
    max-height: 320px !important;
    height: auto !important;
  }
  body .about-page-wrapper .gallery-grid figcaption { margin-top: .5rem !important; }
  body .about-page-wrapper .about-gallery h2 {
    font-size: clamp(1.35rem, 5.3vw, 2.5rem) !important;
    white-space: normal;
  }
}
