.page-albuns .cchla-home-cards__grid,
.page-album-single .cchla-home-cards__card {
    margin: 0;
}

.cchla-album-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #1a5fa8;
    font-size: 2rem;
}

.cchla-album-card__count {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
}

.cchla-albuns-pagination {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cchla-albuns-pagination__counter {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
}

.cchla-albuns-pagination__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cchla-albuns-pagination__links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cchla-albuns-pagination__links .page-numbers:hover,
.cchla-albuns-pagination__links .page-numbers:focus-visible {
    border-color: #2563eb;
    color: #2563eb;
    outline: none;
}

.cchla-albuns-pagination__links .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.cchla-album-gallery {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .cchla-album-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cchla-album-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.cchla-album-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cchla-album-gallery__link {
    display: block;
    overflow: hidden;
}

.cchla-album-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cchla-album-gallery__link:hover .cchla-album-gallery__image,
.cchla-album-gallery__link:focus-visible .cchla-album-gallery__image {
    transform: scale(1.03);
}

.cchla-album-gallery__caption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.cchla-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
}

.cchla-lightbox[hidden] {
    display: none !important;
}

.cchla-lightbox__figure {
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 4rem);
    margin: 0;
}

.cchla-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    margin: 0 auto;
    object-fit: contain;
}

.cchla-lightbox__caption {
    margin-top: 0.75rem;
    text-align: center;
    color: #fff;
    font-size: 0.9375rem;
}

.cchla-lightbox__close,
.cchla-lightbox__prev,
.cchla-lightbox__next {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.cchla-lightbox__close:hover,
.cchla-lightbox__prev:hover,
.cchla-lightbox__next:hover,
.cchla-lightbox__close:focus-visible,
.cchla-lightbox__prev:focus-visible,
.cchla-lightbox__next:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    outline: none;
}

.cchla-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

.cchla-lightbox__prev,
.cchla-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
}

.cchla-lightbox__prev {
    left: 1rem;
}

.cchla-lightbox__next {
    right: 1rem;
}
