body { background: #f5f5f5; color: #222; }
.gallery-card { background: white; }


/* masonry layout */
/*
.images {
  column-count: 3;
}
.images img {
  margin-bottom: 10px;
}
*/


body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-card:hover {
  background: #333;
  transform: scale(1.03);
}

.portfolio-header {
  margin-bottom: 20px;
}

.images {
  /*column-width: 300px;
  column-gap: 15px;

  grid-template-rows: masonry;
  grid-template-columns: masonry;*/

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.images a,
.images img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: 0.3s;

  /*margin-bottom: 15px;
  break-inside: avoid;*/
}

.images img:hover {
  transform: scale(1.05);
}

button {
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #444;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background: #666;
}


.text-outline {
  color: white;
  /*text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);*/
  /* https://designshack.net/articles/css/12-fun-css-text-shadows-you-can-copy-and-paste/ */
  text-shadow: 0px 0px 6px rgba(83, 83, 83, 0.7);
}

/* https://codesalad.dev/blog/how-to-create-an-image-lightbox-in-pure-css-25 */
.lightbox {
  /* Default to hidden */
  display: none;

  /* Overlay entire screen */
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* A bit of padding around image */
  padding: 1em;

  /* Translucent background */
  background: rgba(0, 0, 0, 0.8);
}

/* Unhide the lightbox when it's the target */
.lightbox:target {
  display: block;
}

.lightbox span {
  /* Full width and height */
  display: block;
  width: 100%;
  height: 100%;

  /* Size and position background image */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}





.row {
  display: flex;
  width:100%;
  max-width: 1440px;
}

.column {
  display: flex;
  flex-direction: column;
  margin: 0.25rem;
}
.item {
  margin-bottom: 0.25rem;
  outline: none;
}
  .item > img {
    width: 100%;
    border-radius: 12px;
  }