main h2 {
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 30px 0 30px 0;
    width: 100%;
    color: #272322;
    font-size: 32px;
    font-family: Exo, Arial, Sans-serif;
}

div.two-photo-blocks{
    position: relative;
    display: block;
    margin: 0 0 50px 0;
    padding: 0;
}

a.arrow-button{
    display: block;
    background-color: #00a399;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 30px;
    right: 30px;
    padding-top: 7px;
    padding-left: 7px;
}
a.arrow-button img{
    width: 25px;
    height: auto;
}

article.homepage-block{
	position: relative;
    margin: 0 0 0 0;
}

article.news {
    display: block;
    overflow: hidden;
    vertical-align: top;
    background-color: #e5e5e5;
    color: #272322;
    font-family: Roboto, Arial, Sans-serif;
}

article.news > a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #272322;
}

article.news > a:visited {
    color: #272322;
}

article.news > a:focus {
	outline: 5px solid #209f96;
	outline-offset: -5px;
}

article.news img.news_photo {
    width: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}

article.news img.more {
    float: right;
    margin: 20px;
}

article.news .title {
	position: absolute;
	bottom: 0;
	background: #fff;
	width: 100%;
	height: auto;
}

article.news .title h3 {
    display: block;
    padding: 20px 10px 10px 0px;
    margin: 0;
    font-family: Exo, Arial, Sans-serif;
    font-weight: bold;
    color: #272322;
}

article.news > a:hover .title h3 {
	color: #e62063;
}

article.news p {
    padding: 0 20px 20px 20px;
}

article.homepage-sponsor a{
    display: block;
    width: 100%;
}

article.homepage-sponsor a img{
    width: 100%;
}

p.homepage-sponsor-subtitle{
    font-size: 16px;
}



/*style do przesuwanej galerii*/

* { box-sizing: border-box; }

body {
    margin: 0;
}

.gallery-wrapper {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery {
    display: flex;
    gap: 40px;
    transition: transform 0.4s ease;
}

.gallery-item {
    min-width: 300px;
    height: 293px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.6);
	color: #e62063;
	border: none;
	font-size: 70px;
	line-height: 70px;
	padding: 0px 10px 10px;
	cursor: pointer;
	z-index: 10;
	border-radius: 0;
}

.arrow:hover {
	background: rgba(230, 32, 99, 0.6);
	color: #ffffff;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 0px;
}

.lightbox.active { display: flex; }


/* Mobile */
@media (min-width: 0px) {
    
    .gallery-wrapper {
		padding: 0 10px;
	}
    
    .gallery {
		gap: 10px;
	}
    
    .gallery-item {
        min-width: 100%;
		height: 240px;
		height: 61vw;
    }
}

@media (min-width: 600px) {

	.gallery {
		gap: 20px;
	}
	
    .gallery-item {
        min-width: 300px;
        min-width: calc(33.33vw - 26px);
		height: 200px;
		height: calc((33.33vw - 26px)*.66);
    }
}

@media (min-width: 1000px) {
	.gallery-wrapper {
		padding: 0;
	}
	
	.gallery-item {
        min-width: 300px;
   		height: 200px;
    }
}



/*style do rolek*/

.yt-shorts-container {
    display: flex;
    gap: 40px;           /* odstęp między rolkami */
    justify-content: left;
    flex-wrap: nowrap;     /* dzięki temu na małym ekranie zwiną się jedna pod drugą */
    transition: transform 0.4s ease;
}

.yt-short {
    position: relative !important;
    min-width: calc((100% - 120px)/4) !important;
    padding-bottom: 44% !important; /* proporcja 9:16 */
    height: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
}

.yt-short iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important ;
    height: 100% !important;
}

.yt_shorts_scrollable {
    overflow: hidden;
    position: relative;
}



@media all and (min-width: 0px) {

    main h2 {
        font-size: 22px;
        padding: 12px 70px 20px 10px;
    }

	a.header-more {
		right: 10px;
		top: 15px;
		font-size: 16px;
	}

    div.two-photo-blocks {
        margin: 0 0 20px 0;
    }

    .photo-block{
        display: block;
        position: relative;
    }

    .photo-block:nth-child(2){
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .photo-block img{
        width: 100%;
    }

    article.news {
        display: block;
        position:relative;
        margin-right: 0;
        width: 100%;
        height: calc(67vw + 25px);
        margin-bottom: 0px;
        margin-top: 30px;
    }

    article.news:nth-of-type(1){
        margin-top: 0;
    }

    article.homepage-block {
        margin: 0 0 20px 0;
    }

    article.homepage-sponsor{
        margin-bottom: 20px;
    }

    article.homepage-sponsor h3{
        font-size: 18px;
        font-weight: bold;
        text-align: center;
    }
    
	article.news .title h3 {
		padding: 20px 10px 10px 0px;
		font-size:18px;
		line-height:22px;
	}
	
    .yt_shorts_scrollable {
        padding: 0 10px;
    }

	.yt-shorts-container {
		gap: 10px;
	}

	.yt-short {
		/*min-width: max(calc((100% - 20px - 30px)/4), 260px) !important;*/
        min-width: 100% !important;
        height: 170vw !important;
	}
	
}


@media all and (min-width: 640px) {
    .photo-block {
        width: 48%;
        margin: 0;
    }

    .photo-block:nth-child(1){
        position: relative;
    }

    .photo-block:nth-child(2){
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        position: absolute;
        right: 0;
        top: 0;
    }

    .photo-block h2 {
        position: absolute;
        top: 0;
    }

    article.news {
        display: inline-block;
        margin-right: 25px;
        width: 47%;
        height: auto;
    }

    article.news:nth-of-type(2) {
        margin-top: 0;
    }

    article.news:nth-of-type(2n) {
        margin-right: 0;
    }

    article.news div {
        height: 90px;
    }

    article.news h3{
        font-size: 18px;
    }

    article.news p {
        font-size: 16px;
    }

    article.homepage-sponsor a{
        text-align: center;
    }

    article.homepage-sponsor a img{
        width: 70%;
    }
    
    .yt-shorts-container {
		gap: 20px;
	}

	.yt-short {
		min-width: max(calc((100% - 20px - 60px)/4), calc((100% - 20px)/2)) !important;
        height: 100vw !important;
	}

}

@media all and (min-width: 860px){
    
    main h2 {
        font-size: 24px;
        padding: 20px 70px 16px 10px;
    }
    
	a.header-more {
		right: 10px;
		top: 25px;
		font-size: 16px;
	}

    div.two-photo-blocks {
        margin: 0 0 50px 0;
    }

    article.news {
        width: 48%;
    }

    article.homepage-block {
        margin: 0 0 0 0;
    }

    article.homepage-sponsor {
        margin-bottom: 50px;
    }
}


@media all and (min-width: 1000px) {

    main h2 {
        font-size: 32px;
        padding: 30px 70px 30px 0px;
    }
    
    a.header-more {
		right: 0;
		top: 38px;
		font-size: 20px;
	}
    
    .photo-block {
        display: inline-block;
        width: 480px;
        height: 320px;
        margin: 0px 36px 0 0;
        position: relative;
    }

    .photo-block:nth-child(2) {
        margin-right: 0;
        margin-top: 0px;
    }

    .photo-block img {
        width: 480px;
        height: 320px;
        margin-bottom: 0px;
    }

    article.news {
        display: inline-block;
        margin-bottom: 0px;
        margin-right: 20px;
        width: calc((100% - 54px)/3);
        height: 252px;
    }
/*
    article.news::after{
        content: "";
        height: 10px;
        background-color: #221f1f;
        display: block;
        margin-top: 24px;
        z-index: 1;
        position: relative;
    }
*/
    article.news:nth-of-type(3) {
        margin-top: 0;
    }

    article.news:nth-of-type(2n) {
        margin-right: 25px;
    }

    article.news:nth-of-type(3n) {
        margin-right: 0;
    }

    article.news h3{
        font-size: 18px;
    }

    article.news p {
        font-size: 16px;
    }

    article.homepage-sponsor{
        display: inline-block;
        vertical-align: top;
        font-size: 16px;
        margin-right: 100px;
    }

    article.homepage-sponsor h3{
        display: block;
        width: 100%;
        height: 60px;
        vertical-align: middle;
        margin: 0;
        font-size: 20px;
        text-align: left;
    }

    article.homepage-sponsor:nth-of-type(3n) {
        margin-right: 0;
    }

    article.homepage-sponsor a img{
        height: 80px;
        width: auto;
    }
    
	article.news .title h3 {
		padding: 20px 10px 10px 0px;
		font-size:20px;
		line-height:24px;
	}
	
	.gallery {
		gap: 25px;
	}
	
	.gallery-item {
		height: 202px;
	}

    .yt_shorts_scrollable {
        padding: 0;
    }

	.yt-shorts-container {
		gap: 25px;
	}

	.yt-short {
		min-width: max(calc((100% - 75px)/4), 220px) !important;
        height: 0 !important;
	}

}

@media all and (min-width: 1200px) {
    .photo-block {
        width: 580px;
        height: 386px;
    }

    .photo-block img {
        width: 580px;
        height: 386px;
    }

    article.news {
        margin-right: 30px;
        width: calc((100% - 74px)/3);
        height: 292px;
    }

    article.news:nth-of-type(2n) {
        margin-right: 35px;
    }

    article.news:nth-of-type(3n) {
        margin-right: 0;
    }
/*
    article.news::after{
        margin-top: 11px;
    }
*/
    article.news h3{
        font-size: 18px;
    }

    article.news p{
        font-size: 18px;
    }

    article.homepage-sponsor{
        margin-right: 200px;
    }
    
    .gallery {
		gap: 35px;
	}
    
    .gallery-item {
		height: 242px;
	}

	.yt-shorts-container {
		gap: 35px;
	}

	.yt-short {
		min-width: max(calc((100% - 105px)/4), 260px) !important;
	}
}


@media all and (min-width: 1440px) {

    article.news {
        margin-right: 38px;
        width: calc((100% - 82px)/3);
        height: 344px;
    }
    
    .gallery {
		gap: 40px;
	}
    
    .gallery-item {
		height: 293px;
	}

	.yt-shorts-container {
		gap: 40px;
	}

	.yt-short {
		min-width: max(calc((100% - 120px)/4), 260px) !important;
	}
	
}