/*
Theme Name: Dermal Child
Template:   dermal
Theme URI: https://1.envato.market/dermal-wp
Description: Dermatologist & Cosmetology Clinic WordPress Theme
Author: AwaikenThemes
Author URI: https://awaikenthemes.com/
Version: 1.0.0
Text Domain: dermal-child
*/

.service-image:before {
    background: linear-gradient(180deg, rgba(193, 156, 136, 0) 52.13%, rgba(142, 110, 93, 0.9) 81.58%) !important;
}

.team-image::before{
    background: linear-gradient(180deg, rgba(193, 156, 136, 0) 43.17%, rgba(89, 68, 56, 1) 100%) !important;
}

.contact-us-img:before {
    background: linear-gradient(180deg, rgba(193, 156, 136, 0) 50%, rgba(103, 81, 69, 0.95) 95%) !important;
}

.how-we-work-img:before{
    background: linear-gradient(180deg, rgba(193, 156, 136, 0) 49.89%, rgba(142, 110, 93, 0.9) 78.07%) !important;
}

.st0 {
      fill: #cea894;
}

@media only screen and (max-width: 991px){
    .team-image img{
		object-position: top center;

        }
}

/* Easy Table of Contents - Ozel Tasarım Guncellemesi */
#ez-toc-container {
    background: #f9f9f9;
    border: 1px solid #aaa;
    border-radius: 30px 30px 30px 30px !important;
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
    display: table;
    margin-bottom: 1em;
    padding: 30px 30px 30px 30px !important;
    position: relative;
    width: auto;
}

.ez-toc-counter nav ul li a::before {
    color: #cea995;
}

.backToTop {
    position: fixed;
    z-index: 1020;
    right: 20px;
    bottom: -65px; /* Başlangıçta ekranın dışında */
    opacity: 0;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    
    background-color: #A38372; 
    
    font-size: 18px;
    line-height: 53px; /* Dikey ortalama için */
    color: #fff;       /* İkon rengi */
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 3px rgb(0 0 0 / .1);
    
    /* Flex ile SVG'yi tam merkeze alalım */
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.25s, bottom 0.75s ease-in-out;
}

/* Mobil Uyumluluk */
@media (max-width: 1023px) {
    .backToTop {
        width: 41px;
        height: 41px;
        right: 15px;
        font-size: 13px;
        line-height: 41px;
    }
    /* Mobilde SVG boyutunu küçült */
    .backToTop svg {
        width: 20px;
        height: 20px;
    }
    .backToTop.visible {
        bottom: 85px !important; 
    }
}

.backToTop [class*='icon'] {
    display: inline-block;
    transition: 0.5s;
    fill: currentColor; /* İkon rengini parent'tan (color: #fff) alır */
}

/* Hover Efektleri */
.backToTop:hover {
    background-color: #B5927F; /* Hover olduğunda hafif açılır */
    box-shadow: 0 0 0 10px rgb(181 146 127 / .2);
}

.backToTop:hover [class*='icon'] {
    /* Sizin verdiğiniz flip efekti */
    transform: scaleX(-1); 
}

/* Görünür Olduğundaki Durum */
.backToTop.visible {
    opacity: 1;
    bottom: 30px; /* Aşağıdan ne kadar yukarıda duracağı */
}

.selin-shorts-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.selin-short-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.selin-short-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f3f3f3;
    border-radius: 22px;
}

.selin-short-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 22px;

    /* Shorts kapaklarındaki sağ-sol boşluğu kırpmak için */
    transform: scale(1.18);
    transition: transform .35s ease;
}

.selin-short-item:hover .selin-short-cover img {
    transform: scale(1.23);
}

.selin-short-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.selin-short-play::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #111;
}

/* Modal */
.selin-short-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .82);
}

.selin-short-modal.is-active {
    display: flex;
}

.selin-short-iframe-wrap {
    width: min(430px, calc(90vh * 9 / 16), 92vw);
    aspect-ratio: 9 / 16;
    max-height: 90vh;
    background: #000;
    border-radius: 22px;
    overflow: hidden;
}

.selin-short-iframe-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 22px;
}

.selin-short-close {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 1000000 !important;

    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;

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

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

    background: rgba(255, 255, 255, .96) !important;
    color: #c19c88 !important;

    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .28) !important;
    transition: all .25s ease;
}

.selin-short-close::before {
    content: "×";
    display: block;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    color: #c19c88;
    transform: translateY(-1px);
}

.selin-short-close:hover {
    background: #c19c88 !important;
    color: #fff !important;
    transform: scale(1.06);
}

.selin-short-close:hover::before {
    color: #fff;
}



/* Tablet */
@media (max-width: 1024px) {
    .selin-shorts-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Mobil */
@media (max-width: 575px) {
    .selin-shorts-gallery {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .selin-short-cover {
        border-radius: 18px;
    }

    .selin-short-cover img {
        border-radius: 18px;
        transform: scale(1.18);
    }

    .selin-short-item:hover .selin-short-cover img {
        transform: scale(1.22);
    }

    .selin-short-play {
        width: 56px;
        height: 56px;
    }

    .selin-short-play::before {
        left: 23px;
        top: 17px;
        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 17px;
    }

    
    .selin-short-close {
            top: 16px !important;
            right: 16px !important;
            width: 42px !important;
            height: 42px !important;
        }
    
    .selin-short-close::before {
            font-size: 28px;
        }
    
}

.selin-short-cover img {
    transform: scale(1.24) !important;
    transform-origin: center center;
    object-fit: cover;
    object-position: center center;
}

.selin-short-item:hover .selin-short-cover img {
    transform: scale(1.28) !important;
}

/*baslik*/

.selin-short-cover::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .72),
        rgba(0, 0, 0, .35),
        rgba(0, 0, 0, 0)
    );
    pointer-events: none;
}

.selin-short-title {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.selin-short-play {
    z-index: 3;
}

@media (max-width: 575px) {
    .selin-short-modal {
        padding: 16px;
    }

    .selin-short-iframe-wrap {
        width: min(92vw, calc(88vh * 9 / 16));
        max-height: 88vh;
        aspect-ratio: 9 / 16;
        border-radius: 18px;
    }

    .selin-short-iframe-wrap iframe {
        border-radius: 18px;
    }
}

.team-image .elementor-widget-container a {
    position: static;
}

.team-item {
    position: relative;
}

.team-image .elementor-widget-container a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
}

.team-body {
    z-index: 3; 
}
.team-body .elementor-icon-box-title a,
.team-body .elementor-social-icon {
    position: relative;
    z-index: 4;
}