/* Expandable text with "Devamını Gör" */
.fm-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}
.fm-clamped.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.fm-toggle-btn {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Video embed container */
.fm-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 1.5rem 0;
}
.fm-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Cover image */
.fm-cover-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

/* Leaflet download button */
.fm-leaflet-download {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 1rem 0;
    transition: background 0.3s;
}
.fm-leaflet-download:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}
.fm-leaflet-download i {
    margin-right: 0.5rem;
}

/* KVKK consent block: belirgin kutu, görünür checkbox'lar, metin punto eşitliği */
.fm-consent-block {
    border: 2px solid #0d6efd;
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.fm-consent-block .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #6c757d;
    margin-top: 0.15rem;
}
.fm-consent-block .form-check-input:checked {
    border-width: 2px;
}
.fm-consent-block .form-check-label {
    font-size: 0.875rem;
}
.fm-consent-block .small {
    font-size: 0.875rem;
}

/* Tıklanabilir görseller: imleç + hafif hover */
.fm-zoomable-img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fm-zoomable-img:hover {
    transform: scale(1.02);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Lightbox (kontroller viewport’ta sabit; tema overflow/transform kesmesin diye) */
.fm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 64px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}
.fm-lightbox.fm-lightbox--open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.fm-lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}
.fm-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: min(88vh, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
}
.fm-lightbox-img {
    max-width: 100%;
    max-height: min(82vh, calc(100vh - 120px));
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}
/* Kapat: ekranın sağ üstü — kesilmez, Bootstrap .btn ile görünür kalır */
.fm-lightbox .fm-lightbox-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 2147483647;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: #fff !important;
    color: #111 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    line-height: 1;
}
.fm-lightbox .fm-lightbox-close:hover,
.fm-lightbox .fm-lightbox-close:focus {
    background: #f3f3f3 !important;
    color: #000 !important;
}
.fm-lightbox-close-icon {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
}
.fm-lightbox-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483647;
    text-align: center;
    max-width: 96vw;
    pointer-events: auto;
}
.fm-lightbox .fm-lightbox-tab {
    color: #fff !important;
    font-size: 0.95rem;
    text-decoration: underline !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    background: transparent !important;
    border: none !important;
    padding: 0.35rem 0.75rem;
}
.fm-lightbox .fm-lightbox-tab:hover,
.fm-lightbox .fm-lightbox-tab:focus {
    color: #f0f0f0 !important;
}
body.fm-lightbox-open {
    overflow: hidden;
}

a.fm-lightbox-from-href {
    font-size: 0.8125rem;
}
