/* ==========================================
   ALBUM POST - GALERIA DE FOTOS
   ========================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Seção do Álbum */
.album-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Cabeçalho do Álbum */
.album-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.album-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.album-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.album-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-top: 20px;
}

.album-subtitle i {
    margin-right: 8px;
    color: #3498db;
}

/* Grade de Fotos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Item de Foto */
.photo-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.photo-item:nth-child(1) { animation-delay: 0.1s; }
.photo-item:nth-child(2) { animation-delay: 0.15s; }
.photo-item:nth-child(3) { animation-delay: 0.2s; }
.photo-item:nth-child(4) { animation-delay: 0.25s; }
.photo-item:nth-child(5) { animation-delay: 0.3s; }
.photo-item:nth-child(6) { animation-delay: 0.35s; }

.photo-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.photo-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.photo-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-wrapper:hover .photo-img {
    transform: scale(1.1);
}

/* Overlay com Ícone de Zoom */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-wrapper:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    font-size: 3rem;
    color: #fff;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.photo-wrapper:hover .photo-overlay i {
    transform: scale(1);
}

/* Ações do Álbum */
.album-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3498db 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    color: #fff;
}

.btn-back i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-5px);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .album-section {
        padding: 40px 0;
    }

    .album-title {
        font-size: 2rem;
    }

    .album-subtitle {
        font-size: 1rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .photo-img {
        height: 220px;
    }

    .photo-overlay i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .album-title {
        font-size: 1.6rem;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photo-img {
        height: 250px;
    }

    .btn-back {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Compatibilidade com classes antigas */
.photo-column {
    margin-bottom: 15px;
}

.photo-column-galery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 5px 7px;
}