/* Reset default margins and padding */
html, body {
  margin: 0 0; /* Centers the container */
  padding: 0;
  /*background-color: var(--background-color); */
  background-color: transparent !important; /* KEY CHANGE: Transparent */
  font-family: 'Archivo', sans-serif;
}

.outfit-default {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style:normal;
}
body {
  margin: 0 auto; /* Centers the container */
  padding: 0;
  font-family: 'Inter', sans-serif;
}

/* 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: transparent!important;
}


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

.hero h1{
  padding:0 5px;
  font-family: var(--headlines-font);
  text-transform: var(--casing);
  color: var(--text-color3);
  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.08, 4.5em) ); 
  margin: 10px 0;
  padding:0;
}

.hero h1 span{
  font-weight: 100;
  text-wrap: wrap;
  margin:0;
  padding:0;
}

.homecolumn1.p{
  font-family: var(--main-font);
  color: var(--text-color); 
}

.services{
  font-family: var(--main-font);
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap:wrap;
  text-transform: var(--casing);
  padding:0;
}

.services-title{
  display: flex;
  flex-direction: row;
}

.services-title .textbox{
  flex: auto;
}

.services-title .arrowbox{
  flex: 0 0 30px; 
  width: 30px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.services a div,
.services p,
#text{  
  padding:0;
  margin: 0;
}

.services a div{
  padding:0;
  margin: 0;
}

.services a:hover{
  text-decoration: none;
}

.services a{
  text-decoration: none;
  padding:20px var(--column1padding);
  transition: background-color 0.3s , transform 0.3s ;
}

.services a:hover {
  /* background-color:rgba(255, 255, 255, 0.4); */
  transform: translateX(4px);
}

.services h1{
  margin: 20px var(--column1padding);
  padding:0;
  font-family: var(--main-font);
  font-weight:200;
  font-size: 2.2em;
  color: var(--accent-color); 
  line-height:1.5em;
  letter-spacing: 0.05rem;
}
.services a h2, .services a h3 {
  margin: 20px 0px;
  padding:0;
  font-family: var(--main-font);
  color: var(--accent-color);
  font-weight:200;
  font-size: 1.4em; 
  line-height:1.5em;
  letter-spacing: 0.05rem;
}

 .arrowbox .material-symbols-outlined{
  line-height: 2em;
  font-weight:400;
  color: var(--text-color);
  transition: color 0.5s ease;
  padding:15px 0px;
}

 a:hover .arrowbox  .material-symbols-outlined{
  color: var(--accent-color);
  transition: color 0.5s ease;
}

.arrowbox .material-symbols-outlined{
  margin:0;
  position: relative;
  right: auto; 
  transform: none;
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.services a h2, .services a h3 {
  color: var(--text-color); 
  font-weight:500;
}

.services a:hover h2, .services a:hover h3 {
  color: var(--accent-color);
  font-weight:500;
}

.services p{
  padding:0;
  color: var(--text-color2);
  font-size: 1em;
  line-height: 2.2em;
  font-weight: 150;
  letter-spacing: 0.02rem;
  text-align: justify;
  text-justify: inter-word;
  margin:0 0 20px 0 ;
}
.services p.legal{
  font-weight:100;
  font-size: 0.8em; 
  line-height:1.6em;
  padding:0 var(--column1padding);
}

.services .next {
  float:right;
  height:10px;
  overflow:hide;
  position: relative;
  bottom:16px;
  color: var(--accent-color); 
}



.divider{
  height:0.5px;
  width:20px;
  background-color:var(--text-color); 
  opacity:0.15;
}

.divider{
  height:0px;
  width:4px;
  background-color:var(--text-color); 
  opacity:0.15;
  border-radius: 20px; /* Pill shape */
}
.category-filters h2 {
  margin: 0px;
  font-size: 1.1em;
  font-weight:300;
  color: var(--text-color); 
  width:300px;
}

.category-filters ul {
  margin: auto 0;
  list-style: none;
  display: flex;
  flex-direction:column;
  width:100%;
  /* background-color:#ff000020; */
  gap:var(--filterGap);
  width: auto; /* Change from 100% to auto */
}

.category-filters li {
  display: inline-block;
  margin: 0;
  padding:0;
  /* align-self:  center; */
  font-family: var(--main-font);
  font-size: 1em;
  font-weight:100;
  line-height:0;
  transition: transform 0.5s ease;
  text-align: right;
  white-space: nowrap; /* Prevent text wrapping */
  /* background-color:#ff000020; */
}

.category-filters li.separator {
  margin: 0 0 var(--separations) 0;
}

.category-filters a {
  background-color: #ffffff; /* Grey background */
  background-color: transparent;
  color: var(--text-color); 
  opacity:0.5;
  text-decoration: none;
  border-radius: 20px; /* Pill shape */
  transition: color 0.3s ease, font-size 0.3s ease, opacity 0.3s ease;
  margin: 0;
  padding:4dvh 0px;
  text-align: right;
}

.category-filters li:hover {
  transform: translateX(-6px);
}
.category-filters a:hover {
  background-color: #828282; /* Darker grey on hover */
  background-color: transparent;
  opacity:0.7;
}

.category-filters a.active {
  background-color: transparent;
  color: var(--text-color); 
  opacity:1;
  font-size: 1.1em;
  font-weight:300;
}

.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: transparent; 
}

.post-tiles {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 3 columns */
  gap: var(--tilesGap) 0; /* Space between tiles */
  padding: 100px 0 100px 0px;
  width: 100%; /* Ensure it fills the parent width */
  max-width: 100%; /* Ensure it doesn't exceed the parent width */
  margin: 0; /* Center the grid */
  overflow: visible;
  background: transparent; 
}

.post-tile,
.post-tile a {
  display: flex;
  border-bottom: 0px solid #d2d2d2;
  background: transparent; 
  transition: background-color 0.3s , transform 0.5s ease;
  padding:0;
  margin:0;
  display: flex;  
  flex-wrap:wrap;
  gap: 0px;
  flex-flow: column wrap;
}


.post-tile:hover{
  transform: scale(1.0) translateY(0px);
}

.thumbnail-container {
  margin: 10px 0 0 0;
  min-width:200px;
  flex: 1;
  flex-grow:2;
}

.post-thumbnail {
  object-fit: fill;
  left:0;
  top:0;
  right:0;
  width:100%;
}

.tile-text {
  margin: 0;
  padding: 0;
  min-width:150px;
  display: flex; /* ← This is missing! */
  flex:1;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.tile-text .textbox1 h2 {
  text-wrap: wrap;
}
.tile-text p {
  color: var(--text-color); 
}
.textbox2{
  direction: ltr;
  position:relative;
}

/* For important tiles that span full width */

.post-tile .arrow {
  padding:0;
  margin:0;
  height:50px;
  width:30px;
  /*overflow:clip;*/
  color:#fff;
  float:right;
}
.post-tile span.material-symbols-outlined {
  padding:0;
  margin:0;
  font-size:5em;  
  color:#ffffff;
  transform: translateY(-5px);
  transition: font-variation-settings 0.3s ease, transform 0.3s ease;
  font-variation-settings:
  'FILL' 1,
  'wght' 50,
  'GRAD' 0,
  'opsz' 24;
}

.post-tile h2 {
  margin: 0px;
  font-size: 2rem;
  line-height:2rem;
  font-weight: 500;
  transition: font-weight 0.3s ease;
  color:#000000;
}

.post-tile a {
  text-decoration: none;
  color: #826363;
}

.post-brand {
  text-transform: uppercase;
  margin: 20px 0 10px 0;
  font-size: 0.9em;
  color:#989898;
}

.post-date {
  text-transform: uppercase;
  margin: 0px 0 0 0;
  font-size: 1.8rem;
  line-height:2rem;
  color:#989898;
  font-weight: 100;
    text-align: right; /* Optional: right-align the text */
}
.post-caption {
  margin: 10px 0;
  font-size: 0.6em;
  text-transform: uppercase;
  color:#989898;
  line-height:2em;
  letter-spacing:0.1em;
    text-align: left; /* Optional: right-align the text */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width:500px;
  flex-direction: row;
}

.caption-item {
  white-space: nowrap;
}
.post-meta {
  margin: 0 0px 15px;
  font-size: 0.8em;
  color: #777;
  display:none;
}

span.post-meta {
  margin: 0;
  font-size: 0.8em;
  color: #777;
  display:none;
}














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


  .hero{
    margin:0;
    padding:20px 20px 0 20px;
  }

  .hero h1{
    margin: 20px 0 0 0;  
    --unitless-value: calc( 100vw );
    font-size: calc( min( calc( var(--unitless-value) * 0.1), 5em) );  
  }

  .services{
    margin: 0;
  }

.category-filters li.separator {
  margin: 0;
}

  .category-filters {
    padding: 20px 20px;
    width:100dvw;
    height:100%;
    display: flex;
    left:0;
    position:relative;
  }

.category-filters ul {
  margin: 0;
  padding:0;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5em 0.5em; /* Minimal gap */
  align-items: center;
}

.category-filters ul li {
  margin: 0;
  padding: 0;
}

.category-filters ul li a {
  display: block;
  padding: 0.3em 0.8em;
  margin: 0;
}

  .divider{
    display:none;
    visibility:collapse;
  }

  .category-filters a.resting {
  padding: 1px 12px 3px 12px;
  background-color:var(--background-color1);
  color: #a7a7a790; /* White text */
  opacity:1;
  text-decoration: none;
  transition: background-color 0.3s ease;
  height:30px;
  border-radius: 20px; /* Pill shape */
  font-weight:200;
  font-size:1em;
  line-height:1.8em;
  }

  .category-filters a.active, 
  .category-filters a.active:hover{
  background-color:var(--accent-color);
  color:#000000;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 20px; /* Pill shape */
  font-weight:200;
  font-size:1em;
  }  

  .category-filters a:hover {
  opacity:1;
  border-radius: 20px; /* Pill shape */
  }

.category-filters li:hover {
  transform: translateX(0px);
}

  .category-filters a.resting:hover {
  color: #ffffff90; /* White text */
  }
  .homeColumn1, .homeColumn2, .category-filters {
      width: 100%;
    position:relative;

  }

  .post-tiles {
    grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    gap : 80px;
    padding:0 0px;
  }

  .post-tile,
  .post-tile a {
    display: flex;  
    flex-wrap:wrap;
    border-bottom: 0px solid #353535;
    background: transparent; 
    padding:0;
    margin:0;  
    gap: 20px;
    flex-flow: row-reverse wrap;
  }

  .post-tile::after, 
  .post-tile a::after {
    block-size: 1px;
    inset-inline-start: 0;
    inset-block-start: calc(0 * 0);
    margin:calc(var(--tilesGap) * -0.5) 0;
    width: 100%;
    opacity:0.5;
  }

  .thumbnail-container {
    min-width:300px;
    max-width:700px;
    flex: 1;
    flex-grow:2;
  }

  .post-thumbnail {
    object-fit: cover;
    left:0;
    top:0;
    right:0;
    padding:0;
    margin:0;
  }

  .tile-text {
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    min-width: 200px;
    position: relative; /* Add this for absolute positioning */
    min-height: 80px; /* Ensure minimum height */
  }

  .tile-text h2 {
    text-wrap: wrap;
  }

  .post-brand {
    text-transform: uppercase;
    margin: 10px 0;
    font-size: 0.8em;
    color:#989898;
  }

  .post-date {
    text-transform: uppercase;
    margin: 8px 0 0 0 ;
    font-size: 0.8em;
    line-height:2rem;
    color:#989898;
  }

  .textbox1 {
    width:60dvw;
    /* background-color:#ff000020; */
  }

  .textbox2 {
    position: absolute; /* Change to absolute positioning */
    top: 0; /* Stick to bottom */
    right: 0; /* Align to right */
    margin: 0;
    padding: 0;
    height: auto;
    width:auto;
  }

  .post-caption {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 0.6em;
    text-transform: uppercase;
    line-height: 1.5em;
    height: auto;
    text-align: right; /* Optional: right-align the text */
  }
}
