.blog-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 3;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ratio-3-4 {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.ratio-3-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ratio-4-4 {
    width: 100%;
    aspect-ratio: 4 / 4;
    overflow: hidden;
}

.ratio-4-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image {
    aspect-ratio: 12 / 7;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px; /* voliteľne */
}

.rev-slidebg,
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-overlay {
    background-color: #161C29;
    opacity: 0.35;
    pointer-events: none;
}

.cover-background, .tp-kbimg {
    filter: contrast(110%) !important;
}



.bio-overlay-1, .bio-overlay-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

.bio-overlay-1 {
    background: radial-gradient(circle at 40% 50%, transparent 68%, #E8AE4A 0%);
}

.bio-overlay-2 {
    background: radial-gradient(circle at 40% 50%, transparent 68%, #E8AE4A 0%);
    rotate: 180deg;
}

.font-aviano {
    font-family: var(--heading-font, 'aviano-sans'), sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.article > h1 {
    color: white;
    font-weight: 700;
    font-size: 3em;
    line-height: 1;
}

.portfolio-image {
    position: relative; /* potrebné pre absolutné umiestnenie badge */
}

.project-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    text-transform: uppercase;
}

.logo-icon, .logo-icon-mirror {
    position: relative;
}

.logo-icon::before {
    content: "";
    position: absolute;
    width: 10vw;
    max-width: 300px;
    height: 200px;
    top: 0;
    right: 0;
    background-image: url('/web/images/icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
}

.logo-icon-mirror::before {
    content: "";
    position: absolute;
    width: 7.5vw;
    max-width: 200px;
    height: 200px;
    top: 0;
    left: 50px;
    background-image: url('/web/images/icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: scaleX(-1);
    opacity: 1;
}

.custom-img {
    width: 100%;
    aspect-ratio: 6 / 9;
    object-fit: cover;
}

.number-prev, .number-next {
    font-family: var(--heading-font, 'aviano-sans'), sans-serif;
}

.hover-move-right {
    transition: transform 0.3s ease;
}

.hover-move-right:hover {
    transform: translateX(10px);
}

.custom-section {
    position: relative;
    overflow-x: clip;
}

@media (max-width: 991px) {
    .custom-nav {
        background-color: #222734 !important;

        color: white !important;
    }

    header .hamburger-push-button.icon span {
        background-color: white !important;
    }
}


@media (min-width: 992px) {
    .custom-nav {
        position: relative;
        z-index: 10;
        transition: background 0.3s ease;
        overflow: hidden;
    }

    .custom-nav > * {
        position: relative;
        z-index: 20;
    }

    header.sticky .custom-nav::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(8px);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .90) 50%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0) 100%);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .90) 50%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
        transition: opacity 0.4s ease;
        opacity: 1;
        z-index: 10;
    }

    .custom-nav::before {
        opacity: 0;
    }

    header nav.navbar a.navbar-brand img[style] {
        height: 60px !important;
        max-height: 60px !important;
        transition: all 0.3s ease !important;
    }

    header.sticky nav.navbar a.navbar-brand img[style] {
        height: 30px !important;
        max-height: 30px !important;
        transition: all 0.3s ease !important;
    }

    header.sticky.sticky-active nav.navbar a.navbar-brand img[style] {
        height: 30px !important;
        max-height: 30px !important;
    }
}

#unitsTable tbody tr {
    border-bottom: 1px solid #E8AE4A !important;
}

#unitsTable tbody tr:last-child {
    border-bottom: none;
}

#unitsTable thead tr th {
    text-align: center;
    background-color: transparent;
    color: #E8AE4A;
    font-family: var(--heading-font, 'aviano-sans'), sans-serif;
}

#unitsTable tbody tr td {
    text-align: center;
    background-color: transparent;
    color: white;
    border-top: 1px solid rgba(250, 250, 250, 0.5) !important;
    padding-right: 32px;
}

th:after, th:before {
    opacity: 0 !important;
}

th.sorting.sorting_asc:after, th.sorting.sorting_desc:before {
    opacity: 1 !important;
}

html {
    scroll-behavior: smooth !important;
}

.a-m2:after {
    content: ' m²';
}

.a-eur:after {
    content: ' €';
}

.iframe-wrapper {
    opacity: .8;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 700px;
    width: max-content;
}
