/* Estilos para a galeria de fotos */
.gallery-header {
    text-align: center;
    margin: 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.gallery-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.gallery-header h1:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #0056b3;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-header p {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.gallery-grid {
    margin-bottom: 50px;
}

.album-card {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    margin-bottom: 20px;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.album-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-image img {
    transform: scale(1.1);
}

.album-info {
    padding: 12px;
    text-align: center;
}

.album-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.album-date {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.album-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 86, 179, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* Estilos para a paginação da galeria - usando as mesmas classes das notícias */
.gallery-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0 50px;
}

.gallery-pagination .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-pagination .pagination li {
    margin: 0 5px;
}

.gallery-pagination .pagination li a,
.gallery-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gallery-pagination .pagination li.active span {
    background-color: #0056b3;
    color: #fff;
}

.gallery-pagination .pagination li a:hover {
    background-color: #e0e0e0;
}

.gallery-pagination .pagination li.disabled span {
    color: #999;
    cursor: not-allowed;
}

/* Estilos para a página de detalhes do álbum */
.album-header {
    margin: 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.album-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.album-date {
    font-size: 14px;
    color: #666;
}

.album-description {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 25px;
    max-width: 800px;
}

/* Grid de fotos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
    margin-bottom: 40px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.photo-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* Responsividade para o grid de fotos */
@media (max-width: 1199px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .photo-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .photo-item {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Estilos para a paginação da página de fotos - usando as mesmas classes das notícias */
.photo-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0 50px;
}

.photo-pagination .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.photo-pagination .pagination li {
    margin: 0 5px;
}

.photo-pagination .pagination li a,
.photo-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.photo-pagination .pagination li.active span {
    background-color: #0056b3;
    color: #fff;
}

.photo-pagination .pagination li a:hover {
    background-color: #e0e0e0;
}

.photo-pagination .pagination li.disabled span {
    color: #999;
    cursor: not-allowed;
}

.back-to-gallery {
    display: inline-flex;
    align-items: center;
    color: #0056b3;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
    transition: color 0.3s ease;
}

.back-to-gallery i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.back-to-gallery:hover {
    color: #003d82;
    text-decoration: none;
}

.back-to-gallery:hover i {
    transform: translateX(-5px);
}

@media (max-width: 767px) {
    .album-image {
        height: 140px;
    }
    
    .gallery-header h1 {
        font-size: 22px;
    }
    
    .gallery-header p {
        font-size: 13px;
    }
    
    .photo-item {
        margin-bottom: 15px;
    }
    
    .album-detail-header h1 {
        font-size: 22px;
    }
}
