/* Make sure HTML and Body take full height */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Center the content */
body {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  /* Centers horizontally */
  align-items: center;
  /* Centers vertically */
  background-color: #212121;
  min-height: 100vh;
  /* Ensures full height */
  padding: 20px;
  /* Ensures space on all sides */
  box-sizing: border-box;
  /* Prevents overflow issues */
}

.container {
  width: 90%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Artwork box */
.artwork {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 0px;
  border-radius: 8px;
  box-shadow: 0px 0px 32px 8px black;
  margin-bottom: 0px;
  /* Ensures space below */
}

/* Artwork image */
.artwork img {
  width: 100%;
  border-radius: 8px;
}

/* Artwork text content */
.artwork-info {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 0px;
  margin-top: 12px;
}

/* Adjusting text appearance */
.artwork p {
  color: #555;
}

.artwork-info h1 {
  margin: 3px;
  padding-bottom: 24px;
}
.artwork-info p {
  margin: 3px;
}

/* Details section */
.artwork-details {
  display: table;
  width: 100%;
  margin-top: 10px;
}

.artwork-details div {
  display: table-row;
}

.artwork-details span {
  display: table-cell;
  padding: 3px 5px;
}

.artwork-details span:nth-child(1) {
  /* Label */
  font-weight: bold;
  color: #1d1616;
  width: 10px;
}

.artwork-details span:nth-child(2) {
  /* Colon */
  font-weight: bold;
  color: #1d1616;
  width: 10px;
  text-align: center;
}

.artwork-details span:nth-child(3) {
  /* Explanation */
  color: #555;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    width: 100%;
    /* Make mobile version take more space */
  }

  .artwork {
    padding: 20px;
  }
}

/* Desktop layout */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-top: 50px;
    height: 70%;
    width: 50%;
  }

  .artwork {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  

  .artwork img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
  }  
  
}