/* Define variables */
:root {
  --best-fit-width: 1600px;
  /* --photo-card-width: 48%; */
  --photo-card-width: 2;
  --content-width: 1200px;
}

/* Define fonts */
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: rgba(0, 0, 0, 0.9);
  background-color: #e3e3e3;
}

.intro-title {
  font-family: "Source Serif 4", serif;
  font-size: clamp(5rem, calc(4.347826087rem + 2.1739130435vw), 6rem);
  /* 96px */
  font-weight: 400;
  line-height: 1;
  /* semi-bold */
  margin: 0;
}

h1 {
  font-family: "Source Serif 4", serif;
  font-size: 4.75rem;
  /* 76px */
  font-weight: 400;
  line-height: 1.125;
  /* semi-bold */
  margin: 0;
}

h2 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.25rem, calc(1.4673913043rem + 2.6086956522vw), 3.75rem);
  /* 60px */
  line-height: 1.25;
  font-weight: 400;
  /* 54px */
  margin: 0;
  text-transform: capitalize;
}

h3 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.5rem, calc(1.9782608696rem + 1.7391304348vw), 3.5rem);
  /* 56px */
  line-height: 1.25;
  font-weight: 400;
  text-transform: capitalize;
  /* color: rgba(0, 0, 0, 0.7); */
  /* 48px */
  margin: 0 0 1.5rem 0;
}

h4 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.875rem, calc(1.4836956522rem + 1.3043478261vw), 2.625rem);
  /* 36px */
  font-weight: 400;
  /* semi-bold */
  line-height: 1.4;
  /* 54px */
  margin: 0;
}

h5 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.5rem, calc(1.3695652174rem + 0.4347826087vw), 1.75rem);
  /* 28px */
  line-height: 1.35;
  font-weight: 400;
  /* 42px */
  margin: 0;
}

h6 {
  font-family: "Source Serif 4", serif;
  font-size: 1.5rem;
  /* 24px */
  line-height: 1.5;
  /* 36px */
  margin: 0;
}

p {
  font-size: clamp(1.125rem, calc(1.0923913043rem + 0.1086956522vw), 1.1875rem);
  /* 18px */
  line-height: 1.5;
  /* 27px */
  margin: 0;
}

#intro p {
  font-size: clamp(0.9375rem, 0.8649rem + 0.3226vw, 1.1875rem);
  color: rgba(0, 0, 0, 0.6);
}

.p-regular {
  font-size: clamp(0.9375rem, calc(0.9048913043rem + 0.1086956522vw), 1rem);
  line-height: 1.5;
  margin: 0;
}

.p-large {
  font-size: clamp(1.0625rem, calc(0.964673913rem + 0.3260869565vw), 1.25rem);
  /* 20px */
  line-height: 1.5;
  /* 30px */
  margin: 0;
}

.p-menu {
  font-size: 1.25rem;
  /* 20px */
  line-height: 1.5;
  /* 30px */
  margin: 0;
}

.p-large-bold {
  font-size: clamp(1.125rem, calc(1.0923913043rem + 0.1086956522vw), 1.1875rem);
  /* 20px */
  line-height: 1.5;
  /* 30px */
  font-weight: 600;
  margin: 0;
}

/* .p-bold {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.8;
  margin: 2rem 0 0 0;
} */

.p-small {
  font-size: clamp(0.9375rem, calc(0.9048913043rem + 0.1086956522vw), 1rem);
  /* 16px */
  font-weight: 400;
  line-height: 1.5;
  /* 24px */
  /* color: rgba(0, 0, 0, 0.6); */
}

.p-small-bold {
  font-size: clamp(0.9375rem, calc(0.9048913043rem + 0.1086956522vw), 1rem);
  /* 16px */
  font-weight: 600;
  line-height: 1.5;
  /* 24px */
  /* color: rgba(0, 0, 0, 0.6); */
}

.p-title {
  font-size: 0.875rem;
  /* 14px */
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  line-height: 1.5;
  text-transform: uppercase;
  /* 21px */
}

.p-note {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(20, 20, 23, 0.15);
  padding-top: 1rem;
}

/* .p-footnote {
  font-size: clamp(
    0.9375rem,
    calc(0.9048913043rem + 0.1086956522vw),
    1.1875rem
  );
  color: rgba(0, 0, 0, 0.6);
} */

/* .p-gray {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.4);
  line-height: 1.8;
  font-weight: 600;
  margin: 0;
} */

a:link,
a:visited {
  color: #333333;
  text-decoration: none;
}

a:hover p {
  color: rgba(0, 0, 0, 0.6);
}

a:hover .arrow-right {
  stroke: rgba(0, 0, 0, 0.6);
  visibility: visible;
}

a .arrow-right {
  visibility: hidden;
}

a:hover .arrow-h {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: dash-h 1s ease-in-out forwards;
}

@keyframes dash-h {
  to {
    stroke-dashoffset: 0;
  }
}

a:hover .arrow-v {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: dash-v 500ms ease-in-out forwards;
}

@keyframes dash-v {
  to {
    stroke-dashoffset: 200;
  }
}

ul {
  padding-left: 0;
}

li {
  list-style: none;
}

/* Define block space */
.margin-24px {
  margin: 1.5rem 0;
}

.margin-32px {
  margin: 2rem 0;
}

.p-margin-top {
  margin-top: 0.5rem;
  /* 8px */
}

/* .section-title {
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 2.5rem;
} */

.subsection-title {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.bulletin-title {
  margin-top: 1.5rem;
}

.bulletin-title::before {
  content: "•";
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  /* 8px */
}

.list-style {
  padding-left: 4rem;
  /* 64px */
}

.list-style-title {
  margin-top: 1.5rem;
  /* 24px */
  margin-bottom: 0.5rem;
  /* 8px */
}

.bulletin-title-paragraph {
  margin-left: 1.5rem;
  /* 24px */
}

.list-style-paragraph {
  margin-left: 1.375rem;
  /* 22px */
}

/* Define desktop page view as default */
body {
  margin: 0;
  overflow-x: hidden;
}

.best-fit-wide {
  max-width: var(--best-fit-width);
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.content-wide {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.grid-5-12-col {
  margin: 7.5rem auto 0 auto;
  display: grid;
  grid-template-columns: 25% 60%;
  column-gap: 15%;
}

.text-block {
  margin-bottom: 3rem;
}

.background-light {
  background-color: #f4f4f4;
  padding-top: 1px;
}

/* Define header */
/* header {
  background-color: #f8f8f8;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 3;
} */

.header-wrapper {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  height: 108px;
  width: 90%;
  margin: auto;
}

.header-logo img {
  height: 60px;
}

#header-menu-btn {
  display: none;
}

.header-menu {
  width: 320px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
}

/* .header-menu h5 {
  border-bottom: 5px solid #f8f8f8;
  margin: revert;
  /* here we need some margin-bottom so the cursor could move to the sub-memu
}

.header-menu h5:hover,
.header-dropdown-container:hover h5 {
  border-bottom: 5px solid #1a6cb7;
  color: #1a6cb7;
} */

.header-menu a {
  display: block;
  position: relative;
  padding: 0.2em 0;
}

a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.15em;
  background-color: #d60008;
  opacity: 0;
  transition: opacity 300ms, transform 300ms;
}

.header-menu a::after {
  opacity: 1;
  transform: scale(0);
  transform-origin: center;
}

.header-menu a:hover::after,
.header-menu a:focus::after {
  transform: scale(1);
}

.header-dropdown-container {
  position: relative;
}

.header-dropdown-menu {
  display: none;
  position: absolute;
  z-index: 10;
  background-color: #f8f8f8;
  min-width: 12em;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
  top: 77px;
  left: -10px;
}

.header-dropdown-container:hover .header-dropdown-menu {
  display: block;
}

.header-dropdown-menu a {
  display: block;
  margin: 5% 5%;
  font-weight: 500;
}

.lottie-bg {
  /* z-index: -1; */
  top: 0;
  left: 0;
  right: 0;
  position: relative;
  width: 100%;
}

.lottie-player-bg,
.lottie-player-bg-c {
  top: 0;
  left: 0;
  position: absolute;
  height: auto;
  width: 100%;
  z-index: -1;
}

.lottie-player-bg-s,
.lottie-player-bg-cs {
  display: none;
}

.proj-header {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  grid-template-rows: 70% 30%;
  margin-top: 6rem;
  margin-bottom: 3rem;
}

.proj-title {
  grid-row: 1/2;
  grid-column: 1/2;
  padding-right: 2rem;
}

.proj-title .p-title {
  margin-bottom: 1.75rem;
}

.p-title-bottom-margin {
  margin-bottom: 1rem;
}

.proj-intro-p1 {
  grid-row: 2/-1;
  grid-column: 1/2;
  padding: 0.5rem 3rem 0 0;
}

.external-link-list {
  margin: 0;
  display: flex;
  flex-flow: row nowrap;
  gap: 2rem;
  /* 32px */
  padding-top: 2rem;
}

.external-link-list a:hover .arrow-l {
  stroke-dasharray: 25;
  stroke-dashoffset: 25;
  animation: dash-l 600ms ease-in-out forwards;
}

/* .external-link-list svg {
} */

@keyframes dash-l {
  to {
    stroke-dashoffset: 0;
  }
}

.external-link-list a:hover .arrow-s {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: dash-s 600ms ease-in-out forwards;
}

@keyframes dash-s {
  to {
    stroke-dashoffset: 100;
  }
}

.hero-image-wrapper {
  grid-row: 1/-1;
  grid-column: 2/3;
  padding: 3.5rem 2rem 0 0;
}

.hero-image {
  /* width: 61%;
  top: 0;
  left: 0;
  height: auto;
  transform: translateY(-32%); */
  width: 100%;
}

.proj-intro-p2 {
  grid-row: 1/-1;
  grid-column: 3/-1;
  padding-top: 3.5rem;
}

.proj-intro-p2 .p-small-bold {
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

.proj-intro-p2 > :nth-child(even) {
  margin: 0.5rem 0 2rem 0;
}

.tool-logo {
  display: flex;
  flex-flow: row nowrap;
  gap: 0.625rem;
  /* 10px */
}

.tool-logo img {
  width: 48px;
  height: 48px;
}

.tool-off {
  /* filter: grayscale(100%);
  opacity: 0.15; */
  /* as per Tyler request */
  opacity: 0;
}

/* Define main */
main section {
  margin: 7.5rem auto;
  /* 120px */
}

#intro {
  text-align: right;
}

#intro h1 {
  margin-bottom: 1.25rem;
  /* 20px */
  max-width: 900px;
  margin-left: auto;
}

#intro .p-large {
  max-width: 480px;
  margin-left: auto;
}

#intro h5 {
  text-align: left;
  width: 100%;
  margin-top: 3rem;
  line-height: 1.3;
}

#intro :last-child {
  width: 95%;
  margin-top: 1.5rem;
}

#lottie-player-workspace {
  /* width: 90%; */
  margin: 2.75rem auto 0 auto;
  transform: translate(-2%, 0);
}

.lottie-title {
  position: relative;
  width: 90%;
  height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lottie-player-text {
  position: absolute;
  top: -10%;
  left: -2%;
  /* margin: 2rem auto 0 auto; */
  width: 100%;
  z-index: -1;
}

#work {
  margin-bottom: 1rem;
}

/* Fix sticky header problem */
#work,
a[id] {
  scroll-margin-top: 112px;
}

.home-cardboard {
  margin-top: 3rem;
  /* 48px */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 6rem;
  /* 32px */
  row-gap: 3rem;
}

.proj-card {
  /* background-color: #f8f8f8; */
  border-top: 2px solid rgba(0, 0, 0, 0.15);
  padding: 1.125rem 0;
}

.proj-card:hover {
  border-top: 2px solid rgba(0, 0, 0, 0.5);
  transition: all 1s cubic-bezier(0.15, 0.84, 0.44, 1);
}

.proj-card:hover .p-small {
  animation: typing-effect 1.5s steps(35, end);
  visibility: visible;
}

@keyframes typing-effect {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.proj-card h4 {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.proj-card .p-small {
  overflow: hidden;
  white-space: nowrap;
  visibility: hidden;
}

.proj-right-col {
  margin-left: 66%;
}

.proj-right-col p {
  margin-bottom: 2rem;
}

.proj-card-row-1 {
  display: flex;
  justify-content: space-between;
}

.grid-1-2-cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.grid-2-3-cols {
  display: grid;
  grid-template-columns: 2fr 3fr;
}

#beyond-ux-ui {
  margin-top: 0;
}

#beyond-ux-ui .grid-1-2-cols {
  height: 580px;
}

#beyond-ux-ui h2 {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  height: inherit;
}

.photo-gallery {
  position: relative;
  margin-top: 3rem;
  width: 100vw;
  overflow-x: hidden;
  left: calc((100vw - min(90vw, var(--best-fit-width))) / 2 * -1);
}

.photo-slides {
  /* height: 460px; */
  display: flex;
  position: relative;
  flex-wrap: nowrap;
  overflow: visible;
  transition: ease 0.5s;
  column-gap: 4%;
  left: calc((100vw - min(90vw, var(--best-fit-width))) / 2);
}

.photo-card-1-col {
  /* --photo-card-width: 70%; */
  --photo-card-width: 1.3;
}

.photo-btn {
  position: absolute;
  top: 0;
  background: transparent;
  opacity: 0;
  height: 100%;
  /* width: 5vw; */
  width: calc((100vw - min(var(--best-fit-width), 90vw)) / 2);
  border: none;
  /* transition: opacity 0.5s ease 0s; */
  z-index: 3;
  transition: opacity 0.4s cubic-bezier(0.38, 0.41, 0.27, 1),
    transform 0.2s cubic-bezier(0.235, 0, 0.05, 0.95);
}

.photo-btn svg {
  z-index: 2;
  filter: invert(17%) sepia(0%) saturate(0%) hue-rotate(61deg) brightness(96%)
    contrast(87%);
  height: 10%;
}

.photo-btn:hover {
  opacity: 1;
}

.photo-left-btn {
  /* transform: translateX(-100%); */
  left: 0;
}

.photo-right-btn {
  /* transform: translateX(100%); */
  right: 0;
}

.photo-btn-off {
  display: none;
  opacity: 0;
  z-index: -1;
}

.photo-card {
  /* height: calc(min(28vw, calc(var(--best-fit-width)*0.30)) / 16 * 9 + 60px), ;
  width: min(28vw, calc(var(--best-fit-width)*0.30));
  margin-right: min(2vw, calc(var(--best-fit-width)*0.03)); */
  /* height: calc(min(42vw, calc(var(--best-fit-width) * 0.47)) / 16 * 9 + 60px); */
  width: calc(min(var(--best-fit-width), 90vw) / var(--photo-card-width));
  flex-grow: 0;
  flex-shrink: 0;
  max-width: none;
  opacity: 0.4;
  transition: opacity 0.5s ease 0s;
}

.background-light .photo-card {
  background-color: #ececec;
}

.background-light .photo-card p {
  padding: 0 1rem 1rem 1rem;
}

.photo-card-active {
  opacity: 1;
}

.photo-card img,
video {
  width: 100%;
  /* height: calc(min(42vw, calc(var(--best-fit-width) * 0.47)) / 16 * 9); */
  object-fit: cover;
  background-color: #c5c5c5;
  overflow: hidden;
}

.photo-card .p-title {
  color: #333333;
  margin-top: 1rem;
}

/* .photo-card-arrow {
  text-align: center;
  margin-top: 4rem;
}

.photo-card-arrow * {
  display: inline-block;
}

#photo-page {
  margin-left: 4rem;
  margin-right: 4rem;
} */

#lottie-player-camera {
  max-width: 900px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  column-gap: 8rem;
  padding: 7rem 5% 7rem 5%;
  margin-bottom: 4rem;
  border-bottom: 2px solid rgba(20, 20, 23, 0.15);
}

.about-content a.dash-underline {
  text-decoration: underline dashed;
}

.about-interest {
  margin: 0 auto 0 auto;
}

.about-interest-content {
  margin: 0.625rem 0 2.5rem 0;
  /* 10px, 0 , 40px, 0 */
}

.about-me p {
  font-size: 1.125rem;
  line-height: 1.6;
}

.about-me :not(:last-child) {
  margin-bottom: 1.125rem;
}

#about h5 {
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
}

#lottie-player-game {
  width: 90%;
  height: auto;
}

.about-skill {
  border-top: 1px solid rgba(20, 20, 23, 0.15);
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr 3fr;
  column-gap: 3rem;
  line-height: 1.5;
}

.about-skill :first-child {
  font-weight: 600;
}

.about-me-img {
  max-width: 100%;
}

.full-screen-wide {
  background-color: #f4f4f4;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

.grid-1-col {
  display: grid;
  grid-template-columns: 1fr var(--best-fit-width) 1fr;
  row-gap: 2rem;
  /* 32px */
  padding-top: 1.5rem;
  /* 24px */
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  /* 64px */
  row-gap: 2rem;
  /* 32px */
}

.left-col-title {
  border-top: 3px solid rgba(0, 0, 0, 0.6);
  text-align: right;
  padding-top: 8px;
  font-style: italic;
}

.tab-margin {
  max-width: var(--best-fit-width);
  width: 100%;
  margin: 0;
}

/* .img-margin {
  max-width: var(--photo-width);
  margin: 1.5rem auto 0.5rem auto;
  margin-left: auto;
  margin-right: auto;
} */

.img-full {
  width: 100%;
  margin: 1.5rem auto 0.5rem auto;
}

.multi-img-col {
  margin: 0;
  max-width: var(--best-fit-width);
  grid-column-start: 2;
  /* grid-row-start: 2; */
}

.tab-btn-wrapper {
  display: flex;
  flex-flow: row nowrap;
}

.tab-btn {
  flex: 1;
  background-color: #f4f4f4;
  border: 0;
  padding-bottom: 4px;
  text-align: center;
}

.tab-btn-on {
  border-bottom: 5px solid #333333;
}

.tab-btn-off {
  border-bottom: 5px solid #e2e2e2;
  color: #e2e2e2;
}

.tab-on {
  display: grid;
  max-width: var(--best-fit-width);
  width: 90%;
  margin: auto;
  padding-top: 24px;
}

.tab-off {
  display: none;
}

.tab-card {
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr 1fr;
}

.tab-card ul {
  padding-left: 1.5rem;
}

.tab-card li {
  list-style: disc;
  padding-left: 0.5rem;
  line-height: 2;
}

.tab-card-logo {
  grid-column: 1/2;
  grid-row: 1/-1;
  align-self: center;
}

.tab-card-logo img {
  height: 200px;
}

.tab-card-pros {
  grid-column: 2/-1;
  grid-row: 1/2;
  text-align: left;
}

.tab-card-cons {
  grid-column: 2/-1;
  grid-row: 2/-1;
  text-align: left;
}

.list-style-disc {
  padding-left: 1.25rem;
}

.list-style-disc li {
  list-style: disc;
  padding-left: 0.5rem;
  line-height: 2;
}

/* Define footer */
footer {
  max-width: var(--best-fit-width);
  margin: auto;
}

.proj-footer {
  max-width: none;
  padding-top: 3rem;
}

.proj-footer .lottie-title {
  /* max-width: var(--best-fit-width);
  margin: auto; */
  width: 100%;
  flex-direction: row;
  align-items: center;
}

.proj-footer .lottie-player-text {
  width: 80%;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  column-gap: 3rem;
  width: 50%;
  margin-bottom: 2rem;
}

.footer-container nav {
  width: 100%;
}

.copyright {
  color: rgba(0, 0, 0, 0.6);
  padding-bottom: 3rem;
}

.footer-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* .previous-page {
  text-align: left;
  grid-column: 1/2;
} */

.next-page {
  text-align: left;
  width: 50%;
  z-index: 1;
  /* grid-column: 2/-1; */
}

.next-page:hover .arrow-h,
.next-page:hover .arrow-v {
  stroke: #d60008;
}

#lottie-player-upnext-white,
#lottie-player-upnext-s,
#lottie-player-upnext-white-s {
  display: none;
}

#lottie-player-upnext {
  display: block;
}

.next-page:hover #lottie-player-upnext-white {
  display: block;
}

.next-page:hover #lottie-player-upnext {
  display: none;
}

/* Small desktop: 900px - 1296px */
/* @media only screen and (max-width: 1296px) {
  :root {
    --best-fit-width: 80vw;
  }
} */

/* Small Screen: 1200px - 1599px */
@media only screen and (max-width: 1599px) {
  :root {
    --best-fit-width: 80vw;
    --content-width: 80vw;
    /* --photo-card-width: 40%; */
  }

  .intro-title {
    font-size: clamp(3.5rem, calc(2.7173913043rem + 2.6086956522vw), 5rem);
  }

  main section {
    margin: 5rem auto;
    /* 60px */
  }

  h1 {
    font-size: 4.75rem;
    /* font-size: clamp(3.5rem, calc(2.7173913043rem + 2.6086956522vw), 5rem); */

    /* 76px */
  }

  h2 {
    font-size: 3.25rem;
    /* 60px */
    line-height: 1.2;
  }

  h4 {
    font-size: 1.75rem;
    /* 36px */
  }

  h6 {
    font-size: 1.5rem;
    /* 24px */
  }

  .p-menu {
    font-size: 1rem;
    /* 20px */
  }

  .copyright {
    font-size: clamp(
      0.8125rem,
      calc(0.7798913043rem + 0.1086956522vw),
      0.875rem
    );
  }

  .p-title {
    font-size: 0.875rem;
    /* 14px */
  }

  #intro .p-large {
    max-width: 380px;
  }

  .home-cardboard {
    grid-template-columns: 1fr 1fr;
  }

  .grid-1-2-cols {
    grid-template-columns: 2fr 3fr;
  }

  #beyond-ux-ui .grid-1-2-cols {
    height: auto;
  }

  .about-content {
    column-gap: 3rem;
  }

  #about .grid-1-2-cols {
    column-gap: 28px;
  }

  .lottie-title {
    width: 100%;
  }

  #lottie-player-game {
    align-self: flex-start;
  }

  .footer-container {
    column-gap: 1rem;
    width: 560px;
  }

  .proj-header {
    grid-template-columns: 46% 46%;
    grid-template-rows: 30% 30% 30%;
    row-gap: 5%;
    column-gap: 8%;
  }

  .proj-title {
    grid-column: 1/-1;
    /* padding-right: auto; */
  }

  .proj-intro-p1 {
    grid-column: 2/-1;
    grid-row: 2/3;
    padding: 0;
  }

  .hero-image-wrapper {
    grid-column: 1/2;
    grid-row: 2/-1;
    padding: 0;
  }

  .proj-intro-p2 {
    grid-column: 2/-1;
    grid-row: 3/-1;
    padding-top: 0;
  }

  .photo-card-1-col {
    /* --photo-card-width: 90%; */
    --photo-card-width: 1;
  }

  /*
  .home-footer-container {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 4rem;
  }

  .home-footer-social {
    text-align: center;
  }

  .tab-card-logo img {
    height: 100px;
  } */
}

/* Tablet: 600 - 1199px */
@media only screen and (max-width: 1023px) {
  :root {
    /* --photo-card-width: 75%; */
    --photo-card-width: 1.33;
  }

  .header-wrapper {
    height: 64px;
  }

  .header-logo img {
    height: 48px;
  }

  h2 {
    font-size: clamp(
      1.875rem,
      calc(1.4836956522rem + 1.3043478261vw),
      2.625rem
    );
  }
  /* #intro h1,
  #intro .p-large {
    margin-right: auto;
    text-align: center;
  } */

  .photo-card-1-col {
    /* --photo-card-width: 100%; */
    --photo-card-width: 1;
  }

  /*
  #header-menu-btn {
    display: block;
    text-align: right;
    font-size: 2rem;
  }

  .header-menu {
    position: absolute;
    width: auto;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    outline: 0;
    display: none;
  }

  .header-menu-action {
    background-color: #f8f8f8;
    display: block;
    padding-left: 10%;
    padding-right: 10%;
  }

  .header-dropdown-menu {
    display: block;
    position: unset;
    box-shadow: none;
  }

  .header-menu * {
    width: max-content;
  }

  .header-dropdown-container:hover h5 {
    border-bottom: 5px solid #f8f8f8;
    color: #333333;
  }

  .header-menu a {
    border-bottom: 5px solid #f8f8f8;
  }

  .header-menu a:hover {
    border-bottom: 5px solid #1a6cb7;
  } */

  .tool-logo img {
    width: 32px;
    height: 32px;
  }

  .grid-2-cols {
    grid-template-columns: 1fr;
  }

  .p-bold {
    font-size: 1.5rem;
  }

  .list-style {
    padding-left: 0;
  }

  .home-cardboard {
    grid-template-columns: 1fr;
  }

  .tab-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .tab-card-logo {
    grid-column: 1/-1;
    grid-row: auto;
    align-self: center;
  }

  .tab-card-logo img {
    height: 120px;
  }

  .tab-card-pros {
    grid-column: 1/-1;
    grid-row: auto;
    /* text-align: left; */
  }

  .tab-card-cons {
    grid-column: 1/-1;
    grid-row: auto;
    /* text-align: left; */
  }

  .grid-5-12-col {
    grid-template-columns: 1fr;
  }

  .left-col-title {
    text-align: left;
    width: fit-content;
    border-top: 0 none;
  }
}

/* Exception for project page */
@media only screen and (max-width: 899px) {
  .lottie-player-bg-cs {
    top: 0;
    position: absolute;
    height: auto;
    width: 100%;
    z-index: -1;
    display: block;
  }

  .lottie-player-bg-c {
    display: none;
  }

  .proj-header {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    row-gap: 1%;
  }

  .proj-title {
    grid-column: 1/-1;
    grid-row: 1/2;
  }

  .hero-image-wrapper {
    grid-column: 1/-1;
    grid-row: 2/3;
  }

  .proj-intro-p1 {
    grid-column: 1/-1;
    grid-row: 3/4;
  }

  .proj-intro-p2 {
    grid-column: 1/-1;
    grid-row: 4/5;
  }

  .next-page {
    text-align: left;
    width: 90%;
    z-index: 1;
    /* grid-column: 2/-1; */
  }

  #lottie-player-upnext-s {
    display: block;
  }

  #lottie-player-upnext-white-s {
    display: none;
  }

  #lottie-player-upnext,
  #lottie-player-upnext-white,
  .next-page:hover #lottie-player-upnext-white,
  .next-page:hover #lottie-player-upnext {
    display: none;
  }

  .next-page:hover #lottie-player-upnext-white-s {
    display: block;
  }

  .next-page:hover #lottie-player-upnext-s {
    display: none;
  }

  .proj-footer .lottie-player-text {
    top: -4%;
  }
}

/* Mobile: < 600px */
@media only screen and (max-width: 599px) {
  :root {
    /* --photo-card-width: 100%; */
    --photo-card-width: 1;
  }

  .lottie-player-bg-s {
    top: 0;
    position: absolute;
    height: auto;
    width: 100%;
    z-index: -1;
    display: block;
  }

  .lottie-player-bg {
    display: none;
  }

  #lottie-player-workspace {
    transform: translate(11%, 0);
  }

  .intro-title,
  #intro .p-large {
    text-align: center;
    width: 100%;
  }

  #intro .p-large {
    max-width: 100%;
  }

  #intro :last-child {
    width: 100%;
  }

  #beyond-ux-ui .grid-1-2-cols {
    grid-template-columns: 1fr;
    grid-template-rows: 3fr 1fr;
  }

  #beyond-ux-ui h2 {
    grid-row: 2/-1;
  }

  #beyond-ux-ui #lottie-player-camera {
    grid-row: 1/2;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  #about .grid-1-2-cols {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    column-gap: unset;
  }

  /* .photo-gallery {
    -webkit-overflow-scrolling: touch;
  } */

  .footer-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
  }

  .footer-container .header-menu {
    justify-content: flex-start;
    gap: 0.9rem;
  }

  /* .copyright {
    text-align: center;
  } */

  .copyright span::after {
    content: "\A";
    white-space: pre-wrap;
  }
}
