/*grid layout*/
* {
  box-sizing: border-box;
  /*temporary styles for troubleshooting*/
  /*outline: 1px solid red;*/
}
html {
  scroll-behavior: smooth;
}
@media (max-width: 600px) {
  html {
    font-size: 12px;
  }
  nav {
    flex-direction: column;
  }
  div.projectlinks {
    display: grid;
    grid-template-columns: 1fr;
  }
  main {
    margin: 0.25rem;
  }
}
#page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
  /*^this isn't set in stone, column numbers and size values can change*/
}
/*#page > selectors are for grid layout*/
#page > header {
  grid-area: header;
}
#page > main {
  grid-area: main;
}

#page > footer {
  grid-area: footer;
}
/*end of grid layout*/
body {
  max-width: 100%;
  color: whitesmoke; /*for all the type in the document*/
  background-color: silver;
  margin: 0;
}
header {
  max-width: 100%;
  position: sticky;
  top: 0;
  z-index: 1;
}
main {
  padding: 0.5rem 1.5rem 3rem;
  z-index: 0;
  margin: 2rem 10vw;
}
/*navigation links and buttons*/
nav,
footer {
  font-family: "Tektur", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}
#logo {
  height: 1.5rem;
  width: auto;
  transform-origin: left center;
}
nav ul,
footer ul {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;

  justify-content: center;

  backdrop-filter: blur(10px);
}

#homebutton a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration-line: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: from-font;
}
#homebutton a span {
  display: none;
}

nav ul li a,
footer ul li a {
  flex-shrink: 1;
  text-decoration: none;
  color: inherit;
  display: flex;
  padding: 0.5rem 2rem;
  border: 1px solid silver;
  border-radius: 27px;
  margin: clamp(0.125rem, 0.5rem, 1rem);
  box-shadow:
    inset 1px 1px 5px black,
    inset -2px -1px 5px silver,
    0px 5px 14px black;
  mix-blend-mode: screen;
  transition: box-shadow 0.5s ease-out;
  perspective: 1000px;
}
nav ul li a:hover,
footer ul li a:hover {
  transform: translateZ(50px);
  box-shadow:
    inset 1px 2px 8px silver,
    inset -1px -2px 8px black,
    0px 0px 20px black;
}

footer {
  position: sticky;
  bottom: 0;
}

/*div classes*/

#category {
  display: flex;
  flex-direction: row;
  padding: 1rem 0;
  max-height: fit-content;
  margin: 0;
}
#category > div {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin-right: 4vw;
  padding-bottom: 9px;
}
#category > div > h4 {
  margin: 1vh 0;
}

#category > div > :nth-child(n + 2) {
  opacity: 75%;
}

.oneimage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.oneimage video {
  width: 100%;
  height: auto;
}

.oneimage img {
  max-height: 100%;
  max-width: 100%;
}
.twoimages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.twoimages > img {
  width: 100%;
  height: 100%;
  margin: none;
  object-fit: cover;
}
.trinity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.trinity img {
  width: 100%;
  height: 100%;
  margin: none;
  object-fit: cover;
}
.goldengallery2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 4rem 0;
  place-items: center;
  margin-bottom: 2rem;
}
.goldengallery2 > :nth-child(3n + 1) {
  grid-column: 1/-1;
}
.goldengallery2 > img {
  width: 100%;
  height: auto;
  margin: none;
  object-fit: cover;
}
.fitimage img {
  object-fit: cover;
}
.miscimages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.miscimages > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.banner {
  height: 600px;
  width: 100%;
  overflow: hidden;
}

.banner img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.scrollgallery {
  display: flex;
  flex-direction: row;
  width: 100%;
  overflow-x: scroll;
}
.scrollgallery > img {
  height: auto;
  width: 100%;
}

#bgVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  z-index: -1; /* Keeps video behind your content */
  object-fit: cover; /* Ensures video fills screen without distortion */
  overflow: hidden;
  filter: saturate(0) contrast(1.25);
  mix-blend-mode: multiply;
  transform: scaleX(-1);
}
section {
  margin-top: 4rem;
}
/*font stuff*/

h1 {
  font-family: "Libre Caslon Text", serif;
  text-transform: uppercase;
  font-size: 2.827rem;
  font-weight: 400;
  font-style: normal;
  font-optical-sizing: auto;
  color: crimson;
  margin: 1rem 0 1rem 0;
  top: 0;
}
h2 {
  font-family: "Michroma", sans-serif;
  font-size: 1.999rem;
  text-transform: capitalize;
  font-optical-sizing: auto;
  font-weight: normal;
  margin: 2rem 0 1rem 0;
}
h3 {
  font-family: "Geist Mono", monospace;
  font-size: 1.414rem;
  font-optical-sizing: auto;
  font-weight: normal;
  margin: 1rem 0 0.5rem 0;
}
h4 {
  font-family: "Tektur", sans-serif;
  font-size: 1.25rem;
  font-weight: normal;
  margin: 1rem 0 1rem 0;
}
p {
  font-family: "Geist Mono", monospace;
  font-size: 1rem;
  font-weight: normal;
  max-width: min(36rem, 100%);
  line-height: 1.75rem;
  text-align: justify;
  text-justify: auto;
  text-align-last: left;
  opacity: 90%;
}
strong {
  font-weight: bold;
}
blockquote {
  font-family: "Geist Mono", monospace;
  font-size: 1rem;
  border-left: 2px solid whitesmoke;
  padding-left: 2rem;
  margin: 2rem;
  max-width: 24rem;
}

.personas {
  margin: 2rem;
  padding: 1rem 2rem;
}
.personas > p {
  font-family: "Verdana", sans-serif;
  font-size: 1rem;
  max-width: 36rem;
}
iframe {
  width: 100%;
}
.projectlinks {
  perspective: 2500px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
}
.card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  text-decoration: none;
  color: inherit;

  background-color: crimson;
  box-shadow: black 0px 2px 6px 0px;
  clip-path: inset(0% round 9px 90px 9px 90px);
  transition:
    transform 0.5s ease,
    clip-path 0.7s ease,
    box-shadow 0.5s ease;
  transform: rotateY(15deg) rotateX(3deg);
}
.projectlinks > .card:nth-child(even) {
  transform: rotateY(-15deg) rotateX(3deg);
  clip-path: inset(0% round 90px 9px 90px 9px);
}
.card:hover {
  transform: rotateY(0) rotateX(-1deg);
  clip-path: inset(0% round 9px);
  box-shadow: black 0px 8px 32px 0px;
}
.card:nth-child(even):hover {
  transform: rotateY(0) rotateX(-1deg) translateZ(32px);
  clip-path: inset(0% round 9px);
  box-shadow: black 0px 8px 32px 0px;
}
.card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition:
    filter 0.6s ease-out,
    mix-blend-mode 0.6s ease-out;
}
.card h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  opacity: 0;
  padding: 0.5rem 1rem;

  transition: opacity 0.4s ease;
}

.card:hover img {
  filter: saturate(0);
  filter: blur(5px);
  mix-blend-mode: multiply;
}

.card:hover h4 {
  opacity: 1;
}

.hidden {
  display: none;
}
