
body {
    background-color: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.05em;
    
    height: 100%; /* Ensure full height for the page */
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any default padding */
    overflow-x: hidden;/* Prevent horizontal scrolling */
    overflow-y: hidden;
    overflow-y: auto; /* Ensure vertical scrolling */
}

/* Content section should take available height */
.main-content {
    height: 100%; /* Ensure it takes full height of the viewport */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow vertical scrolling */
}

.container {
    width: 100vh;     
        
    margin: 0 auto;     
    padding: 0em;    
    box-sizing: border-box;     
    height: 100%; /* Ensure the container takes full height */
    overflow-y: auto; /* Allow vertical scrolling */
}

/* Ensure the page isn't constrained by Cargo's default layout styles */
.page {
    height: 100%; /* Make sure the page takes the full height */
    display: flex;    
    flex-direction: column;
    overflow-y: auto; /* Allow vertical scrolling */
    padding-bottom: 0em; /* Optional: gives some space at the bottom */
}

/* Header Styling */
#main-header {
    margin: 1em;
    position: relative; /* Change from fixed to relative positioning */    
    z-index: 10; /* Ensure it's above other content */
}

/* NOTE(vap): idk why cargo only does this
 * sometimes but keeping it as a rule will
 * improve consistency */
main {
    position: fixed;
    top: 0px;
    bottom: 0px;
    min-height: 6px
}

/* Main Layout Adjustments */
main {
    flex-grow: 1; /* Ensures main content grows to fill remaining space */
    overflow-y: auto; /* Allows vertical scrolling in the main content */
}

/* Table Styling */
.main-table {
    border-collapse: collapse;
    font-size: 1em; /* Adjusted to be more legible */
    width: 100%; /* Full width for the table */
    overflow-x: auto; /* Allow horizontal scroll on small screens */
    display: block; /* Make the table block-level to support scrolling */
}
.main-table a {
    text-decoration: none;
    color: red;
}

.main-table a:hover {
    color: black;
}

.main-table thead tr {
    border: 1px solid black;
}

.main-table thead th {
    text-align: left;
    padding: 8px;
    background-color: #000; /* Added some background color for contrast */
}

.main-table tbody tr {
    border-top: 1px solid #000;
}

.main-table tbody td {
    padding-left: 0px;
    padding-right: 8px;
}

.kindly {
    border-right: 1px solid black;
    width: 2em;
}

.fixspace {
    width: 3em;
}

a:active {
    opacity: 0.7;
}

.page a.active {
    opacity: 0.4;
}

i,
em {
    font-style: italic;
}

b,
strong {
    font-weight: bolder;
}

sub,
sup {
    position: relative;
    vertical-align: baseline;
}

sub {
    top: 0.3em;
}

sup {
    top: -0.4em;
}

s {
    text-decoration: line-through;
}

img {
    border: 0;
    padding: 0;
}

ul,
ol {
    margin: 0;
    padding: 0 0 0 1em;
}

blockquote {
    margin: 0;
    padding: 0 0 0 2em;
}

hr {
    background: rgba(255, 255, 255, 0.25);
    border: 0;
    height: 1px;
    display: block;
}

.content img {
    float: none;
    margin-bottom: .5em;
}

.gallery_image_caption {
    margin-top: .8rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-family: Favorit, Icons;
    font-style: normal;
    line-height: 1.3;
}

/**
 * Loading Animation
 */

.loading[data-loading] {
    position: fixed;
    bottom: 8px;
    left: 8px;
}

/**
 * Editor Styles
 */

[data-predefined-style="true"] bodycopy {
    font-size: 2.1rem;
    color: rgb(0, 34, 255);
    font-family: "Diatype Semi-Mono Variable", Icons;
    line-height: 2;
    font-style: normal;
    font-weight: 500;
    font-variation-settings: 'slnt' 0, 'MONO' 0.5;
}

[data-predefined-style="true"] bodycopy a {
    color: rgba(0, 102, 255, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

[data-predefined-style="true"] bodycopy a:hover {

}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
    border-bottom: 0;
    padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
    font-family: UnifrakturMaguntia, Icons;
    padding: 0;
    margin: 0;
    font-size: 5.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 1);
}

[data-predefined-style="true"] h1 a {
    color: rgba(255, 255, 255, 1);
}

[data-predefined-style="true"] h2 {
    font-family: "IBM Plex Mono", Icons;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 1);
    font-size: 2rem;
    line-height: 1.3;
    font-style: normal;
    font-weight: 600;
}

[data-predefined-style="true"] h2 a {
    color: rgba(255, 255, 255, 1);
}

[data-predefined-style="true"] small {
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1.3;
    font-family: "Favorit Mono", Icons;
    font-style: normal;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

[data-predefined-style="true"] small a {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-width: 1px;
}

/**
 * Breakpoints
 */

[data-css-preset] .page {
    background-color: initial;
}

.mobile .page,
[data-css-preset].mobile .page {
    position: auto;
    height: 100%;
    max-width: 100%;
    width: 100%;
    background-color: transparent;
}

[data-css-preset] .container {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

[data-css-preset] body {
    background-color: #fff;
}

[data-css-preset] .container_width {
    min-width: 50vh;
}

[data-css-preset] .content_padding {
    padding-top: 2.7rem;
    padding-bottom: 2.7rem;
    padding-left: 2.7rem;
    padding-right: 2.7rem;
}

[data-css-preset] text-limit {
    display: inline-block;
    max-width: 66rem;
}

/**
 * Thumbnails
 */

div[thumbnails] {
    justify-content: flex-start;
}

[data-css-preset] .thumbnails {
    background-color: rgba(0, 0, 0, 0);
}

[data-css-preset] .thumbnails_width {
    width: 90%;
}

[data-css-preset] [thumbnails-pad] {
    padding: 1.5rem;
}

[data-css-preset] [thumbnails-gutter] {
    margin: -3rem;
}

[data-css-preset] [responsive-layout] [thumbnails-pad] {
    padding: 0.75rem;
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
    margin: -1.5rem;
}

.thumbnails .thumb_image {
    outline: 0px solid rgba(0, 0, 0, .12);
    outline-offset: -1px;
}

.thumbnails .title {
    margin-top: 1.2rem;
    margin-bottom: .3rem;
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    font-family: Favorit, Icons;
    font-style: normal;
    line-height: 1.3;
}

.thumbnails .tags {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    font-family: Favorit, Icons;
    font-style: normal;
    line-height: 1.3;
}

.thumbnails .view-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 1em 2em;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background-color: #000;
    text-decoration: none;
    border-radius: 0.5rem;
}

.thumbnails .view-more:hover {
    background-color: #444;
}

[data-css-preset] .quick-view {
	width: 100% /*!quick_view_width*/;
	padding-top: 2.1rem /*!quick_view_padding*/;
	padding-bottom: 2.1rem /*!quick_view_padding*/;
	padding-left: 2.1rem /*!quick_view_padding*/;
	padding-right: 2.1rem /*!quick_view_padding*/;
}