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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  min-width: 320px;
}

.columns-container {
  column-count: 4;
  column-gap: 0;
  width: 100%;
  max-width: 100%;
  padding-left: 0; /* change this from 20px to 0 */
}


.rectangle {
  box-sizing: border-box;
  margin-bottom: 0;
  break-inside: avoid;
}

.rectangle img {
  width: 100%;
  height: auto;
  display: block;
}

.rectangle a {
  display: block;
  text-decoration: none;
  color: #333;
}

.rectangle a.text-post {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  background-color: #f2f2f2;
  color: #333;
  font-size: 18px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .columns-container {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .columns-container {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .columns-container {
    column-count: 1;
  }
}

.details-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 0;
}

header {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
}

header h1 {
  font-size: 4.5vw;
  margin: 0;
  word-wrap: break-word;
  max-width: 100%;
}

.image-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .image-content img {
    max-width: 100%;
    height: auto;
  }
}

.image-content, .text-content {
  position: relative;
  top: 40px;
}

.image-content {
  position: relative;
  top: -10px;
}

.text-content {
  padding: 0 20px;
  padding-left: 50px;
}

.back-link {
  position: absolute;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2px 10px 1px 15px;
  border-radius: 5px;
  transition: opacity 0.2s ease-in-out;
  top: 20px;
  left: 10px;
}

.back-link:hover {
  opacity: 0.8;
}

.back-link a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.blurb {
  margin: 10px 0 20px 0;
}
