/* Eldad Ben Tora Portfolio - CSS */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f7f6f6;
  color: #777;
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
header {
  padding: 30px 0 50px;
  text-align: center;
}

.logo-link {
  display: block;
  margin-bottom: 20px;
}

.logo {
  max-width: 600px;
  height: auto;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
}

nav ul li a {
  font-size: 18px;
  color: #222;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

nav ul li.selected a,
nav ul li a:hover {
  border-bottom-color: #222;
}

/* Main content */
main {
  padding: 0 50px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Artwork grid (categories) */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.artwork-category {
  display: block;
  position: relative;
  cursor: pointer;
}

.artwork-category img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.artwork-category-title {
  text-align: center;
  padding: 12px 0;
  color: #555;
  font-size: 16px;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-grid img:hover {
  opacity: 0.85;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}

/* Exhibitions page */
.exhibitions-content {
  max-width: 800px;
  margin: 0 auto 40px;
}

.exhibitions-content ul {
  list-style: none;
  padding: 0;
}

.exhibitions-content ul li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 16px;
  color: #555;
}h

.exhibitions-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.exhibitions-photos img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bio page */
.bio-content {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.bio-content img {
  width: 100%;
  height: auto;
}

.bio-text h2 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.bio-text p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Contact page */
.contact-content {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.contact-content img {
  width: 100%;
  height: auto;
}

.contact-info {
  font-size: 14px;
  color: #777;
  margin-top: 12px;
}

.contact-info a {
  color: #555;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: #555;
  outline: none;
  border-radius: 0;
}

.contact-form textarea {
  height: 200px;
  resize: vertical;
}

.contact-form button {
  background: #222;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  align-self: flex-start;
}

.contact-form button:hover {
  background: #444;
}

.contact-form h2 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 80px 0 60px;
  font-size: 12px;
  color: #999;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #555;
  font-size: 14px;
}

.back-link::before {
  content: '\2190 ';
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 0 20px;
  }
  
  .artwork-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .bio-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .exhibitions-photos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .artwork-grid {
    grid-template-columns: 1fr;
  }
}
