.pcl-gallery-widget{
    --pcl-glow-color:rgba(0,109,255,.35);
    --pcl-glow-blur:18px;
    --pcl-hover-glow-color:rgba(0,140,255,.58);
    --pcl-hover-glow-blur:34px;
    width:100%;
}

.pcl-gallery-header{width:100%}
.pcl-gallery-eyebrow{margin:0 0 18px;font-family:Montserrat,sans-serif;font-size:14px;font-weight:700;line-height:1.2;text-transform:uppercase}
.pcl-gallery-heading{margin:0 0 12px;font-family:Montserrat,sans-serif;font-size:28px;font-weight:700;line-height:1.2}
.pcl-gallery-description{margin:0;font-family:Montserrat,sans-serif;font-size:16px;line-height:1.45}

.pcl-gallery-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-auto-flow:dense;
    grid-auto-rows:170px;
    column-gap:8px;
    row-gap:8px;
    width:100%;
}

.pcl-gallery-item{
    appearance:none;
    position:relative;
    display:block;
    width:100%;
    height:100%;
    min-width:0;
    margin:0;
    padding:0;
    overflow:hidden;
    cursor:pointer;
    background:#06060d;
    border:1px solid rgba(0,140,255,.78);
    border-radius:8px;
    box-shadow:
        0 0 3px rgba(0,164,255,.42),
        0 0 10px rgba(0,132,255,.24),
        0 0 var(--pcl-glow-blur) var(--pcl-glow-color);
    text-align:left;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.pcl-gallery-item--wide{grid-column:span 2}
.pcl-gallery-item--tall{grid-row:span 2}
.pcl-gallery-item--large{grid-column:span 2;grid-row:span 2}

.pcl-gallery-item img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transform:scale(1);
    transition:transform .45s ease;
}

.pcl-gallery-item:hover{
    transform:translateY(-2px);
    border-color:rgba(0,186,255,.92);
    box-shadow:
        0 0 5px rgba(0,190,255,.82),
        0 0 16px rgba(0,150,255,.44),
        0 0 var(--pcl-hover-glow-blur) var(--pcl-hover-glow-color);
}

.pcl-gallery-overlay{
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(0,0,0,.25) 0%,transparent 55%);
}

.pcl-gallery-item-title{
    position:absolute;
    top:16px;
    left:16px;
    z-index:2;
    max-width:calc(100% - 32px);
    color:#fff;
    font-family:Montserrat,sans-serif;
    font-size:14px;
    font-weight:700;
    line-height:1.25;
    text-shadow:0 1px 3px rgba(0,0,0,.72);
}

.pcl-gallery-lightbox{
    position:fixed;
    z-index:999999;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    padding:32px 72px;
    background:rgba(0,0,0,.92);
}

.pcl-gallery-lightbox.is-open{display:flex}
.pcl-gallery-lightbox-figure{display:flex;flex-direction:column;align-items:center;max-width:92vw;max-height:88vh;margin:0}
.pcl-gallery-lightbox-image{display:block;max-width:92vw;max-height:80vh;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 0 42px rgba(0,105,255,.28)}
.pcl-gallery-lightbox-title{margin-top:14px;color:#fff;font-family:Montserrat,sans-serif;font-size:15px;font-weight:600;text-align:center}

.pcl-gallery-lightbox-close,
.pcl-gallery-lightbox-prev,
.pcl-gallery-lightbox-next{
    appearance:none;
    position:absolute;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    cursor:pointer;
    color:#fff;
    background:rgba(15,15,24,.78);
    border:1px solid rgba(0,153,255,.55);
    border-radius:999px;
}

.pcl-gallery-lightbox-close{top:24px;right:28px;width:46px;height:46px;font-size:30px}
.pcl-gallery-lightbox-prev,.pcl-gallery-lightbox-next{top:50%;width:48px;height:48px;transform:translateY(-50%);font-size:36px}
.pcl-gallery-lightbox-prev{left:24px}
.pcl-gallery-lightbox-next{right:24px}
body.pcl-gallery-lightbox-open{overflow:hidden}

@media(max-width:1024px){
    .pcl-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .pcl-gallery-lightbox{padding:24px 56px}
}

@media(max-width:767px){
    .pcl-gallery-heading{font-size:24px}
    .pcl-gallery-description{font-size:14px}

    /*
     * As colunas e a altura são controladas pelos controles responsivos
     * do Elementor. Não forçamos mais uma coluna no celular.
     */

    .pcl-gallery-item-title{
        top:12px;
        left:12px;
        max-width:calc(100% - 24px);
        font-size:12px;
    }

    .pcl-gallery-lightbox{padding:72px 16px 24px}
    .pcl-gallery-lightbox-close{top:16px;right:16px;width:42px;height:42px}
    .pcl-gallery-lightbox-prev,.pcl-gallery-lightbox-next{
        top:auto;
        bottom:18px;
        transform:none;
        width:44px;
        height:44px;
    }
    .pcl-gallery-lightbox-prev{left:calc(50% - 54px)}
    .pcl-gallery-lightbox-next{right:calc(50% - 54px)}
    .pcl-gallery-lightbox-image{max-width:94vw;max-height:70vh}
}


/* =========================================================
   AÇÕES E EFEITOS DE ENTRADA — V1.3.0
========================================================= */

.pcl-gallery-item[data-action="none"]{
    cursor:default;
}

.pcl-gallery-item[data-action="external"]{
    text-decoration:none;
}

.pcl-gallery-widget[data-entrance="yes"] .pcl-gallery-item{
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease,
        opacity var(--pcl-entrance-duration,600ms) ease,
        translate var(--pcl-entrance-duration,600ms) ease,
        scale var(--pcl-entrance-duration,600ms) ease;
    transition-delay:calc(var(--pcl-item-index,0) * var(--pcl-entrance-delay,100ms));
}

.pcl-gallery-widget.pcl-entrance-ready:not(.pcl-entrance-active) .pcl-gallery-item{
    opacity:0;
}

.pcl-gallery-widget.pcl-entrance-ready[data-effect="fade-up"]:not(.pcl-entrance-active) .pcl-gallery-item{
    translate:0 28px;
}

.pcl-gallery-widget.pcl-entrance-ready[data-effect="fade"]:not(.pcl-entrance-active) .pcl-gallery-item{
    translate:0 0;
}

.pcl-gallery-widget.pcl-entrance-ready[data-effect="zoom"]:not(.pcl-entrance-active) .pcl-gallery-item{
    scale:.94;
}

.pcl-gallery-widget.pcl-entrance-ready[data-effect="slide-left"]:not(.pcl-entrance-active) .pcl-gallery-item{
    translate:-32px 0;
}

.pcl-gallery-widget.pcl-entrance-ready[data-effect="slide-right"]:not(.pcl-entrance-active) .pcl-gallery-item{
    translate:32px 0;
}

.pcl-gallery-widget.pcl-entrance-active .pcl-gallery-item{
    opacity:1;
    translate:0 0;
    scale:1;
}

@media (prefers-reduced-motion:reduce){
    .pcl-gallery-widget[data-entrance="yes"] .pcl-gallery-item{
        opacity:1!important;
        translate:none!important;
        scale:1!important;
        transition:none!important;
    }
}


/* =========================================================
   SEGURANÇA NO EDITOR DO ELEMENTOR — V1.3.1
========================================================= */

.elementor-editor-active .pcl-gallery-widget .pcl-gallery-item,
.elementor-editor-preview .pcl-gallery-widget .pcl-gallery-item,
body.elementor-editor-active .pcl-gallery-widget .pcl-gallery-item{
    opacity:1 !important;
    translate:0 0 !important;
    scale:1 !important;
    visibility:visible !important;
}

.elementor-editor-active .pcl-gallery-widget,
.elementor-editor-preview .pcl-gallery-widget{
    min-height:1px;
}
