/* Hasil Produksi — gallery page */

.fz-production-results__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.fz-production-results__card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(75, 139, 249, 0.1);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fz-production-results__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.fz-production-results__media {
    border-radius: 0;
    background-color: #0f1520;
}

/* Shared media frame — prevents squashed / stretched images */
.home-media-cover {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px;
    background-color: #0f0f0f;
}

.home-media-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.home-media-cover--landscape {
    aspect-ratio: 4 / 3;
}

.fz-production-results__card .home-media-cover {
    height: 250px;
    width: 100%;
}

.fz-production-results__link {
    display: block;
    overflow: hidden;
}

.fz-production-results__link:hover .home-media-cover img {
    transform: scale(1.05);
}

.fz-production-results__body {
    padding: 1rem 1.15rem 1.2rem;
}

.fz-production-results__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.fz-production-results__desc {
    margin: 0;
    color: var(--color-body, #65676b);
    font-size: 0.92rem;
    line-height: 1.55;
}

.fz-production-results__empty {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0;
    color: var(--color-body, #65676b);
}

.fz-production-results__pagination {
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.fz-production-results__pagination-info {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-body, #65676b);
}

.fz-production-results__pagination-info strong {
    color: var(--color-heading, #1f1f25);
    font-weight: 600;
}

.fz-production-results__pagination ul.page-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fz-production-results__pagination ul.page-list li {
    display: inline-block;
    padding: 5px;
    vertical-align: middle;
}

.fz-production-results__pagination ul.page-list li.is-disabled a {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.fz-production-results__pagination ul.page-list li.page-list__gap span {
    display: inline-block;
    min-width: 28px;
    line-height: 42px;
    color: var(--color-body, #65676b);
    font-weight: 600;
}

.fz-production-results__pagination ul.page-list li a {
    border-radius: 8px;
}

@media (max-width: 575px) {
    .fz-production-results__pagination ul.page-list li.page-list__gap {
        display: none;
    }
}

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

@media (max-width: 575px) {
    .fz-production-results__grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Hero Background for Hasil Produksi Page */
.fz-page-hero.fz-page-hero--production-results {
    background-image: url('../images/bg/bg_Hasil%20Produk.avif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.fz-page-hero.fz-page-hero--production-results::before {
    /* Dark gradient overlay to ensure text is highly readable over the image background */
    background: linear-gradient(
        135deg,
        rgba(10, 18, 36, 0.85) 0%,
        rgba(8, 14, 28, 0.78) 50%,
        rgba(5, 10, 20, 0.88) 100%
    );
    z-index: 0;
}

.fz-page-hero.fz-page-hero--production-results .container {
    z-index: 1;
}

/* Make subtitle, title and description text highly visible and premium looking */
.fz-page-hero.fz-page-hero--production-results .section-title span.subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.fz-page-hero.fz-page-hero--production-results .section-title h1.title {
    color: #ffffff !important;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.fz-page-hero.fz-page-hero--production-results .section-title p.description {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Lightbox Styles with Glassmorphism */
.fz-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fz-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.fz-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.fz-lightbox__content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: scale(0.92) translateY(15px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.fz-lightbox.active .fz-lightbox__content {
    transform: scale(1) translateY(0);
}
.fz-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    background: rgba(8, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 15;
    padding: 0;
    line-height: 1;
}
.fz-lightbox__close:hover {
    background: var(--color-primary, #4b8bf9);
    border-color: transparent;
    transform: scale(1.1) rotate(90deg);
}
.fz-lightbox__figure {
    margin: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.fz-lightbox__img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    transition: opacity 0.18s ease-in-out;
    opacity: 1;
}
.fz-lightbox__img.fade-out {
    opacity: 0;
}
.fz-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(8, 10, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 15;
    padding: 0;
}
.fz-lightbox__nav svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}
.fz-lightbox__nav--prev {
    left: -22px;
}
.fz-lightbox__nav--next {
    right: -22px;
}
.fz-lightbox__nav:hover {
    background: var(--color-primary, #4b8bf9);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}
@media (max-width: 991px) {
    .fz-lightbox__nav {
        width: 38px;
        height: 38px;
        background: rgba(8, 10, 20, 0.8);
    }
    .fz-lightbox__nav svg {
        width: 18px;
        height: 18px;
    }
    .fz-lightbox__nav--prev {
        left: 10px;
    }
    .fz-lightbox__nav--next {
        right: 10px;
    }
}
.fz-lightbox__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.fz-lightbox__dots {
    display: flex;
    gap: 6px;
}
.fz-lightbox__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.fz-lightbox__dot.active {
    background: var(--color-primary, #4b8bf9);
    transform: scale(1.2);
}
.fz-lightbox__dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.65);
}
.fz-lightbox__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(8, 10, 20, 0.95) 0%, rgba(8, 10, 20, 0.4) 75%, transparent 100%);
    padding: 30px 24px 20px;
    color: #fff;
}
.fz-lightbox__category {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary, #4b8bf9);
    margin-bottom: 0;
}
.fz-lightbox__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.fz-lightbox__desc {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* Hover Zoom Button for Hasil Produksi Page */
.fz-production-results__media {
    position: relative;
}
.fz-production-results__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary, #4b8bf9);
    opacity: 0;
    transform: scale(0.85);
    z-index: 10;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.fz-production-results__zoom svg,
.fz-production-results__zoom i {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}
.fz-production-results__card:hover .fz-production-results__zoom {
    opacity: 1;
    transform: scale(1);
}
