/* default */

.ogl-news {
    font-family: "OpenSans2", Arial, Helvetica, sans-serif !important;
    margin-bottom: 20px;
    font-size: 0;
    float: left;
    width: 100%;
}

.ogl--news--triple {
    float: none;
}

.ogl-news__title {
    font-family: "OpenSans2", "OpenSansRegular", Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #0d0f26;
    font-weight: 700;
    margin-bottom: 15px;
}

.ogl-news__label {
    font-size: 16px;
    font-weight: 700;
    background: #cc0000;
    color: #fff;
    border-radius: 25px;
    padding: 3px 13px;
    line-height: 22px;
    float: right;
}

.ogl-news__more {
    margin-top: 5px;
    text-align: right;
    font-size: 14px;
}

.ogl-news__more__raquo {
    color: #ea7224;
    font-weight: normal;
    font-size: 16px;
}

.ogl-news__wrapper {
    font-size: 0;
    display: flex;
}

.ogl-news__item {
    vertical-align: top;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: calc(33.2% - 1px);
    display: inline-block;
    height: auto;
    margin-right: 2px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.ogl-news__item:nth-child(odd) {
    margin-right: 2px;
}

.ogl-news__item:nth-child(3),
.ogl-news__item:nth-child(6) {
    margin-right: 0px;
}

.ogl-news__item:nth-child(4),
.ogl-news__item:nth-child(5),
.ogl-news__item:nth-child(6) {
    margin-top: 2px;
}

.ogl-news__item__picture {
    position: relative;
    vertical-align: top;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 118px;
    overflow: hidden;
}

.ogl-news__item__picture img {
    padding: 5px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -o-object-fit: contain;
    object-fit: contain;
    cursor: pointer;
    position: absolute;
    left: 50%;
    top: 50%;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.ogl-news__item__picture a img {
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

.ogl-news__item__picture a:hover img {
    opacity: 1 !important;
}

.ogl-news__item__price {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 14px;
    font-weight: 700;
    color: #004b90;
    background: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 5px;
}

.ogl-news__item__content {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: top;
    height: auto;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}

.ogl-news__item__content__title,
.ogl-news__item__content__title:hover,
.ogl-news__item__content__title:focus,
.ogl-news__item__content__title:visited {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111111 !important;
    line-height: 1.25;
    overflow: hidden;
    height: 35px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.ogl-news__item__content__info {
    font-size: 0;
    margin-top: 10px;
}

.ogl-news__item__content__info__element {
    font-size: 12px;
    display: inline-block;
    white-space: nowrap;
    color: #0d0f26;
    vertical-align: middle;
    margin-right: 10px;
    overflow: hidden;
    max-width: calc(38% - 5px);
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.ogl-news__item__content__info__element:last-child {
    max-width: calc(62% - 5px);
    margin-right: 0px;
}

.ogl-news__item__content__info__element sup {
    font-size: 9px;
    vertical-align: super;
}

.ogl-news__item__content__info__element i {
    font-size: 16px;
    color: #a2a2b6;
    margin-right: 3px;
    vertical-align: middle;
    display: inline-block;
}

.ogl-news__item__content__info__element span {
    vertical-align: middle;
    display: inline-block;
}

.ogl-news__item__content__loc {
    margin-top: 10px;
    padding-left: 25px;
    color: #111111;
    font-size: 12px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.ogl-news__item__content__loc:before {
    position: absolute;
    left: 0;
    top: 0;
    content: "\e966";
    font-family: "font-trojmiasto";
    font-size: 17px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* praca */

.ogl--news--praca .ogl-news__item__picture img {
    -o-object-fit: contain;
    object-fit: contain;
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    padding: 15px;
}

.ogl--news--praca .ogl-news__item__content {
    border-top: 1px solid #e0e0e0;
    padding: 0;
    margin: 10px;
    margin-top: 0px;
    padding-top: 10px;
    height: auto;
}

.ogl--news--praca .ogl-news__item__content__obj,
.ogl--news--praca .ogl-news__item__content__obj:hover,
.ogl--news--praca .ogl-news__item__content__obj:focus,
.ogl--news--praca .ogl-news__item__content__obj:visited {
    display: block;
    font-size: 12px;
    color: #959595;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 5px;
}

.ogl--news--praca .ogl-news__item__content__obj a {
    color: #959595;
}

/* motoryzacja */

.ogl--news--motoryzacja .ogl-news__item {
    border: none;
}

.ogl--news--motoryzacja .ogl-news__item__content {
    border: 1px solid #e0e0e0;
    border-top: none;
}

.ogl--news--motoryzacja .ogl-news__item__price {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 14px;
    font-weight: 700;
    color: #e97231;
    background: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 5px;
    border-right: 1px solid #e0e0e0;
}

.ogl--news--motoryzacja .ogl-news__item__picture img {
    -o-object-fit: cover;
    object-fit: cover;
    padding: 0;
    min-height: 100%;
    min-width: 100%;
    max-height: 100%;
    max-width: 100%;
}

.ogl--news--motoryzacja .ogl-news__item__content__info__element:nth-of-type(2n) {
    max-width: calc(62% - 5px);
    margin-right: 0px;
}

/* dom */

.ogl--news--nieruchomosci .ogl-news__item {
    border: none;
}

.ogl--news--nieruchomosci .ogl-news__item__content {
    border: 1px solid #e0e0e0;
    border-top: none;
}

.ogl--news--nieruchomosci .ogl-news__item__picture img {
    -o-object-fit: cover;
    object-fit: cover;
    padding: 0;
    min-height: 100%;
    min-width: 100%;
    max-height: 100%;
    max-width: 100%;
}

.ogl--news--nieruchomosci .ogl-news__item__price {
    pointer-events: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    position: absolute;
    left: 0;
    bottom: 0;
    color: #fff;
    right: 0;
    padding: 20px 10px 10px;
    border: none;
    text-align: left;
    text-shadow: 1.414px 1.414px 0px rgba(37, 37, 37, 0.5);
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(0%, rgba(41, 137, 216, 0)),
        color-stop(100%, rgba(2, 2, 2, 0.8))
    );
    background: -webkit-linear-gradient(top, rgba(41, 137, 216, 0) 0%, rgba(2, 2, 2, 0.8) 100%);
    background: -o-linear-gradient(top, rgba(41, 137, 216, 0) 0%, rgba(2, 2, 2, 0.8) 100%);
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(41, 137, 216, 0)), to(rgba(2, 2, 2, 0.8)));
    background: linear-gradient(to bottom, rgba(41, 137, 216, 0) 0%, rgba(2, 2, 2, 0.8) 100%);
}

.ogl--news--nieruchomosci .ogl-news__item__place {
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 1.414px 1.414px 0px rgba(37, 37, 37, 0.5);
}

.ogl--news--nieruchomosci .ogl-news__item__content__info__element {
    max-width: calc(50% - 5px);
}

.ogl--news--nieruchomosci .ogl-news__item__content__info__element:last-child {
    max-width: calc(50% - 5px);
}

/* pojedynczyncze ogl: */

.ogl--news--single {
    float: right;
    clear: right;
    width: auto;
    margin: 20px;
    margin-right: 0px;
}

.ogl--news--single .ogl-news__title,
.ogl--news--single .ogl-news__label {
    display: none;
}

.ogl--news--single .ogl-news__item {
    width: 250px;
}

/* dodatkowe elementy pokazywane tylko dla mobile: */
.ogl-news__item--more {
    display: none;
}

@media screen and (max-width: 768px) {
    .ogl--news--single {
        width: 100%;
    }
    .ogl-news__label {
        font-size: 14px;
    }
    .ogl--news--single .ogl-news__item {
        width: 100%;
    }
    .ogl-news {
        position: relative;
    }
    .ogl-news__title {
        font-size: 20px;
    }
    .ogl-news__wrapper {
        overflow-x: scroll;
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-flow: row nowrap;
        -ms-flex-flow: row nowrap;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        flex-flow: row nowrap;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-overflow-scrolling: touch; /*For iOS smooth scroll effect*/
        padding: 0 20px;
    }
    .ogl-news__item {
        display: block;
    }
    .ogl-news__item:nth-child(4),
    .ogl-news__item:nth-child(5),
    .ogl-news__item:nth-child(6) {
        margin-top: 0;
    }
    /* hack na uzyskanie prawidłowego odstępu: */
    .ogl--news--triple .ogl-news__item:first-of-type {
        margin-left: -20px;
    }
    .ogl-news__item__content__title,
    .ogl-news__item__content__title:hover,
    .ogl-news__item__content__title:focus,
    .ogl-news__item__content__title:visited,
    .ogl-news__item__place,
    .ogl-news__item__content__info__element {
        font-size: 12px;
    }
    .ogl-news__item--more .ogl-news__item__content__title,
    .ogl-news__item--more .ogl-news__item__content__title:hover,
    .ogl-news__item--more .ogl-news__item__content__title:focus,
    .ogl-news__item--more .ogl-news__item__content__title:visited {
        color: #959595 !important;
        font-weight: normal;
        font-size: 12px;
    }
    .ogl-news__item__content__info__element:first-of-type {
        margin-right: 10px;
    }
    /* dodatkowy link do wszystkich ogloszeń: */
    .ogl-news__more {
        display: none;
    }
    .ogl--news--triple .ogl-news__item,
    .ogl-news__item--more {
        min-width: 75%;
        margin-left: 20px;
        width: calc(25% - 1px);
    }
    .ogl-news__item--more {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        display: block;
        height: auto;
        margin-right: 2px;
        text-align: left;
    }
    .ogl-news__item--more .ogl-news__item__picture {
        font-size: 14px;
        vertical-align: middle;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    /* ikony w sekcji MORE (wykorzystane te same co w Ogłoszenia): */
    .category__item__icon {
        font-size: 70px;
        color: #064c91;
        line-height: 1;
        display: block;
        text-align: center;
    }
    .trm {
        font-family: "font-trojmiasto" !important;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        text-shadow: none;
        line-height: 1;
    }
    .trm-ico-simple-nieruchomosci::before {
        content: "\e9a7";
    }
    .trm-ico-simple-praca::before {
        content: "\e9b1";
    }
    .trm-ico-simple-motoryzacja::before {
        content: "\e9af";
    }
    .ogl-news__item--more .ogl-news__item__content__title {
        width: 100% !important;
    }
    /* praca: */
    .ogl--news--praca .ogl-news__item--more {
        border: 1px solid #e0e0e0;
    }
    .ogl--news--praca .ogl-news__item--more .ogl-news__item__picture {
        border: none;
    }
    .ogl--news--praca .ogl-news__item__content {
        border-top: 1px solid #e0e0e0;
        margin: 0;
        padding: 10px 10px;
        height: auto;
    }
    /* motoryzacja: */
    .ogl--news--motoryzacja .ogl-news__item--more {
        border: none;
    }
    .ogl--news--motoryzacja .ogl-news__item--more .ogl-news__item__content {
        padding: 10px 10px 37px;
    }
    .ogl--news--motoryzacja .ogl-news__item__price {
        font-size: 20px;
        padding: 5px;
    }
    .ogl--news--motoryzacja .ogl-news__item__content__title,
    .ogl--news--motoryzacja .ogl-news__item__content__title:hover,
    .ogl--news--motoryzacja .ogl-news__item__content__title:focus,
    .ogl--news--motoryzacja .ogl-news__item__content__title:visited {
        width: 90%;
        height: 20px;
        /* ukrywanie treści wychodzącej poza szerokość: */
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        /* wymagane dla text-overflow żeby działało zgodnie z oczekiwaniami: */
        white-space: nowrap;
        overflow: hidden;
    }
    .ogl--news--motoryzacja .ogl-news__item__content__info__element:first-of-type {
        max-width: calc(35% - 2px);
    }
    .ogl--news--motoryzacja .ogl-news__item__content__info__element:nth-of-type(2n) {
        max-width: calc(35% - 2px);
        margin-right: 10px;
    }
    .ogl--news--motoryzacja .ogl-news__item__content__info__element:last-child {
        max-width: calc(35% - 2px);
        display: inline;
    }
    /* dom: */
    .ogl--news--nieruchomosci .ogl-news__item__content__title,
    .ogl--news--nieruchomosci .ogl-news__item__content__title:hover,
    .ogl--news--nieruchomosci .ogl-news__item__content__title:focus,
    .ogl--news--nieruchomosci .ogl-news__item__content__title:visited {
        height: 20px;
        line-height: 1.55 !important;
        margin-top: 0;
        display: block;
        /* ukrywanie treści wychodzącej poza szerokość: */
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        /* wymagane dla text-overflow żeby działało zgodnie z oczekiwaniami: */
        white-space: nowrap;
        overflow: hidden;
    }
    .ogl--news--nieruchomosci .ogl-news__item--more .ogl-news__item__content {
        padding: 10px 10px 38px;
    }
}
