/* ===== Gallery page: uniform-size image grid =====
   Every box is the same fixed size (4:3) no matter the source photo's
   own aspect ratio; object-fit:contain keeps the whole photo visible,
   uncropped, inside that box — same approach as the product-detail
   photo grid (pp-gallery-item). */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px #0624511a;
    position: relative;
    background: #f3f5f4;
}

    .gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .45s ease;
    }

    .gallery-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,transparent 60%,#062451b3 100%);
        opacity: 0;
        transition: opacity .3s ease;
    }

    .gallery-item:hover::after {
        opacity: 1
    }

    .gallery-item:hover img {
        transform: scale(1.06)
    }

@media(max-width:860px) {
    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 16px
    }

    .gallery-item {
        border-radius: 12px
    }
}

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

/* ===== Gallery category blocks (Commissioning / Offices & Warehouses /
   Products & Catalogues / Data Sheet & Certification) ===== */
.gallery-category {
    margin-top: 64px;
}

    .gallery-category:first-of-type {
        margin-top: 0;
    }

    .gallery-category .cat-heading {
        text-align: center;
        max-width: 760px;
        margin: 0 auto 28px;
    }

        .gallery-category .cat-heading h3 {
            font-family: "Plus Jakarta Sans";
            font-size: 28px;
            font-weight: 800;
            line-height: 1.2;
            color: var(--ink);
            margin: 12px 0 0;
        }

.gallery-empty-note {
    display: block;
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: var(--soft);
}

    .gallery-empty-note p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
    }

@media(max-width:860px) {
    .gallery-category {
        margin-top: 46px;
    }

        .gallery-category .cat-heading h3 {
            font-size: 23px;
        }
}

/* ===== PDF boxes grid (Technical Data Sheet & Certification) ===== */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.pdf-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 6px 16px #0624510f;
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

    .pdf-item svg {
        color: #e0432a;
        flex-shrink: 0;
    }

    .pdf-item span {
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
        color: var(--ink);
    }

    .pdf-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px #0624511a;
        border-color: var(--blue);
        background: var(--soft);
    }

        .pdf-item:hover span {
            color: var(--blue);
        }

@media(max-width:860px) {
    .pdf-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
    }

    .pdf-item {
        padding: 12px 14px;
    }
}

@media(max-width:520px) {
    .pdf-grid {
        grid-template-columns: 1fr;
    }
}
