:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #ffffff;
  --font-main: 'Inter', sans-serif;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.main-header {
  height: var(--header-height);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-color);
  border-bottom: 1px solid #505050;
}

.header-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  position: absolute;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hero Section */
.hero {
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--header-height);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-row {
  display: flex;
  gap: 4px;
  /* Matching the tiny gap in mockup */
  margin-bottom: 4px;
  width: 100%;
  align-items: stretch;
}

.gallery-row .artwork-card {
  flex: var(--ratio, 1) 1 0%;
  min-width: 0;
  cursor: pointer;
}

.gallery-row .artwork-card .image-wrapper {
  margin-bottom: 0;
  /* No margin inside row cards */
  height: 100%;
}

.gallery-row .artwork-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide titles in grid to match mockup better */
.gallery-row .artwork-info {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .gallery-row {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

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

.grid-item {
  background: var(--bg-color);
  padding-bottom: 3rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.image-wrapper.full-image {
  aspect-ratio: auto;
  height: auto;
}

.image-wrapper.full-image img {
  object-fit: contain;
  height: auto;
}

.artwork-card {
  cursor: pointer;
}

/* Modal / Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  display: flex;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  margin: auto;
  background: #000;
}

@media (max-width: 900px) {
  .modal-content {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
}

.modal-image-container {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #000;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-info {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #222;
}

@media (max-width: 900px) {
  .modal-info {
    border-left: none;
    border-top: 1px solid #222;
    padding: 2rem;
  }
}

.modal-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-info p {
  color: #888;
  margin-bottom: 0.5rem;
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 2100;
}

.project-header-section {
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.share-notice {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #444;
  word-break: break-all;
}

#share-link {
  color: #888;
}

.project-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.project-date {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
}

.project-body {
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.text-center {
  text-align: center;
}

.artwork-title {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.artwork-medium {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.grid-section {
  margin-top: 2rem;
}

.project-card:hover {
  opacity: 0.9;
}

.image-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  text-align: center;
}

.project-title {
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.05em;
}

.project-year {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* General Link Transitions */
a {
  transition: all 0.3s ease;
}