* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.font-outfit-normal {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-size: 14;
  font-weight: 270;
  font-style: normal;
}

.font-outfit-light {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-style: italic;
}

/* LOGO */
.logo {
  position: fixed;
  top: 12px;
  right: 12px;
  color: white;
  z-index: 999;
  width: 75px;
}
.logo-link {
  display: block;
}
.logo img {
  width: 100%;
}
/* Dropdown */

.logo-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-100px);
  text-align: end;
  width: 75px;

  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
}
.logo-dropdown-inner {
  overflow: hidden;
}
.logo-dropdown a {
  display: block;

  padding: 6px 2px;

  color: grey;
  text-decoration: none;
  transition: background 0.2s ease;
}

.logo-dropdown a:hover {
  text-decoration: underline;
}
.logo:hover .logo-dropdown,
.logo:focus-within .logo-dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
/* HERO SECTION */
.hero {
  top: 0;
  left: 0;
  width: 100%;
  height: 130vh;
  background-color: rgb(207, 207, 207);
  z-index: 1;
}
ul {
  list-style: none;
}
li {
  list-style: none;
}
/* SIDE PANEL */
.side-panel {
  display: flex;
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.5);
  color: black;
  padding: 90px 40px 10px 70px;
  transition:
    right 0.5s ease,
    width 0.5s ease;
  z-index: 3;
}

/* Appear after hero */
.hero.scrollable {
  position: relative;
}
.side-panel.active {
  right: 0;
}
.side-panel.narrow {
  right: 0;
  width: 100px;
}
/*
.side-panel.narrow.panel-content {
  opacity: 0;
  pointer-events: none;
}
*/
/* PANEL CONTENT */
.bio {
  transition: opacity 0.3s ease;
  display: block;
}
.bio.collapse {
  display: none;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
}
.container-photo {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.content-column {
  display: flex;
  width: calc(100% - 500px);
  min-width: 400px;
  overflow: auto;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding-left: 5px;
  padding-right: 5px;
}
.content-column img {
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: block;
}

nav {
  width: 270px;
  padding: 15px;
  z-index: 9999;
  top: 0px;
  position: fixed;
}
.nav-content {
  padding-top: 10px;
  padding-left: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
a {
  text-decoration: none;
  color: grey;
  font-size: 12px;
  font-weight: 500;
}
.hamburger {
  position: fixed;
  left: 20px;
  top: 10px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  pointer-events: stroke;
  color: grey;
  font-weight: 600;
  z-index: 9999;
  font-size: 35px;
  display: none;
}
@media (max-width: 768px) {
  nav {
    position: fixed;
    left: 0;

    width: calc(100vw - 50px);
    height: 70px;
    padding: 0 15px;

    background: transparent;
    z-index: 9999;
  }

  .hamburger {
    display: block;

    position: absolute;
    top: 10px;
    left: 20px;

    width: 40px;
    height: 40px;
    padding: 0;

    background: transparent;
    border: none;
    color: grey;

    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
  }

  .nav-content {
    position: absolute;
    top: 20px;
    left: 60px;
    right: 170px;

    width: calc(100vw - 230px);
    height: auto;
    padding: 10px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  nav:hover .nav-content,
  nav:focus-within .nav-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav a {
    display: block;
    margin: 0;
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .nav-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 2px;
    height: auto;
    align-items: center;
    right: 80px;
    width: calc(100% - 140px);
  }
}

.menu a img {
  width: 24px; /* adjust size */
  height: 24px;
  display: block;
}

p {
  font-size: 14px;
  line-height: 1.7;
  padding-bottom: 10px;
}

h2 {
  font-weight: 300;
  font-size: 24px;
  color: rgba(103, 103, 103);
  align-self: center;
  margin: 15px;
}
h3 {
  font-size: 16px;
  font-weight: 400;
  color: rgb(176, 175, 175);
}

.icon-bar {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding-top: 5px;
}

/* project pages */

.sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  width: 270px;
  background-color: white;
  color: rgba(103, 103, 103);
  padding: 30px 30px 20px 25px;
}
.note {
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
  padding-top: 20px;
}
.note-text {
  align-self: flex-end;
  font-size: 14px;
  line-height: 1.2;
  text-align: right;
}

.project {
  display: block;
  align-self: flex-end;
  margin-left: 270px; /* same as sidebar width */
  width: calc(100% - 270px);
  background-color: #f5f5f5;
}
.webpage {
  display: flex;
  flex-direction: row;
}

.footnote {
  width: 100%;
  z-index: 9998;
  font-size: 16px;
  cursor: pointer;
  color: #333;
  margin: 2px;
  background-color: aeaeae;
  text-align: right;
}

.notebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  bottom: 10px;
  right: 20px;
  z-index: 1000;
  margin-top: 15px;
  margin-right: 10px;
}
@media (max-width: 768px) {
  .webpage {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .project {
    width: 100%;
    margin-left: 0px;
  }
}

.open-page {
  margin-bottom: 20px;
  background: white;
}

a {
  text-decoration: none;
  color: grey;
  font-size: 12px;
  font-weight: 500;
}

img {
  max-width: 100%;
}

.row {
  width: 100%;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.grid-3 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0px 20px 0px 20px;
}
.grid-2 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0px 20px 0px 20px;
}
@media (max-width: 768px) {
  .grid-3 {
    gap: 4px;
  }
  .grid-2 {
    gap: 4px;
  }
}
.column {
  width: 100%;
  display: flex;
  gap: 6px;
  flex-direction: column;
}

summary {
  font-size: 16px;
  cursor: pointer;
  color: #333;
  margin: 2px;
  padding: 10px;
  border: 2px solid grey;
  background-color: aeaeae;
}

.card {
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* transparent layer */
.overlay {
  text-align: center;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s ease;
  padding: 20px;
}

/* show on hover */
.card:hover .overlay {
  opacity: 1;
}

/* optional image zoom effect */
.card img {
  transition: 0.3s ease;
}

.card:hover img {
  transform: scale(1.03);
}

.book-gallery {
  display: flex;
  overflow-x: auto;
  width: 100%;
  height: 50%;
  gap: 10px;
  scroll-snap-type: x mandatory;
  box-sizing: border-box;
}
.book-gallery::-webkit-scrollbar {
  display: block;
}

.page {
  background: white;
  height: 300px;
  flex-shrink: 0;

  position: relative;

  scroll-snap-align: center;

  transition: 0.5s;
}

/* image */
.page img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

button {
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  background-color: #f5f5f5;
  text-align: left;
  margin: 2px;
  padding: 10px;
  border: 2px solid grey;
  background-color: aeaeae;
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-size: 14;
  font-weight: 270;
  font-style: normal;
}
.board {
  position: relative;
  background-color: rgb(191, 191, 191);
  overflow: hidden;
  height: 700px;
  margin: 5%;
}
.board-flex {
  align-items: center;
  display: flex;
  position: absolute;
  width: 100%;
  height: 700px;
  margin: 5px;
}

.gallary {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 4%;
  padding-top: 30px;
  justify-content: space-around;
}

.gallary-cover {
  max-width: 430px;
  min-width: 200px;
}

.gallary-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 35px;
  margin-top: 20px;
  padding-right: 25px;
}
.gallary p {
  color: rgb(176, 175, 175);
  text-align: center;
}
.gallary h3 {
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.gallary-justify {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1107px;
  flex-direction: row;
  flex-wrap: wrap;
  padding-left: 4%;
  padding-right: 4%;
}
.gallary-justify img {
  width: 100%;
  height: auto;
  flex-shrink: 1;
  max-width: 350px;
  min-width: 200px;
  margin: 10px;
}

@media (max-width: 827px) {
  .gallary-justify img {
    max-width: 750px;
  }
}

/*
.pattern {
  position: absolute;
  padding: 10px;
  margin: 10px;
  height: 70%;
  top: 20%;
  right: 30%;
  box-sizing: border-box;
}
*/
/* SLIDE
.book-gallery {
  position: relative;
  display: flex;
  overflow-x: hidden;
  width: 100%;
  height: 400px;
  gap: 10px;
  padding: 10px;
  /*
  scroll-snap-type: x mandatory;
  box-sizing: border-box;
}
.book-gallery::-webkit-scrollbar {
  display: none;
  
}

.page {
  background: white;
  height: 300px;
  flex-shrink: 0;

  position: absolute;

  scroll-snap-align: center;
  opacity: 0;
  transition: 0.5s;
}
.page img {
  height: 100%;
  width: auto;
  object-fit: cover;
}
.page.active {
  opacity: 1;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;

  padding: 10px 15px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}
*/
model-viewer {
  width: 100%;
  height: 100vh;
  --poster-color: transparent;
  --background-color: transparent;
  background-size: cover;
  background-image: url("../project-eman/digital-assets/pattern-layout.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

#reset-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

.starter {
  display: flex;
  width: 90%;
  align-items: center;
  justify-content: center;
  margin: 60px 20px 5px 20px;
  border-bottom: 1px solid rgba(103, 103, 103);
}

.starter h2 {
  font-weight: 240;
}
