/* ===== Base ===== */
:root {
  --text: #111;
  --muted: #555;
  --bg: #fff;
  --accent: #000;
  --container: 1200px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 20px;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

/* ===== Header / Nav ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
}

#main-nav a {
  margin-left: 25px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s;
}

#main-nav a:hover {
  color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  height: 90vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: #fff;
  transition: background-image 1s ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero .inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  font-weight: 300;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  background: #fafafa;
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  padding: 12px;
  font-size: 14px;
}

/* ===== About ===== */
#about-html p {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--muted);
}

#about-html strong { color: var(--accent); }

/* ===== Contact ===== */
#contact-info p {
  margin: 10px 0;
  text-align: center;
}

#contact-info a {
  color: var(--accent);
  font-weight: 500;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 200;
}

.lightbox-inner {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
}

.lb-close {
  position: absolute;
  top: -15px; right: -15px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 20px;
  cursor: pointer;
}

/* ===== CTA Buttons ===== */
.btn-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-cta:hover {
  background: #333;
}

/* ===== Unified Events & Exhibitions Layout ===== */
.events-grid {
  display: grid;
  gap: 18px;
}

.event-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.event-row:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* image container with fixed frame */
/* image container with larger frame */
.event-image {
  flex: 0 0 640px; /* doubled from 320px */
  height: 360px;   /* proportionally taller */
  background: #f5f5f5;
  border-right: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

.event-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;       /* ensure artwork fully visible */
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
}

.event-row:hover .event-image img {
  transform: scale(1.02);
}

/* mobile adjustment */
@media (max-width: 768px) {
  .event-image {
    flex: 0 0 auto;
    height: 240px; /* reduce on smaller screens */
    border-right: none;
    border-radius: 8px 8px 0 0;
  }
}
/* event text */
.event-info {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.event-info p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
}

.event-info .desc {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 15px;
  color: #333;
}

/* section headers */
.upcoming-events h3,
.recent-events h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  text-align: left;
  margin: 40px 0 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
}

/* container on exhibitions.html */
#exhibitions-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Responsive */
@media (max-width: 768px) {
  .event-row {
    flex-direction: column;
  }
  .event-image {
    flex: 0 0 auto;
    height: 220px;
    border-right: none;
  }
  .event-info {
    padding: 16px;
  }
  .event-info h4 {
    font-size: 20px;
  }
}

