﻿/*
Theme Name: generatepress child
Template: generatepress
Author: SANWEB Mateusz Kamiński
Author URI: https://sanweb.pl
Description: Motyw potomny dla GeneratePress, stworzony dla Fundacji Rob Dobro
Version: 1.0.0
*/

@import url('../../../ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

#sanweb-banner {
    position: relative;
}

#sanweb-banner img {
    border-radius: 12px;
    width: 100%;
}

#sanweb-banner h2 {
	position: absolute;
	bottom: 20px;
	left: 40px;
	background: rgba(255,255,255,0.75);
	padding: 20px 40px;
    border-radius: 12px;
}

figure.wp-block-gallery {
    margin-bottom: 20px;
}

.grid-container {
	max-width: 1240px;
}

body {
    background: #fff;
}

.site-content {
	display: inherit;
}

.section-footer {
    background: #eee;
}

.section-footer div.container-sanweb {
    
	margin: 0 auto;
	max-width: 1240px;
    overflow: hidden;
}

.section-footer > div.container-sanweb > div > div > div {
    width: 50%;
    float: left;
}

.section-footer h2 {
	font-size: 24px;
	margin-bottom: 42px;
	letter-spacing: 0em;
	font-weight: 400;
}

.section-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-footer ul li {
	display: block;
	overflow: hidden;
	margin-bottom: 26px;
    line-height: 28px;
}

.section-footer ul li span a {
    color: #000;
    text-decoration: none;
}

.section-footer ul li span {
	margin-left: 10px;
	display: inline-block;
    max-width: calc(100% - 50px);
}

.section-footer ul li svg {
    height: 28px;
    width: 28px;
    float: left;
}

.section-footer iframe {
    margin-top: 72px;
    height: 432px;
}

.section-footer h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

footer > div:nth-child(2) > a:nth-child(1) {
	line-height: 54px;
	color: #000;
	text-decoration: none;
	margin-right: 5px;
	padding-right: 5px;
	float: right;
	margin-top: 10px;
}

footer > div:nth-child(2) > a:nth-child(2) {
	line-height: 64px;
	color: #000;
	text-decoration: none;
	margin-right: 5px;
	padding-right: 5px;
	float: right;
}

footer {
    max-width: 1240px;
    
    margin: 0px auto;
}

footer > div > div > div {
    width: 50%;
    float: left;
    line-height: 14px;
    padding: 0;
}

footer .separate-containers .inside-article {
    padding: 20px 40px;
    background: none;
}

footer > div a {
    color: #000;
    text-decoration: none;
    margin-left: 10px;
}

footer > div a img {
    position: relative;
    top: 5px;
}

footer > div > div > div:nth-child(1) {
    text-align: right;
    float: right;
}

footer > div > div > div:nth-child(2) {
    text-align: left;
    float: left;
}

.section-footer ul li i.fa {
	height: 28px;
	width: 18px;
	float: left;
	font-size: 22px;
	margin-top: 2px;
}

.inside-article {
    width: 100%;
    background: none;
}

.separate-containers .inside-article {
    background: none;
    padding: 10px 40px;
}

.sanweb-loop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Odstęp między kolumnami */
}

.sanweb-left {
    float: left;
    width: 25%;
}

.sanweb-left img {
    border-radius: 12px;
}

.sanweb-right {
    float: right;
    width: 70%;
}

a:focus {
    outline: 2px dotted red;
}

.inside-header {
    background: none;
}


@media (max-width: 768px) {
  .inside-header {
    padding-right: 20px;
    padding-left: 20px;
    text-align: left;
  }
  .site-logo {
        display: inline-block;
        max-width: 60%;
    }
    
    .separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation, .one-container .site-content, .inside-page-header {
        padding: 0px;
    }
    
    #sanweb-banner h2 {
        position: absolute;
        bottom: 10px;
        right: 40px;
        left: 40px;
        background: rgba(255,255,255,0.5);
        padding: 10px 20px;
        font-size: 14px;
        font-weight: bold;
    }
    
    .section-footer > div.container-sanweb > div > div > div {
        width: 100%;
        float: inherit;
    }
    
    footer > div > div > div {
        width: 100%;
        text-align: center !important;
        font-size: 14px;
    }
    
    .sanweb-loop article {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .sanweb-left, .sanweb-right {
        float: inherit;
        width: 100%;
        margin-bottom: 20px;
    }
}