/* ===== BASIC STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  padding: 20px;
}

/* ===== LAYOUT ===== */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5 {
  margin-bottom: 15px;
  color: #222;
}

h1 {
  font-size: 2em;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

/* ===== PARAGRAPHS AND TEXT ===== */
p {
  margin-bottom: 15px;
}

/* ===== LINKS ===== */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== GALLERY STYLES ===== */
.gallery-masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.gallery-image {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Optional: Add a caption for each image */
.gallery-image {
  position: relative;
  overflow: hidden;
}

.gallery-image::after {
  content: attr(alt);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image:hover::after {
  opacity: 1;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .layout {
    padding: 10px;
  }
  .gallery-image {
    width: 100%;
  }
}
