
.intro {
  position: fixed;
  top: 40px;
  left: 50px;
  height: 20px;
  width: calc(100vw - 80px);
  height: 38px;
  font-size: 16px;
  line-height: 20px;
  overflow: hidden;
  border-bottom: 0.5px solid rgba(0, 0, 0, .25);
  background-color: #f2f2f2;
  z-index: 2;
  transition: all .9s ease;
  -webkit-transition: all .9s ease;
  -moz-transition: all .9s ease;
  -ms-transition: all .9s ease;
  -o-transition: all .9s ease;
  cursor: pointer;
}

.intro p {
  opacity: 0.25;
  -webkit-transition: all .9s ease;
  -moz-transition: all .9s ease;
  -ms-transition: all .9s ease;
  -o-transition: all .9s ease;
}

.intro::-webkit-scrollbar {display: none;}

.list_intro {
  margin-top: 25px;
  padding-bottom: 100px;
  height: fit-content;
}

.list_intro strong {
  font-weight: 400;
}

.revert-button {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 30px;
  color: black;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: all .9s ease;
  -webkit-transition: all .9s ease;
  -moz-transition: all .9s ease;
  -ms-transition: all .9s ease;
  -o-transition: all .9s ease;
  background-color: #f2f2f2;
}

.revert-button:hover {
  height: 40px;
}

.arrow {
  width: 10px;
  height: 10px;
  border: solid black;
  border-width: 0 1px 1px 0;
  display: inline-block;
  transform: rotate(-135deg skew(5deg, 5deg));
  -webkit-transform: rotate(-135deg) skew(5deg, 5deg);
  position: absolute;
  top: 10px;
  left: calc(50% -10px);
  pointer-events: none;
}

.arrowline {
  width: 5px;
  height: 15px;
  border: solid black;
  border-width: 0 1px 0 0;
  display: inline-block;
  position: absolute;
  top: 8.5px;
  left: 50%;
  pointer-events: none;
}

.intromobile {
  opacity: 0;
  pointer-events: none;
}

.post-wrapper {
  position: absolute;
  float: left;
  left: 50px;
  top: 130px;
  width: calc(100vw - 80px);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 0 60px 0;
}



.title-column {
  display: flex;
  flex-direction: column;  /* stack vertically: title-row above subcategory-list */
  gap: 5px;
}

.title-row {
  width: 90%;
  display: flex;
  flex-direction: row!important; /* side-by-side */
  justify-content: space-between; /* push title left, year right */
}

.post-title {
  margin: 0;
}

.post-year {
  font-size: 12px;
  opacity:0.4;
  text-align: right;
}

.subcategory-list {
  margin: 0;
  list-style-type: none;
  opacity: 0.4;
  padding: 0;
}


.title-column {
  font-size: 14px;
  flex-direction: column!important; /* override row direction */
  align-items: flex-start!important; /* optional: align text to the left */
}

.grid-header p {margin: 0;}

.post-grid {
  display: grid;
  grid-template-columns: 20% 30% 30% 20%;
  grid-auto-rows: 100px;          /* All rows except the first will be 100px */
  grid-template-rows: 0px;       /* First row only */
  row-gap: 60px;
  align-items: start;
  padding: 0 0 60px 0;
}
/* .post-grid > div:nth-child(-n+4) {
  height: 20px;
  line-height: 120px;
} */


.column {
  display: flex;
  flex-direction: row; /* <-- change from column to row */
  align-items: left; /* vertically align images */
}

.column img,
.thumbnail {
  float: left;
  max-height: 100px; /* or use '100%' if parent has a fixed height */
  width: auto;
  height: auto;
  object-fit: contain; /* ensures the image is fully visible, no cropping */
  display: inline;
  margin-right: 10px;
  border: 0.25px solid rgba(29, 29, 29, .05);
}

:root {
  --line-thickness: 0.2px;
  --line-offset: 0px;
}

/* Only apply to non-title columns */
.materia-column,
.digital-column,
.sistema-column {
  position: relative;
  height: 160px;
}

/* This draws the full-height vertical line */
.materia-column::before,
.digital-column::before,
.sistema-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--line-thickness);
  height: 100%; /* Match the grid height */
  background-color: #ccc;
  z-index: 1;
}



@media (min-width: 1920px) {

.post-grid {
  grid-template-columns: 15% 32% 32% 22%;
  grid-auto-rows: 140px;
}

.column img, .thumbnail {
    max-height: 140px;
    margin-right: 35px;
}

.titlename, .grid-header p, .intro {
    font-size: 18px;
}

.intro {top: 45px;}

.title-column {
    font-size: 16px;
}

.post-year {
    font-size: 14px;
    margin-top: 2px;
}

.materia-column,
.digital-column,
.sistema-column {
  position: relative;
  height: 220px;
}

}

@media (min-width: 1680px) and (max-width: 1919px) {

  .post-grid {
    grid-template-columns: 15% 32% 32% 22%;
    grid-auto-rows: 120px;
  }

  .column img, .thumbnail {
    max-height: 120px;
    margin-right: 30px;
  }

  .materia-column,
  .digital-column,
  .sistema-column {
    position: relative;
    height: 200px;
  }

}


@media (min-width: 1536px) and (max-width: 1679px) {

  .post-grid {
    grid-template-columns: 15% 32% 32% 22%;
    grid-auto-rows: 110px;
  }

  .column img, .thumbnail {
    max-height: 110px;
    margin-right: 20px;
  }

  .materia-column,
  .digital-column,
  .sistema-column {
    position: relative;
    height: 180px;
  }

}

@media (min-width: 1180px) and (max-width: 1439px) {

  .column img, .thumbnail {
      max-height: 80px;
  }

}

@media (min-width: 1px) and (max-width: 1179px) {

  .column a:nth-child(2) {
      display: none;
  }

}

@media (min-width: 836px) and (max-width: 1179px) {

.post-grid {
  grid-template-columns: 19% 28% 28% 25%;
}

}

@media (min-width: 1px) and (max-width: 1080px) {

  .titlename {
    font-size: 14px;
  }

  .intro {
    font-size: 14px;
  }

  .grid-header p {
    font-size: 14px;
  }

  .title-column {
    font-size: 12px;
  }

  .post-year {
    font-size: 10px;
  }

}


@media (min-width: 650px) and (max-width: 835px) {

  .post-grid {
    grid-template-columns: 15% 30% 30% 25%;
  }

  .column img {
    max-height: 80px;
  }

  .post-year {
    display: none;
  }

  .titlename div {
    margin-right: 7%;
  }


}


@media (min-width: 1px) and (max-width: 650px) {

  .titlename {
    left: 15px;
    /* font-size: 14px!important; */
  }

  .intro {
    font-size: 12px!important;
    height: 30px;
    line-height: 16px;
  }

  /* .grid-header p {font-size: 12px!important;} */

  .post-wrapper {
    top:120px;
  }

  .post-wrapper, .intro, .titlename {
    left: 15px;
    width: calc(100vw - 30px);
  }

  .post-grid {
    display: grid;
    grid-template-columns: 0% 35% 35% 30%;
    grid-auto-rows: 120px;
    grid-template-rows: 40px;
    row-gap: 0px;
    align-items: start;
    padding: 0 0 0px 0;
  }

  .materia-column, .digital-column, .sistema-column {
    height: 120px;
  }

  .title-row {
    display: none;
  }

  .column img {
    min-height: 75px;
    max-height: 85px;
    max-width: 90%;
    object-fit: cover;
    object-position: center; /* Center the image within the element */
  }

  .post-year {
    display: none;
  }

  .titlename div:nth-child(-n+2) {
    margin-right: 5%;
  }
  .titlename div:nth-child(3) {
    margin-right: 0;
  }

}

@media (min-width: 1px) and (max-width: 529px) {

  .titlename div {
    display: grid;
  }

  .header {display: none;}

  .header2 {
    position: fixed;
    top:0;
    left: 0;
    width: 100vw;
    height: 90px;
    background-color: #f2f2f2;
    z-index: 2;
  }

  /* .post-grid {
    grid-template-columns: 0% 35% 35% 31%!important;
  } */

  .intromobile {
    opacity: 1;
    position: fixed;
    width: 35px;
    height: 100vh;
    right: 15px;
    top: 28px;
    cursor: pointer;
    z-index: 10;
    background-color: #f2f2f2;
    overflow-x: scroll;
    font-size: 14px;
    transition: all 1.5s ease;
    pointer-events: auto;
  }

  .intromobile::-webkit-scrollbar {display: none;}

  .intromobile p {
    font-size: 12px;
  }

  /* Active state triggered by jQuery */
  .intromobile.active {
    width: calc(100vw - 30px);
  }

  .me_intro, .list_intro, .revert-button-info  {
    opacity: 0;
  }

  .me_intro.active, .list_intro.active, .revert-button-info.active  {
    transition: opacity 2.5s ease;
    opacity: 1;
  }

  .revert-button-info {
    width: 100px;
    height: 35px;
    position: absolute;
    right: 0;
    top:0px;
    pointer-events: none;
  }

  .arrow {
    width: 8px;
    height: 8px;
    top: 2px;
    right: 9.5px;
    transform: rotate(315deg skew(5deg, 5deg));
    -webkit-transform: rotate(315deg) skew(5deg, 5deg);
  }
  .arrowline {
    width: 20px;
    height: 5px;
    border: solid black;
    border-width: 1px 0 0 0;
    display: inline-block;
    position: absolute;
    top: 6px;
    left: inherit;
    right: 8px;
    pointer-events: none;
  }

  .backhome, .revert-button {
    display: none;
  }


}
