.elementor-36720 .elementor-element.elementor-element-d1da664{width:100%;max-width:100%;}/* Start custom CSS for shortcode, class: .elementor-element-d1da664 *//* ==========================================
   TPI PHOTO LIBRARY
   DESIGN COMPLET GALERIE FOTO
   ========================================== */

/* 1. LARGIMEA GALERIEI */
.elementor-36720 .elementor-element.elementor-element-d1da664,
.elementor-36720 .elementor-element.elementor-element-d1da664 .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. GRILA - 4 COLOANE DESKTOP */
.elementor-36720 .elementor-element.elementor-element-d1da664 #frontend-file-explorer-frontend-items {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* 3. CARDURILE FOTOGRAFIILOR */
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item.frontend-file-explorer-file {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 310px !important;
    padding: 6px 5px 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow: visible !important;
}

/* 4. ZONA FOTOGRAFIEI */
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-preview {
    flex: 0 0 230px !important;
    width: 100% !important;
    height: 230px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 2px !important;
    margin-bottom: 3px !important;
    overflow: visible !important;
}

/* 5. FOTOGRAFII - MAI MARI, FARA DECUPARE */
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-preview img {
    display: block !important;
    width: 100% !important;
    height: 230px !important;
    max-width: 100% !important;
    max-height: 230px !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* 6. NUMELE FOTOGRAFIILOR */
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-name {
    position: relative !important;
    order: 2 !important;
    width: 100% !important;
    min-height: 22px !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 2px 0 3px !important;
}

/* 7. BUTOANE DOWNLOAD SI COPY LINK */
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-actions {
    position: relative !important;
    order: 3 !important;
    inset: auto !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

/* 8. POZITIONAREA ICONURILOR */
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-actions button {
    position: static !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* 9. ICONURI - VIZIBILITATE PERMANENTA */
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-actions button span,
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-actions button i,
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-actions button svg {
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

/* 10. ELIMINARE DEPENDENTA DE HOVER */
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item:hover .frontend-file-explorer-item-actions,
.elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item:hover .frontend-file-explorer-item-actions button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* 11. TABLETA - 3 COLOANE */
@media (max-width: 1024px) {

    .elementor-36720 .elementor-element.elementor-element-d1da664 #frontend-file-explorer-frontend-items {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-preview {
        flex-basis: 210px !important;
        height: 210px !important;
    }

    .elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-preview img {
        height: 210px !important;
        max-height: 210px !important;
    }
}

/* 12. TELEFON - 2 COLOANE */
@media (max-width: 767px) {

    .elementor-36720 .elementor-element.elementor-element-d1da664 #frontend-file-explorer-frontend-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item.frontend-file-explorer-file {
        min-height: 240px !important;
        padding: 5px 3px 8px !important;
    }

    .elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-preview {
        flex: 0 0 155px !important;
        height: 155px !important;
        margin-top: 2px !important;
        margin-bottom: 2px !important;
    }

    .elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-preview img {
        height: 155px !important;
        max-height: 155px !important;
    }

    .elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-name {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin: 2px 0 3px !important;
    }

    .elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-actions {
        gap: 8px !important;
        height: 28px !important;
    }

    .elementor-36720 .elementor-element.elementor-element-d1da664 .frontend-file-explorer-item-actions button {
        flex: 0 0 28px !important;
        width: 28px !important;
        height: 28px !important;
    }
}/* End custom CSS */