/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

a{
	text-decoration:unset !important;
}
p,a,li,span{
	font-family:"Montserrat", Sans-serif !important;
}
.menu-item a{
	font-weight:500 !important;
	letter-spacing:0.5px;
}
h1,h2,h3,h4,h5{
	font-family:"Barlow", Sans-serif !important;
}


#site-header {
  transition: transform 0.4s ease !important;
}
#site-header.hidem {
  transform: translateY(-200%);
}

/* Strona główna banery */
.banery_posts {
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	gap:20px;
	padding:0;
}
.banery_posts li{
	width:100%;
	max-width: calc(100% / 3 - 20px);
	display:inline-block;
	border-radius:4px;
	overflow:hidden;
	height:100%;
	aspect-ratio:6/3;
	transition:.2s;
}
.banery_posts li img{
	aspect-ratio:6/3;
	object-fit:cover;
	border-radius:4px;
	transition:.2s;
}
.banery_posts li:is(:hover,:focus) img{
	transform:scale(1.05);
}

@media (max-width:800px){
	.banery_posts li{
		max-width: calc(100% / 2 - 20px);
		aspect-ratio:6/3;
	}
}

@media (max-width:500px){
	.banery_posts li{
		max-width: calc(100% / 2 - 20px);
		aspect-ratio:6/3;
	}
}

/* Aktualności strona główna */
.aktualnosci_posts {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
	padding: unset;
}
.aktualnosci_posts li {
    display: flex;
    justify-content: center;
    font-size: 1em;
	font-size:15px;
	height:100%;
	background:#fafafa;
}

.aktualnosci_posts li.big {
    grid-row: span 2;
	font-size:17px;
}
.aktualnosci_posts a {
    padding: 10px;
    overflow: hidden;
    border-radius: 8px;
	border:1px solid #008800;
}
.aktualnosci_posts img {
    aspect-ratio: unset;
    max-height: 180px;
    object-fit: cover;
    object-position: 0 10%;
    display: block;
}

.aktualnosci_posts li.big img {
    max-height: 490px;
    height: 100%;
    aspect-ratio: unset;
}
.aktualnosci_posts li.big h3 {
    font-size:2.2em;
	
}
.aktualnosci_posts .post_container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
}
.aktualnosci_posts .post_container::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #005500, transparent);
    z-index: 1;
    transition: .4s;
}
.aktualnosci_posts h3 {
    position: absolute;
    bottom: calc(1% + 10px);
    left: 1%;
    margin: 10px 0;
    color: #f5f5f5;
    z-index: 3;
	padding:1%;
	font-size:1.3em;
}

.aktualnosci_posts li:hover .post_container::before {
    background: linear-gradient(0deg, #008800, transparent);
}

@media (max-width:940px) {
    .aktualnosci_posts {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .aktualnosci_posts li.big {
        grid-column: 1 / -1;
        grid-row: 1; 
    }
}
@media (max-width:600px) {
    .aktualnosci_posts {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .aktualnosci_posts li.big {
        grid-column: auto;
        grid-row: auto;
        font-size: 14px;
    }

    .aktualnosci_posts li.big img {
        max-height: 180px;
        height: auto;
    }
    .aktualnosci_posts li:nth-child(n+4) {
        display: none;
    }
}