:root {
  --bg: #8B7D6B; /* sand grey C2B280*/
  --text: #2D2926;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 2px;
}

h1,
h2  {
  color: #2D2926;
  text-transform: uppercase;
}

p,
button,
a {
  color: #121212;
  text-transform: uppercase;
  line-height: 1.6;
  text-decoration: none;
}

/* Layout */
.page {
  text-align: center;
  margin-bottom: 40px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 20px;
  z-index: 10;
}

/* Close button */
.close-btn {
  position: absolute;
  left: 20px;
  top: 20px;
  border: none;
  background: none;
  font-size: 40px;
  cursor: pointer;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px;
}

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

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.card img:hover {
  box-shadow: 0px 0px 9px rgba(45, 41, 38, 0.72);
}

/* Footer */
.footer {
  padding: 20px;
}

/* Masonry */
.masonry {
  column-count: 2;
  column-gap: 40px;
  width: 66%;
  margin: auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 40px;
}

.masonry img {
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
}

.masonry img:hover {
  box-shadow: 0px 0px 5px rgba(45, 41, 38, 0.72);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(207, 204, 198, 0.90);

  /* background: linear-gradient( /* cinematic
    to bottom,
    rgba(207, 204, 198, 0.90),
    rgba(20,18,16,0.45)
  ); */

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  /* Using an RGBA version of your Espresso #2D2926 */
  box-shadow: 0px 0px 18px rgba(45, 41, 38, 0.72);
  border-radius: 8px; /* A tiny radius softens the digital 'sharpness' of the edges */
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  background: none;
  color: black;
  border: none;
  cursor: pointer;
}

/* About */
.about,
.about p {
  text-transform: none;
  margin: 20px;
  /* padding: 20px; */
  /* display: flex; */
  /* justify-content: center;
  align-items: center;
  height: 100vh; */
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 1;
    width: 90%;
  }
}

/* Optional: placeholder space to avoid layout shift */
.masonry-item div {
  min-height: 150px;
}