/* --- UNIVERSAL LINE-HEIGHT OVERRIDE --- */
* {
    line-height: 1.3 !important;
}


/* --- COMPLETE AND CORRECTED CARGO CSS --- */

/* --- GENERAL & FONT IMPORTS --- */

/* --- GLOBAL PADDING --- */
body {
    padding: 5.7vw !important;
}

@media screen and (max-width: 768px) {
    body {
        padding: 6vw !important;
    }
}

/* --- HEADING STYLES --- */
h1 {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0px !important;
    color: #000000 !important;
    text-transform: none !important;
}
h2 {
    font-family: 'Times New Roman', serif;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0px !important;
    color: #000 !important;
}
h3 {
    font-family: 'Times New Roman', serif;
    font-size: 20px !important;
    font-weight: 200 !important;
    line-height: 1.5 !important;
    letter-spacing: 1px !important;
    color: #000 !important;
    text-transform: uppercase !important;
}
body {
    font-family: Times New Roman, 'Times New Roman';
    font-size: 10px;
    line-height: 1.6;
    color: #000;
    padding: 5vw;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff !important; /* Add this line */
}

/* --- MAIN BODY TEXT --- */
p {
    font-size: 20px !important;
    line-height: 1.3 !important;
}

/* --- LINK STYLING --- */
a, a:link, a:visited {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a:hover {
  color: #000;
  text-decoration: underline;
}

/* --- WRITING PORTFOLIO SPECIFIC STYLES --- */
.writing-portfolio {
    font-family: Times New Roman, 'Times New Roman', serif;
    color: #000;
}
.writing-portfolio h2 {
    margin-bottom: 2em;
}
.writing-portfolio h3 {
    margin-top: 3em;
    margin-bottom: 1.5em;
    border-bottom: 1px solid #fff;
    padding-bottom: 0.5em;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 18px;
}
.writing-portfolio ul {
    list-style-type: none;
    padding-left: 0;
}
.writing-portfolio li {
    margin-bottom: 2.5em;
}
.writing-portfolio .entry-title {
    font-weight: bold;
    font-size: 1.9em;
    color: #000;
    line-height: 1.4;
}
.writing-portfolio .entry-title a {
    color: inherit;
    text-decoration: none;
}
.writing-portfolio .entry-title a:hover {
    text-decoration: underline;
}
.writing-portfolio .entry-description {
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    margin-top: 0.5em;
    padding-left: 1.5em;
}
.writing-portfolio .entry-meta {
    font-style: italic;
    font-size: 18px;
    color: #000;
    display: block;
    margin-top: 0.75em;
}
.writing-portfolio .section-intro {
    font-style: italic;
    color: #000;
    margin-bottom: 2em;
    border-left: 2px solid #fff;
    padding-left: 1em;
}
.writing-portfolio .portfolio-overview {
    font-style: normal; /* Changed from 'regular' */
    color: #000;
    margin-bottom: 3em;
    border-left: 2px solid #fff;
    padding-left: 1.5em;
    font-size: 18px !important;
    line-height: 1.7;
}

/* --- Center the specific image (Default for Desktop) --- */
#centered-image {
    /* These three lines do the centering */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* These two lines set the size for DESKTOP screens */
    max-width: 20vw;  /* Won't be wider than 20% of the screen */
    max-height: 20vh; /* Won't be taller than 20% of the screen */
    
    /* This adds the 1px black line */
    border: 1px solid black; 
    
    /* Ensures the border is drawn inside the dimensions, not outside */
    box-sizing: border-box; 
}


/* --- Styles for Mobile Screens --- */
/* This rule applies ONLY when the screen width is 768px or less */
@media (max-width: 768px) {
  #centered-image {
    /* On mobile, we make the image much larger */
    max-width: 35vw;  /* Use 85% of the screen width */
    max-height: 35vh; /* Use 85% of the screen height */
  }
}

/* ADD THIS TO YOUR CSS EDITOR */
.portfolio-intro {
    line-height: 1.6;      /* Ensures consistent line spacing */
    margin-bottom: 4em;  /* Adds space between the intro and the first heading */
}