
body {
  padding: 0;
  margin: 0;
  background: hsl(210deg 15% 6%);
  color: white;
}
h1 {
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  font-size: max(1.125rem, 3vw);
}

ul {
  padding: 0;
  list-style-type: none;
}

p {
  font-size: 0.875rem;
  &:last-of-type {
    margin-top: 1rem;
  }
}
.grid-wrapper header {
  border-radius: 4px;
  padding: 1rem;
  background: hsl(210deg 15% 12%);
  outline: 1px solid hsl(210deg 15% 25%);
  outline-offset: 1px;
}

.grid {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-template-rows: repeat(auto-fit, minmax(150px, 1fr));
  /*min-width: 37.5rem*/;
}
/*
.grid img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  outline: 1px solid hsl(210deg 15% 25%);
  outline-offset: 1px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
*/
.gallery-grid-item {
  overflow: hidden;
  border-radius: 4px;
  grid-column: 1/ 2;
  grid-row: 1 / 2;
  background-color: #1e1e1e;
  /*aspect-ratio: 4 / 5;*/ /* Forces uniform canvas blocks */
  cursor: pointer;
  border-radius: 4px;
  outline: 1px solid hsl(210deg 15% 25%);
  outline-offset: 1px;
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* Centers & scales art beautifully inside the grid */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Zoom Effect */
.gallery-grid-item:hover img {
  transform: scale(1.06);
}

/* Lightbox Fullscreen Modal */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px); /* Modern blurred background backdrop */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Triggered via JS class toggle */
.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #333;
}

#lightbox-caption {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

/* Close Utility Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ff4a4a;
}

