:root {
  --accent:#0070a3;
  --dark:#0b2b3a;
  --muted:#6b7280;
  --card:#ffffff;
  --bg:#f9fafb;
  --max-width:1200px;
}

* {
  box-sizing:border-box;
  margin:0;
  padding:0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family:'Inter', system-ui, sans-serif;
  color:var(--dark);
  background:var(--bg);
  line-height:1.6;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

header.site-header {
  background:var(--dark);
  color:#fff;
  padding:0.75rem 0;
  position:sticky; top:0;
  z-index:50;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

.container {
  max-width:var(--max-width);
  margin:0 auto;
  height: 3rem;
}

.eventPics {
  width: 50%;
  object-fit: cover;
}

.eventDescription {
  width: 50%;
  padding: 1em;
}

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

.branding {
  display:flex;
  align-items:center;
  gap:12px;
}

.branding img {
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:6px;
  background:#fff;
}

.branding h1 {
  font-family:'Playfair Display', serif;
  font-size:18px;
  margin:0;
}

nav.main-nav .nav-list {
    display:flex;
    gap:18px;
    list-style:none;
    margin:0;
    padding:0;
}

.nav-list a {
    color:#e6f7ff;
    text-decoration:none;
    font-weight:600;
    transition:color 0.3s;
}

        .nav-list a:hover {
            color:#fff;
        }

        nav.main-nav {
          display: block;
        }

        .menu-toggle {
          display: none;
          background:none;
          border:none;
          cursor:pointer;
          flex-direction:column;
          gap:5px;
        }
        .menu-toggle span {
          display:block;
          width:24px;
          height:3px;
          background:#fff;
          border-radius:2px;
          transition:0.3s;
        }

        .hero {
          background:url("../images/_biblioteca_imagem.webp") no-repeat center/cover;
          flex:1;
          display:flex;
          align-items:center;
          justify-content:center;
          text-align:center;
          color:#fff;
          position:relative;
          min-height:100vh;
        }
        .hero::after {
          content:"";
          position:absolute;
          inset:0;
          background:rgba(0,0,0,0.55);
        }
        .hero .overlay {
          position:relative;
          z-index:1;
          max-width:700px;
          padding:2rem;
        }
        .hero h1 {
          font-family:'Playfair Display', serif;
          font-size:3rem;
          margin-bottom:0.75rem;
        }
        .hero p {
          font-size:1.2rem;
          margin-bottom:1.5rem;
          opacity:0.9;
        }
        .btn {
          display:inline-block;
          background:var(--accent);
          color:#fff;
          padding:0.9rem 1.8rem;
          border-radius:8px;
          text-decoration:none;
          font-weight:600;
          transition:background 0.3s, transform 0.2s;
        }
        .btn:hover {
          background:#005b7a;
          transform:translateY(-2px);
        }

        main {
          flex:1;
          display:flex;
          justify-content:center;
        }

        .eventos-section {
          max-width: 100vw;
          width: 100%;
          margin: 0 auto;
        }

        .eventos-section h2 {
          text-align: center;
          /*! margin-bottom: 2rem; */
          font-family: 'Playfair Display', serif;
          color: var(--dark);
        }

        .event-gallery {
          grid-template-columns: repeat(auto-fit, minmax(50vw, 1fr));
          column-count: 2;
          display: grid;
        }


.eventCard {
  display: flex;
  flex-direction: row;
}

.event-card {
  position: relative;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s;
  width: 50vw;
  height: 25vw;
  display: flex;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
  pointer-events: none;
}

.event-card:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.event-card img {
  width: 25vw;
  height: 25vw;
  object-fit: cover;
}

.event-card h3 {
  font-size: 0.9rem;
  color: var(--dark);
}

.eventDescription {
  width: 25vw;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2vw;
}

.eventDescription h3 {
  padding-top: 1vh;
}

.eventDescription a {
  padding-top: 3vh;
}


.event-card:nth-child(4n+3) .eventCard,
.event-card:nth-child(4n+4) .eventCard {
  flex-direction: row-reverse;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
    display: flex;
}

.close-btn {
    position: fixed;
    top: 1vh;
    right: 1vw;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 2vh;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 95%;
    border-radius: 3vh;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lightbox-content::-webkit-scrollbar {
    display: none;
}

.lightbox-images {
    column-count: 4;
    column-gap: 2vh;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

#lightbox-images img.eventPics {
    width: 100%;
    display: inline-block;
    margin-bottom: 2vh;
    border-radius: 2vh;
    cursor: pointer;
    transition: transform 0.2s ease;
    break-inside: avoid;
}

#lightbox-images img.eventPics:hover {
    transform: scale(1.05);
}

footer {
  background:#0b2b3a;
  color:#fff;
  text-align:center;
  padding:1rem;
  margin-top:auto;
  font-size:0.9rem;
}

@media (max-width: 900px) {
  .lightbox-images {
    column-count: 3;
  }
}

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top:60px;
    right:16px;
    background:var(--dark);
    border-radius:8px;
    box-shadow:0 6px 12px rgba(0,0,0,0.2);
  }

  nav.main-nav.active {
    display:block;
  }

  nav.main-nav .nav-list {
    flex-direction: column;
    gap:0;
  }

  nav.main-nav .nav-list li {
    border-bottom:1px solid rgba(255,255,255,0.1);
  }

  nav.main-nav .nav-list a {
    display:block;
    padding:12px 20px;
    color:#fff;
  }

  .hero h1 { font-size:2rem; }
  .hero p { font-size:1rem; }
  .nav-list { flex-wrap:wrap; gap:10px; }
  .reserva-form { padding:1.5rem; }

  .event-card:nth-child(4n+3) .eventCard,
  .event-card:nth-child(4n+4) .eventCard {
    flex-direction: row;
  }

  .event-card:nth-child(even) .eventCard {
    flex-direction: row-reverse;
  }

  .lightbox-images {
    column-count: 2;
   }

  .event-gallery {
    grid-template-columns: repeat(auto-fit, minmax(100vw, 1fr));
    column-count: 2;
    display: grid;
  }

  .event-card {
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    display: flex;
    width: 100vw;
    height: 50vw;
  }

  .event-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  }

  .event-card img {
    width: 50vw;
    height: 50vw;
    object-fit: cover;
  }

  .event-card h2 {
    font-size: 1rem;
    color: var(--dark);
    text-align: left;
  }

  .event-card h3 {
    font-size: 0.8rem;
    color: var(--dark);
  }

  .event-card a {
    font-size: 0rem;
  }

  .eventDescription {
    width: 50vw;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3vw;
  }

  .eventDescription h3 {
    padding-top: 0vh;
  }

  .eventDescription a {
    padding-top: 1vh;
  }
}