* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Century Schoolbook', 'New Century Schoolbook', Georgia, serif;
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: #e0e0e0;
  background: #000000;
  font-weight: 400;
}

/* Headings: Courier Prime — raw, typewriter contrast */
h1, h2, h3 {
  font-family: 'Courier', monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

header {
  text-align: center;
  padding: 8rem 1rem;
  background: #000;
  border-bottom: 2px solid #222;
}

header h1 {
  font-size: 4.5rem;
  margin: 0;
}

header p {
  font-size: 1.5rem;
  opacity: 0.85;
  margin-top: 1.2rem;
  font-family: 'Century Schoolbook', 'New Century Schoolbook', Georgia, serif;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

/* Image left + text right */
#image,
.image-container {
  float: left;
  width: 50%;
  max-width: 650px;
  margin-right: 3rem;
  margin-bottom: 3rem;
}

#image img,
.image-container img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
}

/* Text block */
#text,
.text-container {
  overflow: hidden;
  padding: 1.5rem 0;
  color: #e0e0e0;
}

p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2.5rem;
}

ul li {
  margin-bottom: 1.6rem;
  position: relative;
  padding-left: 2.4rem;
  font-size: 1.15rem;
}

ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-family: 'Courier', monospace;
  font-weight: 700;
}

/* Links: Courier Prime */
a {
  font-family: 'Courier', monospace;
  color: #7777ff;
  text-decoration: none;
  transition: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#links
{
  margin-top: -5em;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 5rem 1rem;
  background: #000;
  color: #666;
  border-top: 2px solid #222;
  margin-top: 6rem;
  font-family: 'Courier', monospace;
}

footer a {
  color: #7777ff;
}

footer a:hover {
  color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
  #image,
  .image-container {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 4rem 0;
  }

  main {
    padding: 3rem 2rem;
  }

  header h1 {
    font-size: 3.5rem;
  }
}


/* ==========================================================================
   PORTFOLIO GRID FIX
   ========================================================================== */

/* Wrapper for portfolio images */
.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1600px; /* adjust if you want wider/narrower grid */
  padding: 0 1rem;
}

/* Each image container */
.img {
  overflow: hidden;
  position: relative;
  border: none;
}

/* Images inside grid */
.img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* keeps aspect ratio nice, crops if needed */
  transition: transform 0.3s ease;
}

/* Optional hover effect for interactivity */
.img img:hover {
  transform: scale(1.05);
}

/* Modal styling (your zoom feature) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Back button styling (optional enhancement) */
.backbutton {
  margin-top: 2rem;
}

.backbutton a {
  font-family: 'Courier Prime', monospace;
  color: #7777ff;
  text-decoration: none;
  margin-left: 1em;
  font-size: 1.2rem;
}

.backbutton a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer (if you want it to match) */
#footer {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-family: 'Courier Prime', monospace;
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .wrapper {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  .wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
