


/* projects page reset all margins */
#projects_css h1,
#projects_css h2,
#projects_css h3,
#projects_css h4,
#projects_css h5,
#projects_css h6,
#projects_css p,
#projects_css a,
#projects_css ul {
  margin: 0;
  padding: 0;
}

/* projects page container main */
.projects_container_main {
  display: grid;
  place-items: center;
  width: 100%;

  scroll-margin-top: calc(var(--variable_spacing_01) * 2.75 );
}

/* projects page container content */
.projects_container_content {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* two equal columns for left and right content */

  width: calc(100% - 2 * var(--variable_spacing_01));

  border-radius: var(--variable_borderradius_03);
  margin-top: var(--variable_spacing_01);
  margin-bottom: var(--variable_spacing_01);

  align-items: start; /* align items to the top of the grid */

  z-index: 7;
}

/* projects page left container */
.projects_left_container {
  display: grid;
  grid-template-rows: auto 1fr auto; /* creates 3 rows */
  height: 100%; /* ensures the section takes up the full height */
  margin-right: var(--variable_spacing_01); /* adds space to the right, for text purposes */
}

/* projects page left top container */
.projects_left_top_container {
  display: grid;
  align-self: start; /* keep top content at the top */
}

/* projects page left bottom container */
.projects_left_bottom_container {
  align-self: end; /* keep bottom content at the bottom */
}

/* projects page right container */
.projects_right_container {
  display: grid;
  grid-template-rows: auto 1fr auto; /* top content, flexible middle, button at the bottom */
  height: 100%; /* Full height of the container */
  margin-left: var(--variable_spacing_01); /* adds space to the left, for text purposes */
}

/* projects page right top container */
.projects_right_top_container {
  align-self: start; /* keep top content at the top */
}

/* projects page right bottom container */
.projects_right_bottom_container {
  align-self: end; /* keep bottom content at the bottom */
}

/* projects page view more button */
.projects_viewmore_button {
  display: inline-grid; /* use grid */
  grid-template-columns: auto auto; /* two columns: one for text, one for icon */

  gap: calc(var(--variable_spacing_items_01) * 2); /* space between text and icon */

  /* button type 02 background colors */
  background: linear-gradient(155deg,
  var(--variable_button_02_color_03) 0%,
  var(--variable_button_02_color_02) 25%,
  var(--variable_button_02_color_01) 100%);

  box-shadow:
          -10px 10px 50px var(--variable_button_02_color_04),
          inset 0 0 10px var(--variable_button_02_color_05),
          inset 0 0 0 1px var(--variable_button_02_color_05);

  backdrop-filter: blur(10px); /* apply blur */
  -webkit-backdrop-filter: blur(10px); /* safari support */

  padding: calc(2px + var(--variable_spacing_items_01) * 1) calc(2px + var(--variable_spacing_items_01) * 2);
  border-radius: var(--variable_borderradius_02);

  margin: var(--variable_spacing_01);

  text-align: center;

  color: var(--variable_color_offwhite); /* button text color */
  cursor: pointer;

  justify-content: center; /* center the content horizontally */
  align-items: center; /* center the content vertically */
  white-space: nowrap; /* prevent text from wrapping */
  width: auto; /* ensure the button only takes as much space as needed */
}

/* projects page arrow icon */
.projects_viewmore_button .arrow_icon {
  height: calc(var(--variable_spacing_items_01) * 2);
  width: calc(var(--variable_spacing_items_01) * 2);
  filter: brightness(0) invert(1);
}

/* projects page number margin */
.projects_page_number a {
  margin: 0; /* remove default margins */
  line-height: 1.2;
}

/* projects page number */
.projects_page_number {
  display: inline-grid; /* ensures the container wraps tightly around the content */
  place-items: center; /* center the number inside the square */

  width: calc(var(--variable_spacing_items_01) * 9/2);
  height: calc(var(--variable_spacing_items_01) * 9/2);
  border-radius: var(--variable_borderradius_02);

  /* element page number type 01 background colors */
  background: linear-gradient(155deg,
  var(--variable_button_01_color_03) 0%,
  var(--variable_button_01_color_02) 25%,
  var(--variable_button_01_color_01) 100%);

  box-shadow:
          -10px 10px 40px var(--variable_button_01_color_04),
          inset 0 0 10px var(--variable_button_01_color_05),
          inset 0 0 0 1px var(--variable_button_01_color_05);

  backdrop-filter: blur(10px); /* apply blur */
  -webkit-backdrop-filter: blur(10px); /* safari support */

  margin: var(--variable_spacing_01);
}

/* projects page container content item_margin */
.projects_container_content h1, h2, h3, h4, h5, h6, p, a, ul, li {
  margin: var(--variable_spacing_01);
}

/* projects page media queries */
@media only screen and (max-width: 1100px) {
  /* projects page container content */
  .projects_container_content {
    grid-template-columns: 1fr; /* Single column layout */
    grid-template-rows: auto auto; /* Two rows: one for the left, one for the right */
    justify-items: center; /* Center both containers horizontally */
    margin-top: var(--variable_spacing_01); /* Adjust margins if necessary */
    margin-bottom: var(--variable_spacing_01);
  }

  /* projects page left container */
  .projects_left_container {
    margin-right: 0; /* remove right margin */
  }

  /* projects page right container */
  .projects_right_container {
    margin-left: 0; /* remove left margin */
  }
}