/*!
 * Project Name: and / or / space Website
 * Description: Main stylesheet for layout and components
 * Author: Kurt Zinser (with engineering help from Google Gemini)
 * Version: 1.0.0
 * Date: October 2026
 * License: MIT License
 */


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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Open Sans', sans-serif;
      color: #333333;
      background-color: #ffffff;
      line-height: 1.6;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 30px;
    }

    /* Section Wrappers */
    .section-wrapper {
      padding: 60px 0;
    }

    .bg-gray {
      background-color: #ededed;
    }

    .section-title {
      text-align: center;
      font-size: 1.5rem;
      font-weight: 700;
      text-transform: lowercase;
      letter-spacing: 1px;
      margin-bottom: 40px;
    }

    /* Header & Navigation */
    header {
      padding: 30px 0;
      background-color: #ffffff;
    }

    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo img {
      height: 48px;
      width: auto;
      display: block;
    }

    .nav-links {
      display: flex;
      gap: 30px;
      list-style: none;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
    }

    .nav-links a:hover {
      text-decoration: underline;
    }

    /* Hero / Current Exhibition Section */
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
      align-items: center;
    }

    @media (min-width: 850px) {
      .hero-grid {
        grid-template-columns: 1fr 1.5fr;
      }
    }

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

    @media (min-width: 850px) {
      .hero-details {
        text-align: left;
      }
    }

    .hero-label {
      font-size: 0.85rem;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #777777;
      font-weight: 600;
      margin-bottom: 15px;
    }

    .hero-artist {
      font-size: 2.2rem;
      font-weight: 400;
      margin-bottom: 5px;
    }

    .hero-title {
      font-size: 1.8rem;
      font-weight: 700;
      font-style: italic;
      margin-bottom: 20px;
    }

    .hero-dates {
      font-size: 0.95rem;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #777777;
      margin-bottom: 25px;
    }

    .hero-link {
      font-size: 0.85rem;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      font-weight: 700;
      color: #777777;
      border-bottom: 1px solid #777777;
      padding-bottom: 2px;
      margin-top: 15px;
    }

    /* Hero Slideshow Container */
    .hero-slideshow-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

.slideshow-container {
      position: relative;
      width: 100%;
      height: 450px; /* Sets your common height */
      overflow: hidden;
    }

.slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: opacity 0.8s ease-in-out;
      pointer-events: none;
      padding-bottom: 25px; /* Reserves space at the bottom for the caption */
    }

    .slide.active {
      opacity: 1;
      pointer-events: auto;
    }

    .slide img {
      max-width: 100%;
      max-height: calc(100% - 30px); /* Keeps image from overflowing container with caption */
      width: auto;
      object-fit: contain;
    }

    .slide-caption {
      text-align: center;
      font-size: 0.85rem;
      color: #666666;
      margin-top: 8px;
      width: 100%;
    }

    /* Indicator Squares (Matching the Comp) */
    .slideshow-indicators {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 15px;
    }

    .indicator-square {
      width: 12px;
      height: 12px;
      background-color: #cccccc;
      border: none;
      cursor: pointer;
      padding: 0;
      transition: background-color 0.3s ease;
    }

    .indicator-square.active {
      background-color: #666666;
    }

    .indicator-square:hover {
      background-color: #999999;
    }

    /* Upcoming Events Section */
    .events-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 30px;
    }

    @media (min-width: 850px) {
      .events-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .event-card {
      background-color: #ededed;
      padding: 25px;
      display: flex;
      flex-direction: column;
    }

    .event-header {
      display: flex;
      justify-content: space-between;
      gap: 15px;
      margin-bottom: 20px;
    }

    .event-info {
      flex: 1;
    }

    .event-type {
      font-size: 0.85rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

    .event-artist {
      font-size: 0.95rem;
      margin-bottom: 2px;
    }

    .event-title {
      font-size: 0.95rem;
      font-style: italic;
      margin-bottom: 8px;
    }

    .event-time {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #555555;
    }

    .event-thumb {
      width: 80px;
      height: 80px;
      object-fit: cover;
      flex-shrink: 0;
    }

    .event-description {
      font-size: 0.85rem;
      color: #444444;
      line-height: 1.6;
      margin-bottom: 15px;
    }
    .event-description a {
      text-decoration: underline;
    }

    /* About Section */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }

    @media (min-width: 850px) {
      .about-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .about-text {
      font-size: 0.85rem;
      line-height: 1.8;
      color: #333333;
    }

    .about-text p {
      padding-bottom: 15px;
    }

    .about-gallery {
      display: grid;
      grid-template-columns: 1.58fr 1fr;
      gap: 15px;
    }

    .about-gallery-stacked {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .about-gallery img {
      width: 100%;
      height: auto; /* Replaces height: 100% so images stack naturally on mobile */
      object-fit: cover;
    }

    /* Contact Section */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 30px;
    }

    @media (min-width: 850px) {
      .contact-grid {
        grid-template-columns: 1fr 1.2fr 1fr;
      }
    }

    .contact-block {
      background-color: #ededed;
      padding: 30px;
    }

    .contact-subtitle {
      font-size: 0.85rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 10px;
    }

    .contact-text {
      font-size: 0.85rem;
      margin-bottom: 25px;
      color: #444444;
    }

    .contact-link {
      font-weight: 700;
      text-decoration: underline;
    }

    /* Map Box Container */
    .map-container {
      width: 100%;
      height: 100%;
      min-height: 300px;
    }

    .map-container iframe {
      width: 100%;
      height: 100%;
      min-height: 300px;
      border: 0;
    }

    /* Contact Form */
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 12px 15px;
      border: none;
      background-color: #ffffff;
      font-family: inherit;
      font-size: 0.85rem;
      color: #333333;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
      color: #999999;
    }

    .contact-form textarea {
      resize: vertical;
      min-height: 100px;
    }

    /* Style Select Dropdown to Match Form Inputs */
    .contact-form select {
      width: 100%;
      padding: 12px 15px;
      border: none;
      background-color: #ffffff;
      font-family: inherit;
      font-size: 0.85rem;
      color: #333333;
      outline: none;
      cursor: pointer;
    }

    /* Light Grey Color for Unselected Placeholder State */
    .contact-form select:invalid {
      color: #999999;
    }

    .contact-form select option {
      color: #333333;
      background-color: #ffffff;
    }

    /* Honeypot Field - Hidden from humans, detected by bots */
    .hp-field {
      opacity: 0;
      position: absolute;
      top: 0;
      left: 0;
      height: 0;
      width: 0;
      z-index: -1;
      overflow: hidden;
    }

    .submit-btn {
      align-self: flex-start;
      background: none;
      border: none;
      font-family: inherit;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      cursor: pointer;
      margin-top: 10px;
      padding: 0;
    }

    .submit-btn:hover {
      text-decoration: underline;
    }

    /* Footer */
    footer {
      padding: 40px 0;
      text-align: center;
      font-size: 0.75rem;
      color: #777777;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    /* Mobile Adjustments */
    @media (max-width: 600px) {
      .nav-container {
        flex-direction: column;
        gap: 15px;
      }
      
      .about-gallery {
        grid-template-columns: 1fr;
      }
    }