html {
    --bg-color: #e0dcdc;
    --border-color: #000000;
    --image-item-bg-color: #a6b8b8;
    --main-font-color: #0f0f0f;
    --nav-font-color: #ffffff;
    --nav-bg-color: #2f4f4f;
    --main-bg-color: #ffffff;
}

html.dark-theme {
    --bg-color: #2b2b2b;
    --border-color: #a8a8a8;
    --image-item-bg-color: #595444;
    --main-font-color: #f0f0f0;
    --nav-font-color: #ffffff;
    --nav-bg-color: #2f4f4f;
    --main-bg-color: #000000;
}



*{
	box-sizing: border-box;
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

html{
	font-size: clamp(8px, 1vw, 24px);
	height: 100%;
	width: 100%;
}



body {
	background-color: var(--bg-color);
	margin: auto;
	max-width: 100%;
	min-height: 100%;
	display: flex;
	flex-direction: column;
    align-items: center;
}




/* header */

header{
	margin-top: 1vh;
	width: 60%;
	margin-bottom:0;
}



.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.logo img {
    object-fit: contain;
    width: 30vw;
	transition: transform 0.5s ease-in-out, box-shadow 0.3s ease-in-out;
	transform-origin: center;
    cursor: pointer;
}

.logo img:hover {
	transform: scale(1.01);
	box-shadow: 0 0.2em 0.6em var(--border-color);
}



.menu {
    margin: 0 auto;
    height: 5vh;
	width: 100%;
}

.menu ul {
	background: var(--nav-bg-color);
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
}

.menu li {
    border: 1px solid var(--border-color);
    background: var(--nav-bg-color);
    display: flex;
	flex: 1;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-width: 0;
	transition: transform 0.3s ease-in-out;
}

.menu a {
    font-size: 1rem;
    color: var(--nav-font-color);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: normal;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    max-width: 100%;
    height: 100%;
}

.menu li:hover {
    background: color-mix(in srgb, var(--nav-bg-color) 70%, black);
	transform: scale(1.02);
}

.menu li.active a {
    background-color: color-mix(in srgb, var(--nav-bg-color) 70%, black);
    color: white;
    border-radius: 4px;
}




/* main */
main{
	margin: 0;
    padding: 0;
	width: 60%;
	height: fit-content;
    display: flex;
    flex-direction: column;
	border: 1px solid var(--border-color);
	background-color: var(--main-bg-color);
}

.rev-color{
	border: 1px transparent;
	background-color: var(--bg-color);
}

h2, h3, h4, main p, h1, .footer-content p, h5{
	color: var(--main-font-color);
	text-align: center;
	max-width: 75%;
	margin:auto;
	padding: 0 20px;
}

/* jeżeli coś sie źle dzieje z nagłówkami, zwłaszcza z centrowaniem/łamaniem słów to wina tego i będe musiał zmienić*/
h2, h3, h4, h5{
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: keep-all;
    display: inline-block;
    max-width: 100%;
}

.cc {
    display: flex;
    justify-content: center;
}

h2{
    margin-top: 3%;
	margin-bottom: 25px;
	font-size: 2.8rem;
}

h3{
    margin-top: 2%;
	margin-bottom: 0.5%;
	font-size: 2.2rem;
}

h4{
    margin-top: 1%;
	margin-bottom: 0.5%;
	font-size: 1.8rem;
}

main p{
	font-size: 1rem;
	text-align: justify;
}

.indent{
    text-indent: 20px;
}

h1{
    margin-top: 1%;
	margin-bottom: 0.5%;
	font-size: 0.8rem;
    justify-content: center;
    text-align: center;
}
h5{
    margin-top: 1%;
	margin-bottom: 0.5%;
	font-size: 1.7rem;
    justify-content: center;
    text-align: center;
}



/* nation grid */
.panstwa {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 5px;
	padding: 1%;
	justify-content: center;
	max-width: 100%;
}
  
.panstwa > a {
	display: flex;
	flex-direction: column;
    align-items: center;
	text-decoration: none;
	border: 1px solid var(--border-color);
	padding: 0;
	transition: transform 0.2s, box-shadow 0.2s;
	background: var(--bg-color);
	min-height: 240px;
    height: auto;
	box-sizing: border-box;
	width: 100%;
}
  
.panstwa > a:hover {
	transform: scale(1.02);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
  
.panstwa > a img {
	max-width: 100%;
	height: auto;
	display: block;
    padding: 7px 7px 7px 7px;
}
  
.panstwa > a p {
	font-size: 22px;
	color: var(--main-font-color);
	text-align: center;
	width: 100%;
	white-space: normal;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
    display: flex;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
}




/* country navbar */
.country-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 1001;
    background: var(--nav-bg-color);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.country-menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: var(--nav-font-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.country-list {
    position: fixed;
    left: 2vw;
    width: clamp(100px, 10vw, 200px);
    height: 100vh;
    background-color: var(--nav-bg-color);
    padding: 20px;
    color: var(--nav-font-color);
    text-align: center;
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
    box-shadow: -2px 0 8px var(--border-color), 2px 0 8px var(--border-color);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.country-list::-webkit-scrollbar {
    width: 8px; 
}

.country-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
    border: 2px solid transparent;
}

.country-list::-webkit-scrollbar-track {
    background-color: transparent;
}

.country-list a {
    display: block;
    text-decoration: none;
    color: var(--nav-font-color);
    padding: 10px 0;
    font-size: 0.8rem;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.country-header {
    position: sticky;
    font-weight: bold;
    font-size: 1.0rem;
    color: var(--nav-font-color);
    top: 10px;
    margin-bottom: 10px;
    display: block;
}

.country-list a {
    background: var(--nav-bg-color);
}

.country-list a:hover {
    background: color-mix(in srgb, var(--nav-bg-color) 90%, black);
}

.country-list a:not(:first-child):hover {
    color: #ff6600;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 102, 0, 0.6);
    transform: scale(1.03);
}

.country-list a:first-child {
    border: 1px solid var(--nav-font-color);
}

.country-list a:first-child:hover {
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 102, 0, 0.6);
    transform: scale(1.03);
}








/* mask selector */

.mask-grid {
    display: grid;
    gap: 5px;
    width: 100%;
    background: transparent;
    padding: 10px;
}

.mask-item {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 5px;
    align-items: stretch;
    background: var(--main-bg-color);
    text-decoration: none;
    color: inherit;
    margin: 5px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease-in-out;
    height: 500px;
}


.mask-item > .image-container {
    height: 100%;
    border-radius: 7px 0 0 7px;
    overflow: hidden;
}

.mask-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mask-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    gap: 5px;
}

.mask-description p {
    font-size: 1.1rem;
    color: var(--main-font-color);
    text-align: center;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    margin: 0;
}

.mask-description h4 {
    font-size: 1.8rem;
    color: var(--main-font-color);
    text-align: center;
    max-width: 100%;
    white-space: normal;
    margin: 0;
    overflow-wrap: break-word;
    word-break: keep-all;
    display: inline-block;
}

.mask-item:hover{
    transform: scale(1.02);
}






/* footer */

footer {
    color: var(--nav-font-color);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
   
}







/* theme switch */

.switch {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 2000;
    width: 50px;
    height: 50px;
	background-color: #e0dcdc;
	border-radius: 25%;
	border: 2px solid;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/icons/moon.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.2s;
    border-radius: 34px;
}

input:checked + .slider {
    background-image: url('/images/icons/sun.png');
}

@media (max-width: 768px) {
    .switch {
        top: 10px;
        left: 10px;
        opacity: 0.8;
        z-index: 900;
    }
}




.text-margin{
    margin-top: 8px;
    margin-bottom: 8px;
}






/* listy */

.custom-list {
    max-width: 70%;
    margin: auto;
    padding: 0 20px;
    list-style-type: none;
    color: var(--main-font-color);
}

ul.custom-list {
    list-style-type: none;
    padding-left: 0;
}

ul.custom-list > li {
    margin-bottom: 10px;
}

ul.custom-list > li > strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
}

ul.custom-list ul {
    list-style-type: none;
    padding-left: 10px;
}

ul.custom-list > li > ul > li {
    display: block;
    margin-bottom: 5px;
    padding-left: 5px;
}

ul.custom-list > li > ul > li::before {
    content: counter(first-level, lower-alpha) ". ";
    counter-increment: first-level;
    font-weight: bold;
}

ul.custom-list > li > ul > li > ul > li {
    display: block;
    padding-left: 5px;
}

ul.custom-list > li > ul > li > ul > li::before {
    content: counter(second-level) ". ";
    counter-increment: second-level;
    font-weight: bold;
}

ul.custom-list > li > ul {
    counter-reset: first-level;
}

ul.custom-list > li > ul > li > ul {
    counter-reset: second-level;
}

.custom-list,
.custom-list * {
    transition: none;
}








/* Image Grid*/
.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 1%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.image-item {
    background-color: var(--image-item-bg-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out;
    width: 250px;
    min-height: 250px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    aspect-ratio: 1/1;
    cursor: zoom-in;
    flex-shrink: 0;
    overflow: hidden;
    image-rendering: crisp-edges;
    will-change: transform;
    transition: inherit;
}

.image-item p {
    padding: 12px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--main-font-color);
    background-color: var(--image-item-bg-color);
    border-top: 1px solid var(--border-color);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    max-width: 100%;
}


.image-item p:empty {
    display: none;
}

.image-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}






/* carousel */
.fullscreen_image_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 10000;
    box-sizing: border-box;
    padding: 140px 20px 40px;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.fullscreen_image_container.visible {
    display: flex;
}

.carousel-open {
    overflow: hidden !important;
}

.fullscreen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    position: relative;
}

.fullscreen_image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    user-select: none;
    pointer-events: auto;
    touch-action: pan-y;
    opacity: 1;
    will-change: transform, opacity;
}

.fullscreen_image.loading {
    opacity: 0;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    display: none;
    will-change: transform;
}

.loading-spinner.visible {
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.fullscreen-caption {
    color: white;
    font-size: 1.2rem;
    padding: 1rem;
    background: var(--nav-bg-color);
    border-radius: 4px;
    max-width: 80%;
    text-align: center;
    display: none;
    margin: 0 auto;
}

.fullscreen-caption.visible {
    display: block;
}

.main-arrow {
    position: fixed;
    top: 50vh;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.main-arrow.prev {
    left: 10vw;
}

.main-arrow.next {
    right: 10vw;
}

.main-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.fullscreen_image_container.show-arrows .main-arrow {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen_image_container.single-image .main-arrow {
    display: none;
}

.thumbnail-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    max-width: 90%;
    padding: 10px 40px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    height: 120px;
    align-items: center;
    will-change: transform;
}

.thumbnail-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: normal;
    padding: 0 10px;
    gap: 10px;
    will-change: scroll-position;
}

.thumbnail-scroll::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
    scroll-snap-align: center;
    transform-origin: center;
    will-change: transform, opacity;
}

.thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: white;
    z-index: 1;
}

.close_button {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.close_button:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .fullscreen_image_container {
        padding: 100px 10px 20px;
    }
    
    .main-arrow {
        font-size: 1.5rem;
        padding: 8px 12px;
    }
    
    .main-arrow {
        display: none !important;
    }
    
    .thumbnail-container {
        max-width: 95%;
        padding: 8px 30px;
        height: 80px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .fullscreen-caption {
        font-size: 1rem;
        padding: 0.8rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .thumbnail-container {
        padding: 5px 25px;
        height: 70px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}








/* news  */

.news-container {
    width: 100%;
    margin-top: 40px;
}

.news-heading {
    color: var(--main-font-color);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.news-section {
  width: 98%;
  margin: 2rem auto;
}

.section-date {
    color: var(--nav-font-color);
    background-color: var(--nav-bg-color);
    padding: 0.8rem 1.2rem;
    margin: 0;
    font-size: 1.4rem;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    z-index: 1;
    left: 12px;
    top: 10px;
}

.news-content-box {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: -0.5rem;
    padding-top: 2rem;
    background-color: var(--bg-color);
    position: relative;
}

.news-list {
    list-style: none;
    margin: 0;
    min-width: 100%;
}

.news-list li {
    position: relative;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--main-font-color);
    line-height: 1.6;
    width: 100%;
}

.news-list li::before {
    content: '▸';
    position: absolute;
    left: 0.5rem;
    color: var(--nav-bg-color);
    font-weight: bold;
}





/* media queries */

@media screen and (max-width: 1440px) {

    header, main {
        width: 70%;
    }
    
    .panstwa {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
    
}

@media screen and (max-width: 1200px) {
    main p {
        max-width: 80%;
    }
    html {
        font-size: clamp(10px, 1.2vw, 20px);
    }
    
    .country-list {
        width: 15vw;
    }
}

@media screen and (max-width: 1024px) {
    header, main {
        width: 80%;
    }
    
    .logo img {
        width: 40vw;
    }
    
    .menu {
        height: 6vh;
    }
    
    .panstwa {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .country-list {
        width: 20vw;
        left: 1vw;
        padding: 10px;
    }
    
}


@media screen and (max-width: 768px) {

    .fullscreen-caption {
        max-width: 80vw;
    }

    html{
        font-size: clamp(8px, 1.6vh, 20px);
    }
    main p {
        max-width: 85%;
    }
    .image-grid{
        gap: 7px;
    }
    .image-item {
        width: 170px;
        min-height: 170px;
    }
    
    .image-item img {
        height: 170px;
    }

    .mask-item {
        grid-template-columns: 1fr;
        height: auto;
        grid-template-rows: auto 1fr;
    }

    .mask-item > .image-container{ 
        min-height: 250px;
        height: 300px;
        border-radius: 7px 7px 0 0;
    }

    .mask-description {
        padding: 10px;
    }

    .country-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        transform: translateX(-120%);
        background-color: var(--nav-bg-color);
        box-shadow: 2px 0 8px var(--border-color);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .country-list.active {
        transform: translateX(0);
    }

    .country-menu-toggle {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        width: 20px;
        height: 60px;
        background: var(--nav-bg-color);
        border-radius: 0 5px 5px 0;
        border: 1px solid var(--border-color);
        border-left: none;
        z-index: 1001;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
    }

    .country-menu-toggle div {
        width: 15px;
        height: 3px;
        background-color: var(--nav-font-color);
        margin: 4px 0;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .country-menu-toggle:not(.active) {
        justify-content: flex-start;
        padding-top: 18px;
    }

    .country-menu-toggle.active {
        left: auto;
        right: 20px;
        top: 20px;
        width: 40px;
        height: 40px;
        border-radius: 5px;
        padding: 0;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background-color: #ff4444;
        border: 2px solid #cc0000;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }

    .country-menu-toggle.active div {
        position: absolute;
        margin: 0;
        top: 50%;
        left: 50%;
        width: 20px;
    }

    .country-menu-toggle.active div:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .country-menu-toggle.active div:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .country-menu-toggle.active div:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .country-menu-toggle.active div {
        position: absolute;
        margin: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }


    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    h2 {
        font-size: 2.8rem;
    }

    h3 {
        font-size: 2.4rem;
    }
    
    h4 {
        font-size: 2rem;
    }

    * {
        transition: none !important;
    }
    
    .logo img:hover,
    .menu li:hover,
    .panstwa > a:hover,
    .image-item:hover,
    .mask-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .menu li:hover {
        background: var(--nav-bg-color) !important;
    }
    
    .panstwa > a:hover {
        background: var(--bg-color) !important;
    }
    
    .image-item:hover {
        background-color: var(--image-item-bg-color) !important;
    }
    
    .mask-item:hover {
        background: var(--main-bg-color) !important;
    }
}

@media screen and (max-width: 480px) {
    
    header, main {
        width: 95%;
    }
    
    .logo img {
        width: 80vw;
    }
    
    .menu {
        height: auto;
    }
    
    .menu ul {
        flex-direction: column;
    }
    
    .menu li a{
        height: 100%;
        padding: 10px 0;
        width: 100%;
    }
    
    .panstwa {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}
    
    .panstwa > a {
        height: auto;
    }
    
}

@media screen and (max-width: 360px) {
    
    .menu a {
        padding: 5px;
    }
    
    .mask-item {
        grid-template-columns: 1fr;
    }
    
    .mask-item > .image-container {
        height: 200px;
    }
}
.newsstyleclass {
  color: #ffae42;
  text-decoration: none;
  transition: color 0.2s ease;
}

.newsstyleclass:hover,
.newsstyleclass:focus {
  color: #ffd38a;
  text-decoration: underline;
}
.newsstyleclass:visited {
  color: #ffe066;
}