/* Modern CSS for Saskia Koning Art Portfolio */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 16px;
}

body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Background image setup - preserving original aesthetic */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content container */
#content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 20px;
}

/* Typography */
h1 {
  font-family: Ancon;
  text-align: center;
}

/* Home page specific spacing */
h1 + .nav-grid {
  margin-top: 3rem;
}

h2 {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  margin: 1.5rem 0 1rem 0;
}

/* Navigation styles */
.backlinks {
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  color: #660000;
  text-decoration: none;
  display: inline-block;
}

.backlinks:hover {
  text-decoration: underline;
}

/* Backlinks navigation container */
.backlinks-nav {
  text-align: center;
  margin: 1rem 0;
}

/* Main navigation grid for homepage */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.nav-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.nav-item:hover {
  transform: translateY(-2px);
}

.nav-item img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  border: none;
}

.nav-item a {
  text-decoration: none;
  color: #660000;
  font-weight: bold;
  line-height: 1;
}

/* Artwork description text */
.onderschrift {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-weight: bold;
  color: #660000;
  font-size: 1.125rem;
}

/* Content containers */
.content-container {
  background: rgba(175, 201, 239, 0.8);
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 8px;
}

/* Gallery layouts */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.gallery-grid .gallery-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  border-radius: 8px;
}

.gallery-grid .gallery-item img {
  max-width: 100%;
  height: auto;
  border: none;
}

/* Alternating stepping gallery layout - recreating original table-based design */
.alternating-gallery {
  max-width: 800px;
  margin: 2rem auto;
  background: rgba(175, 201, 239, 0.8);
  border-radius: 8px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.alternating-gallery .gallery-item {
  text-align: center;
  margin-bottom: 3rem;
}

.alternating-gallery .gallery-item:nth-child(even) {
  margin-top: 150px;
}

.alternating-gallery .gallery-item:nth-child(odd):not(:first-child) {
  margin-top: -150px;
}

.alternating-gallery .gallery-item img {
  width: 350px;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border: none;
  transition: opacity 0.2s ease;
}

.alternating-gallery .gallery-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.alternating-gallery .gallery-item a:hover img {
  opacity: 0.8;
}

.alternating-gallery .gallery-item .onderschrift {
  margin-top: 0.5rem;
  display: block;
}

/* Single column lightbox gallery layout */
.lightbox-gallery {
  max-width: 800px;
  margin: 2rem auto;
  background: rgba(175, 201, 239, 0.8);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.lightbox-gallery .gallery-item {
  text-align: center;
}

.lightbox-gallery .gallery-item img {
  width: 500px;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lightbox-gallery .gallery-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.lightbox-gallery .gallery-item a:hover img {
  opacity: 0.8;
}

.lightbox-gallery .gallery-item .onderschrift {
  margin-top: 0.5rem;
  display: block;
}

/* Responsive design */
@media (max-width: 768px) {
  #content {
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .nav-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-width: 400px;
  }
  
  .content-container {
    margin: 1rem auto;
    padding: 1rem;
  }
  
  .alternating-gallery {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }
  
  .alternating-gallery .gallery-item {
    margin-bottom: 0;
    margin-top: 0;
    text-align: center;
  }
  
  .alternating-gallery .gallery-item:nth-child(even) {
    margin-top: 0;
  }
  
  .alternating-gallery .gallery-item:nth-child(odd):not(:first-child) {
    margin-top: 0;
  }
  
  .alternating-gallery .gallery-item img {
    width: 400px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
  }
  
  .lightbox-gallery {
    padding: 1rem;
  }
  
  .lightbox-gallery .gallery-item img {
    width: 400px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  .nav-item {
    padding: 0.75rem;
  }
  
  .alternating-gallery {
    padding: 1rem;
  }
  
  .alternating-gallery .gallery-item img {
    width: 320px;
  }
  
  .lightbox-gallery {
    padding: 1rem;
  }
  
  .lightbox-gallery .gallery-item img {
    width: 320px;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

.lightbox-trigger {
  cursor: pointer;
}

.lightbox-trigger:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 85%;
  }
  
  .lightbox-close {
    top: 10px;
    right: 25px;
    font-size: 35px;
  }
}

/* Artwork detail page styles */
.artwork-container {
  max-width: 900px;
  margin: 2rem auto;
  background: rgba(175, 201, 239, 0.8);
  border-radius: 8px;
  padding: 2rem;
}

.artwork-info {
  margin-bottom: 2rem;
}

.artwork-specs {
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #333;
  font-weight: bold;
}

.artwork-description {
  font-style: italic;
  margin: 1rem 0;
  text-align: center;
  font-weight: bold;
  color: #333;
}

.artwork-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.artwork-image-item {
  text-align: center;
}

.artwork-image-item img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.artwork-image-item img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .artwork-container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .artwork-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Biography layout */
.bio-section {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  align-items: flex-start;
}

.bio-image {
  width: 300px;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
}

.bio-quote {
  flex: 1;
}

.quote {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #660000;
  font-style: italic;
}

@media (max-width: 768px) {
  .bio-section {
    flex-direction: column;
    text-align: center;
  }
}

/* News page layout */
.news-container {
  max-width: 1000px;
  margin: 2rem auto;
  background: rgba(175, 201, 239, 0.8);
  border-radius: 8px;
  padding: 2rem;
}

.news-item {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(102, 0, 0, 0.2);
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-date {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #333;
  font-size: 1rem;
  text-align: left;
  padding-top: 0.5rem;
}

.news-content {
  padding-right: 1rem;
}

.news-description {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.news-details {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.news-link {
  margin-top: 0.5rem;
}

.news-link a {
  color: #660000;
  text-decoration: underline;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.news-location {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.news-image {
  margin-bottom: 0.5rem;
}

.news-image img {
  width: 350px;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border: none;
}

.news-location-text {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  font-size: 0.95rem;
  text-align: center;
}

/* Mobile responsive for news */
@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 0, 0, 0.1);
  }
  
  .news-date {
    text-align: center;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 0, 0, 0.3);
    margin-bottom: 1rem;
  }
  
  .news-content {
    padding-right: 0;
    margin-bottom: 1rem;
  }
  
  .news-image img {
    max-width: 250px;
    width: 100%;
  }
  
  .news-container {
    padding: 1rem;
    margin: 1rem;
  }
}

/* Image captions - now using onderschrift class for consistency */