.rcs-fotoalbums {
    --rcs-blue: #005599;
    --rcs-light-blue: #66CCFF;
    --rcs-white: #FFFFFF;
    --rcs-text: #152033;
    --rcs-muted: #607084;
    width: 100%;
}

.rcs-fotoalbums-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(140px, 1fr)) minmax(130px, 0.8fr);
    gap: 12px;
    align-items: end;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(0, 85, 153, 0.18);
    border-radius: 8px;
    background: #f7fbff;
}

.rcs-fotoalbums-filters label span {
    display: block;
    margin-bottom: 5px;
    color: var(--rcs-blue);
    font-weight: 800;
    font-size: 13px;
}

.rcs-fotoalbums-filters select,
.rcs-fotoalbums-filters input[type="search"],
.rcs-fotoalbums-filters button {
    width: 100%;
    min-height: 42px;
    border-radius: 6px;
}

.rcs-fotoalbums-filters select,
.rcs-fotoalbums-filters input[type="search"] {
    border: 1px solid rgba(0, 85, 153, 0.25);
    background: var(--rcs-white);
    color: var(--rcs-text);
}

.rcs-fotoalbums-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.rcs-fotoalbums-filter-actions button {
    border: 0;
    background: var(--rcs-blue);
    color: var(--rcs-white);
    font-weight: 800;
    cursor: pointer;
}

.rcs-fotoalbums-filter-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    color: var(--rcs-blue);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.rcs-fotoalbums-filter-actions a:hover,
.rcs-fotoalbums-filter-actions a:focus {
    text-decoration: underline;
}

.rcs-fotoalbums-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.rcs-fotoalbums-cols-1 .rcs-fotoalbums-grid {
    grid-template-columns: 1fr;
}

.rcs-fotoalbums-cols-2 .rcs-fotoalbums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rcs-fotoalbums-cols-4 .rcs-fotoalbums-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rcs-fotoalbum-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(0, 85, 153, 0.14);
    border-radius: 8px;
    background: var(--rcs-white);
    box-shadow: 0 8px 24px rgba(0, 28, 70, 0.08);
    overflow: hidden;
}

.rcs-fotoalbum-card.is-featured {
    border-color: var(--rcs-light-blue);
    box-shadow: 0 12px 30px rgba(0, 85, 153, 0.18);
}

.rcs-fotoalbum-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--rcs-blue), var(--rcs-light-blue));
    overflow: hidden;
    text-decoration: none;
}

.rcs-fotoalbum-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.rcs-fotoalbum-card:hover .rcs-fotoalbum-image img {
    transform: scale(1.035);
}

.rcs-fotoalbum-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rcs-white);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0;
}

.rcs-fotoalbum-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 85, 153, 0.94);
    color: var(--rcs-white);
    font-size: 13px;
    font-weight: 800;
}

.rcs-fotoalbum-featured {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--rcs-light-blue);
    color: var(--rcs-blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.rcs-fotoalbum-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.rcs-fotoalbum-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.rcs-fotoalbum-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(102, 204, 255, 0.22);
    color: var(--rcs-blue);
    font-size: 12px;
    font-weight: 800;
}

.rcs-fotoalbum-body h3 {
    margin: 0 0 7px;
    color: var(--rcs-text);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.rcs-fotoalbum-date {
    margin: 0 0 10px;
    color: var(--rcs-blue);
    font-weight: 800;
}

.rcs-fotoalbum-description {
    margin: 0 0 16px;
    color: var(--rcs-muted);
}

.rcs-fotoalbum-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: auto;
    padding: 9px 14px;
    border-radius: 6px;
    background: var(--rcs-blue);
    color: var(--rcs-white);
    font-weight: 900;
    text-decoration: none;
}

.rcs-fotoalbum-button:hover,
.rcs-fotoalbum-button:focus {
    background: #003f73;
    color: var(--rcs-white);
}

.rcs-fotoalbums-empty {
    padding: 18px;
    border: 1px solid rgba(0, 85, 153, 0.16);
    border-radius: 8px;
    background: #f7fbff;
    color: var(--rcs-blue);
    font-weight: 800;
}

@media (max-width: 980px) {
    .rcs-fotoalbums-grid,
    .rcs-fotoalbums-cols-3 .rcs-fotoalbums-grid,
    .rcs-fotoalbums-cols-4 .rcs-fotoalbums-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rcs-fotoalbums-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rcs-fotoalbums-grid,
    .rcs-fotoalbums-cols-2 .rcs-fotoalbums-grid,
    .rcs-fotoalbums-cols-3 .rcs-fotoalbums-grid,
    .rcs-fotoalbums-cols-4 .rcs-fotoalbums-grid,
    .rcs-fotoalbums-filters {
        grid-template-columns: 1fr;
    }
}
