@property --_w {
  syntax: '<length>';
  inherits: true;
  initial-value: 100vw; 
}
@property --_h {
  syntax: '<length>';
  inherits: true;
  initial-value: 100vh; 
}

:root {
  --w: tan(atan2(var(--_w),1px));
  --h: tan(atan2(var(--_h),1px));

  --lpink: #FFD1E1;
  --mpink: #FFA3C3;
  --dpink: #5E254B;
  --lgreen: #82D187;
  --cream: #FFEDD4;
  --tpink: #260D1EE6;
}


@font-face {
  font-family: Ubuntu;
  src: url("font/Ubuntu/Ubuntu-Regular.ttf");
}

@font-face {
  font-family: Ubuntu;
  src: url("font/Ubuntu/Ubuntu-Bold.ttf");
  font-weight: bold;
}

@font-face {
  font-family: Ubuntu;
  src: url("font/Ubuntu/Ubuntu-Italic.ttf");
  font-style: italic;
}


html {
  height: 100%;
}


body {
  min-height: 99%;
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: 25% 50% 25%;
  background-color: var(--lpink);
  font-family: Ubuntu;
  color: var(--dpink);
}

@media only screen and (max-width: 1000px){
  body {
    grid-template-columns: 10% 80% 10%;
  }
}

@media only screen and (max-width: 700px){
  body {
    grid-template-columns: 5% 90% 5%;
  }
}


header {
  grid-row: 1;
  grid-column-start: 1;
  grid-column-end: 4;
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto;
  text-align: center;
  align-items: center;
  border: 4px solid var(--dpink);
  background-color: white;
}

header button {
  background-color: var(--mpink);
  border: 0;
  /* padding: 12px 16px 12px 16px; */
  padding: 1.5ch 2ch;
  width: fit-content;
  font-size: 1vw;
}

header a {
  /* font-size: medium; */
  color: white;
  text-decoration: none;
}


main {
  grid-row: 2;
  grid-column: 2;
}

h1 {
  color: var(--dpink);
  text-align: center;
}

h2 {
  color: var(--dpink);
  text-align: center;
}

h3 {
  color: var(--dpink);
}

/* p {
  text-wrap: balance;
} */

.linerow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.line {
  border: 2px solid var(--dpink);
  width: 10%;
  height: 0px;
  margin: 8px;
}

a {
  color: var(--mpink);
  font-weight: bold;
}


.full {
  grid-column-start: 1;
  grid-column-end: 3;
}

.last {
  margin-bottom: 32px;
}

.math {
  font-style: italic;
  font-family: serif;
}


.projrow {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto auto auto auto;
  column-gap: 8px;
  padding: 8px;
  margin-bottom: 32px;
  border: 4px solid var(--dpink);
  background-color: white;
  align-items: center;
}

.projrow h3 {
  grid-row: 1;
  grid-column-start: 1;
  grid-column-end: 3;
  text-align: center;
}

.projrow .date {
  grid-row: 1;
  grid-column: 2;
  text-align: right;
  align-self: center;
  margin-right: 8px;
}

@media only screen and (max-width: 1400px){
  .projrow .date {
    grid-column-start: 1;
    grid-column-end: 3;
    text-align: center;
    margin-top: 32px;
  }
}

.projrow .projdesc {
  grid-row: 2;
  text-align: justify;
  width: calc(100% - 8px - 4px);
  /* margin: 8px; */
}

.projrow img, .projrow video {
  grid-row: 2;
  width: calc(100% - 8px - 4px);
  border: 2px solid var(--dpink);
  /* margin: 8px; */
}

.projrow img.full {
  grid-row: 3;
}

.projrow .left {
  grid-column: 1;
}

.projrow .right {
  grid-column: 2;
}

.projrow .projlink {
  grid-row: 4;
  grid-column-start: 1;
  grid-column-end: 3;
  text-align: center;
}


.inspirations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
}

.inspirations .projrow {
  display: block;
  margin-bottom: 8px;
}

.inspirations .projdesc {
  width: 100%;
}


.microscopy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 32px;
}

.microscopy img, .microscopy video {
  width: 100%;
  border: 4px solid var(--dpink);
}

.microscopy .caption {
  grid-column-start: 1;
  grid-column-end: 3;
  margin-top: 0;
  text-align: justify;
}


.popout {
  cursor: pointer;
}

#modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding: 0px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: scroll; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  /* background-color: rgba(0,0,0,0.9); */
  background-color: var(--tpink);
}

#modal-center {
  margin: 3% auto;
  display: block;
  height: 80%;
  max-width: 100%;
}

/* Modal Content (Image) */
#modal-content {
  margin: auto;
  display: block;
  height: 85%;
  max-width: 100%;
  object-fit: contain;
  border: 4px solid var(--lpink);
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  text-align: justify;
  /* color: #ccc; */
  color: var(--lpink);
  /* color: white; */
  width: 55%;
  height: fit-content;
  padding: 8px 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  border: 2px solid var(--lpink);
}

@media only screen and (max-width: 1000px){
  #caption {
    width: 80%;
  }
}

/* The Close Button */
#close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
}

#close:hover,
#close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
/* @media only screen and (max-width: 700px){
  #modal-content {
    width: 100%;
  }
} */


.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  margin-bottom: 32px;
  align-items: center;
}

@media only screen and (max-width: 700px) {
  .about {
    grid-template-columns: 100%;
    grid-template-rows: auto auto;

    img {
      grid-row: 2;
    }
  }
}

.about p {
  font-size: 16pt;
  text-wrap: balance;
}

.abouttext .line {
  width: 50%;
}

.about img {
  width: 96%;
  border: 4px solid var(--dpink);
}

.contact {
  text-align: center;
}

.contact a {
  color: var(--dpink);
}


footer {
  grid-row: 3;
  grid-column-start: 1;
  grid-column-end: 4;
  padding: 8px;
  height: fit-content;
  margin-top: auto;
  margin-bottom: 10px;
  text-align: center;
  align-items: center;
  border: 4px solid var(--dpink);
  background-color: white;
}
