
/* ==================================
   PCCC PROJECT GALLERY
================================== */

.pccc-gallery {
    width: 100%;
    padding: 42px 15px 30px;
    background: #f7f9fc;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.pccc-gallery .container {
    max-width: 90%;
}

.pccc-gallery *,
.pccc-gallery *::before,
.pccc-gallery *::after {
    box-sizing: border-box;
}

.pccc-gallery__container {
    max-width: 930px;
    margin: 0 auto;
}

.pccc-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pccc-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .13);
    text-decoration: none;
    isolation: isolate;
}

.pccc-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.pccc-gallery__badge {
    position: absolute;
    top: 10px;
    left: 9px;
    z-index: 2;

    max-width: calc(100% - 18px);
    padding: 5px 10px;

    color: #fff;
    background: #ed101b;
    border-radius: 20px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pccc-gallery__zoom {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: rgba(0, 0, 0, .38);

    font-size: 40px;
    font-weight: 300;

    opacity: 0;
    transition: opacity .3s ease;
}

.pccc-gallery__item:hover img {
    transform: scale(1.08);
}

.pccc-gallery__item:hover .pccc-gallery__zoom {
    opacity: 1;
}

.pccc-gallery__action {
    margin-top: 35px;
    text-align: center;
}

.pccc-gallery__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 14px 23px;
    min-height: 46px;

    color: #fff !important;
    background: #ed101b;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;

    box-shadow: 0 5px 12px rgba(237, 16, 27, .2);
    transition: background .3s ease, transform .3s ease;
}

.pccc-gallery__button:hover {
    background: #c90012;
    transform: translateY(-3px);
}

.pccc-gallery__button-dot {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background: #ff9298;
    border-radius: 50%;
}

.pccc-gallery__arrow {
    color: #ffdf00;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 991px) {
    .pccc-gallery__container {
        max-width: 760px;
    }

    .pccc-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .pccc-gallery {
        padding: 32px 12px;
    }

    .pccc-gallery__subtitle {
        font-size: 11px;
    }

    .pccc-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .pccc-gallery__item {
        border-radius: 9px;
    }

    .pccc-gallery__badge {
        top: 7px;
        left: 6px;
        padding: 4px 7px;
        font-size: 9px;
        max-width: calc(100% - 12px);
    }

    .pccc-gallery__action {
        margin-top: 25px;
    }

    .pccc-gallery__button {
        padding: 12px 13px;
        font-size: 10px;
        border-radius: 9px;
        gap: 6px;
    }
}

/* SMALL MOBILE */

@media (max-width: 360px) {
    .pccc-gallery__grid {
        gap: 8px;
    }

    .pccc-gallery__badge {
        font-size: 8px;
    }

    .pccc-gallery__button {
        font-size: 9px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .pccc-gallery__item img,
    .pccc-gallery__zoom,
    .pccc-gallery__button {
        transition: none !important;
    }
}
