/* =========================================================
   GALERÍA CCPT
   CSS AISLADO - NO MODIFICA MENÚ NI FOOTER
   ========================================================= */

.ccpt-galeria {
    width: 100%;
    padding: 60px 0 70px;
    background: #fff;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.ccpt-galeria-header {
    max-width: 850px;
    margin: 0 auto 35px;
    text-align: center;
}

.ccpt-galeria-subtitle {
    display: inline-block;
    margin-bottom: 10px;

    color: #a90000;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ccpt-galeria-header h2 {
    margin: 0;

    color: #222;

    font-size: 36px;
    font-weight: 700;

    line-height: 1.2;
}

.ccpt-galeria-line {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin: 16px auto;
}

.ccpt-galeria-line span {
    display: block;

    width: 30px;
    height: 2px;

    background: #a90000;
}

.ccpt-galeria-line b {
    display: block;

    width: 55px;
    height: 4px;

    background: #a90000;

    border-radius: 5px;
}

.ccpt-galeria-header p {
    margin: 0;

    color: #777;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   FILTROS
   ========================================================= */

.ccpt-galeria-filtros {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.ccpt-filtro {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 40px;

    padding: 0 16px;

    border: 1px solid #ddd;

    border-radius: 6px;

    background: #fff;

    color: #444;

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}

.ccpt-filtro:hover {
    border-color: #a90000;

    color: #a90000;
}

.ccpt-filtro.active {
    border-color: #a90000;

    background: #a90000;

    color: #fff;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.ccpt-galeria-buscador {
    position: relative;

    width: 100%;
    max-width: 400px;

    margin: 0 0 30px auto;
}

.ccpt-galeria-buscador > i {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #777;

    pointer-events: none;
}

.ccpt-galeria-buscador input {
    display: block;

    width: 100%;
    height: 45px;

    padding: 0 15px 0 42px;

    border: 1px solid #ddd;

    border-radius: 7px;

    background: #fff;

    color: #333;

    font-family: inherit;

    font-size: 13px;

    outline: none;
}

.ccpt-galeria-buscador input:focus {
    border-color: #a90000;

    box-shadow:
        0 0 0 3px rgba(169, 0, 0, .08);
}


/* =========================================================
   GRID
   ========================================================= */

.ccpt-galeria-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.ccpt-album {
    min-width: 0;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e8e8e8;

    border-radius: 9px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .07);

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.ccpt-album:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .13);
}


/* =========================================================
   IMAGEN
   ========================================================= */

.ccpt-album-imagen {
    position: relative;

    width: 100%;
    height: 210px;

    overflow: hidden;

    background: #eee;
}

.ccpt-album-imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.ccpt-album:hover .ccpt-album-imagen img {
    transform: scale(1.05);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.ccpt-album-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 12px;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.65)
        );

    opacity: 0;

    transition: opacity .25s ease;
}

.ccpt-album:hover .ccpt-album-overlay {
    opacity: 1;
}

.ccpt-album-overlay span {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 7px 10px;

    border-radius: 5px;

    background: rgba(255,255,255,.95);

    color: #a90000;

    font-size: 11px;
    font-weight: 700;
}

.ccpt-ver-album {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #a90000;

    color: #fff;

    cursor: pointer;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.ccpt-album-info {
    padding: 16px;
}

.ccpt-album-categoria {
    display: inline-block;

    margin-bottom: 7px;

    color: #a90000;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .8px;

    text-transform: uppercase;
}

.ccpt-album-info h3 {
    margin: 0 0 8px;

    color: #222;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.35;
}

.ccpt-album-info p {
    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0;

    color: #888;

    font-size: 12px;
}

.ccpt-album-info p i {
    color: #a90000;
}


/* =========================================================
   SIN RESULTADOS
   ========================================================= */

.ccpt-galeria-sin-resultados {
    display: none;

    padding: 50px 20px;

    text-align: center;
}

.ccpt-galeria-sin-resultados i {
    display: block;

    margin-bottom: 15px;

    color: #ccc;

    font-size: 45px;
}

.ccpt-galeria-sin-resultados h3 {
    margin: 0 0 7px;

    color: #444;

    font-size: 20px;
}

.ccpt-galeria-sin-resultados p {
    margin: 0;

    color: #888;

    font-size: 14px;
}


/* =========================================================
   MODAL
   ========================================================= */

.ccpt-galeria-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0,0,0,.88);
}

.ccpt-galeria-modal.active {
    display: flex;
}

.ccpt-modal-contenido {
    position: relative;

    width: 90%;
    max-width: 1100px;

    text-align: center;
}

.ccpt-modal-imagen {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    margin: 0 auto;

    border-radius: 6px;

    object-fit: contain;
}


/* =========================================================
   CERRAR MODAL
   ========================================================= */

.ccpt-modal-cerrar {
    position: absolute;

    top: -45px;
    right: 0;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #fff;

    color: #a90000;

    cursor: pointer;
}


/* =========================================================
   NAVEGACIÓN MODAL
   ========================================================= */

.ccpt-modal-prev,
.ccpt-modal-next {
    position: absolute;

    top: 50%;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    border: 0;

    border-radius: 50%;

    background: rgba(255,255,255,.95);

    color: #a90000;

    cursor: pointer;
}

.ccpt-modal-prev {
    left: -60px;
}

.ccpt-modal-next {
    right: -60px;
}

.ccpt-modal-titulo {
    margin-top: 12px;

    color: #fff;

    font-size: 16px;
    font-weight: 600;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .ccpt-galeria-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .ccpt-galeria-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ccpt-album-imagen {
        height: 210px;
    }

    .ccpt-modal-prev {
        left: 10px;
    }

    .ccpt-modal-next {
        right: 10px;
    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 767px) {

    .ccpt-galeria {
        padding: 45px 0 55px;
    }

    .ccpt-galeria-header h2 {
        font-size: 29px;
    }

    .ccpt-galeria-header p {
        font-size: 14px;
    }

    .ccpt-galeria-filtros {
        gap: 6px;
    }

    .ccpt-filtro {
        padding: 0 11px;

        font-size: 11px;
    }

    .ccpt-galeria-buscador {
        max-width: 100%;
    }

    .ccpt-galeria-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .ccpt-album-imagen {
        height: 225px;
    }

    .ccpt-album-overlay {
        opacity: 1;
    }

}


/* =========================================================
   CELULAR PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .ccpt-galeria-header h2 {
        font-size: 26px;
    }

    .ccpt-galeria-filtros {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ccpt-filtro {
        width: 100%;
    }

    .ccpt-album-imagen {
        height: 210px;
    }

}