/* HERO */
.gallery-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* CONTENEDOR */
.gallery-container {
  padding: 2.5rem 2rem;
}

.gallery-title {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-color);
  padding-left: 1rem;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ITEM */
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* MODAL */
#gallery-modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

#gallery-modal img {
  display: block;
  margin: auto;
  max-width: 80%;
  border-radius: 8px;
}

#gallery-modal .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/*Termina FOTOS*/
.video-container {
  padding: 2.5rem 2rem;
}

.video-title {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-color);
  padding-left: 1rem;
}

/* GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* VIDEO CARD */
.video-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* RESPONSIVE VIDEO */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

/* TITLE */
.video-name {
  font-size: 1.4rem;
  padding: 1rem;
  color: #333;
}
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
