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

body {
  font-family: "GT Sectra", Georgia, serif;
  background-color: #fcfcfc;
  color: #222222;
  line-height: 1.6;
}

/* --- Layout --- */
.site-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 240px;
  padding: 40px 30px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fcfcfc;
  z-index: 10;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
}

.nav-section {
  margin-top: 30px;
}

.nav-heading {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 12px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 8px;
}

.nav-section:first-child > ul > li {
  margin-bottom: 5px;
}

.nav-section:nth-child(2) > ul > li {
  margin-bottom: 5px;
}

.exhibitions-menu summary {
  color: #555;
  cursor: pointer;
  font-size: 0.95rem;
  list-style: none;
  text-transform: uppercase;
}

.exhibitions-menu summary::-webkit-details-marker {
  display: none;
}

.exhibitions-menu summary::after {
  content: "+";
  margin-left: 8px;
  color: #888;
}

.exhibitions-menu[open] summary::after,
.exhibitions-menu:hover summary::after {
  content: "−";
}

.exhibitions-menu > ul {
  display: none;
  padding: 8px 0 0 16px;
}

.exhibitions-menu[open] > ul,
.exhibitions-menu:hover > ul {
  display: block;
}

.sidebar a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  color: #000;
  font-weight: 500;
}

.sidebar-footer {
  font-size: 0.8rem;
  color: #aaa;
}

/* Content Area */
.content {
  margin-left: 240px;
  padding: 40px 120px;
  width: calc(100% - 240px);
}

.about-content p {
  max-width: 600px;
  color: #555;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  color: #222;
  text-decoration: none;
}

.instagram-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.landing-content {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
}

.landing-content h1 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.landing-content h1 a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  border-bottom: 0;
}

.landing-content p {
  color: #888;
  font-size: 1rem;
}

.landing-content p .landing-subtitle {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  border-bottom: 0;
  margin-top: 0;
}

.landing-content a {
  margin-top: 18px;
  color: #222;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid #222;
}

.album-header h1 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* Gallery Grid */
.gallery-grid {
  column-count: 4;
  column-gap: 5px;
}

.gallery-item {
  break-inside: avoid;
  overflow: hidden;
  margin-bottom: 5px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery-item img:hover {
  opacity: 0.92;
}

/* Image Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 20;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(100vw - 40px);
  height: calc(100vh - 40px);
}

.lightbox-photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 30px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-details {
  padding: 0 30px 20px;
  color: #fff;
}

.lightbox-description {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .site-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    padding: 20px;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 5px;
  }

  .gallery-item {
    margin-bottom: 5px;
  }

  .lightbox-panel {
    height: min(750px, 90vh);
  }

  .lightbox-photo {
    padding: 50px 20px 20px;
  }

  .lightbox-details {
    padding: 0 25px 30px;
  }
}