/* =========================================================
   Albums Archive
   ========================================================= */

.lwf-albums-page {
    background: #f8fafc;
}


/* =========================================================
   Albums Hero
   ========================================================= */

.lwf-albums-hero {
    position: relative;
    min-height: 157px;

    background-image: url('../images/hero-media.png');
    background-size: cover;
    background-position: center 85%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.lwf-albums-hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.42);
}

.lwf-albums-hero-content {
    position: relative;
    z-index: 2;

    text-align: center;
}

.lwf-albums-hero-content h1 {
    margin: 0;

    color: #fff;

    font-size: 42px;
    font-weight: 700;
}


/* الهاتف */
@media (max-width: 768px) {

    .lwf-albums-hero {
        min-height: 100px;
    }

    .lwf-albums-hero-content h1 {
        font-size: 30px;
        font-weight: 700;
    }

}


/* =========================================================
   Content
   ========================================================= */

.lwf-albums-content {
    width: min(
        var(--site-max-width),
        calc(100% - (var(--site-side-space) * 2))
    );

    max-width: none;
    margin: 0 auto;

    padding: 42px 0 60px;
}


/* =========================================================
   Grid
   ========================================================= */

.lwf-albums-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px 22px;
}


/* =========================================================
   Album Card
   ========================================================= */

.lwf-album-card {
    min-width: 0;
}

.lwf-album-card-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: 14px;

    background: #111827;

    text-decoration: none;
}

.lwf-album-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}

.lwf-album-card:hover
.lwf-album-card-image img {
    transform: scale(1.045);
}


/* =========================================================
   Overlay
   ========================================================= */

.lwf-album-card-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .82) 0%,
            rgba(0, 0, 0, .32) 45%,
            rgba(0, 0, 0, .04) 75%
        );
}


/* =========================================================
   Card Information
   ========================================================= */

.lwf-album-card-info {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    padding: 18px 18px 16px;

    color: #fff;

    text-align: right;
}

.lwf-album-card-label {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    margin-bottom: 8px;

    border-radius: 5px;

     background: #087f3f;
    color: #ffffff;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.lwf-album-card-info h2 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 18px;
    line-height: 1.5;
    font-weight: 800;
}

.lwf-album-card-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    color: rgba(255, 255, 255, .88);

    font-size: 12px;
    font-weight: 600;
}

.lwf-album-card-meta span {
    display: inline-flex;

    align-items: center;

    gap: 5px;
}


/* =========================================================
   Placeholder
   ========================================================= */

.lwf-album-card-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e5e7eb;

    color: #9ca3af;

    font-size: 38px;
}


/* =========================================================
   Empty State
   ========================================================= */

.lwf-albums-empty {
    grid-column: 1 / -1;

    padding: 70px 20px;

    text-align: center;
}

.lwf-albums-empty-icon {
    margin-bottom: 15px;

    font-size: 42px;
}

.lwf-albums-empty h2 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 22px;
    font-weight: 800;
}

.lwf-albums-empty p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   Pagination
   ========================================================= */

.lwf-albums-pagination {
    display: flex;

    justify-content: center;

    margin-top: 42px;
}

.lwf-albums-pagination .page-numbers {
    min-width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 3px;

    border: 1px solid #d5d9df;
    border-radius: 50%;

    background: #fff;

    color: #111827;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.lwf-albums-pagination
.page-numbers:hover {
    border-color: #006633;

    background: #006633;

    color: #fff;
}

.lwf-albums-pagination
.page-numbers.current {
    border-color: #006633;

    background: #006633;

    color: #fff;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1000px) {

    .lwf-albums-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .lwf-albums-hero {
        min-height: 120px;
    }

    .lwf-albums-hero-content h1 {
        font-size: 30px;
    }

    .lwf-albums-content {
        width: min(
            100% - 28px,
            1250px
        );

        padding: 28px 0 45px;
    }

    .lwf-albums-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .lwf-album-card-image {
        aspect-ratio: 16 / 10;
        border-radius: 11px;
    }

    .lwf-album-card-info {
        padding: 15px 14px 13px;
    }

    .lwf-album-card-info h2 {
        font-size: 16px;
    }

}

/* =========================================================
   FRENCH / LTR
   ========================================================= */

.lwf-albums-page--fr {
    direction: ltr;
}

.lwf-albums-page--fr .lwf-albums-hero {
    direction: ltr;
}

.lwf-albums-page--fr .lwf-albums-hero-content {
    direction: ltr;
    text-align: center;
}

.lwf-albums-page--fr .lwf-album-card {
    direction: ltr;
}

.lwf-albums-page--fr .lwf-album-card-info {
    direction: ltr;
    text-align: left;
}

.lwf-albums-page--fr .lwf-album-card-info h2 {
    text-align: left;
}

.lwf-albums-page--fr .lwf-album-card-meta {
    direction: ltr;
}

.lwf-albums-page--fr .lwf-album-card-meta span {
    text-align: left;
}

.lwf-albums-page--fr .lwf-albums-empty {
    direction: ltr;
    text-align: center;
}

.lwf-albums-page--fr .lwf-albums-pagination {
    direction: ltr;
}