/* ============================
   Estilos Comunes para Galerías
   ============================ */

/* Botón "Regresar" en el header */
.right-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .header-back-link {
    background-color: #ff6600;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  .header-back-link:hover {
    background-color: #cc5200;
  }
  
  /* Contenedor de la galería */
  .gallery-container {
    position: relative;
    max-width: 90vw; /* Ocupa el 90% del ancho del viewport */
    margin: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* (Si en algún archivo necesitas la flecha interna, la tienes definida aquí)
  .back-arrow {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: #ff6600;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    z-index: 10;
  }
  .back-arrow:hover {
    color: #cc5200;
  }
  */
  
  /* Título de la galería */
  .gallery-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    background: #ff9800;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
  }
  
  /* Grid de la galería */
  .gallery-grid {
    display: grid;
    /* Cada item tendrá al menos 300px de ancho, se expandirá según el espacio */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
  }
  
  /* Estilos de cada elemento en la galería */
  .gallery-item {
    background: rgb(77, 77, 77);
    color: #ffffff;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* Imagen dentro del elemento */
  .gallery-img {
    width: 100%;
    height: 300px; /* Altura en escritorio */
    overflow: hidden;
    border-radius: 10px;
  }
  .gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Título dentro de cada item */
  .gallery-item h3 {
    font-size: 18px;
    color: #ffffff;
    margin: 1rem 0;
  }
  
  /* Ocultar la barra lateral si existe */
  .sidebar {
    display: none;
  }
  
  /* ============================
     Responsividad
     ============================ */
  @media (max-width: 992px) {
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .gallery-img {
      height: 260px;
    }
  }
  
  @media (max-width: 768px) {
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .gallery-img {
      height: 260px;
    }
  }
  
  @media (max-width: 480px) {
    .gallery-grid {
      grid-template-columns: 1fr;
    }
    .gallery-img {
      height: 220px;
    }
    .gallery-item h3 {
      font-size: 16px;
    }
  }
  