    .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    }

    .modal.show {
    display: flex;
    }

    .modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 80%;
    }

    .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 4px solid white;
    border-radius: 5px;
    }

    .controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    }

    .controls button {
    background: rgba(255,255,255,0.3);
    border: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
    pointer-events: all;
    padding: 10px;
    border-radius: 4px;
    }

    .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    }

    .modal-content-bg{
        background-color: transparent;
    }


  /* Ocultar botón de Twitter en lightGallery */
  .lg-share-twitter {
    display: none !important;
  }

  /* Ocultar botón de Pinterest */
  .lg-share-pinterest {
    display: none !important;
  }

  #loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  font-size: 18px;
  color: #333;
}

.loading-spinner {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
