/* -------------------------------------------------------------------------- */
.cardWithInfo {
  position: relative;

  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;

  min-width: 100%;
  min-height: 100%;
}

/* -------------------------------------------------------------------------- */
.cardWithInfo img {
  width: 100%;
  height: auto;
  display: block;

  min-height: unset;
  border-radius: var(--border-radius);
  object-fit: contain;

  /* max-height: 250px; */
}

/* --- Info Container ------------------------------------------------------- */
.cardWithInfo .infoContainer {
  visibility: collapse;

  position: absolute;
  left: 0;
  bottom: 0%;

  display: flex;
  justify-content: space-between;

  width: calc(100% - 0rem);
  padding: 1rem;

  background-color: var(--project-item-card-background-color);
  color: var(--project-item-card-text-color);

  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);

  gap: 0.5rem;
}


.cardWithInfo:hover .infoContainer {
  visibility: visible;
}

.cardWithInfo .infoContainer .title,
.cardWithInfo .infoContainer .year {
  color: var(--project-item-card-text-color);
  font-size: var(--project-item-card-text-size);
  font-weight: var(--project-item-card-text-weight);
  padding: 0;
  margin: 0;
}
.cardWithInfo .infoContainer svg.svgIcon {
  fill: var(--project-item-card-text-color);
  width: var(--project-item-card-text-size);
  height: var(--project-item-card-text-size);
}

.cardWithInfo .infoContainer .platformIcons {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;
}

.cardWithInfo .infoContainer .rightContainer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/*
*  For the Projects Page
*/

/* -------------------------------------------------------------------------- */

.youtubeAndImageContainer {
  /* background-color: blue; */
  gap: 0.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  font-size: 80%;
}

.youtubeAndImageContainer img {
  max-height: 180px
}


a.youtubeAndImageContainer {
  text-align: center;
  text-decoration: none;
  color: var(--certification-item-card-text-color);
}

/* .youtubeAndImageContainer:hover {
  color: red;
  var(--certification-item-hovered-text-color);
  text-decoration: var(--certification-item-hovered-link-decoration-color) dotted underline;
} */
.gridContainer {
  display: grid;
  gap: 0.75rem;
  /* margin: 0 auto;
  justify-content: center; */
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: calc(3 * 350px + 2 * 0.75rem);
}
/* drop to 2 columns when there's not enough space */
@media (max-width: 650px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(2 * 300px + 1 * 0.75rem);
  }
}

/* ==== 4 columns max ==== */
.grid-4 {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: calc(4 * 300px + 3 * 0.75rem); /* 4 cols + 3 gaps */
}

/* drop to 3 columns */
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: calc(3 * 300px + 2 * 0.75rem);
  }
}

/* drop to 2 columns */
@media (max-width: 650px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(2 * 300px + 1 * 0.75rem);
  }
}


/* ==== 5 columns max ==== */
.grid-5 {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: calc(5 * 300px + 4 * 0.75rem); /* 5 cols + 4 gaps */
}

/* drop to 4 columns */
@media (max-width: 1150px) {
  .grid-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: calc(4 * 300px + 3 * 0.75rem);
  }
}

/* drop to 3 columns */
@media (max-width: 900px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: calc(3 * 300px + 2 * 0.75rem);
  }
}

/* drop to 2 columns */
@media (max-width: 650px) {
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(2 * 300px + 1 * 0.75rem);
  }
}