body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url(elements/mount.jpg) center center / cover no-repeat;
    z-index: -1;
}

* {
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 4px;
    max-width: 1020px;
    margin: 0 auto;
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    /* proporcja 16:9 */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

video {
    display: block;
    max-width: 480px;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.moje-video {
    display: block;
    border: 5px solid darkgreen;
    /* grubość, styl, kolor */
    border-radius: 10px;
    /* opcjonalnie zaokrąglenie rogów */
    box-sizing: border-box;
}

.thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumb:hover img {
    transform: scale(1.05);
}

.autor {
    color: black;
    max-width: 960px;
    width: 100%;
    font-size: 16px;
    font-style: italic;
    font-family: arial;
    text-align: right;
    margin: 0 auto;
}

.styl10 {
    color: black;
    background-color: gainsboro;
    max-width: 960px;
    width: 100%;
    font-size: 28pt;
    font-weight: bold;
    font-family: arial;
    text-align: center;
    margin: 0 auto;
}

.styl17 {
    color: #000000;
    font-size: 26px;
    font-weight: bold;
    font-family: arial;
    text-align: center;
    margin: 0 auto;
}

.delete {
    color: darkslategray;
    text-decoration: line-through;
    text-decoration-style: double;
    text-decoration-color: red;
}

.red {
    color: firebrick;
}

.comment {
    display: inline;
    background-color: #d5ddef;
    color: black;
    font-family: arial;
    font-size: 18px;
    font-weight: 376px;
    font-style: italic;
    border: 0;
    border-radius: 7px;
}

.mytext {
    max-width: 960px;
    width: 100%;
    color: #000000;
    margin-left: auto;
    margin-right: auto;
}

p {
    text-indent: 50px;
    color: darkslategrey;
    font-family: arial;
    font-size: 20px;
    text-align: left;
}

h1 {
    text-indent: 50px;
    font-family: arial;
    font-size: 20px;
    text-align: left;
    background-color: #ffffff;
}

h2 {
    text-indent: 50px;
    font-family: arial;
    font-size: 18px;
    text-align: left;
    background-color: #ffffff;
}

h3 {
    text-indent: 50px;
    font-family: arial;
    font-size: 20px;
    text-align: left;
    background-color: #ffffff;
}

.kontener {
    background-color: gainsboro;
    max-width: 1020px;
    width: 100%;
    border: 4px solid darkgray;
    border-color: grey;
    border-radius: 15px;
    margin: 0 auto;
    height: auto;
}

.center {
    background-color: whitesmoke;
    max-width: 960px;
    width: 100%;
    border-color: red;
    margin: 0 auto;
    height: auto;
}

article {
    max-width: 1020px;
    width: 100%;
    margin: 0 auto;
    height: auto;
    padding: 15px;
    border: 5px solid darkgray;
    border-radius: 25px;
    box-sizing: border-box;
    background-color: white;
}

img {
    display: block;
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    border: 5px;
    box-sizing: border-box;
    border-color: grey;
    border-style: solid;
    border-radius: 15px;
}

figure {
    display: block;
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

figcaption {
    display: block;
    max-width: 960px;
    width: 100%;
    height: auto;
    color: midnightblue;
    background-color: gainsboro;
    font-size: 18px;
    font-family: arial;
    font-style: italic;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border-color: grey;
    border-style: solid;
    border-radius: 10px;
    box-sizing: border-box;
}

a:link {
    color: blue;
    background-color: white;
}

a:hover {
    color: red;
    background-color: white;
}

a:visited {
    color: blue;
    background-color: white;
}

a:active {
    color: blue;
    background-color: yellow;
}

a.navi:link {
    color: white;
    background-color: #003300;
}

a.navi:visited {
    color: white;
    background-color: #003300;
}

a.navi:hover {
    color: red;
    background-color: black;
}

a.navi:active {
    color: #003300;
    background-color: white;
}

a.navi_yr:link {
    color: white;
    background-color: #003300;
}

a.navi_yr:visited {
    color: white;
    background-color: #003300;
}

a.navi_yr:hover {
    color: silver;
    background-color: #003300;
}

a.navi_yr:active {
    color: #003300;
    background-color: white;
}

a.specjal:link {
    color: white;
    background-color: #003300;
}

a.specjal:hover {
    color: red;
    background-color: #003300;
}

a.specjal:visited {
    color: white;
    background-color: #003300;
}

a.specjal:active {
    color: mediumvioletred;
    background-color: white;
}

/* Responsywność */

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
