/* General layout and styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
}

.hud-container {
  max-width: 1400px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hud-header-img,
.hud-subheader-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hud-text-block {
  font-size: 1.1rem;
  margin-bottom: 30px;
  padding: 0 10px;
}

.hud-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.hud-caption-row {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0 10px;
}

.hud-caption-row > div {
  flex: 1 1 45%;
}

/* Image responsiveness */
.img-size {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: contain;
}

/* Set initial widths and maintain aspect ratios */
.closet-dim {
  max-width: 485px;
  aspect-ratio: 485 / 364;
}

.closet-drawing {
  max-width: 430px;
  aspect-ratio: 430 / 364;
}

.elevation-ab {
  max-width: 680px;
  aspect-ratio: 680 / 400;
}

.elevation-c {
  max-width: 302px;
  aspect-ratio: 302 / 400;
}

.hud-form-wrapper {
  margin-top: 40px;
  text-align: center;
  padding: 0 10px;
}

/* Responsive behavior for small screens */
@media (max-width: 900px) {
  .hud-row {
    flex-direction: column;
    align-items: center;
  }

  .hud-caption-row > div {
    text-align: center;
  }
}

.img-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.img-caption {
  font-size: 1rem;
  text-align: center;
  margin-top: 8px;
  color: #333;
}