body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;
}

#content-block {
  margin: 0 auto;
  padding: 0 2rem;
}

#content-block h1 {
  margin: 2rem auto 1.5rem;
  color: #0f6ea8;
  font-size: clamp(2rem, 1.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  font-weight: 900;
  text-align: center;
}

h1.section-divider {
  margin-top: 5rem !important;
  padding-top: 4rem !important;
  border-top: 3px solid #0f6ea8;
}

#gallery {
  max-width: max-content;
  margin: 0 auto 3rem;
}

.photo-grid {
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 800px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background: #e8e8e8;
}

.photo-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.6rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.photo-before-after > h2 {
  margin: 0;
  color: #0f6ea8;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
}

.photo-before-after > h2:nth-of-type(1) {
  grid-column: 1;
}

.photo-before-after > h2:nth-of-type(2) {
  grid-column: 2;
}

.column-before,
.column-after {
  display: grid;
  gap: 1rem;
}

.column-before img,
.column-after img {
  display: block;
  width: 100%;
  height: 800px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  background: #e8e8e8;
}

@media (max-width: 900px) {
  #content-block {
    padding: 0 1rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .photo-grid img {
    height: 260px;
  }

  .photo-before-after {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-before-after > h2:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .photo-before-after > h2:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .column-before {
    grid-column: 1;
    grid-row: 2;
  }

  .column-after {
    grid-column: 2;
    grid-row: 2;
  }

  .column-before img,
  .column-after img {
    height: 360px;
  }
}
