/**
 * Theme Name:     Astra Child
 * Author:         Brainstorm Force
 * Template:       astra
 * Text Domain:	   astra-child
 * Description:    The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 6,000+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
 */

/* 1. Kontener zdjęcia musi mieć miejsce na dole */
.elementor-portfolio-item {
    margin-bottom: 40px !important; /* Odstęp między rzędami */
    overflow: visible !important;
}

/* 2. Zmuszamy nakładkę, by była widoczna i przezroczysta */
.elementor-portfolio-item__overlay {
    opacity: 1 !important;
    background: transparent !important;
    position: static !important; /* Wyłącza pozycjonowanie nad zdjęciem */
}

/* 3. Ustawiamy tytuł pod zdjęciem */
.elementor-portfolio-item__title {
    position: absolute !important;
    top: 100% !important; /* Ustawia tekst dokładnie pod dolną krawędzią zdjęcia */
    left: 0 !important;
    right: 0 !important;
    padding-top: 10px !important;
    
    /* Wygląd tekstu */
    color: #333 !important; 
    text-align: center !important;
    opacity: 1 !important;
    transform: none !important; /* Wyłącza animacje wjazdu tekstu */
}

/* 4. Ukrywamy ciemny filtr, który pojawia się po najechaniu */
.elementor-portfolio-item:hover .elementor-portfolio-item__overlay {
    background-color: transparent !important;
}

/* Efekt uniesienia całego boxu o 10px do góry */
.elementor-portfolio-item {
    transition: transform 0.3s ease-in-out !important; /* Płynność ruchu */
}

.elementor-portfolio-item:hover {
    transform: translateY(-10px) !important; /* Przesunięcie w górę */
}