/* =========================================================
   Latif Mimari - Modern Blok Geçişli Slider
   ========================================================= */

.lm-slider-wrap {
    width: 980px;
    height: 560px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #111;
}

.lm-slider {
    position: relative;
    width: 980px;
    height: 560px;
    overflow: hidden;
}

/* ----- Slayt ------------------------------------------- */
.lm-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.lm-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.lm-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ----- Blok geçiş katmanı ------------------------------ */
.lm-blocks-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    pointer-events: none;
}
.lm-block {
    flex: 1;
    height: 100%;
    background: #111;
    opacity: 1;
    /* Her bloğun kendi geçiş süresi JS ile atanır */
}

/* İlk yüklemede aktif slayttaki bloklar şeffaf başlar —
   JS geçişler sırasında inline style ile opacity:1 yapar */
.lm-slide.active .lm-block {
    opacity: 0;
}

/* ----- Başlık & Fotoğraflar butonu -------------------- */
.lm-caption {
    position: absolute;
    bottom: 80px;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    width: auto;
    transform: none;
    right: auto;
    z-index: 10;
}

.lm-caption-title {
    display: inline-block;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font: bold 24px "Trebuchet MS", Arial, Helvetica, sans-serif;
    padding: 6px 20px;
    margin: 0;
    border-left: 4px solid #c8a84b;
    border-right: 4px solid #c8a84b;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.lm-foto-btn {
    display: inline-block;
    background: linear-gradient(to bottom, #c8a84b 0%, #a07830 100%);
    color: #fff;
    font: bold 12px "Trebuchet MS", Arial, Helvetica, sans-serif;
    padding: 7px 20px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: background 0.3s, transform 0.2s;
    border: 1px solid #7a5a20;
}
.lm-foto-btn:hover {
    background: linear-gradient(to bottom, #dbb85a 0%, #b08840 100%);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ----- Ok butonları ------------------------------------ */
.lm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 40px;
    height: 60px;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.3s;
    line-height: 60px;
    text-align: center;
    padding: 0;
}
.lm-arrow:hover { background: rgba(0, 0, 0, 0.75); }
.lm-prev { left: 0; border-radius: 0 4px 4px 0; }
.lm-next { right: 0; border-radius: 4px 0 0 4px; }

/* ----- Thumbnail şeridi -------------------------------- */
.lm-thumbs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    overflow-x: auto;
}

.lm-thumb {
    width: 72px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: opacity 0.3s, border-color 0.3s, transform 0.2s;
    border-radius: 2px;
    flex-shrink: 0;
}
.lm-thumb:hover {
    opacity: 0.9;
    transform: scale(1.05);
}
.lm-thumb.active {
    border-color: #c8a84b;
    opacity: 1;
}

/* ----- Scrollbar stilini gizle (thumbnail şeridi) ------ */
.lm-thumbs::-webkit-scrollbar { height: 4px; }
.lm-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }
