html {
    font-size: 14px;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    /*margin-bottom: 80px;*/
    font-family: Roboto, Verdana,sans-serif,'Tahoma';
    display: block;
    text-align: justify;
    font-size: 12pt;
    font-weight: 400;
    line-height: 17pt;
    color: #000000;
}

.trip-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr; /* Domyślnie 1 kolumna */
    /*padding: 0rem;*/
    margin-bottom:50px;
}

/* 2 kolumny na średnich ekranach */
@media (min-width: 800px) {
    .trip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 kolumny na dużych ekranach */
@media (min-width: 950px) {
    .trip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Styl dla pojedynczej "karty" */
.trip-card {
    padding: 2px;
    border: 0px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
    background: #fff;
    display: flex;
    flex-direction: column;
}

/*Subject*/
h1, h1 a {
    display: block;
    font-family: 'Times New Roman';
    font-style: italic;
    text-align: left;
    font-size: 36pt;
    font-weight: 600;
    padding-top: 0;
    margin-top: 3px;
    color: black;
}


h2, h2 a {
    display: block;
    font-family: Roboto, Verdana,sans-serif,'Tahoma';
    text-align: left;
    font-size: 13pt;
    font-weight: 600;
    color: #f15a22;
    padding-bottom: 0;
    margin-bottom: 0;
    line-height: 22pt;
}

    h3, h3 a {
        display: block;
        font-family: Tahoma;
        text-align: left;
        font-size: 14pt;
        font-weight: 500;
        color: #f15a22;
        padding-bottom: 0;
        margin-bottom: 0;
        line-height: 22pt;
    }
.nowrap {
    white-space: nowrap;
}
.image-container {
    margin-top: 2px;
    position: relative;
    width: 100%;
    aspect-ratio: 13 / 9; /* nowoczesna metoda – wspierana przez większość przeglądarek */
    overflow: hidden;
    /*border-radius: 8pt;*/
    border-radius: 5pt 0pt 5pt 0pt;
    /*border-radius: 8pt 8pt 1pt 1pt;*/
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center; /* opcjonalnie: możesz dać np. "top", jeśli chcesz wyświetlać górną część */
        display: block;
    }

.image-subtitle {
    position: absolute;
    top: 5px;
    width: 100%;
    margin: 0;
    padding: 0.2em 1em;
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    font-size: 1rem;
    font-weight:400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.1em;
}

.image-title {
    position: absolute;
    bottom: 0px;
    width: 100%;
    margin: 0;
    padding-bottom: 0.2em;
    padding-right: 15px; /*45px*/
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1.8rem;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
    display: flex;
    gap: 0.1em;
    justify-content: flex-end; /* <-- to kluczowe */
    gap: 0.5em;
    text-align: right; /* <-- to też */
}

.circle-badge {
    width: 1.6em;
    height: 1.6em;
    background-color: orange;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.textshort-container {
    margin-top: 10px;
    position: relative; /* Konieczne do umiejscowienia guzika */
    /*margin-top: 0px;*/
    padding-left: 0px;
    padding-right: 2.3em;
    font-size: 13pt;
    font-weight: 300;
    color: black;
    font-family: 'Roboto', sans-serif;
    /*font-family: Arial, Helvetica, sans-serif;*/
    line-height: 115%;
    min-height: 100px;
    max-height: 150px;
    overflow: hidden;
}

    .textshort-container a {
        text-decoration: none;
        color: black;
        font-size: 12pt;
        font-weight: 300;
        font-family: 'Roboto', sans-serif;
        /*padding-right: 2.9em;*/
    }

        .textshort-container a:hover {
            text-decoration: none;
            font-size: 12pt;
            font-weight: 600;
            font-family: 'Roboto', sans-serif;
            cursor: pointer;
            /*padding-right: 2.9em;*/
        }

.more-button {
    position: absolute;
    top: -10px; 
    /*padding-top: -10px;*/
    right: 0; 
    display: inline-flex;
    align-items: start;
    justify-content: center;
    width: 30px;
    height: 90px;
    border-radius: 0pt 0pt 0pt 0pt;
    background-image: linear-gradient(to bottom, rgba(255,140,0,0.8), rgba(255,60,0,0.0));
    /*background-color: rgba(255, 140, 0, 0.4);*/ /* pomarańczowy z przezroczystością */
    color: white;
    text-decoration: none;
    font-size: 2.5em;
    font-weight: bold;
    /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);*/
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.more-button:hover {
    /*background-color: rgba(255, 120, 0, 1);*/
    transform: scale(1.3);
    cursor: pointer;
}

/* Styl galerii */
.image-gallery {
    position: relative;
    width: 100%;
    overflow: hidden; /* Ukrywa część, która wychodzi poza widoczny obszar */
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Płynne przejście przy zmianie zdjęć */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-y; /* To pozwala na przewijanie pionowe */
}

.image-item {
    min-width: 100%; /* Każde zdjęcie zajmuje 100% szerokości kontenera */
}

    .image-item img {
        width: 100%;
        /*height: 100%;*/
        object-fit: cover; /* Wypełnia kontener zachowując proporcje obrazu */
        object-position: center; /* Wyrównanie obrazu na środku kontenera */
        aspect-ratio: 9 / 13;
        /*width: 100%;
        height: auto;
        display: block;*/ /* Usuwa niepotrzebne marginesy */
    }

    .gallery-wrapper {
    cursor: grab; /* Standardowy kursor dla galerii */
}

.gallery-wrapper:active {
    cursor: grabbing; /* Kursor podczas przeciągania */
}
/* Kropki na dole */
.dots-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .dot.active {
        background-color: rgba(255, 255, 255, 1);
    }

/* Tło i popup */
#custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

#custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    max-width: 300px;
    text-align: center;
    font-family: Arial, sans-serif;
    z-index: 1001;
}

    #custom-popup button {
        margin-top: 15px;
        padding: 8px 16px;
        border: none;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }

        #custom-popup button:hover {
            background-color: #0056b3;
        }


/*@media (min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 90%;
    }*/
/*}*/

/* Media Query dla komputerów */
@media (min-width: 600px) {
    .container-languages {
        position: fixed;
        right: 5%;
    }

    .item-main-full {
        width: 50%;
        max-height: 80%
    }

    .image-container-full {
        width: 45%;
        /*Obrazek na 45% szerokości height: 350px;*/
    }

    .trip-item {
        flex-direction: row; /* Obrazek z tekstem obok siebie */
        justify-content: space-between;
    }

    
    .text-container {
        width: 10%; /* Tekst na 45% szerokości */
    }

    .image-gallery {
        border-radius: 10px;
        max-width: 400px; /* Galeria po prawej stronie */
        max-height: 78%;
        position: fixed;
        top: 2.5%;
        left: 55%;
        /*right: 15px;*/
        overflow: hidden; /* Ukrywa część, która wychodzi poza widoczny obszar */
        object-fit: cover; /* Wypełnia kontener zachowując proporcje obrazu */
        object-position: right; /* Wyrównanie obrazu na środku kontenera */
    }

    .image-item img {
        width: 100%;
        /*height: 100%;*/
        object-fit: cover; /* Wypełnia kontener zachowując proporcje obrazu */
        object-position: center; /* Wyrównanie obrazu na środku kontenera */
        aspect-ratio: 3 / 4;
        /*width: 100%;
        height: auto;
        display: block;*/ /* Usuwa niepotrzebne marginesy */
    }

    .navbar {
        position: fixed;
        bottom: 0px;
        left: 0;
        right: 0;
        padding-top: 0.0px;
        padding-bottom: 0.0px;
        background-color: white; /* lub inny kolor tła */
        z-index: 9999; /* bardzo wysoka wartość – aby był "na wierzchu" */
        display: flex;
        justify-content: flex-start;
        align-items: center;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* opcjonalnie: cień */
        width: 100%;
        /*width: 53%;*/
    }

}

.navbar {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    padding-top: 0.0px;
    padding-bottom: 0.0px;
    background-color: white; /* lub inny kolor tła */
    z-index: 9999; /* bardzo wysoka wartość – aby był "na wierzchu" */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-shadow: -2px -2px 15px 5px rgba(0, 0, 0, 0.3) !important; /* opcjonalnie: cień */
}

.container-languages a:hover {
    color: red !important;
}
.nav-link  {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.nav-link:hover {
    color:red !important;
}