@import url("./reset.css");

@font-face {
  font-family: "roboto";
  src: url("/assets/fonts/Roboto-VariableFont_wdth,wght.ttf");
  font-weight: 100;
}

html {
  font-size: 100%;
}

body {
  background-color: #070013;
  color: #fbc6c3;
  font-family: "roboto";
}

body.inverted {
  background-color: #fcfbf9;
  color: #070013;
}

body.inverted #project_desc {
  background-color: #fcfbf9;
  color: #070013;
  border: #070013 solid 1px;
}

body.inverted #project_desc a {
  color: #070013;
}

body.inverted #back {
  border: #070013 1px solid;
}

h1 {
  font-size: 1.25rem;
}

h2 {
  font-size: 1rem;
}

p {
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  font-weight: lighter;
}

a:hover {
  text-decoration: underline;
}

#name {
  color: #d51f16;
  font-size: 1.25rem;
  position: fixed;
  top: 0;
  right: 1%;
  padding-right: 1%;
  z-index: 1100;
}

#navmenu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 1%;
  width: 20%;
  max-height: 100vh;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  font-size: 10pt;
  overflow: scroll;
}

#navmenu a {
  transition: all 0.2s ease;
  margin-bottom: 1%;
}

#about_nav,
#project_nav,
#media_nav {
  padding-top: 1%;
  padding-bottom: 3%;
}

.title {
  color: #d51f16;
  font-size: 1.15rem;
}

#back {
  width: 20%;
  padding: 1%;
  font-size: 1rem;
  border: #fbf9f0 1px solid;
}

#lamp {
  width: 12%;
  max-height: 15vh;
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 7%;
}

#underconstruction {
  width: 25%;
  display: block;
  margin: auto;
  margin-top: 15%;
  text-align: center;
}

#underconstruction img {
  width: 25%;
   display: block;
  margin: auto;
}

#joan5000 {
  align-self: center;
  width: 50%;
  justify-self: center;
  text-align: center;
}

.project_img img:hover {
  opacity: 0.5;
  transition: all 0.5s ease;
}

.link {
  color: #2f2e2a;
  text-decoration: underline;
}

#info {
  padding: 1%;
  width: 65%;
  margin-left: 25%;
  margin-right: 5%;
  margin-bottom: 5%;
  display: grid;
  grid-template-rows: auto auto auto auto;
  grid-template-columns: 15rem 35% 35%;
  grid-gap: 0;
  row-gap: 5%;
  transition: all 0.2s ease;
}

#headshot {
  padding-top: 10%;
  grid-row: 1;
  grid-column: 1;
  align-self: first baseline;
  width: 50%;
}

#bio {
  grid-row: 1;
  grid-column: 2 / 4;
  width: 100%;
  transition: all 0.2s ease;
}

#pdf {
  grid-row: 2;
  grid-column: 1;
  align-content: first baseline;
}

#pdf img {
  width: 40%;
  justify-self: center;
}

#pdf_text {
  grid-row: 2;
  grid-column: 2 / 4;
  transition: all 0.2s ease;
}

#phone {
  grid-row: 1;
  grid-column: 1;
}

#phone img {
  width: 50%;
  justify-self: center;
}

#phone_text {
  grid-row: 1;
  grid-column: 2 / 4;
  transition: all 0.2s ease;
}

#site {
  grid-row: 6;
  grid-column: 1 / 5;
  transition: all 0.2s ease;
  padding-bottom: 10%;
}

#projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(40vw, 22rem), 1fr));
  width: 75%;
  margin-top: 3%;
  margin-left: 25%;
  transition: all 0.2s ease;
}

#project_desc {
  background-color: #070013;
  color: #fbc6c3;
  width: 30%;
  position: fixed;
  top: 1%;
  left: 1%;
  z-index: 1000;
  border: #fbf9f0 1px solid;
  padding: 1%;
  overflow-y: scroll;
}

#project_desc a {
  color: #fbc6c3;
}

#project_page {
  width: 75%;
  margin-top: 3%;
  margin-left: 25%;
  transition: all 0.2s ease;
}

.project_img,
.exhibition_img {
  margin: 3%;
  aspect-ratio: 2/ 1;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50vw, 25rem), 1fr));
  gap: 1rem;
  width: 75%;
  margin-left: 15%;
  transition: all 0.2s ease;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: #ddd;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  opacity: 0.5;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #07001372;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fbc6c3;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  line-height: 1;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #fbc6c3;
  cursor: pointer;
  background: #070013;
  border: none;
  padding: 20px;
  border-radius: 4px;
  transition: background 0.2s;
  user-select: none;
}

.lightbox-nav:hover {
  background: #070013;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fbc6c3;
  font-size: 16px;
  background: #070013;
  padding: 8px 16px;
  border-radius: 20px;
}

/* Default styles for larger screens */
#navmenu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

#about_nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Styles for smaller screens */
@media (max-width: 768px) {
  #navmenu {
    display: none;
  }

  #about_nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #070013;
    padding: 10px;
  }

  #about_nav h2 {
    margin-bottom: 10px;
  }

  #about_nav a {
    display: block;
    text-align: center;
    margin-bottom: 10px;
  }

  #lamp {
    position: absolute;
    top: 10px;
    left: 10px;
  }
}
