/* ============================================
   GALERÍA ESTILO AIRBNB - CASA GIRASOL
============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: var(--radius-small);
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

.gallery-grid img:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  height: 408px;
}

/* Modal de galería */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  animation: fadeIn 0.3s ease;
}

.gallery-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.gallery-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.gallery-modal .modal-close:hover { color: var(--gold); }

.gallery-modal .modal-prev,
.gallery-modal .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  transition: 0.3s;
}
.gallery-modal .modal-prev { left: 20px; }
.gallery-modal .modal-next { right: 20px; }
.gallery-modal .modal-prev:hover,
.gallery-modal .modal-next:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid img:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    height: 250px;
  }
  .gallery-grid img {
    height: 150px;
  }
  .gallery-modal .modal-prev,
  .gallery-modal .modal-next {
    font-size: 30px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .gallery-grid img {
    height: 120px;
  }
  .gallery-grid img:first-child {
    height: 200px;
  }
}