*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
  
html, body {
  height: 100%;
  font-family: sans-serif;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
}

.site-header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  min-width: 100%;    
  background-color: #858787;
}


.nav-links {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 1rem;
}
  
.nav-links a {
  white-space: nowrap;
  color: #535556;
  text-decoration: none;
  transition: 0.2s;
}
  
.nav-links a:hover {
  color: rgb(0, 0, 0);
}
  
.logo {
  font-family: serif;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.contact-page {
  display: flex;
  flex-direction: column;  
  align-items: center;
  justify-content: flex-start; 
  min-height: 100vh;
  padding: 3rem;
  background-color: #ffffff;
  color: rgb(100, 100, 100);
  font-family: sans-serif;
}


.contact-section {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 1000px;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 300px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
  margin-top: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  background-color: #cecece;
  border: none;
  padding: 0.5rem;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  background-color: #cecece;
  color: black;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  align-self: start;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 1rem;
}

.contact-info a {
  color: #717171;
  text-decoration: none;
  transition: 0.2s;
}
  
.contact-info a:hover {
  color: rgb(0, 0, 0);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-form, 
  .contact-info {
    min-width: 100%;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.painting-page {
  padding: 3rem;
  background-color: #c7dee7;
  color: rgb(84, 106, 107);
  font-family: sans-serif;
}

.painting-content {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.painting-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.painting-details h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.painting-details p {
  margin: 0.5rem 0;
}

.buy-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1rem;
  background-color: #9a9a9a;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

.buy-link:hover {
  background-color: #bdbdbd;
}


.carousel {
  position: relative;
  width: 80%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto; 
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
  z-index: 0;
}

.carousel img.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
  z-index: 1;
}

.carousel button {
  color: rgb(51, 51, 51);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem 0.8rem;
  z-index: 2;
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}


.carousel .dzi-viewer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background-color: #ffffff; 
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
  z-index: 0;
}

.carousel .dzi-viewer.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
  z-index: 1;
}

.send-info {
  text-indent: 1rem;
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
  font-size: 1rem;
}
