/* ── GALERÍA — página propia ── */

.gal-section {
  display: none;
}
.gal-section.active {
  display: block;
}

.gal-block {
  margin-bottom: 3rem;
}
.gal-block:last-child {
  margin-bottom: 0;
}

.gal-block h2 {
  font-family: "Outreque", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.gal-block p {
  font-family: "Outreque", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: black;
  max-width: 80%;
  margin-bottom: 1.2rem;
}

.gal-grid {
  columns: 2;
  column-gap: 1rem;
}

.gal-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2.5px solid var(--pink);
  margin-bottom: 1rem;
  break-inside: avoid;
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.gal-grid img:hover {
  opacity: 0.85;
}

.gal-block + .gal-block {
  padding-top: 2rem;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .gal-block p {
    max-width: 100%;
  }
  .gal-grid {
    columns: 1;
  }
}

@media (max-width: 1024px) {
  .page-grid {
    display: flex;
    flex-direction: column;
  }

  .page-left {
    order: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1rem 0;
    overflow: visible;
  }

  .panel-btn {
    flex: 1;
    min-width: 120px;
    width: auto;
  }

  .page-center {
    order: 2;
    padding: 1.2rem 1rem 2rem;
    overflow: visible;
  }

  .page-right {
    display: none;
  }

  .gal-block p {
    max-width: 100%;
  }
  .gal-grid {
    columns: 1;
  }
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(253, 138, 170, 0.3);
}

.lightbox img {
  position: relative;
  z-index: 1;
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 2.5px solid var(--pink);
  object-fit: contain;
}
