/* --- Contenedor Principal --- */
.album-wrapper {
    padding: 60px 0;
    background-color: #ffffff;
    min-height: 80vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Cabecera --- */
.album-header {
    text-align: center;
    margin-bottom: 50px;
}

.album-category {
    color: #4CAF50; /* Color verde montañero */
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.album-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #222;
    margin: 0;
    text-transform: uppercase;
}

.album-line {
    width: 50px;
    height: 4px;
    background: #4CAF50;
    margin: 20px auto;
    /*border-radius: 2px;*/
}

.album-description {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
    font-size: 17px;
}

/* --- Grid de Fotos --- */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.album-item {
    position: relative;
    height: 300px;
    /*border-radius: 12px;*/
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

/* --- Efecto Hover (Ratón por encima) --- */
.album-item:hover img {
    transform: scale(1.15);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 169, 78, 0.5); /* Capa verde semi-transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
    font-size: 30px;
}

.album-item:hover .img-overlay {
    opacity: 1;
}

/* --- Botón Volver --- */
.album-footer {
    text-align: center;
    margin-top: 60px;
}

.btn-back {
    display: inline-block;
    padding: 15px 35px;
    background: #222;
    color: #fff !important;
    text-decoration: none !important;
    /*border-radius: 50px;*/
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

/* --- Adaptación Móvil --- */
@media (max-width: 768px) {
    .album-header h1 { font-size: 30px; }
    .album-grid { grid-template-columns: 1fr; } /* Una sola columna en móvil */
    .album-item { height: 250px; }
}