/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    padding: 20px;
    max-width: 1336px;
}

.location {
  font-size: 23px;
  font-weight: 100;
  margin-bottom: 18px;
}

.details {
  font-size: 18px;
  font-weight: 700;
}

/* Navigation bar */
nav {
    background-color: #fff;
    border-bottom: 2px solid #222; /* Strong, intentional border to reflect line weight discipline */
    padding: 15px;
}

nav ul {
    display: flex;
    list-style-type: none;
    justify-content: flex-start;
    align-items: center;
}

nav li {
    padding: 0 15px;
    font-weight: 500;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    border-bottom: 1px solid transparent; /* Subtle underline for precision */
    transition: border-bottom 0.3s, color 0.3s;
}

nav a:hover {
    color: #000;
    border-bottom: 1px solid #000; /* Line weight emphasis on hover */
}

nav a.active{
    color: #000;
    border-bottom: 1px solid #000; /* Line weight emphasis on hover */
}

/* Main content */
main {
    padding: 50px 0;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: 100;
  font-size: 14px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Header Styles */
h1 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 2px;
    color: rgb(54, 192, 251);
    border-bottom: 2px solid #222; /* Strong line under header */
    padding-bottom: 10px; /* Adds breathing room to emphasize line separation */
}

h1 span {
    color: rgb(234, 137, 9);
}

p {
    font-size: 1.1rem;
    max-width: 100%;
    margin-bottom: 30px;
    line-height: 1.8; /* Slight increase for readability and clean spacing */
}

section {
  margin-bottom: 30px;
}

/* Emphasis on line weights for key sections */
hr {
    margin-bottom: 8px;
    border: none;
    height: 1px;
    background-color: #333; /* Simple, precise dividers */
}

figure {
  border-bottom: 1px dotted black;
  margin-bottom: 30px;
}

figure img {
  max-width: 100%;
}

/* Side menu styling */
.side-menu {
    position: fixed;
    top: 100px;
    left: 0;
    width: 220px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
}

.side-menu ul {
    list-style-type: none;
}

.side-menu ul li {
    margin-bottom: 25px;
}

.side-menu ul li a {
    text-decoration: none;
    color: #222;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05rem; /* Slight tracking to emphasize modernist influence */
    border-left: 3px solid transparent;
    padding-left: 10px;
    transition: border-left 0.3s, color 0.3s;
}

.side-menu ul li a:hover {
    color: #000;
    border-left: 3px solid #222;
}

.side-menu ul li a.active {
  color: #000; /* Same color as hover */
  border-left: 3px solid #222; /* Same border as hover */
}

.container {
     display: flex;
} 

.project-sections {
    margin-left: 260px; /* To make space for the side menu */
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.no-decoration {
  text-decoration: none;
  color: inherit;
}

/* Thumbnail styling */ 
.thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; /* space between the images */
  margin-top: 20px; /* add space above the grid */
  margin-bottom: 60px;
}

.thumbnails img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0px; /* optional rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* optional shadow for a polished look */
}
.principle {
  width: 100%;
  max-width: 480px;
  margin-bottom: 60px;
  box-shadow: -5px 5px 5px lightgray;
}
dialog {
  width: 80%;
  max-width: 800px; /* Optional: set a max width if desired */
  border: none;
  padding: 0;
  overflow: hidden;
  position: fixed; /* Fix the dialog in the viewport */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the dialog */
  margin: 0; /* Remove margins to avoid shifting */
}

dialog img {
  width: 100%;
  height: auto; /* Maintain the aspect ratio */
  object-fit: contain;
  display: block;
}

/* Style for the dialog element */
#imageDialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  outline: none; /* Removes the focus outline */
  
  /* Reset all potential border styling */
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  
  /* This prevents any margin that might create space around the image */
  margin: 0;
  
  /* Ensure no overflow */
  overflow: visible;
}

/* This targets the backdrop of the dialog when it's open */
#imageDialog::backdrop {
  background-color: rgba(0, 0, 0, 0.7); /* Black with 70% opacity - adjust as needed */
}

/* Style for the image inside the dialog */
#dialogImage {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  
  /* Reset all border-related properties */
  border: none;
  border-radius: 0;
  
}

/* Remove focus styles from both dialog and image */
#imageDialog:focus,
#imageDialog:focus-visible,
#dialogImage:focus,
#dialogImage:focus-visible {
  outline: none;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none;
}

/* Override any user agent stylesheet that might be adding those borders */
#imageDialog::before,
#imageDialog::after {
  display: none !important;
  content: none !important;
  border: none !important;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  color: white;
  border: none;
  border-radius: 50%; /* Makes buttons circular */
  width: 50px;
  height: 50px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, opacity 0.3s;
  z-index: 10; /* Ensure buttons are above the image */
}

/* Position for previous button (left side) */
.prev-button {
  left: 20px;
}

/* Position for next button (right side) */
.next-button {
  right: 20px;
}

/* Hover effect */
.nav-button:hover {
  background-color: rgba(0, 0, 0, 0.8); /* Darker background on hover */
}

/* Responsiveness */
@media (max-width: 824px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
  }

    h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    p {
        font-size: 1rem;
    }
    .container {
      display: flex;
      flex-direction: column;
    }
    .side-menu {
        width: 100%;
        max-width: 100vw;
        position: static;
        padding: 10px 0;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .side-menu ul {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        padding: 0;
    }
    .side-menu ul li a.active {
      color: #000; /* Same color as hover */
    }

    .project-sections {
        margin-left: 0;
        padding: 10px;
    }

}
