/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.5;
  color: #444;
  background-color: #eaeaea;
}

/* Layout */
.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
header {
  width: 90%;
  margin: 1em auto;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 2em;
  font-weight: 700;
  text-decoration: none;
  color: #000;
  text-shadow: #fffeff 0 1px 2px;
}

.nav {
  display: flex;
  gap: 1.5em;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: #000;
  font-size: 1.7em;
  padding: 0.1em 0.5em;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.nav a:hover {
  background-color: #adadad;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Photo Grid */
.photo-grid {
  width: 90%;
  margin: 3em auto;
}

.row {
  display: flex;
  gap: 4%;
  margin-bottom: 2em;
}

.photo {
  display: block;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

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

.photo.wide {
  width: 58.28%;
}

.photo.tall {
  width: 37.37%;
}

.photo.full {
  width: 100%;
}

.row.triple {
  gap: 4.8%;
}

.row.triple .photo {
  width: 30%;
}

/* Footer */
footer {
  width: 90%;
  margin: 2.5em auto;
  color: #727272;
  text-shadow: #fffeff 0 1px 2px;
}

footer a {
  color: #444;
  text-decoration: none;
  border-bottom: 1px dashed #444;
}

/* Media Queries */
@media screen and (max-width: 800px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 1em;
  }

  .row {
    flex-direction: column;
    gap: 2em;
  }

  .photo.wide,
  .photo.tall,
  .row.triple .photo {
    width: 100%;
  }
}

/* Page Content */
.page-content {
  width: 90%;
  margin: 3em auto;
}

.page-content h1 {
  margin-bottom: 1em;
  font-size: 2em;
  font-weight: 700;
  text-shadow: #fffeff 0 1px 2px;
}

.page-content p {
  margin-bottom: 1.5em;
  font-size: 1.2em;
}

.page-content a {
  color: #444;
  text-decoration: none;
  border-bottom: 1px dashed #444;
}

.page-content a:hover {
  color: #000;
  border-bottom-style: solid;
}

/* Gallery */
.gallery-content {
  width: 90%;
  margin: 3em auto;
}

.gallery-content h1 {
  margin-bottom: 1em;
  font-size: 2em;
  font-weight: 700;
  text-shadow: #fffeff 0 1px 2px;
}

.gallery-description {
  margin-bottom: 2em;
  font-size: 1.2em;
}

.gallery-images {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-images li {
  margin-bottom: 2em;
}

.gallery-images img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Two Column Layout */
.two-column {
  display: flex;
  gap: 4%;
  align-items: flex-start;
}

.column {
  flex: 1;
}

.column.half {
  width: 48%;
}

.column img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 800px) {
  .two-column {
    flex-direction: column;
    gap: 2em;
  }

  .column.half {
    width: 100%;
  }
}

/* Projects Grid */
.projects-grid {
  width: 90%;
  margin: 3em auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  grid-auto-rows: min-content;
}

.project-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1em;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

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

.project-card h2 {
  margin-bottom: 0.5em;
  font-size: 1.5em;
  color: #000;
  text-shadow: #fffeff 0 1px 2px;
}

.project-card p {
  color: #444;
  font-size: 1em;
  line-height: 1.4;
}

@media screen and (max-width: 800px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 500px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
