.image-album-card {
    color: inherit;
    display: block;
    text-decoration: none;
    height: 100%;
}

.image-album-card:hover {
    color: inherit;
    text-decoration: none;
}

.image-album-card .card {
    position: relative;
    height: 100%;
    border: 1px solid #E1EFFD;
    box-shadow: 0px 3px 8px 0px #191E220A;
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--white-1, #fff);
    margin: unset !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-album-card:hover .card {
    transform: translateY(-4px);
    box-shadow: 0px 8px 24px 0px rgba(25, 30, 34, 0.08);
}

.image-album-card .img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8fafc;
}

.image-album-card .img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.image-album-card .img-wrapper .count {
    background: var(--white-1, #fff);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--wb-theme-text, #333);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.image-album-card .content-wrapper {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.image-album-card .content-wrapper .title {
    background: var(--wb-theme-secondary);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0.75rem;
    border-radius: 0.75rem;
}

.image-album-card .content-wrapper .title .text {
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.7 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.image-album-card .content-wrapper .title .date {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px !important;
    font-weight: 600;
    text-wrap: nowrap;
    white-space: nowrap;
}

.image-album-card .content-wrapper .title .date svg path {
    stroke: white;
}

.image-album-card .content-wrapper .content {
    padding: 0.25rem 0.25rem 0;
}

.image-album-card .content-wrapper .content span {
    min-height: 48px;
    color: var(--wb-theme-text);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.7 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.album-details-page {
    color: var(--wb-theme-text);
}

.album-details-layout {
    row-gap: 2rem;
}

.album-details-content,
.album-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.album-details-description {
    margin: 0;
    color: var(--wb-theme-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
}

.album-details-description p {
    margin: 0;
}

.album-details-description p + p {
    margin-top: 0.75rem;
}

.album-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.album-gallery-section h2 {
    margin: 0;
    color: var(--wb-theme-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}

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

.album-gallery-item {
    min-height: 12.5rem;
    border: 2px solid color-mix(in srgb, var(--wb-theme-primary) 28%, transparent);
    border-radius: 1rem;
    overflow: hidden;
    display: block;
    background: var(--white-1);
}

.album-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 12.5rem;
    object-fit: cover;
    display: block;
}

.album-summary-card {
    padding: 1rem;
    background: var(--white-1);
    border: 1px solid #EAEAEA;
    border-radius: 1.5rem;
    box-shadow: 0px 3px 8px 0px #191E220A;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.album-summary-card > img {
    width: 100%;
    aspect-ratio: 390 / 240;
    border-radius: 1rem;
    object-fit: cover;
}

.album-summary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.album-summary-content h2 {
    margin: 0;
    color: #043A30;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.album-summary-date {
    color: var(--wb-theme-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    line-height: 1.8;
}

.album-summary-date > span {
    color: #043A30;
    font-size: 18px;
    font-weight: 400;
}

.album-summary-date time {
    color: var(--wb-theme-text);
    font-size: 14px;
}

.album-summary-date svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.album-summary-date svg path {
    stroke: var(--wb-theme-primary);
}

.album-gallery-section .pagination {
    padding: 0.75rem 0 0;
}

.album-empty-state {
    padding: 2rem;
    background: var(--white-1);
    border: 1px solid #EAEAEA;
    border-radius: 1rem;
    color: var(--wb-theme-text);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

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

@media (max-width: 575.98px) {
    .album-gallery-grid {
        grid-template-columns: 1fr;
    }

    .album-gallery-item,
    .album-gallery-item img {
        min-height: 13rem;
    }

    .album-summary-date {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}
