/* ---
  MOLINERO FOTOGRAFÍA - GALLERY-STYLE.CSS
  Version 1.1 - The Floating Navigation & Editorial Layout
--- */

/* --- 1. Header & Navigation (AHORA FIJO) --- */
.gallery-header {
    position: fixed; /* Lo fijamos a la ventana del navegador */
    top: 0;
    left: 0;
    z-index: 1000; /* Nos aseguramos de que esté por encima de todo */
    padding: 15px; /* Un poco de espacio alrededor del botón */
}

.back-button {
    font-family: var(--font-secondary);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 24px;
    
    /* Efecto "Frosted Glass" */
    background-color: rgba(16, 16, 16, 0.6); /* Nuestro fondo, pero semi-transparente */
    backdrop-filter: blur(8px); /* El desenfoque del fondo */
    -webkit-backdrop-filter: blur(8px); /* Para compatibilidad con Safari */
    
    border-radius: 50px; /* Completamente redondeado */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Un borde sutil */
    
    transition: all var(--transition-speed) ease;
}

.back-button:hover {
    background-color: rgba(16, 16, 16, 0.9);
    transform: scale(1.05); /* Efecto de crecimiento al pasar el ratón */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- 2. The Photo Story Layout (CON AJUSTE DE ESPACIADO) --- */
.photo-story {
    max-width: 1200px;
    margin: 0 auto;
    /* Añadimos un margen superior para que el primer título no quede debajo del botón fijo */
    margin-top: 100px; 
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.gallery-title, .gallery-subtitle {
    grid-column: 1 / -1;
    text-align: center;
}

.gallery-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    margin-bottom: 0;
}

.gallery-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    margin-top: 5px;
    margin-bottom: 40px;
}

.photo-item {
    grid-column: span 12;
    overflow: hidden;
}

.photo-item.wide { grid-column: 1 / -1; }
.photo-item.tall { grid-column: span 6; grid-row: span 2; }


.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 3. Testimonial Block --- */
.testimonial {
    grid-column: 3 / 11;
    padding: 60px 0;
    text-align: center;
}

.testimonial blockquote {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    line-height: 1.4;
    border: none;
    margin-bottom: 15px;
}

.testimonial cite {
    font-family: var(--font-secondary);
    font-style: normal;
    font-weight: 300;
    opacity: 0.8;
}

/* --- 4. Call to Action (CTA) --- */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 40px auto;
}

.cta-section h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 1rem;
    transition: transform var(--transition-speed) ease;
}

.cta-button:hover {
    transform: scale(1.05);
}


/* --- 5. Media Queries para Galerías --- */
@media (max-width: 768px) {
    .photo-story {
        margin-top: 80px; /* Reducimos el margen en móvil */
    }

    .photo-item, .photo-item.tall {
        grid-column: span 12;
        grid-row: span 1;
    }

    .testimonial {
        grid-column: 1 / -1;
        padding: 40px 10px;
    }
    .testimonial blockquote {
        font-size: 1.5rem;
    }
}