/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Abel", sans-serif;
  line-height: 1.6;
  color: #033142;
  background: url("/images/painting1.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* Remove any default white backgrounds from wrappers */
body > div,
main,
.wrapper {
  background: none; /* ensures nothing covers the background image */
}

/* Bio Section */
.bio {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.65); /* translucent glassy */
  backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column; /* header on top */
  gap: 1.5rem;
}

.artist-name {
  font-family: "Shadows Into Light", cursive;
  font-size: 2.4rem;
  color: #033142;
  text-align: center; /* header centered */
  margin-bottom: 1rem;
}

.bio-content {
  display: flex;
  flex-direction: row; /* image + text side by side */
  gap: 2rem;
  align-items: center; /* vertically center image relative to text */
}

.artist-photo {
  max-width: 240px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  background: none;
  flex-shrink: 0;
}

.bio-text {
  flex: 1;
}

.bio-text p { margin-bottom: 1rem; }

/* Bottom Section (Form + Gallery side by side) */
.bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.65); /* translucent glassy */
  backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Contact Form */
.contact-form {
  background: rgba(3,49,66,0.92);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-form h2 {
  font-family: "Shadows Into Light", cursive;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #f4ce5f;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  font-family: "Abel", sans-serif;
  margin-bottom: 0.5rem;
}

/* Bigger, responsive textarea for project description */
.contact-form textarea {
    width: 100%;
    height: 180px;         /* default larger height */
    max-height: 300px;     /* prevent it from growing too large */
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    font-family: "Abel", sans-serif;
    margin-bottom: 0.5rem;
    resize: vertical;      /* user can still resize vertically */
    box-sizing: border-box; /* ensures padding doesn’t break width */
  }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #3DC0F1;
}

.contact-form button {
  background: #3DC0F1;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  margin-top: 1rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: #e6322b;
  transform: scale(1.05);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1; /* ensures square grid */
  object-fit: cover;   /* crop to fit square */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  position: fixed;
  bottom:0;
  width:100%;
  height:2vh;
  font-size:1.5vh;
  color:#fff;
  background:#000;
  text-align:right;
  opacity:0.6;
  padding-right:10px;
}


/* Hide last gallery image if it would create incomplete row on mobile */
@media (max-width: 768px) {
  .bio-content { flex-direction: column; align-items: center; }
  .artist-photo { margin-bottom: 1rem; }
  .bottom-section { grid-template-columns: 1fr; }

  /* Gallery 2 columns on mobile */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery img:last-child {
    display: none; /* hides extra image to keep grid square */
  }
}
