﻿/* ===== ALBUM DETAIL PAGE ===== */

.album-detail {
    background: transparent;
}

.album-detail__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    color: #6b7280;
}

    .album-detail__breadcrumb a {
        color: #4b5563;
        text-decoration: none;
    }

        .album-detail__breadcrumb a:hover {
            color: #166534;
        }

.album-detail__title {
    font-family: "Merriweather", serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.2;
    color: #166534;
    margin-bottom: 18px;
}

.album-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.album-detail__meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.album-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 16px;
}

.album-detail__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: #e8f7ee;
    color: #167c50;
    font-weight: 700;
    font-size: 15px;
}

.album-detail__sapo {
    font-family: "Merriweather", serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #374151;
    margin-bottom: 28px;
}

/* ===== MASONRY ===== */

.album-masonry {
    column-count: 3;
    column-gap: 18px;
}

.album-masonry__item {
    display: block;
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .album-masonry__item:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
    }

    .album-masonry__item img {
        width: 100%;
        height: auto;
        display: block;
    }

/* ===== LIGHTBOX ===== */

.album-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
    opacity: 0;
    transition: opacity .28s ease;
}

.album-lightbox.is-open {
    opacity: 1;
}

.album-lightbox__img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(.885);
    transition: opacity .28s ease, transform .28s ease;
}

.album-lightbox__img.is-visible {
    opacity: 1;
    transform: scale(1);
}

.album-lightbox__caption {
    color: #fff;
    margin-top: 14px;
    text-align: center;
    max-width: 900px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    transition: opacity .28s ease;
}

    .album-lightbox__caption.is-visible {
        opacity: 1;
    }

.album-lightbox__close,
.album-lightbox__nav {
    position: fixed;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 0;
    border-radius: 999px;
    width: 48px;
    height: 48px;
    font-size: 32px;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease;
}

    .album-lightbox__close:hover,
    .album-lightbox__nav:hover {
        background: rgba(255, 255, 255, .24);
    }

.album-lightbox__close {
    top: 18px;
    right: 18px;
}

.album-lightbox__nav--prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.album-lightbox__nav--next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===== SIDEBAR ===== */

.album-sidebar {
    background: #fff;
    border-radius: 24px;
    padding: 18px 18px 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
    position: sticky;
    top: 90px;
}

.album-sidebar__title {
    font-family: "Inter", sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    color: #1f2937;
    margin-bottom: 18px;
}

.album-sidebar-featured {
    display: block;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #d9dee5;
}

.album-sidebar-featured__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 14px;
}

    .album-sidebar-featured__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.album-sidebar-featured__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #6b7280;
    font-size: 14px;
}

.album-sidebar-featured__name {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

.album-sidebar-featured__category,
.album-sidebar-item__category {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #17925e;
    margin-bottom: 8px;
}

.album-sidebar-featured__meta-row,
.album-sidebar-item__meta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.4;
}

    .album-sidebar-featured__meta-row span,
    .album-sidebar-item__meta-row span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

.album-sidebar-list {
    display: flex;
    flex-direction: column;
}

.album-sidebar-item {
    display: block;
    padding: 16px 0;
    border-bottom: 1px dashed #d9dee5;
    transition: transform .18s ease;
}

    .album-sidebar-item:hover {
        transform: translateX(4px);
    }

    .album-sidebar-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.album-sidebar-item__name {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .album-sidebar__title {
        font-size: 26px;
    }

    .album-sidebar-featured__name {
        font-size: 20px;
    }

    .album-sidebar-item__name {
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    .album-masonry {
        column-count: 2;
    }

    .album-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 575.98px) {
    .album-detail__title {
        margin-bottom: 14px;
    }

    .album-detail__meta {
        align-items: flex-start;
    }

    .album-masonry {
        column-count: 1;
    }

    .album-sidebar__title {
        font-size: 22px;
    }

    .album-sidebar-featured__name {
        font-size: 19px;
    }

    .album-sidebar-item__name {
        font-size: 17px;
    }

    .album-sidebar-featured__meta-row,
    .album-sidebar-item__meta-row {
        gap: 12px;
        font-size: 14px;
    }
}
