/* === Global Styles === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  background-color: #fff;
  color: #333;
  display: flex;
  min-height: 100vh;
}

/* == Typography === */
h1, p {
  margin-bottom: 10px;
  line-height: 1.6;
}
h1 {
  text-align: center;
  margin-top: 0px;
}
h2 {
  text-align: center;
  margin-top: 0px;
}

/* === Layout === */
.sidebar {
  width: 25%;
  background-color: #fff;
  padding: 20px;
}
.main-content {
  width: 75%;
  padding: 40px;
  overflow-y: auto;
}
 .content-wrapper {
      display: flex;
      flex: 1;
    }

/* === Navigation Bar === */
nav {
  background-color: #000;
  padding: 10px 0;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
nav li {
  position: relative;
  margin: 0 20px;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  display: block;
}
nav a:hover {
  text-decoration: underline;
}
/* Dropdown Menu */
nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
}
nav li:hover > ul {
  display: block;
}
nav li ul li a {
  padding: 10px 15px;
  white-space: nowrap;
  color: #333;
  display: block;
}
nav li ul li a:hover {
  background-color: #f5f5f5;
}

/* === Gallery Grid === */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
}
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* === Artwork Items === */
.artwork {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.artwork img {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.artwork .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
}
.artwork:hover img {
  opacity: 0.5;
  transform: scale(1.03);
}
.artwork:hover .overlay {
  opacity: 1;
}

/* === Main Content === */
main {
  max-width: 800px;
  margin: auto;
  padding: 40px;
  line-height: 1.6;
}

/* === About & Contact Sections === */
.about-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}
.about-container img {
  float: right;
  width: 50%;
  margin-left: 20px;
  margin-bottom: 20px;
}

/* === Artwork Layout === */
.artwork-layout {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  gap: 40px;
  align-items: flex-start;
}
.artwork-layout img {
  width: 66.66%;
  height: auto;
  object-fit: cover;
}
.description {
  width: 33.33%;
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
}

/* === Contact Form === */
form {
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
}
input,
textarea {
  padding: 10px;
  margin-bottom: 20px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
button {
  padding: 10px;
  font-size: 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #555;
}

/* === Footer === */
footer {
  background-color: #333;
  color: #999;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* === Utilities === */
.center-image {
  display: block;
  margin: 0 auto;
}
a.back,
.back {
  display: block;
  text-align: center;
  margin: 40px auto;
  font-size: 1.1rem;
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
}
