/* Override theme styles */
.home,
.container {
  max-width: none !important;
  /* Remove any max-width */
  width: 100% !important;
  /* Ensure full width */
  margin: 0 !important;
  /* Remove any margin */
  padding: 0 !important;
  /* Remove any padding */
  background-color: var(--background-color2);
}

.container {
  margin: 0;
  /* Centers the container */
  padding: 0;
  /* Adds some padding on the sides */
  width: 100%;
  /* Ensure it fills the full width */
  display: flex;
  position: relative;
  background-color: var(--background-color2);
}

html,
main {
  margin: 0;
  /* Centers the container */
  padding: 0;
  background-color: var(--background-color2);
}

.wrapper {
  margin: auto 0;
  /* Centers the container */
  padding: auto 0px;
  width: 100%;
  max-width: var(--maxWidth);
  background-color: var(--background-color2);
}

body {
  margin: 0;
  /* Centers the container */
  padding: 0;
  position: relative;
  /* Create stacking context for body */
  background-color: var(--background-color2);
}

.page-content {
  background-color: #000;
  padding: auto 0;
  margin: 0;
  background-color: var(--debug-background);
}

.social-buttons {
  margin: 60px 0 0 0;
}

.social-button:hover svg path {
  fill: #fff !important;
}

.background-fill-post {
  top: 0;
  right: 0;
  position: absolute;
  display: flex;
  flex-flow: column;
  flex-direction: column;
  background-color: var(--debug-background);
  width: calc(var(--columns) - var(--colwidthoffset) - 120px);
  left: calc(var(--globalMargins) + var(--gutters));
  margin: 0;
  padding: 80px 60px 0 60px;
  overflow: visible;
  background-color: var(--dominant-color);
  height: calc(100dvh - 80px);
}

.background-fill-post.static {
  background-color: var(--accent-color);
}

.background-fill-post a {
  flex: 0 1 auto;
  text-decoration: none;
}

.background-fill-post.static a {
  color: #000;
}

.background-fill-post a:hover {
  text-decoration: underline var(--text-color2);
  color: #fff;
}

.background-fill-post.static a:hover {
  color: #000;
  text-decoration: none;
}

.background-fill-post h1,
.background-fill-post a h1 {
  font-size: 2.5em;
  font-weight: 600;
  color: var(--background-color2);
  color: #fff;
  margin: 0px 0px 50px 0px;
}

.background-fill-post h1.static,
.background-fill-post a h1.static {
  color: #000;
}


.background-fill-post h2,
.background-fill-post a h2 {
  font-size: 1.2rem;
  font-weight: 100;
  color: var(--text-color2);
  margin: 0 0px 0px 0px;
}

.background-fill-post.static h2,
.background-fill-post.static a h2 {
  color: #000;
}

.background-fill-post.static .material-symbols-outlined,
.background-fill-post.static .nav-text {
  color: #000;
}

.background-fill-post.static .social-button svg path {
  fill: #000 !important;
}

.background-fill-post.static .social-button:hover svg path {
  fill: #000 !important;
}


.post-link:hover .post-title,
.post-link:hover h2 {
  transition: opacity 0.2s ease;
}


.background-fill-post h1,
.background-fill-post h2,
.heropost,
.page-date,
.page-nature,
.page-caption,
.page-brand {
  text-align: left;
  margin: 0px 0;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 100;
}

.heropost {
  padding: 0 var(--column1padding) 0 var(--column1padding);
  background-color: transparent !important;
  /* KEY CHANGE: Transparent */
  display: flex;
  width: auto;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.heropost div {
  padding: 0 5px;
  font-family: var(--headlines-font);
  text-transform: var(--casing);
  color: var(--text-color);
  font-size: 5em;
  line-height: 1em;
  font-weight: 600;
  text-indent: 0em;
  letter-spacing: 0.1rem;
  float: left;
  /* First, calculate the unitless value */
  --unitless-value: calc((50vw - var(--filtersWidth)/2 - 30px));
  font-size: calc(min(var(--unitless-value) * 0.12, 4.5em) *0.5);
  margin: 10px 0;
  padding: 0;
}

.heropost div span {
  font-weight: 100;
  text-wrap: wrap;
  margin: 0;
  padding: 0;
}

p.legal-side,
p.legal-article {
  font-weight: 100;
  font-size: 0.8em;
  line-height: 1.6em;
  padding: 0;
  margin: 50px 0 20px 0;
}

.page-nature,
.page-date {
  font-family: var(--main-font);
  font-size: 1.2rem;
  font-weight: 100;
  color: var(--text-color2);
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-brand {
  font-size: 1.2rem;
  font-family: var(--main-font);
  text-transform: capitalize;
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  width: 100%;
  flex-direction: row;
  margin-bottom: 10px;
}

.page-brand span {
  margin: 0 10px 0 0;
}

.brand-item {
  white-space: wrap;
}

.material-symbols-outlined.linkIcon {
  padding: 0;
  margin: 0 10px 0 0;
  font-size: 1em;
  color: #ffffff;
  transform: translateY(3px);
  transition: font-variation-settings 0.3s ease, transform 0.3s ease;
  font-variation-settings:
    'FILL' 1,
    'wght' 50,
    'GRAD' 0,
    'opsz' 24;
}

a:hover .material-symbols-outlined.linkIcon {
  transform: translateY(3px);
}

.page-caption {
  margin: 10px 0;
  font-size: 0.6em;
  text-transform: uppercase;
  color: #989898;
  line-height: 2em;
  letter-spacing: 0.1em;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: 500px;
  flex-direction: column;
}

.caption-item {
  white-space: nowrap;
}

.post {
  margin: 0;
  height: 100dvh;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  max-height: 100dvh;
  width: calc(100dvw - max((100vw - var(--maxWidth))/2, 0px) - 300px - 20px);
  position: fixed;
  max-height: 100dvh;
  overflow: auto;
  width: calc(var(--columns) + 10px + var(--colwidthoffset));
  left: calc(var(--globalMargins) + var(--gutters)*2 + var(--columns) - var(--colwidthoffset));
  background-color: var(--debug-background);
  padding: 0 calc(var(--gutters) + var(--filtersWidth) - 5px) 0 0;
  scrollbar-color: var(--sbresting) rgba(255, 255, 255, 0);
  scrollbar-width: thin;
  z-index: 1;
}

.post:hover {
  scrollbar-color: var(--sbhover) rgba(255, 255, 255, 0);
  scrollbar-width: thin;
}


.vertical-line {
  position: absolute;
  right: calc(var(--globalMargins) + var(--gutters) - 1px);
  top: 0.5dvh;
  bottom: 0;
  width: 2px;
  background-color: var(--sbresting);
  height: 99dvh;
  z-index: 0;
}

.post-header {
  margin: 0 0 10px 0;
  padding: 0 0px;
}

.post-meta {
  font-size: 0.9em;
  color: #666;
}

.post-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  line-height: 1.6;
  padding: 60px 0;
  margin: auto;
  height: auto;
  /* background-color:#ff000020; */
  direction: ltr;
}


.post-title {
  text-align: left;
  transform: translateX(0px);
}

.image-container {
  overflow: auto;
  top: 0;
  right: 0;
  padding: 0px 0px 0px 0;
  margin: 30px 0;
  max-height: 80dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 800px;
  line-height: 1.6;
  padding: 0px 0;
  margin: 0 auto;
  height: 100%;
  /* background-color:#ff000020; */
}

.image-container::-webkit-scrollbar {
  display: none;
}

.post-hero {
  width: 100%;
  object-fit: cover;
  /* Keep image proportions */
  margin: 0;
  padding: 0;
  height: 100%
}


.post-text-static,
.post-text {
  padding: 0;
  margin: 0;
  width: 100%;
}

ol li,
.post-text-static ul,
.post-text-static p,
.post-text ul,
.post-text p {
  margin: 20px 0 0px 0;
  padding: auto 0;
  color: var(--text-color2);
  font-size: 1em;
  line-height: 2.2em;
  font-family: var(--main-font);
  font-weight: 150;
  break-inside: avoid;
  page-break-inside: avoid;
  /* Older browser support */
  orphans: 3;
  /* Minimum number of lines at bottom of column */
  widows: 3;
  /* Minimum number of lines at top of column */
  letter-spacing: 0.05rem;
}


.post-text p a {
  color: var(--dominant-color, var(--background-color2));
  font-weight: 400;
}

.post-text-static p a {
  color: var(--accent-color);
  font-weight: 400;
}

.post-text-static p img,
.post-text p img {
  width: 100%;
  object-fit: fill;
}

.post-text-static p img,
.post-text p img {
  margin: 0px 0;
  width: 100%;
  object-fit: fill;
}

ol li {
  margin: 0px 0 0px 0;
}

.post-text-static ol,
.post-text ol {
  padding: 0 0 0 20px;
  margin: 0;
}

.post-text-static ul,
.post-text ul {
  padding: 0 0 0 20px;
  margin: 0;
}

.post-text h1 {
  text-transform: none;
  font-size: 2em;
  color: var(--dominant-color, var(--background-color2));
  font-weight: 500;
  margin: 40px 0 0 0;
}

.post-text-static h1 {
  text-transform: none;
  font-size: 2.5em;
  color: var(--accent-color);
  font-weight: 500;
  margin: 15px 0 0 0;
}

.post-text h2 {
  font-size: 1.2rem;
  color: var(--dominant-color, var(--background-color2));
  font-weight: 500;
  text-transform: none;
  margin: 40px 0 0 0;
}

.post-text-static h2 {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 500;
  text-transform: none;
  margin: 40px 0 0 0;
}

.post-text h3 {
  font-size: 1em;
  color: var(--text-color, var(--background-color2));
  font-weight: 300;
  text-transform: none;
}

.post-text-static h3 {
  font-size: 1em;
  color: var(--text-color2, var(--background-color2));
  font-weight: 300;
  text-transform: none;
}


/* Enhanced Post Navigation Styles */
.filler {
  flex: 1 1 auto;
}

.post-navigation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  justify-content: center;
  /* This centers content vertically */
  overflow: visible;
  width: 100%;
}

.bottom-nav {
  flex: 0 1 auto;
  position: static;
  width: 100%;
  margin: 50px 0 0px 0;
  padding: 0 0px;
  text-align: left;
}

.top-nav {
  flex: 0 1 auto;
  position: static;
  width: 100%;
  margin: 0px 0 0px 0;
  padding: 0 0px;
  text-align: left;
}

.post-navigation a,
.post-navigation a::after {
  color: var(--text-color);
  color: var(--text-color2);
}

.nav-button {
  text-decoration: none;
  color: transparent;
  font-weight: 200;
  padding: 0px 2px;
  transition: all 0.1s ease;
  word-wrap: break-word;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: row;
  align-items: center;
  transform: translateY(0px);
}


.nav-next {
  flex-direction: row-reverse;
  text-align: right;
  margin: 0;
  padding: 0;
}

.post-title {
  margin: 0 0 20px 0;
}

.post-navigation a:hover {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

.nav-button:hover {
  text-decoration: none;
  transform: translateY(0px);
  font-weight: 200;
  color: #fff;
}

.nav-button:active {
  color: #fff;
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.nav-previous {
  text-align: left;
  margin-right: auto;
  padding-left: 0px;
  margin: 0 auto 0 0;
}

.nav-home {
  text-align: center;
  margin: 0 auto;
  padding-right: 0px;
  margin: 0 auto 0 0;
  padding-left: 0px;
}

.nav-next {
  text-align: right;
  margin-left: auto;
  padding-right: 0px;
  margin: 0 0 0 0;
  padding-left: 0px;
}



.material-symbols-outlined {
  transform: translateY(0px);
  font-variation-settings:
    'FILL' 0,
    'wght' 100,
    'GRAD' 0,
    'opsz' 24
}

span.material-symbols-outlined:hover,
a:hover span.material-symbols-outlined,
a:hover .material-symbols-outlined {
  transform: translateY(0px);
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

/* Ensure material icons never show underline */
.material-symbols-outlined,
span.material-symbols-outlined {
  text-decoration: none !important;
}

span.material-symbols-outlined:hover,
a:hover span.material-symbols-outlined,
a:hover .material-symbols-outlined {
  text-decoration: none !important;
}

.nav-button:hover .material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.back-button {
  font-size: 0.6em;
  transform: translateY(0px);
  font-variation-settings:
    'FILL' 1,
    'wght' 800,
    'GRAD' 0,
    'opsz' 16;
}

.deadend {
  visibility: hidden;
}


/* Swipe feedback overlay */
.swipe-feedback {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--dominant-color-rgb, 51, 51, 51), 0.1);
  z-index: 1000;
  pointer-events: none;
  animation: swipeFade 0.3s ease-out;
}

@keyframes swipeFade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 0;
  }
}

/* Focus styles for accessibility */
.nav-button:focus {
  color: #000;
}

/* Loading state */
.nav-button.loading {
  opacity: 0.7;
  pointer-events: none;
}

.nav-button.loading::after {
  content: '...';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {

  0%,
  20% {
    content: '.';
  }

  40% {
    content: '..';
  }

  60%,
  100% {
    content: '...';
  }
}



/* Image overlay styles */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.image-overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  overflow: auto;
}

.overlay-content::-webkit-scrollbar {
  display: none;
}

.overlay-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

.close-button {
  position: absolute;
  top: -40px;
  right: -40px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  font-size: 24px;
  font-weight: 600;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.close-button:hover {
  background: rgb(0, 0, 0);
}

.close-button .material-symbols-outlined {
  transform: translate(0px, 0px);
  font-variation-settings:
    'FILL' 0,
    'wght' 200,
    'GRAD' 0,
    'opsz' 24
}

.close-button:hover .material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}














/* Portrait (Mobile) Responsive Styles */
@media (orientation: portrait) or (max-width: 1300px) {

  html,
  body,
  .home,
  main,
  .wrapper {
    scrollbar-color: var(--scroll-color) rgba(255, 166, 0, 0);
    scrollbar-width: thin;
  }


  .heropost {
    padding: 0 var(--column1padding) 0 var(--column1padding);
    background-color: transparent !important;
    /* KEY CHANGE: Transparent */
    display: flex;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    margin: 0;
    padding: 10px 0px 0 0px;
    visibility: collapse;
    height: 0;
  }


  .heropost div {
    padding: 0 5px;
    font-family: var(--headlines-font);
    text-transform: var(--casing);
    color: var(--accent-color);
    font-size: 5em;
    line-height: 1em;
    font-weight: 600;
    text-indent: 0em;
    letter-spacing: 0.1rem;
    float: left;
    /* First, calculate the unitless value */
    --unitless-value: calc((50vw - var(--filtersWidth)/2 - 30px));
    font-size: calc(min(var(--unitless-value) * 0.12, 4.5em));
    margin: 10px 0;
    padding: 0;
    margin: 0px 0 0 0;
    --unitless-value: calc(100vw);
    font-size: calc(min(calc(var(--unitless-value) * 0.22), 5em));
    visibility: collapse;
    height: 0;
  }

  .heropost div span {
    font-weight: 100;
    text-wrap: wrap;
    margin: 0px 0;
    padding: 0;
    line-height: 1.5em;
  }

  .page-brand {
    font-family: var(--main-font);
    text-transform: capitalize;
    text-align: left;
    /* Optional: right-align the text */
    display: flex;
    flex-wrap: nowrap;
    gap: 0px;
    width: 500px;
    flex-direction: row;
    margin: 0;
    padding: 0;
    margin: 0px 0 0px 0;
    font-size: 1.1rem;
    font-weight: 100;
  }

  .post-title {
    margin: 20px 0px 0px 0px;
    text-align: left;
    padding: 0;
  }

  .page-nature,
  .page-date {
    font-family: var(--main-font);
    font-size: 1.1rem;
    font-weight: 100;
    color: var(--text-color2);
    margin: 0px 0 10px 4px;
  }

  .brand-item {
    white-space: wrap;
  }

  .social-buttons {
    margin: 0px 0 0 0;
  }

  .post {
    display: flex;
    flex-direction: column;
    width: 100%;
    left: 0px;
    top: 0px;
    height: auto;
    /* ← CHANGE THIS */
    min-height: auto;
    /* ← ADD THIS */
    padding: 0 30px;
    position: relative;
    margin: 50px auto 0 auto;
    overflow: visible;
    /* ← ENSURE NO CROPPING */
    max-height: fit-content;
  }

  .post-content {
    height: auto;
    /* ← ALSO FIX THIS */
    overflow: visible;
    max-height: fit-content;
    padding: 0;
    margin: 0 auto;
  }

  .image-container {
    height: auto;
    max-height: fit-content;
    margin: 20px 0 20px 0;
  }

  .post-heropost {
    height: auto;
    max-height: fit-content;
  }

  .post-text {
    width: 100%;
    /* Full width on mobile */
    order: 2;
    /* Text comes after image */
    columns: 1;
    gap: 0px;
    display: flex;
    flex-direction: column;
    padding: 0 0 50px 0;
    margin: 0;
  }

  .post-text p {
    font-size: 1.1em;
    /* Slightly larger text for mobile */
    line-height: 1.6em;
    /* Better readability on mobile */
    padding: 0;
    margin: 0;
  }

  .post-text p img {
    font-size: 1.1em;
    /* Slightly larger text for mobile */
    line-height: 1.6em;
    /* Better readability on mobile */
    padding: 0;
    margin: 10px 0;
  }

  /* Background fill adjustment for mobile */
  .background-fill-post {
    width: 100dvw;
    /* Full width on mobile */
    position: relative;
    /* Change from fixed for better flow */
    padding: 50px 30px 20px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    top: 0px;
    margin: 0;
    left: 0;
  }

  .filler {
    flex: 0 0 0;
  }

  .background-fill-post h1,
  .background-fill-post a h1 {
    font-size: 2em;
    font-weight: 600;
    color: #fff;
    margin: 0 30px 20px 4px;
  }

  .background-fill-post h2,
  .background-fill-post a h2 {
    font-size: 0.9em;
    font-weight: 200;
    margin: 0 30px 15px 4px;
  }


  /* Navigation adjustments for mobile */
  .bottom-nav {
    position: static;
    margin: 10px 0 0 0;
    padding: 0 0px;
    text-align: left;
    z-index: 100;
  }

  .top-nav {
    position: static;
    margin: 0px 0 0 0;
    padding: 0 0px;
    text-align: left;
    z-index: 100;
  }

  .post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    display: flex;
    justify-content: left;
    /* This centers content vertically */
    flex-direction: column;
    /* Stack nav items vertically */
    gap: 10px;
    /* Space between nav items */
    width: auto;
  }

  .nav-button {
    width: auto;
    /* Full width buttons */
    text-align: left;
    padding: 0px 0px;
    font-size: 1rem;
    font-weight: 200;
    margin: 0;
  }

  .nav-previous,
  .nav-home,
  .nav-next {
    text-align: left;
    margin: 0;
    width: 100%;
    padding: 0;
  }

  .nav-next {
    flex-direction: row;
  }

  /* Material icons adjustment */
  .material-symbols-outlined {
    transform: translateY(0px);
    /* Keep icons in their shifted-up position */
    font-size: 1.2rem;
    /* Larger icons */
  }

  .vertical-line {
    visibility: hidden;
  }


  .back-button {
    font-size: 0.6em;
    transform: translateY(0px);
    font-variation-settings:
      'FILL' 1,
      'wght' 800,
      'GRAD' 0,
      'opsz' 24;
  }

}

/* Tablet portrait optimization */
@media (orientation: portrait) and (min-width: 1300px) {

  .post-title {
    font-size: 2.2em;
    /* Slightly larger for tablets */
  }


}

@media (hover: none) and (pointer: coarse) {
  .nav-button {
    padding: 0px 0px;
    /* Larger touch targets */
  }

  .nav-button:hover {
    transform: none;
    /* Disable hover effects on touch devices */
  }
}