nter* { margin:0; padding:0; box-sizing:border-box; }
body, html { height:100%; width:100%; font-family:Helvetica, Arial, sans-serif; background:#fff; }
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.left {
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo { width:120px; margin-bottom: 0px; }

.titles h1 {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0px;
}
.titles h2 {
  font-size: 0.6rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 100px;
}

.menu a {
  display:block;
  font-weight: 600;
  margin: 8px 0;
  text-decoration: none;
  color: #000;
}
.menu a:hover { text-decoration: underline; }

.intro {
  margin-top: 200px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 50%;
}

.contact { margin-top: auto; font-size:0.95rem; line-height:1.5; }

.right {
  width: 70%;
  position: relative;
  overflow: hidden;
  background: white;
}

.carousel img {
  position:absolute;
  top:50%;
  left:50%;
  width:auto;
  height:100%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel img.active { opacity: 1; }



.cv-image {
  width: 150%;
  height: auto;
  max-height: 150%;
  object-fit: contain;
  display: block;
  padding: 20px; /* Optional: Adjust or remove for tighter fit */
}
  
 /* max-width: 120%;
  max-height: 120%;
  width: auto;
  height: auto;
  display: block;
  align-items: center;
  margin: auto;
  object-fit: contain;*/

.right img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 80px 40px 40px 40px;
  overflow-y: scroll;
}

.project-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: black;
  cursor: pointer;
  transition: opacity 0.3s;
}

.project-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Forces a 4:3 ratio for ALL thumbnails */
  object-fit: contain;
  display: block;
}

.project-thumb span {
  margin-top: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center; 
}

.project-thumb:hover {
  opacity: 0.7;
}
