/*
 Theme Name: Invest Match
 Theme URI: https://github.com/elementor/hello-theme/
 Description: Child theme for Hello Elementor. Służy do nadpisywania styli, dodawania własnego CSS/JS i funkcji.
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-elementor-child
*/

/* ==========================================================
   INVEST MATCH - WYSZUKIWARKA OFERT
   Shortcode: [im_oferty_search]
   ========================================================== */

.im-offer-search {
    width: 100%;
    font-family: "Area Normal", Arial, sans-serif;
    background: #fff;
    color: #171717;
}


/* ==========================================================
   TABS
   ========================================================== */

.im-offer-search__tabs {
    display: flex;
    align-items: stretch;
    gap: 0;

    width: 100%;
    min-height: 48px;

    padding: 0 6px;

    border-bottom: 1px solid #e7e7e7;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.im-offer-search__tabs::-webkit-scrollbar {
    display: none;
}

.im-offer-search__tab {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: max-content;

    padding: 0 22px;

    color: #323232;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;

    text-decoration: none !important;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.im-offer-search__tab:hover {
    color: #111;
}

.im-offer-search__tab::after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: -1px;

    height: 2px;

    background: transparent;

    transition: background-color .2s ease;
}

.im-offer-search__tab.is-active {
    color: #111;
    font-weight: 500;
}

.im-offer-search__tab.is-active::after {
    background: #d2262c;
}


/* ==========================================================
   FORM
   ========================================================== */

.im-offer-search__form {
    display: grid;

    grid-template-columns:
        minmax(150px, 1.35fr)
        minmax(150px, 1.1fr)
        minmax(115px, .9fr)
        minmax(115px, .9fr)
        minmax(135px, 1fr)
        minmax(135px, 1fr)
        166px;

    gap: 10px;

    width: 100%;

    padding: 14px 6px 18px;
}


/* ==========================================================
   FIELDS
   ========================================================== */

.im-offer-search__field {
    position: relative;

    width: 100%;
    height: 46px;

    border: 1px solid #dedede;
    border-radius: 4px;

    background: #fff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.im-offer-search__field:hover {
    border-color: #c6c6c6;
}

.im-offer-search__field:focus-within {
    border-color: #b8b8b8;

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .025);
}


/* SELECT + INPUT */

.im-offer-search__field select,
.im-offer-search__field input {
    width: 100%;
    height: 100%;

    padding: 0 38px 0 14px;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #474747;

    font-family: inherit;
    font-size: 11px;
    font-weight: 400;

    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;
}


/* placeholders */

.im-offer-search__field input::placeholder {
    color: #656565;
    opacity: 1;
}


/* usunięcie spinnera number */

.im-offer-search__field input[type="number"]::-webkit-inner-spin-button,
.im-offer-search__field input[type="number"]::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
}

.im-offer-search__field input[type="number"] {
    -moz-appearance: textfield;
}


/* ==========================================================
   SELECT CHEVRON
   ========================================================== */

.im-offer-search__field:has(select)::after {
    content: "";

    position: absolute;

    top: 50%;
    right: 14px;

    width: 6px;
    height: 6px;

    border-right: 1px solid #555;
    border-bottom: 1px solid #555;

    pointer-events: none;

    transform:
        translateY(-70%)
        rotate(45deg);
}


/* ==========================================================
   LOCATION ICON
   ========================================================== */

.im-offer-search__field--location select {
    padding-left: 38px;
}

.im-offer-search__field-icon {
    position: absolute;

    top: 50%;
    left: 12px;

    display: flex;

    width: 16px;
    height: 16px;

    color: #555;

    pointer-events: none;

    transform: translateY(-50%);
}

.im-offer-search__field-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   BUTTON
   ========================================================== */

.im-offer-search__submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;

    padding: 0 22px !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 4px !important;

    background: #CC2429 !important;
    color: #fff !important;

    font-family: "Area Normal", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    white-space: nowrap;
    cursor: pointer;

    box-shadow: none !important;

    transition:
        background-color .2s ease,
        transform .15s ease;
}

.im-offer-search__submit:hover {
    background: #B81F24 !important;
    color: #fff !important;
}

.im-offer-search__submit:active {
    transform: translateY(1px);
}

.im-offer-search__submit svg {
    display: block !important;

    width: 16px !important;
    height: 16px !important;

    flex: 0 0 16px;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.6 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .im-offer-search__form {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .im-offer-search__submit {
        grid-column: span 1;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .im-offer-search__tabs {
        min-height: 46px;

        padding: 0;
    }

    .im-offer-search__tab {
        padding: 0 17px;

        font-size: 11px;
    }

    .im-offer-search__tab::after {
        left: 14px;
        right: 14px;
    }


    .im-offer-search__form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;

        padding: 14px 0;
    }


    /* lokalizacja + typ pełna szerokość */

    .im-offer-search__field--location,
    .im-offer-search__field:nth-of-type(2) {
        grid-column: 1 / -1;
    }


    .im-offer-search__submit {
        grid-column: 1 / -1;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .im-offer-search__form {
        grid-template-columns: 1fr;
    }

    .im-offer-search__field,
    .im-offer-search__field--location,
    .im-offer-search__field:nth-of-type(2),
    .im-offer-search__submit {
        grid-column: auto;
    }

    .im-offer-search__field,
    .im-offer-search__submit {
        height: 48px;
    }
}

/* ==========================================================
   INVEST MATCH - PROPERTY GALLERY
   [im_property_gallery]
   ========================================================== */

.im-property-gallery {
    --im-gallery-gap: 3px;
    --im-gallery-radius: 0px;

    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 70%)
        minmax(0, 30%);

    gap: var(--im-gallery-gap);

    width: 100%;

    aspect-ratio: 2.97 / 1;

    overflow: hidden;

    background: #fff;

    border-radius: var(--im-gallery-radius);
}


/* ==========================================================
   IMAGES
   ========================================================== */

.im-property-gallery img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: cover;
    object-position: center;

    user-select: none;

    -webkit-user-drag: none;
}


/* ==========================================================
   MAIN
   ========================================================== */

.im-property-gallery__main {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background: #111;
}


/*
 * Delikatny gradient na dole i bokach.
 * Na screenie jest bardzo subtelny.
 */
.im-property-gallery__main::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0) 58%,
            rgba(0,0,0,.20) 100%
        );
}


/* ==========================================================
   RIGHT COLUMN
   ========================================================== */

.im-property-gallery__side {
    display: grid;

    grid-template-rows:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: var(--im-gallery-gap);

    min-width: 0;
    min-height: 0;
}


.im-property-gallery--count-2
.im-property-gallery__side {
    grid-template-rows: 1fr;
}


/* ==========================================================
   THUMBS
   ========================================================== */

.im-property-gallery__thumb {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 0 !important;
    border-radius: 0 !important;

    background: #111 !important;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    box-shadow: none !important;
}


.im-property-gallery__thumb img {
    transition:
        transform .45s cubic-bezier(.2,.65,.3,1),
        opacity .25s ease;
}


.im-property-gallery__thumb:hover img {
    transform: scale(1.025);
}


/* subtelne przyciemnienie hover */

.im-property-gallery__thumb::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0);

    pointer-events: none;

    transition:
        background-color .25s ease;
}


.im-property-gallery__thumb:hover::after {
    background: rgba(0,0,0,.08);
}


/* ==========================================================
   ARROWS
   ========================================================== */

.im-property-gallery__arrow {
    position: absolute;

    top: 50%;

    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(255,255,255,.9) !important;
    border-radius: 50% !important;

    background: rgba(8,17,20,.72) !important;

    color: #fff !important;

    cursor: pointer;

    box-shadow:
        0 3px 14px rgba(0,0,0,.15) !important;

    transform: translateY(-50%);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition:
        background-color .2s ease,
        transform .2s ease;
}


.im-property-gallery__arrow:hover {
    background: rgba(8,17,20,.92) !important;

    transform:
        translateY(-50%)
        scale(1.04);
}


.im-property-gallery__arrow--prev {
    left: 13px;
}


.im-property-gallery__arrow--next {
    right: 13px;
}


.im-property-gallery__arrow svg {
    display: block;

    width: 19px;
    height: 19px;

    fill: none !important;

    stroke: currentColor !important;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   COUNTER
   ========================================================== */

.im-property-gallery__counter {
    position: absolute;

    left: 14px;
    bottom: 11px;

    z-index: 3;

    display: flex;
    align-items: center;

    gap: 2px;

    color: #fff;

    font-family: "Area Normal", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;

    text-shadow:
        0 1px 3px rgba(0,0,0,.7);
}


/* ==========================================================
   SINGLE IMAGE
   ========================================================== */

.im-property-gallery--count-1 {
    display: block;

    aspect-ratio: 2.07 / 1;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) {

    .im-property-gallery {
        grid-template-columns:
            minmax(0, 68%)
            minmax(0, 32%);

        aspect-ratio: 2.55 / 1;
    }

    .im-property-gallery__arrow {
        width: 40px;
        height: 40px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .im-property-gallery {
        display: grid;

        grid-template-columns: 1fr;
        grid-template-rows: auto auto;

        gap: 3px;

        aspect-ratio: auto;

        overflow: visible;
    }


    /*
     * Główne zdjęcie.
     */
    .im-property-gallery__main {
        width: 100%;

        aspect-ratio: 16 / 10;
    }


    /*
     * Dwa kolejne zdjęcia pod głównym.
     */
    .im-property-gallery__side {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-rows: auto;

        gap: 3px;

        width: 100%;
    }


    .im-property-gallery__thumb {
        aspect-ratio: 16 / 10;
    }


    /*
     * Jeżeli są tylko dwa zdjęcia,
     * drugie zajmuje całą szerokość.
     */
    .im-property-gallery--count-2
    .im-property-gallery__side {
        grid-template-columns: 1fr;
    }


    .im-property-gallery__arrow {
        width: 40px;
        height: 40px;
    }


    .im-property-gallery__arrow--prev {
        left: 10px;
    }


    .im-property-gallery__arrow--next {
        right: 10px;
    }


    .im-property-gallery__counter {
        left: 12px;
        bottom: 10px;

        font-size: 11px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .im-property-gallery__main {
        aspect-ratio: 4 / 3;
    }


    .im-property-gallery__side {
        gap: 2px;
    }


    .im-property-gallery__thumb {
        aspect-ratio: 4 / 3;
    }


    .im-property-gallery__arrow {
        width: 37px;
        height: 37px;
    }


    .im-property-gallery__arrow svg {
        width: 17px;
        height: 17px;
    }

}

/* ==========================================================
   INVEST MATCH - PROPERTY GALLERY
   VISUAL FIXES
   ========================================================== */

/* główny wrapper */
.im-property-gallery {
    --im-gallery-gap: 2px;
    --im-gallery-radius: 0px;

    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(0, 30%);
    gap: var(--im-gallery-gap);

    width: 100%;
    aspect-ratio: 2.97 / 1;

    overflow: hidden;
    background: #fff;
    border-radius: var(--im-gallery-radius);
}

/* ważne - wszystko ma się równo rozciągać */
.im-property-gallery,
.im-property-gallery__main,
.im-property-gallery__side,
.im-property-gallery__thumb {
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}

/* =========================
   OBRAZY - mocniejsze wymuszenie cover
   ========================= */

.im-property-gallery__main-img,
.im-property-gallery__thumb img,
.im-property-gallery img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    vertical-align: middle !important;
}

/* =========================
   GŁÓWNE ZDJĘCIE
   ========================= */

.im-property-gallery__main {
    position: relative;
    overflow: hidden;
    background: #111;
}

.im-property-gallery__main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 58%,
        rgba(0, 0, 0, 0.14) 100%
    );
}

/* =========================
   PRAWA KOLUMNA
   ========================= */

.im-property-gallery__side {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--im-gallery-gap);
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.im-property-gallery--count-2 .im-property-gallery__side {
    grid-template-rows: 1fr;
}

/* =========================
   MINIATURY
   ========================= */

.im-property-gallery__thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;
    line-height: 0;

    cursor: pointer;
}

.im-property-gallery__thumb::before,
.im-property-gallery__thumb::after {
    box-sizing: border-box;
}

.im-property-gallery__thumb img {
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.im-property-gallery__thumb:hover img {
    transform: scale(1.02);
}

.im-property-gallery__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background-color 0.25s ease;
}

.im-property-gallery__thumb:hover::after {
    background: rgba(0, 0, 0, 0.04);
}

/* =========================
   STRZAŁKI - mniejsze, subtelniejsze
   ========================= */

.im-property-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 999px !important;

    background: rgba(11, 18, 22, 0.48) !important;
    color: #fff !important;

    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;

    transform: translateY(-50%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.im-property-gallery__arrow:hover {
    background: rgba(11, 18, 22, 0.62) !important;
    border-color: rgba(255, 255, 255, 0.88) !important;
    transform: translateY(-50%) scale(1.03);
}

.im-property-gallery__arrow--prev {
    left: 12px;
}

.im-property-gallery__arrow--next {
    right: 12px;
}

.im-property-gallery__arrow svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================
   LICZNIK
   ========================= */

.im-property-gallery__counter {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 2px;

    color: #fff;
    font-family: "Area Normal", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

/* =========================
   1 zdjęcie
   ========================= */

.im-property-gallery--count-1 {
    display: block;
    aspect-ratio: 2.07 / 1;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1024px) {
    .im-property-gallery {
        grid-template-columns: minmax(0, 68%) minmax(0, 32%);
        aspect-ratio: 2.55 / 1;
    }

    .im-property-gallery__arrow {
        width: 34px;
        height: 34px;
    }

    .im-property-gallery__arrow svg {
        width: 14px;
        height: 14px;
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 767px) {
    .im-property-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2px;
        aspect-ratio: auto;
        overflow: visible;
    }

    .im-property-gallery__main {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .im-property-gallery__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 2px;
        width: 100%;
    }

    .im-property-gallery__thumb {
        aspect-ratio: 16 / 10;
    }

    .im-property-gallery--count-2 .im-property-gallery__side {
        grid-template-columns: 1fr;
    }

    .im-property-gallery__arrow {
        width: 34px;
        height: 34px;
    }

    .im-property-gallery__arrow--prev {
        left: 10px;
    }

    .im-property-gallery__arrow--next {
        right: 10px;
    }

    .im-property-gallery__counter {
        left: 10px;
        bottom: 9px;
    }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {
    .im-property-gallery__main {
        aspect-ratio: 4 / 3;
    }

    .im-property-gallery__thumb {
        aspect-ratio: 4 / 3;
    }

    .im-property-gallery__arrow {
        width: 32px;
        height: 32px;
    }

    .im-property-gallery__arrow svg {
        width: 13px;
        height: 13px;
    }
}

/* ==========================================================
   INVEST MATCH - PROPERTY GALLERY
   FINAL VISUAL TWEAKS
   ========================================================== */

/* desktop - trochę wyżej */
@media (min-width: 768px) {
    .im-property-gallery {
        aspect-ratio: auto !important;
        height: clamp(390px, 33vw, 500px) !important;
    }

    .im-property-gallery__main,
    .im-property-gallery__side,
    .im-property-gallery__thumb {
        height: 100%;
    }
}

/* ciaśniejszy layout */
.im-property-gallery {
    --im-gallery-gap: 2px;
}

/* zdjęcia zawsze cover */
.im-property-gallery img,
.im-property-gallery__main-img,
.im-property-gallery__thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

/* main */
.im-property-gallery__main {
    position: relative;
    overflow: hidden;
}

.im-property-gallery__main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 58%,
        rgba(0,0,0,0.13) 100%
    );
}

/* prawa kolumna */
.im-property-gallery__side {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px;
    overflow: hidden;
    background: #fff;
}

.im-property-gallery--count-2 .im-property-gallery__side {
    grid-template-rows: 1fr;
}

/* miniatury */
.im-property-gallery__thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
    line-height: 0;

    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.im-property-gallery__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    pointer-events: none;
    transition: background-color .25s ease;
}

.im-property-gallery__thumb:hover::after {
    background: rgba(0,0,0,.04);
}

/* =========================
   STRZAŁKI - wersja clean
   ========================= */

.im-property-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;
    margin: 0;
    padding: 0;
    line-height: 0;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: #fff !important;

    box-shadow: none !important;
    cursor: pointer;

    transform: translateY(-50%);
    transition:
        transform .2s ease,
        opacity .2s ease;
}

.im-property-gallery__arrow:hover {
    transform: translateY(-50%) scale(1.08);
    opacity: .88;
}

.im-property-gallery__arrow--prev {
    left: 14px;
}

.im-property-gallery__arrow--next {
    right: 14px;
}

.im-property-gallery__arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;

    transform: none !important;
}

/* usuwamy wcześniejsze optyczne przesunięcia */
.im-property-gallery__arrow--prev svg,
.im-property-gallery__arrow--next svg {
    transform: none !important;
}

/* mobile */
@media (max-width: 767px) {
    .im-property-gallery__arrow {
        width: 40px;
        height: 40px;
    }

    .im-property-gallery__arrow--prev {
        left: 10px;
    }

    .im-property-gallery__arrow--next {
        right: 10px;
    }

    .im-property-gallery__arrow svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
    }
}
}

.im-property-gallery__arrow:hover {
    background: rgba(11,18,22,.58) !important;
    border-color: rgba(255,255,255,.88) !important;
    transform: translateY(-50%) scale(1.03);
}

.im-property-gallery__arrow--prev {
    left: 12px;
}

.im-property-gallery__arrow--next {
    right: 12px;
}

.im-property-gallery__arrow svg {
    display: block;
    width: 13px;
    height: 13px;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* optyczne wyrównanie strzałek */
.im-property-gallery__arrow--prev svg {
    transform: translateX(-0.5px);
}

.im-property-gallery__arrow--next svg {
    transform: translateX(0.5px);
}

/* licznik */
.im-property-gallery__counter {
    left: 12px;
    bottom: 10px;
    z-index: 3;
    font-size: 11px;
    text-shadow: 0 1px 3px rgba(0,0,0,.65);
}

/* =========================
   ANIMACJA
   ========================= */

.im-property-gallery__main-img,
.im-property-gallery__thumb img {
    transition:
        opacity .26s ease,
        transform .32s cubic-bezier(.22,.61,.36,1);
}

.im-property-gallery.is-animating-next .im-property-gallery__main-img,
.im-property-gallery.is-animating-next .im-property-gallery__thumb img {
    opacity: 0;
    transform: translateX(-18px) scale(1.01);
}

.im-property-gallery.is-animating-prev .im-property-gallery__main-img,
.im-property-gallery.is-animating-prev .im-property-gallery__thumb img {
    opacity: 0;
    transform: translateX(18px) scale(1.01);
}

/* mobile */
@media (max-width: 767px) {
    .im-property-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2px;
        aspect-ratio: auto !important;
        height: auto !important;
        overflow: visible;
    }

    .im-property-gallery__main {
        aspect-ratio: 16 / 10;
    }

    .im-property-gallery__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 2px;
        width: 100%;
    }

    .im-property-gallery__thumb {
        aspect-ratio: 16 / 10;
    }

    .im-property-gallery--count-2 .im-property-gallery__side {
        grid-template-columns: 1fr;
    }

    .im-property-gallery__arrow {
        width: 32px;
        height: 32px;
    }

    .im-property-gallery__arrow svg {
        width: 12px;
        height: 12px;
    }

    .im-property-gallery__arrow--prev {
        left: 10px;
    }

    .im-property-gallery__arrow--next {
        right: 10px;
    }

    .im-property-gallery__counter {
        left: 10px;
        bottom: 9px;
    }
}

/* ==========================================================
   INVEST MATCH - SHARE BUTTON
   ========================================================== */

.im-share-button {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #222 !important;

    font-family: "Area Normal", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer;
    box-shadow: none !important;
}

.im-share-button__icon {
    display: block !important;

    width: 16px !important;
    height: 16px !important;

    min-width: 16px !important;
    flex: 0 0 16px !important;

    margin: 0 !important;
    padding: 0 !important;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.6;

    order: 1 !important;
}

.im-share-button__text {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;

    order: 2 !important;
    white-space: nowrap;
}