/* Photo albums — list + detail */

.alb-section {
    background: #fff;
    padding: 44px 0 96px;
}

.alb-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Toolbar ---------- */
.alb-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 30px;
}

.alb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.alb-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(var(--brand-rgb), .08);
    padding: 10px 18px 10px 10px;
}

.alb-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-action);
    font-size: 16px;
}

.alb-stat__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.alb-stat__text strong {
    color: var(--brand-plum);
    font-size: 22px;
    font-weight: 800;
}

.alb-stat__text small {
    color: var(--brand-muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

.alb-search {
    position: relative;
    flex: 0 1 380px;
    margin: 0;
}

.alb-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-muted);
    font-size: 14px;
    pointer-events: none;
}

.alb-search input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-surface);
    color: var(--brand-ink);
    font-size: 15px;
    padding: 0 110px 0 44px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.alb-search input:focus {
    background: #fff;
    border-color: var(--brand-action);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15);
}

.alb-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-action);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 0 18px;
}

.alb-filter-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--brand-muted);
    font-size: 14px;
    margin: -14px 0 24px;
}

.alb-filter-note a {
    color: var(--brand-action);
    font-weight: 600;
}

/* ---------- Spotlight ---------- */
.alb-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 26px;
    margin-bottom: 44px;
    background: var(--brand-plum);
    box-shadow: 0 28px 60px rgba(44, 26, 14, .25);
    color: #fff;
}

.alb-collage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-height: 420px;
    background: #1d140c;
}

.alb-collage a {
    position: relative;
    display: block;
    overflow: hidden;
}

.alb-collage a:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.alb-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.alb-collage a:hover img {
    transform: scale(1.06);
}

.alb-collage--single a:first-child {
    grid-column: 1 / -1;
}

.alb-collage__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 20, 12, .55);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.alb-spotlight__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 42px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--brand-rgb), .28) 0%, rgba(var(--brand-rgb), 0) 55%),
        var(--brand-plum);
}

.alb-spotlight__kicker {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(var(--brand-rgb), .22);
    color: var(--brand-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.alb-spotlight__title {
    color: #fff;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
}

.alb-spotlight__title a {
    color: inherit;
}

.alb-spotlight__text {
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.alb-spotlight__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.alb-spotlight__meta span {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    padding: 6px 14px;
}

.alb-spotlight__meta i {
    color: var(--brand-light);
    margin-right: 6px;
}

/* ---------- Buttons ---------- */
.alb-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    line-height: 1.2;
    cursor: pointer;
    transition: all .2s ease;
}

.alb-btn--primary {
    align-self: flex-start;
    background: var(--brand-action);
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--brand-rgb), .35);
}

.alb-btn--primary:hover {
    background: var(--brand-hover);
    color: #fff;
    transform: translateY(-2px);
}

.alb-spotlight .alb-btn--primary:hover {
    background: #fff;
    color: var(--brand-plum);
}

.alb-btn--ghost {
    background: #fff;
    border-color: var(--brand-border);
    color: var(--brand-ink);
}

.alb-btn--ghost:hover {
    border-color: var(--brand-action);
    color: var(--brand-action);
}

/* ---------- Album card ---------- */
.alb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
}

.alb-card {
    display: flex;
    flex-direction: column;
}

.alb-card__stack {
    position: relative;
    display: block;
    padding: 0 12px 12px 0;
}

/* stacked photos behind the cover */
.alb-card__stack::before,
.alb-card__stack::after {
    content: "";
    position: absolute;
    border-radius: 18px;
    border: 1px solid var(--brand-border);
    transition: transform .35s ease;
}

.alb-card__stack::before {
    inset: 12px 0 0 12px;
    background: #f3e3c9;
    transform: rotate(2.5deg);
}

.alb-card__stack::after {
    inset: 6px 6px 6px 6px;
    background: #fbf3e6;
    transform: rotate(1.2deg);
}

.alb-card__cover {
    position: relative;
    z-index: 1;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: var(--brand-soft);
    box-shadow: 0 14px 30px rgba(44, 26, 14, .16);
}

.alb-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(20, 12, 6, .6) 100%);
}

.alb-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.alb-card__count {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.alb-card__count i {
    color: var(--brand-light);
    margin-right: 4px;
}

.alb-card__date {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    color: var(--brand-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.alb-card__date strong {
    color: var(--brand-action);
    font-size: 20px;
    font-weight: 800;
}

.alb-card__open {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.8);
    backdrop-filter: blur(6px);
    transition: opacity .3s ease, transform .3s ease;
}

.alb-card:hover .alb-card__stack::before {
    transform: rotate(5deg) translate(4px, 2px);
}

.alb-card:hover .alb-card__stack::after {
    transform: rotate(2.5deg) translate(2px, 1px);
}

.alb-card:hover .alb-card__cover img {
    transform: scale(1.06);
}

.alb-card:hover .alb-card__open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.alb-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 0 2px;
}

.alb-card__title {
    color: var(--brand-plum);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px;
}

.alb-card__title a {
    color: inherit;
}

.alb-card:hover .alb-card__title a {
    color: var(--brand-action);
}

.alb-card__text {
    color: var(--brand-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alb-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1e6d7;
}

.alb-card__thumbs {
    display: flex;
    align-items: center;
}

.alb-card__thumbs img,
.alb-card__thumbs span {
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.alb-card__thumbs > * + * {
    margin-left: -10px;
}

.alb-card__thumbs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand-hover);
    font-size: 11px;
    font-weight: 800;
}

.alb-card__views {
    color: var(--brand-muted);
    font-size: 13px;
}

.alb-card__cta {
    color: var(--brand-action);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.alb-card__cta i {
    margin-left: 4px;
    transition: transform .2s ease;
}

.alb-card:hover .alb-card__cta i {
    transform: translateX(4px);
}

/* ---------- Detail ---------- */
.alb-head {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(var(--brand-rgb), .10);
    padding: 28px;
    margin-bottom: 36px;
}

.alb-head__cover {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(44, 26, 14, .18);
}

.alb-head__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alb-head__title {
    color: var(--brand-plum);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
}

.alb-head__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.alb-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-surface);
    color: var(--brand-ink);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 13px;
}

.alb-chip i {
    color: var(--brand-action);
}

.alb-head__desc {
    color: var(--brand-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.alb-head__desc p:last-child {
    margin-bottom: 0;
}

.alb-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alb-head__actions .alb-btn {
    padding: 10px 20px;
    font-size: 14px;
}

.alb-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

.alb-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-soft);
}

.alb-photo--wide {
    grid-column: span 2;
    grid-row: span 2;
}

.alb-photo > .lightbox-image {
    display: block;
    width: 100%;
    height: 100%;
}

.alb-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, filter .3s ease;
}

.alb-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(20, 12, 6, .55) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.alb-photo__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-action);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.8);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.alb-photo__download {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-plum);
    font-size: 13px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease, color .2s ease;
}

.alb-photo__download:hover {
    background: var(--brand-action);
    color: #fff;
}

.alb-photo:hover img {
    transform: scale(1.07);
}

.alb-photo:hover::after,
.alb-photo:hover .alb-photo__zoom,
.alb-photo:hover .alb-photo__download {
    opacity: 1;
}

.alb-photo:hover .alb-photo__zoom {
    transform: translate(-50%, -50%) scale(1);
}

.alb-photo:hover .alb-photo__download {
    transform: translateY(0);
}

.alb-related {
    margin-top: 64px;
}

.alb-related__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.alb-related__head h2 {
    color: var(--brand-plum);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.alb-related__head a {
    color: var(--brand-action);
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .alb-spotlight {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .alb-spotlight__body {
        padding: 30px;
    }

    .alb-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .alb-spotlight {
        grid-template-columns: 1fr;
    }

    .alb-collage {
        min-height: 320px;
    }

    .alb-head {
        grid-template-columns: 1fr;
    }

    .alb-head__cover {
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    .alb-section {
        padding: 28px 0 70px;
    }

    .alb-search {
        flex-basis: 100%;
    }

    .alb-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .alb-stat {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-width: 0;
        padding: 12px 6px;
        text-align: center;
    }

    .alb-stat__icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .alb-stat__text {
        align-items: center;
    }

    .alb-stat__text strong {
        font-size: 19px;
    }

    .alb-stat__text small {
        font-size: 12px;
    }

    .alb-spotlight {
        border-radius: 20px;
        margin-bottom: 32px;
    }

    .alb-collage {
        min-height: 240px;
    }

    .alb-spotlight__body {
        padding: 22px 20px 26px;
    }

    .alb-head {
        padding: 18px;
        border-radius: 18px;
    }

    .alb-head__actions .alb-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .alb-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .alb-photo {
        border-radius: 12px;
    }

    .alb-photo__download {
        opacity: 1;
        transform: none;
        width: 32px;
        height: 32px;
    }

    .alb-related__head h2 {
        font-size: 23px;
    }
}

@media (max-width: 575px) {
    .alb-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
