/* Gallery Exhibit Styling */

:root {
  --gallery-bg: #f5f3f0;
  --gallery-text: #2b2b2b;
  --gallery-accent: #8b7355;
  --gallery-light: #e8e4df;
  --gallery-white: #ffffff;
}

/* Override body styles for gallery pages */
body.gallery {
  background-color: var(--gallery-bg);
  color: var(--gallery-text);
  font-family: 'Merriweather', serif;
}

/* Gallery container */
.gallery-exhibit {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  background-color: var(--gallery-white);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/* Cover image styling */
.cover-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin: 0 0 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* Header styling */
.gallery-header {
  text-align: center;
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--gallery-light);
}

.gallery-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--gallery-text);
  letter-spacing: -1px;
  font-family: 'Merriweather', serif;
}

.gallery-artist {
  font-size: 18px;
  color: var(--gallery-accent);
  font-style: italic;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gallery-subtitle {
  font-size: 16px;
  color: #666;
  font-weight: 300;
  line-height: 1.6;
}

/* Section styling */
.gallery-section {
  margin-bottom: 100px;
}

.gallery-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 40px 0;
  color: var(--gallery-text);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gallery-light);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--gallery-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Image grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

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

/* Image item */
.gallery-item {
  background: var(--gallery-light);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  background: var(--gallery-light);
  border: 1px solid #ddd;
}

.gallery-item-title {
  font-size: 18px;
  font-weight: 600;
  margin: 15px 0 8px 0;
  color: var(--gallery-text);
}

.gallery-item-location {
  font-size: 14px;
  color: var(--gallery-accent);
  font-style: italic;
  margin: 0 0 8px 0;
}

.gallery-item-details {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Image placeholder */
.image-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--gallery-light) 0%, #ddd9d3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  border: 1px dashed #ccc;
  margin-bottom: 15px;
  font-style: italic;
}

/* About section */
.about-exhibit {
  background: var(--gallery-light);
  padding: 40px;
  margin: 60px 0;
  border-left: 4px solid var(--gallery-accent);
}

.about-exhibit p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 15px 0;
}

.about-exhibit p:last-child {
  margin-bottom: 0;
}

/* Event info */
.event-info {
  background: var(--gallery-white);
  border: 1px solid var(--gallery-light);
  padding: 30px;
  margin: 40px 0;
  border-radius: 2px;
}

.event-detail {
  margin-bottom: 15px;
  font-size: 15px;
}

.event-label {
  color: var(--gallery-accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.event-value {
  color: var(--gallery-text);
  font-size: 16px;
  margin-left: 0;
}

/* Call to action */
.cta-button {
  display: inline-block;
  background-color: var(--gallery-accent);
  color: var(--gallery-white);
  padding: 15px 40px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  margin: 20px 10px 20px 0;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #6b5345;
}

/* Footer section */
.gallery-footer {
  text-align: center;
  padding-top: 60px;
  border-top: 2px solid var(--gallery-light);
  margin-top: 80px;
}

.footer-title {
  font-size: 24px;
  margin: 0 0 30px 0;
  color: var(--gallery-text);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 16px;
  color: var(--gallery-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--gallery-text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-exhibit {
    padding: 40px 20px;
  }

  .gallery-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 24px;
  }

  .gallery-header {
    margin-bottom: 60px;
    padding-bottom: 30px;
  }

  .about-exhibit {
    padding: 30px 20px;
  }

  .gallery-item img {
    height: 250px;
  }

  .image-placeholder {
    height: 250px;
  }

  .cover-image img {
    height: 300px;
  }

  .event-info {
    padding: 20px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 13px;
    margin: 15px 5px 15px 0;
  }

  .social-links {
    gap: 20px;
  }
}

/* Tablet styles */
@media (max-width: 992px) and (min-width: 769px) {
  .gallery-exhibit {
    padding: 50px 30px;
  }

  .gallery-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 28px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }

  .gallery-item img {
    height: 300px;
  }

  .image-placeholder {
    height: 300px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .gallery-exhibit {
    padding: 30px 15px;
  }

  .gallery-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .gallery-artist {
    font-size: 14px;
  }

  .gallery-subtitle {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .section-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .gallery-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  .gallery-grid {
    gap: 20px;
  }

  .gallery-item {
    padding: 15px;
  }

  .gallery-item img {
    height: 200px;
  }

  .image-placeholder {
    height: 200px;
    font-size: 12px;
  }

  .cover-image img {
    height: 250px;
  }

  .gallery-item-title {
    font-size: 16px;
    margin: 12px 0 6px 0;
  }

  .gallery-item-location {
    font-size: 13px;
  }

  .gallery-item-details {
    font-size: 11px;
  }

  .about-exhibit {
    padding: 20px 15px;
    margin: 40px 0;
  }

  .about-exhibit p {
    font-size: 14px;
    line-height: 1.6;
  }

  .event-info {
    padding: 15px;
    margin: 30px 0;
  }

  .event-detail {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .event-label {
    font-size: 11px;
  }

  .event-value {
    font-size: 14px;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 12px;
    margin: 10px 3px 10px 0;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
  }

  .gallery-footer {
    padding-top: 40px;
    margin-top: 60px;
  }

  .footer-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .social-links {
    gap: 15px;
  }

/* Mobile-friendly touch targets */
@media (max-width: 768px) {
  .social-links a,
  .cta-button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Improve readability on mobile */
@media (max-width: 480px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .gallery-item:hover {
    transform: none; /* Disable hover effects on touch devices */
  }
}
