/* five column GRID STYLES
-----------------------------------------------------------------*/

body {
    margin: 0;
    padding: 0;
}

.item {
    float: left;
    position: relative;
    line-height: 1em;
    height: 100%;
}

.item {
    width: 33.33333%;
}

.item:last-child {
    display: block;
}

.image {
    width: 100%;
    height: 70%; /* Usuwa ograniczenie wysokości */
    max-height: 70vh; /* Opcjonalnie, możesz dostosować do swojego układu */
    object-fit: cover;
}

.item-img {
    max-width: 90px; /* Ustal maksymalną szerokość obrazka */
    height: auto; /* Zachowanie proporcji */
    display: block; /* Poprawia wyrównanie */
    margin: 0 auto 10px; /* Wyśrodkowanie */
}

.image:after {
    clear: both;
}

.overlay-lock {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgb(0 0 0 / 75%);
}

.overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
    color: #fff;
    display: none;
}

.overlay .title {
    text-align: center;
    font-size: 30px;
}

.overlay .description {
    position: absolute;
    top: 50%;
    left: 80px;
    background-color: rgba(0, 0, 0, 0.80);
    margin: 0;
}

.overlay .description p {
    margin: 20px;
}

.item:hover .overlay {
    display: block;
}

.triangle-up-left {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 50px solid rgb(250, 190, 6);
    border-right: 50px solid transparent;
}

.triangle-bottom-right {
    position: absolute;
    width: 0;
    height: 0;
    top: calc(60vh - 50px);
    right: 0;
    border-bottom: 50px solid #1a94cc;
    border-left: 50px solid transparent;
}

.desc-box {
    position: absolute;
    width: 100%;
    height: 40vh;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Wyśrodkowanie tekstu */
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile {
    display: none;
    justify-content: start;
}

.wrapper {
    height: 100vh;
    position: relative;
}

.item-place {
    font-size: 22px;
    font-family: 'BebasNeueRegular';
    font-weight: 400;
    font-style: normal;
    color: rgb(255, 255, 255);
    line-height: 1.2;
    text-align: center;
}

.mobile-place {
    font-size: 22px;
    font-family: 'BebasNeueRegular';
    font-weight: 400;
    font-style: normal;
    color: rgb(255, 255, 255);
    line-height: 1.2;
    padding-top: 6px;
}

.mobile-img {
    max-height: calc(20vh - 40px);
    padding: 20px;
}

.item-img {
    margin-bottom: 10px;
}

.box-1 {
    background-color: #1eadef;
}

.box-2 {
    background-color: #fabe06;
}

.box-3 {
    background-color: #f5273e;
}

@media screen and (max-width: 992px) {
    .item {
        width: 50%;
    }



    .image {
        height: inherit;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .wrapper {
        height: 20vh;
    }

    .image {
        display: none;
    }

    .desc-box {
        display: none;
    }

    .flex-container {
        justify-content: start;
        align-items: center;
    }

    .item {
        width: 100%;
    }

    .triangle-up-left,
    .triangle-bottom-right {
        display: none;
    }

    .full {
        display: none;
    }

    .mobile {
        display: flex;
    }
    a.mobile {
        text-decoration: none;
    }
    .wrapper.item:hover .overlay, .wrapper.item .overlay {
        display: none;
    }

}
