:root {
    --primary-color: #0056b3;
    --background-color: #f4f4f4;
    --text-color: #333;
}

/* General Styles */
section {
  padding: 0;
  margin: 0;
  text-align: left;
}

body {
  max-width: 1000px; /* Adjust as needed */
  font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    color: var(--text-color);
    background-color: var(--background-color);
}  

    /* Headings */
h2, h3, h4 {
    font-family: Arial, sans-serif;
}

h1 {
	font-family: Arial, sans-serif; /* Ensure consistent font */
	font-size: 3em; /* Adjust size as needed */
	text-align: left; /* Center the text */
	color: var(--primary-color); /* Use your primary color or another color */
	margin-top: 1em; /* Add some space above */
	margin-bottom: 0.5em; /* Add some space below */
}

.larger-text {
  font-size: 1.2em; /* Example for the <big> tag */
}

.bio-section p {
  line-height: 1.5;
}

.credit {
    font-style: italic; /* or keep it normal, depending on preference */
    font-size: 0.9em; /* slightly smaller than the main text */
    text-align: right; /* aligns it neatly to the side */
    color: #555; /* a softer shade to differentiate it */
}

* {
  box-sizing: border-box; /* Ensures padding/border are included in width */
}

/* Main-content */
.main-content {
  width: 78%; /* Adjust as needed */
  margin-left: 20px; /* Creates space between sidebar and main content */
  margin-right: 20px; /* Creates space between sidebar and main content */
  padding: 15px; /* Adds internal spacing */
  flex-grow: 1; /* Allows it to take up remaining space */
}

.main-content-area {
  display: flex;
  flex-direction: row; /* Sidebar and text side by side */
  align-items: flex-start; /* Align them to the top */
  margin-top: 20px; /* Add some space above this section */
  margin-left: 20px; /* Adjust as needed for overall layout */
  margin-right: 20px; /* Adjust as needed for overall layout */
}

.main-content-wrapper {
  display: flex;
  flex-direction: row; /* Place main content and sidebar in a row */
  align-items: flex-start; /* Align them to the top */
}

.text-next-to-table {
  flex-grow: 1; /* Allow the text area to take up remaining width */
  padding-left: 0; /* Remove any existing left padding that might not be needed now */
}

/* Styles for the large photo within the main content */
.photo-section {
  margin-bottom: 20px; /* Add spacing below the photo section */
}

/* Containers */
/* Adjust the .container margin-left if you haven't already */
.container {
  display: flex;
  flex-direction: column; /* Arrange sidebar and main content horizontally */
  text-align: left;
  align-items: flex-start; /* Align items to the top */
  width: 90%;
  max-width: 1200px; /* Increased max-width for better viewing */
  margin: 20px auto; /* Center the container */
  margin-bottom: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table-and-text-container {
  display: flex;
  flex-direction: row; /* Items side by side */
  align-items: flex-start; /* Align items to the top */
  margin-bottom: 1em; /* Add some space below this section */
}

.next-to-table { /* New class for the paragraph */
  float: left;
  width: auto; /* Adjust width as needed */
  margin-left: 20px; /* Add some space between the table and text */
}

.text-next-to-table {
  flex-grow: 1; /* Allows the text to take up remaining space */
  padding-left: 15px;
  max-width: 70%;
}

/* Photo styles */
.photo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Keeps everything aligned to the left */
max-width: 800px; /* Match the max-width of the .container for alignment */
margin-left: auto; /* Let the left margin be determined by the container */
margin-right: auto; /* Center the photo container */
}

.obit-photo {
  width: 100%;
  height: auto; /* To maintain aspect ratio */
}

.bio-photo {
  width: 100%; /* Makes the image expand to fit its container */
  height: auto; /* Keeps aspect ratio intact */
  display: block; /* Removes unwanted spacing */
  margin: 0px; /* Centers image within its container */
  object-fit: cover; /* Ensures the image covers the area without distortion */
}

.large-photo {
  width: 100%;
  height: auto;
  display: block;
}

.main-photo {
  max-width: 100%; /* Make it responsive within its container */
width: auto;  
height: auto; /* Maintain aspect ratio */
  display: block; /* Makes sure the image does not cause extra spacing */
  margin: 0; /* Removes extra spacing */
 float: right; /* Changed from left to right */
}

.secondary-photo {
  width: 100%; 
  max-width: 200px; /* Ensures it doesn't get too large */
  height: auto; /* Keeps aspect ratio */
  margin: 0 auto; /* Centers the image */
  display: block; /* Ensures it behaves like a block element */
  float: right; /* Changed from right to left */
  margin-right: 10px; /* Adds space between images */
}

.tertiary-photo {
  width: 90%; /* Slightly smaller than secondary photos */
  max-width: 175px;
  height: auto;
  margin: 0 auto; /* Centers the image */
  display: block; /* Ensures it behaves like a block element */
  float: right; /* Changed from left to right */
  margin-right: 10px; /* Adds space between images */
}

.quaternary-photo {
  width: 85%; /* Smallest image */
  max-width: 150px;
  height: auto; /* Keeps aspect ratio */
  margin: 0 auto; /* Centers the image */
  display: block; /* Ensures it behaves like a block element */
  float: right; /* Changed from left to right */
}

/* Images */
img {
  display: block;
  margin: auto;
  max-width: 100%;
}

.float-img {
    width: 30%;
    max-width: 150px;
    height: auto;
    float: right;
    margin-left: 10px;
}

.image-container {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Photo captions */
.caption {
    font-size: 0.9em;
  text-align: center;
  display: block;
  width: 100%;
  max-width: none;
  margin: 10px 0;
    margin-top: 0.5em;
}

.photo-caption {
  font-size: 0.9em;
  margin-top: 0.5em;
  display: block;
  text-align: left; /* Ensures caption stays aligned */
  margin-top: 10px; /* Adds spacing between image and caption */
}

figcaption {
    font-size: 0.9em;
    margin-top: 0.5em;
    text-align: left;
}

.secondary-caption {
    font-size: 0.9em;
  margin-top: 0.5em;
  text-align: left;
}

.caption-text {
  font-size: 0.9em;
  margin-top: 0.5em;
}

.photo-credit {
  font-size: 0.8em;
  color: gray;
  text-align: left;
  margin-top: 5px;
  font-style: italic;
}

.aLPhotoCreditViewIn span {
  font-size: 11pt;
  font-weight: bold; /* Equivalent to <b> tag */
}

/* Photo tables */
.photo-table {
          width: auto;
          max-width: 300px;
          float: right;
          margin-right: 25px;
}
        
.photo-table td {
          width: 100%;
          text-align: center;
          padding: 10px; /* Adds breathing room inside the cell */
}

.large-photo-table {
  width: 79%; /* Adjust only this table within the main content */
  margin-left: auto; /* Centers the table if width is less than 100% */
  margin-right: auto;
  margin-bottom: 20px;
  padding: 5px;
  /* float: left; Remove float as Flexbox is handling layout */
}
        
.main-photo-table {
width: 38%; /* Adjust only this table */
float: right; /* Positions the table to the right */
margin-right: 50px; /* Adds spacing */
  }

  .main-photo-table-left {
width: 38%; /* Adjust only this table */
float: left; /* Positions the table to the right */
margin-right: 50px; /* Adds spacing */
  }

.secondary-photo-table {
  width: 30%; /* Shrinks to fit the content */
  float: right; /* Positions the table to the right */
  margin-right: 25px; /* Adds spacing */
}

.secondary-photo-table td {
  width: auto;
  text-align: center; /* Helps with spacing */
}

/* Lines */
.line {
            border-bottom: 2px solid #ccc;
            margin-top: 2px;
            width: 50%;
            margin: 1em auto; /* Center the line */
}

        .section-divider {
          width: 25%;
          /* Add other styling for the hr if needed */
}

/* Lists */
ul {
  padding-left: 0;
margin-left: 0;
text-align: left;
  list-style-position: inside;
}

li {
  text-align: left;
}

/* Tables */

/* Styles for the entire table */
.biography-table {
  width: 19%; /* Adjust width as needed */
  padding: 20px; /* Adds space inside the sidebar */
  max-width: 250px; /* Ensures it doesn't expand too much */
  float: left; /* Aligns the table to the left */
  border-collapse: collapse; /* Removes extra spacing */
}

/* Styles for <th> elements within tables with the class 'my-styled-table' */
.biography-table th {
  font-size: 1.1em; /* Slightly larger font */
  font-weight: bold;
  color: #007bff; /* Example: a blue color */
  margin-top: 15px; /* Add some spacing above */
  margin-bottom: 10px; /* Add some spacing below */
  padding: 8px; /* Add some padding around the text */
  background-color: #e9ecef; /* Light gray background */
  border-left: 5px solid #007bff; /* A colored bar on the left */
}

.biography-table img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.biography-table img.with-border {
  border: 1px solid #ccc;
}

/* Styles for <td> elements with the class 'details' within tables with the class 'my-styled-table' */
.biography-table td.details {
  color: #555;
  font-size: smaller;
}

/* Styles for <td> elements with the class 'name' within tables with the class 'my-styled-table' */
.biography-table td.name {
  font-weight: bold;
  display: block;
}

table {
    margin-left: 25px;
    table-layout: auto;
}

table td {
  color: black; /* Ensures text is visible */
  font-family: Arial, sans-serif;
}

th {
  font-weight: bold;
  background-color: #D3D3D3; /* Light gray background */
  padding: 10px;
}

.special-th {
  font-size: 1.1em; /* Slightly larger font */
  font-weight: bold;
  color: #007bff; /* Example: a blue color */
  margin-top: 15px; /* Add some spacing above */
  margin-bottom: 10px; /* Add some spacing below */
  padding: 8px; /* Add some padding around the text */
  background-color: #e9ecef; /* Light gray background */
  border-left: 5px solid #007bff; /* A colored bar on the left */
}

.quick-links-table {
  width: auto;
  max-width: 300px;
    margin: 10px auto; /* Keep auto for horizontal centering if needed */ 
 margin-right: 20px; /* Space to the right of the table */
  padding: 10px;
  border: 1px solid #FFFFFF;
  color: #000;
}

.quick-links-table td {
  font-size: 10pt;
  color: #FFFFFF;
}

.bio-table {
  width: 19%; /* Adjust width as needed */
  padding: 20px; /* Adds space inside the sidebar */
  max-width: 250px; /* Ensures it doesn't expand too much */
  float: left; /* Aligns the table to the left */
  border-collapse: collapse; /* Removes extra spacing */
}

.bio-table img {
  max-width: 100%; /* Ensures the image fits within the table cell */
  width: auto; /* Adjusts to the table width */
  height: auto;
}

.bio-table th {
  font-size: 1.1em; /* Slightly larger font */
  font-weight: bold;
  color: #007bff; /* Example: a blue color */
  margin-top: 15px; /* Add some spacing above */
  margin-bottom: 10px; /* Add some spacing below */
  padding: 8px; /* Add some padding around the text */
  background-color: #e9ecef; /* Light gray background */
  border-left: 5px solid #007bff; /* A colored bar on the left */
}

.bio-table td {
  font-weight: normal;
}

.bio-table td > strong:first-child,
.bio-table td > b:first-child,
.bio-table td > span:first-child {
  font-weight: bold;
}

.bio-table td .name {
  font-weight: bold;
  display: block;
}

.bio-table td .details {
  color: #555;
  font-size: smaller;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9em; /* Slightly smaller than body text */
  color: #777; /* A muted gray color */
  margin: 10px 20px; /* Add some spacing around the breadcrumbs */
}

.breadcrumbs a {
  color: var(--primary-color); /* Use your primary link color */
  text-decoration: none; /* Remove underlines for a cleaner look */
}

.breadcrumbs a:hover {
  text-decoration: underline; /* Add underline on hover for interaction feedback */
}

.breadcrumbs .current {
  font-weight: bold; /* Optionally bold the current page's name */
  color: #333; /* Use your main text color */
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 20px 10px;
    text-align: center;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1;
    padding: 15px;
    text-align: center;
    width: 33%;
    max-width: 400px;
    box-sizing: border-box;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--primary-color); /* Using the variable */
    text-decoration: none;
}

.footer-column form button {
    background-color: #0056b3; /* Using the specific color */
    color: white;
    cursor: pointer;
}

.footer-column form button:hover {
    background-color: #004494; /* Using the specific color */
}

.footer-section nav a {
    text-decoration: none;
    color: #ffffff;
    margin: 0 10px;
}

/* Ads */
.ad {
    margin: 10px auto;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 600px) {
  img {
    width: 100%;
  }
}

@media (max-width: 768px) {
    .newsletter iframe { /* From privacy page CSS */
        height: 250px;
    }

    .bio-table td {
      color: var(--text-color) !important; /* Or color: #333 !important; */
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        max-width: unset; /* From privacy page CSS */
    }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    float: left; /* Aligns the sidebar to the left */
    margin-right: 15; /* Removes right margin */
  }

    .quick-links-table { /* From styles_main.css */
        width: 100%;
        max-width: 300px;
        margin: auto;
    }

    .float-img { /* From styles_main.css */
        width: 80%;
        float: none;
        display: block;
        margin: auto;
        max-width: 300px;
    }
}