
/* KDBBA Modula Homepage Cards v1 */

.kdbba-home-gallery-cards-source{
    display:none!important;
}

.kdbba-home-gallery-cards{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:24px;
}

.kdbba-home-gallery-card{
    min-width:0;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.09);
    border-radius:7px;
    background:linear-gradient(180deg,#121212,#0d0d0d);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.kdbba-home-gallery-card:hover{
    transform:translateY(-4px);
    border-color:rgba(214,170,69,.38);
    box-shadow:0 18px 42px rgba(0,0,0,.30);
}

.kdbba-home-gallery-cover{
    display:block;
    position:relative;
    width:100%;
    aspect-ratio:16/10;
    overflow:hidden;
    background:#151515;
}

.kdbba-home-gallery-cover img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .32s ease;
}

.kdbba-home-gallery-card:hover
.kdbba-home-gallery-cover img{
    transform:scale(1.035);
}

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

.kdbba-home-gallery-placeholder{
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    color:#d6aa45;
    font-weight:800;
    letter-spacing:.15em;
}

.kdbba-home-gallery-card-body{
    padding:17px 18px 19px;
}

.kdbba-home-gallery-meta{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-bottom:9px;
}

.kdbba-home-gallery-meta span{
    display:inline-flex;
    align-items:center;
    min-height:22px;
    padding:3px 7px;
    border:1px solid rgba(214,170,69,.30);
    border-radius:3px;
    color:#edc86e;
    font-size:9px;
    font-weight:800;
    letter-spacing:.085em;
}

.kdbba-home-gallery-card h3{
    margin:0 0 14px!important;
    padding:0!important;
    font-size:20px!important;
    line-height:1.23!important;
    font-weight:800!important;
}

.kdbba-home-gallery-card h3 a{
    color:#fff!important;
    text-decoration:none!important;
}

.kdbba-home-gallery-view-more{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#d6aa45!important;
    text-decoration:none!important;
    font-size:10px;
    font-weight:800;
    letter-spacing:.1em;
}

.kdbba-home-gallery-view-more span{
    transition:transform .2s ease;
}

.kdbba-home-gallery-view-more:hover span{
    transform:translateX(3px);
}

.kdbba-home-gallery-empty{
    grid-column:1/-1;
    padding:28px 18px;
    border:1px dashed rgba(214,170,69,.25);
    border-radius:6px;
    color:#999;
    text-align:center;
}

/*
 * JS marks the old Elementor photo-grid wrapper with this class.
 * It is hidden only after our card grid has been successfully inserted.
 */
.kdbba-home-static-gallery-hidden{
    display:none!important;
}

/*
 * Inserted host inside existing Gallery Preview section.
 */
.kdbba-home-gallery-cards-host{
    width:100%;
    flex:0 0 100%;
}

@media(max-width:1024px){
    .kdbba-home-gallery-cards{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:767px){
    .kdbba-home-gallery-cards{
        grid-template-columns:1fr;
        gap:14px;
        margin-top:18px;
    }

    .kdbba-home-gallery-card-body{
        padding:15px 16px 17px;
    }

    .kdbba-home-gallery-card h3{
        font-size:19px!important;
    }
}

@media(prefers-reduced-motion:reduce){
    .kdbba-home-gallery-card,
    .kdbba-home-gallery-cover img,
    .kdbba-home-gallery-view-more span{
        transition:none!important;
    }
}
