.m-header{
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("/media/EXT_drondji_0435-hdr.jpg");
    position: relative;
}

.m-header::before{
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5)
}

.m-header::after{
    content: "ilustrační fotografie, © wetra-čr a.s.";
    position: absolute;
    transform: rotate(90deg) translateY(-50%);
    color: #FFFFFF;
    font-size: 8px;
    left: -4.2rem;
    top: 50%;
}

.m-gallery{
    width: 80%;
    margin: 140px auto 0;
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.g-img{
    width: 100%;
}

/*CAROUSEL CSS*/

.carousel {
    position: relative;
    width: 80%;
    max-width: 1200px;
    overflow: hidden;
    margin: 0 auto;
}

.carousel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
}

.carousel-text {
    font-size: 18px;
    font-weight: bold;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-nav button {
    background: #f4cd2b;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-nav button:hover {
    background: #d5b325;
}

.carousel-images {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-image {
    min-width: 100%;
    height: 600px;
    object-fit: cover;
}

@media (max-width: 800px) {
    .m-gallery-carousel{
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .carousel-text {
        font-size: 14px;
    }

    .carousel-nav {
        margin-top: 10px;
    }

    .carousel-nav button {
        padding: 6px;
    }
    .carousel-image {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .carousel-text {
        font-size: 12px;
    }

    .carousel-nav button {
        padding: 5px;
    }
    .carousel-image {
        height: 400px;
    }
}