.portfolio-item-banner{
    color: var(--tj-theme-primary);
    position: absolute;
    bottom: 15px;
    left: 0;
    background: rgba(246, 243, 252, 0.7);
    width: calc(100%);
    border-radius: 5px 5px 0 0;
    margin: 0 auto;
    right: 0;
    padding: 20px;
    padding-right: 50px;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    -webkit-transform: translateY(15px);
    -ms-transform: translateY(15px);
    transform: translateY(15px);
}

.portfolio-item-banner h3{
    color: var(--tj-theme-secondary);
}

.portfolio-item-banner p{
    color: var(--tj-theme-accent-1);
    margin-bottom: 0px;

}


.portfolio-item-banner .section-header{
    margin-bottom: 10px;
}

.blog-item{
    max-width: none;
    margin:0px;
}

.portfolio-item{
    padding:0px!important;
    background-color: transparent!important;
}


.light-mode .blog-item .blog-content {
    background-color: rgba(255, 255, 255, 0.8);
}


iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.tj_main_sidebar .sidebar_widget {
    background: -o-linear-gradient(
            190deg,
            var(--tj-theme-secondary) 0%,
            var(--tj-theme-primary) 100%
    );
    background: linear-gradient(
            260deg,
            var(--tj-theme-secondary) 0%,
            var(--tj-theme-primary) 100%
    );
}


.carousel-container {
    padding: 20px;
    width: 100%;
    max-width: 100%;
}

.carousel-inner img, .carousel-inner video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
}

/* Responsivní výška na mobilech */
@media (max-width: 768px) {
    .carousel-inner img, .carousel-inner video {
        height: 250px;
    }
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px;
}



.sidebar_widget.services_list ul li span {
    display: flex;
    margin-top: 10px;
    align-items: start;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--tj-body);
    border-radius: 8px;
    font-size: 16px;
    transition: 0.4s;
    position: relative;
    z-index: 1;
}

.sidebar_widget.services_list ul li span i {
    font-size: 25px;
    line-height: 1;
    margin-right: 10px;
    color: var(--tj-body);
    transition: all 0.4s ease-in-out 0s;
}
.social-networks-numbers{
    color: var(--tj-body);
    font-size: 13px;
}
.small-item img{
    border-radius: 2%;
}

.main-image img{
    border-radius: 1%;
}

.col-6.small-item {
    padding: 1px;
}

.estate-detail-list li{
    color: var(--tj-theme-accent-2)!important;
}

.estate-detail-list li span{
    color: #898989;
}
.estate-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.estate-detail-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.estate-detail-list li:last-child {
    border-bottom: none;
}

.team-profession{
    color: var(--tj-theme-primary);
    max-width: 520px;
    width: 100%;
    text-align: center;
}
.light-mode .service-item:hover .service-content .desc, .light-mode .service-item:hover .service-content .title .team-profession {
    color: var(--tj-white);
}
.team-profession-description{
    margin-top: 10px;
}


.team-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.team-row .col-lg-4 {
    display: flex;
    flex-direction: column;
}

.service-item {
    flex: 1;
    border: 1px solid #ccc; /* Nastavte požadovaný styl borderu */
    padding: 20px; /* Volitelné odsazení */
    box-sizing: border-box; /* Zajistí správné počítání velikosti */
}

.team-avatar img {
    width: 120px; /* Nastavte požadovanou šířku */
    height: 120px; /* Nastavte požadovanou výšku */
    border-radius: 50%;
    object-fit: cover; /* Zajistí správné oříznutí obrázku */
    display: block;
    margin: 0 auto; /* Volitelné - zarovnání na střed */
}

.service-content .title{
    text-align: center;
    margin-top: 15px;
}

.service-content .desc{
    text-align: center;
}

.tj-comments__container{
    margin-top: 0px;
}

.portfolio-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Pokud máte více položek */
    height: 100%; /* Nastavte výšku podle potřeby */
}

.blog-item {
    margin: 0 auto; /* Pro případ, že by flexbox nebyl použit */
}



/* Zrušit až bude vice refrenci */
.testimonial-item{
    max-width: none!important;
    width: 100%!important;
}

.small-item {
    position: relative;
    overflow: hidden;
}

.small-item img {
    width: 100%;
    height: auto;
    display: block;
}

.button-group {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 10;
}

.btn-pill {
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* Responzivní styly pro různé velikosti obrazovky */
@media (max-width: 767.98px) {
    .button-group {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }

    .btn-pill {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (max-width: 575.98px) {
    .button-group {
        bottom: 5px;
        right: 5px;
    }

    .btn-pill {
        padding: 4px 8px;
        font-size: 11px;
    }
}


/* Styly pro fullscreen modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    overflow-y: auto;
    padding: 40px 20px;
}

.fullscreen-modal.show {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1060;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.gallery-item {
    flex: 0 0 33.333%;
    padding: 10px;
}

@media (max-width: 991.98px) {
    .gallery-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 575.98px) {
    .gallery-item {
        flex: 0 0 100%;
    }
}

.gallery-item a img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item a img:hover {
    transform: scale(1.05);
}

.custom-category{
    display: inline-block;
    background-size: 200%;
    background-image: linear-gradient(90deg, var(--tj-theme-primary) 0%, var(--tj-theme-secondary) 110.61%);
    text-decoration: none;
    color: var(--tj-white);
    right: 15px;
    top: 15px;
    z-index: 2;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1;
    padding: 10px 15px;
    border-radius: 50px;
    transition: 0.4s;
}

.blog-item .blog-thumb {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    z-index: 1;
    max-height: 400px;
}