body {
  background-color: #ffffff;
  /* Set body to white to cover the top padding */
}

/* Ensure the main area gets the intended background color */
.asset-viewer,
.about-section {
  background-color: #ffffff;
}

.asset-viewer {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

@media (max-width: 768px) {
  .asset-viewer {
    flex-direction: column;
  }
}

#asset-display {
  flex: 0 0 50%;
  /* Explicitly take 50% of the space */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

#asset-display img,
#asset-display canvas {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.asset-info {
  flex: 0 0 50%;
  /* Explicitly take 50% of the space */
  text-align: left;
  padding-left: 0;
  /* Changed from 20px to 0 */
}

.asset-info h1 {
  font-size: 32px;
  /* Adjusted font size for better visibility */
}

#asset-description {
  white-space: pre-line;
  line-height: 1.75;
  word-break: keep-all;
}

html.in-iframe,
body.in-iframe {
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  /* Prevent horizontal overflow */
  background-color: #ffffff !important;
  /* Set desired background color */
}

body.in-iframe {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

body.in-iframe .nav,
body.in-iframe .footer {
  display: none !important;
}

body.in-iframe main {
  padding: 0 20px 20px 20px !important;
  /* Removed top padding, kept Add padding to left, right, bottom for main content */
  margin: 0 !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  /* Ensure main adapts to available width */
  width: 100% !important;
  /* Ensure main adapts to available width */
}

body.in-iframe .container {
  padding: 0 !important;
  margin: 0 !important;
  /* Remove center alignment if any */
  max-width: 100% !important;
  /* Allow container to take full width of iframe */
  width: 100% !important;
  /* Ensure container adapts to available width */
  border: none !important;
  /* Remove any border */
  border-radius: 0 !important;
  /* Remove any rounded corners */
  box-sizing: border-box !important;
}

body.in-iframe .asset-viewer {
  padding: 0 !important;
  /* Ensure asset-viewer itself has no padding */
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  /* Set desired background color for the viewer */
}

@media (max-width: 768px) {
  #asset-title {
    font-size: 24px;
    /* Slightly smaller font size for mobile */
  }
}
