/* style.css */
/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; background: #f4f4f4; }

/* Menú */
.menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100px;
  padding: 0 2rem;
  background-color: #fff;
  overflow: hidden;
}
.menu-logo {
  height: 200px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.menu-links button,
.menu-links a {
  background: none;
  border: none;
  font-size: 1rem;
  margin-left: 1.5rem;
  cursor: pointer;
  color: rgb(233, 146, 53);
  text-decoration: none;
  font-family: inherit;
}

.menu-links a:hover,
.menu-links button:hover {
  text-decoration: none;
  opacity: 0.6;
}

/* Slideshow Header */
header.slideshow-header {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: black;
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: black;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: black;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: black;
    position: absolute;
    top: 0;
    left: 0;
  	display: block;
  	animation: fade 6s ease-in-out;
}

.slide.active,
.slide_active {
  display: block;
  animation: fade 6s ease-in-out;
}

.prev-slide { left: 10px; }
.next-slide { right: 10px; }

/* Contenedor principal */
#gallery-container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }
section.gallery { margin-bottom: 3rem; }

.grid {
  column-count: 3;
  column-gap: 0.5rem;
}

.grid img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
  border-radius: 8px;
  break-inside: avoid;
  transition: filter 0.3s;
}

.grid img:hover {
  filter: brightness(60%);
}

img.thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: filter 0.3s;
}

img.cover {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  display: block;
}

/* Lightbox styles */
#lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#lightbox.hidden { display: none; }
#lightbox img {
  max-width: 98vw;
  max-height: 98vh;
  border-radius: 12px;
}
#lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1001;
}

.intro-text {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Gill Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #000;
  text-align: center;
}

#prev-btn { left: 1rem; }
#next-btn { right: 1rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-bar { flex-direction: column; height: auto; padding: 1rem; }
  .menu-logo { height: 100px; }
  .menu-links button { margin: 0.5rem 0; }
  header.slideshow-header { height: 250px; }
  .grid { column-count: 2; }
  img.cover { width: 150px; height: 150px; }
}
@media (max-width: 480px) {
  header.slideshow-header { height: 180px; }
  .grid { column-count: 1; }
}