﻿



.block-card-9 .grid-inner .btn-hover {
    opacity: 0;
    display: block;
    transition: opacity .3s ease, transform .3s .1s ease;
    margin-top: 15px;
    position: absolute;
    transform: translateY(0);
}

.block-card-9 .grid-inner:hover .btn-hover {
    opacity: 1;
    transform: translateY(-5px);
}

.block-card-9 .grid-inner .grid-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
}

.block-card-9 .grid-inner:hover .grid-image {
    -webkit-animation: kenburns 20s ease-out both;
    animation: kenburns 20s ease-out both;
}

.block-card-9 .grid-inner .grid-icon,
.block-card-9 .grid-inner .grid-content {
    transition: transform .3s ease;
}

.block-card-9 .grid-inner:hover .grid-content {
    transform: translateY(-45px);
}

.block-card-9 .grid-inner:hover .grid-icon {
    transform: translateY(-5px);
}

@-webkit-keyframes kenburns {
    0% {
        -webkit-transform: scale(1) translate(0, 0);
        transform: scale(1) translate(0, 0);
        -webkit-transform-origin: 84% 84%;
        transform-origin: 84% 84%;
    }

    100% {
        -webkit-transform: scale(1.25) translate(20px, 15px);
        transform: scale(1.25) translate(20px, 15px);
        -webkit-transform-origin: right bottom;
        transform-origin: right bottom;
    }
}

@keyframes kenburns {
    0% {
        -webkit-transform: scale(1) translate(0, 0);
        transform: scale(1) translate(0, 0);
        -webkit-transform-origin: 84% 84%;
        transform-origin: 84% 84%;
    }

    100% {
        -webkit-transform: scale(1.25) translate(20px, 15px);
        transform: scale(1.25) translate(20px, 15px);
        -webkit-transform-origin: right bottom;
        transform-origin: right bottom;
    }
}

/*.container {
    position: absolute !important;
    right: 0px;
    bottom: 0px;
}*/
.slider-caption,
.flex-caption {
    --cnvs-slider-caption-font-color: var(--cnvs-contrast-800);
    position: relative;
    /*display: flex;*/
    height: auto;
    right: 0px;
    bottom: 0px;
}
    /* anasayfa.css */
    .swiper-slide .container {
    position: relative;
}

.slider-caption-bottom-right {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.slider-caption-rectangle {
    background: rgba(0, 0, 0, 0.5); /* Yarı saydam siyah */
    padding: 20px 30px;
    border-radius: 5px;
    color: #fff;
    min-width: 250px;
    max-width: 400px;
}

    .slider-caption-rectangle h4 {
        margin: 0 0 10px 0;
        font-size: 1.8rem;
        /*font-weight: bold;*/
        color: white;
        margin-bottom: 0 !important;
    }
    .slider-caption-rectangle p:empty {
        display: none;
        margin: 0;
        padding: 0;
        height: 0;
    }
/* anasayfa.css */

.slider-caption-right .button {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

    .slider-caption-right .button:hover,
    .slider-caption-right .button:focus {
        background: #222 !important;
        color: #fff !important;
        border-color: #222 !important;
    }

@media (max-width: 768px) {
    .slider-caption-bottom-right {
        right: 10px;
        bottom: 10px;
        left: auto;
        align-items: flex-end;
    }

    .slider-caption-rectangle {
        padding: 10px 14px;
        min-width: 140px;
        max-width: 90vw;
        font-size: 0.95rem;
    }

        .slider-caption-rectangle h3,
        .slider-caption-rectangle h4 {
            font-size: 1.1rem;
        }

        .slider-caption-rectangle p {
            font-size: 0.95rem;
        }






}


