html {
  font-size: 14px;
}

/* Full-bleed figure images — the template's own `figure img` rule only
   sets max-width:100%, so on wide viewports an image narrower than the
   viewport renders at its native size instead of stretching, leaving a
   visible gap on one side inside a `.full` (100vw) row. Force cover
   fill for the common `<div class="... full ..."><figure class="has-cover">`
   pattern used throughout the site. Scoped to `.full` rows specifically
   so it doesn't touch figures elsewhere (zoom-gallery, portfolio grid,
   etc. already size their own images explicitly). */
.content-row.full > figure.has-cover img,
.content-row.full figure.has-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer contact line (phone/email) — see Pages/Shared/_Footer.cshtml.
   Lives here, not in a page @section, since the footer partial renders
   on every page and some of those pages already define @section Styles
   themselves. */
.footer-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-contact a {
  color: inherit;
  opacity: .7;
  text-decoration: none;
}

.footer-contact a:hover {
  opacity: 1;
}

.socials .fa-brands {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Index: full-bleed intro video — viewport-centered breakout + flex frame */
.intro-video-bleed {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  overflow: hidden;
}

.intro-video-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 92vh;
  max-height: 92vh;
}

.intro-video {
  width: 100%;
  max-width: 100%;
  min-height: 92vh;
  height: 92vh;
  max-height: 92vh;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Anasayfa: video ikinci hero gibi tam viewport yüksekliği */
.intro-video-hero-fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: block;
}

.intro-video-hero-fullscreen .intro-video-frame {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  width: 100%;
  align-items: stretch;
}

.intro-video-hero-fullscreen .intro-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  flex: 1 0 auto;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Anasayfa: video inene kadar üstünde animation.webp görünür, video oynayınca kaybolur */
.intro-video-frame.has-poster {
  position: relative;
}

.intro-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
}

.intro-video-frame.is-video-ready .intro-video-poster {
  opacity: 0;
}

/* Hover-video figures: static image by default, video cross-fades in on
   hover (desktop); on touch devices a tap opens the video in the lightbox
   (media-lightbox.js). */
.has-hover-video {
  position: relative;
}

.has-hover-video img {
  transition: opacity .5s ease;
}

.has-hover-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}

.has-hover-video.is-playing img {
  opacity: 0;
}

.has-hover-video.is-playing video {
  opacity: 1;
}

.has-hover-video figcaption {
  position: absolute;
  z-index: 2;
}

/* Touch-only tap affordance: a small play glyph hints the tile is
   interactive, since there's no hover state to discover it otherwise.
   Fades out once the clip is playing. */
@media (hover: none) {
  .has-hover-video {
    cursor: pointer;
  }

  .has-hover-video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 55% center;
    background-size: 20px;
    z-index: 2;
    opacity: 1;
    transition: opacity .3s ease;
    pointer-events: none;
  }

  .has-hover-video.is-playing::after {
    opacity: 0;
  }
}

/* Site footer — "Sonraki bölüm" geçişi + iletişim/telif satırı, her sayfada
   Pages/Shared/_NextChapter.cshtml ile sayfanın sonunda normal akışta durur
   (gizlenip açılmaz). Lives here (not in a page @section) because partial
   views can't safely define @section blocks when the host page already
   defines one of its own. */
.next-chapter-sheet {
  position: relative;
  width: 100%;
  background: #171717;
  overflow: hidden;
}

.next-chapter-sheet-link {
  display: block;
  width: 100%;
  height: min(560px, 70vh);
  position: relative;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.next-chapter-sheet-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.next-chapter-sheet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(.19,1,.22,1);
}

.next-chapter-sheet-link:hover .next-chapter-sheet-image img {
  transform: scale(1);
}

.next-chapter-sheet-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.18) 100%);
}

.next-chapter-sheet-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding-left: 9vw;
  padding-right: 30px;
}

.next-chapter-small {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
  opacity: .75;
}

.next-chapter-title {
  font-size: clamp(54px, 7vw, 115px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.045em;
  margin-bottom: 22px;
}

.next-chapter-description {
  max-width: 610px;
  font-size: 18px;
  line-height: 1.6;
  opacity: .88;
}

.next-chapter-action {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  font-size: 18px;
  font-weight: 500;
}

.next-chapter-action i {
  transition: transform .3s ease;
}

.next-chapter-sheet-link:hover .next-chapter-action i {
  transform: translateX(8px);
}

/* Şablonun kendi footer'ı kullanılmıyor; yerini .next-chapter-sheet aldı.
   Öğe sayfada kalır (#backtotop'un kaydırma işleyicisi için), görünmez. */
footer {
  display: none !important;
}

.next-chapter-backtop {
  position: absolute;
  right: 35px;
  top: 30px;
  width: 46px;
  height: 46px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.next-chapter-backtop:hover {
  background: #fff;
  color: #171717;
  transform: translateY(-3px);
}

/* Footer alt satırı: telefon / e-posta / sosyal / telif */
.site-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  padding: 32px 9vw;
  border-top: 1px solid rgba(255,255,255,.12);
  background: #171717;
  color: #fff;
  font-size: 15px;
}

.site-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
}

.site-footer-contact a,
.site-footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  opacity: .75;
  transition: opacity .3s ease;
}

.site-footer-contact a:hover,
.site-footer-socials a:hover {
  opacity: 1;
}

.site-footer-contact i {
  font-size: 13px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}

.site-footer-socials {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-copyright {
  font-size: 14px;
  opacity: .55;
}

/* Logo marquee — brand-partner strip built on the template's own
   .moving-gallery scroll component (see Certificates page), just
   re-sized: the template's default li is 40vw (tuned for full-bleed
   photography), way too large for a row of small logo marks. */
/* Şerit sabittir (kaydırmayla hareket etmez, common.js'te animasyonu yok) ve her zaman
   tek sıradır. Masaüstünde ortalıdır; konteynere sığmazsa iki yana eşit taşar.
   Mobilde parmakla yana kaydırılır; sonraki logo kenardan biraz görünür. */
.logo-marquee.moving-gallery {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-marquee.moving-gallery .wrapper-gallery {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  transform: none !important;
}

.logo-marquee.moving-gallery li {
  flex: none;
  width: 200px;
  height: 90px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .logo-marquee.moving-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .logo-marquee.moving-gallery::-webkit-scrollbar {
    display: none;
  }

  /* Ekrana ~2,5 logo sığar; yarım görünen logo yana kaydırılabildiğini gösterir. */
  .logo-marquee.moving-gallery li {
    width: 38vw;
    height: 72px;
    padding: 0 8px;
    scroll-snap-align: start;
  }
}

.logo-marquee.moving-gallery img {
  max-height: 36px;
  width: auto;
  max-width: 140px;
  filter: brightness(0) invert(1);
  opacity: .8;
  transition: opacity .3s ease;
}

.logo-marquee.moving-gallery img:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .logo-marquee.moving-gallery img {
    max-width: 100%;
    max-height: 30px;
  }
}

/* Same marquee, used on a light-section background (Index homepage) —
   drop the white-invert filter used for the dark nav so marks stay
   visible on white. */
.logo-marquee--onlight.moving-gallery img {
  filter: none;
  opacity: .75;
}

.logo-marquee--onlight.moving-gallery img:hover {
  opacity: 1;
}

/* Scattered logo grid — Index homepage "clients" section. Each tile
   drifts at its own scroll-linked rate (.vertical-parallax, same
   mechanism as the About page stat boxes) so the row reads as loosely
   scattered rather than a rigid line, and gently flows as you scroll. */
.logo-scatter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 20px 0;
}

.logo-scatter-item {
  width: 190px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f4;
  border-radius: 4px;
}

.logo-scatter-item:nth-child(odd) {
  margin-top: 0;
}

.logo-scatter-item:nth-child(even) {
  margin-top: 46px;
}

.logo-scatter-item img {
  max-height: 42px;
  width: auto;
  max-width: 130px;
  opacity: .85;
  transition: opacity .3s ease, transform .3s ease;
}

.logo-scatter-item:hover img {
  opacity: 1;
  transform: scale(1.06);
}

@media (max-width: 767px) {
  .logo-scatter-item:nth-child(even) {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .next-chapter-sheet-link {
    height: 60vh;
  }

  .site-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 30px;
  }

  .site-footer-contact {
    flex-direction: column;
  }

  .next-chapter-sheet-content {
    padding: 55px 30px 35px 30px;
    justify-content: flex-end;
  }

  .next-chapter-title {
    font-size: 52px;
  }

  .next-chapter-description {
    font-size: 15px;
  }

  .next-chapter-backtop {
    right: 20px;
    top: 20px;
  }
}
/* İletişim formu: gönderildi mesajı */
.contact-sent-message {
    margin-bottom: 30px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
}

/* Menü logosu (Menulogo.png): masaüstünde 100x91, mobilde yarısı (50x46) */
#logo img {
    width: 100px;
    height: 91px;
}

@media (max-width: 767px) {
    #logo img {
        width: 50px;
        height: 46px;
    }
}

/* Kayan başlıklar (hero .marquee-title ve .marquee-text.fw): şablon (common.js roll())
   yazının kopyasını, sayfa açılırken ölçtüğü piksel konumuna (position:absolute)
   koyuyor. Ölçüm Poppins yüklenmeden / yerleşim oturmadan yapıldığında kopya
   asıl yazının üstüne biniyor veya aşağı kayıyordu. Kopya artık ölçüme bağlı
   değil: flex ile asıl yazının hemen sağına, aynı hizaya dizilir; her ekran
   genişliğinde ve yazı tipi geç yüklendiğinde de doğru kalır. */
.marquee-title .hero-title-wrapper,
.marquee-text-wrapper:has(> .marquee-text.fw) {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.marquee-title .hero-title-wrapper > .hero-title,
.marquee-text-wrapper > .marquee-text.fw {
    flex: 0 0 auto;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* Laboratuvar sayfası test cihazları ızgarası (Laboratuvar.cshtml). Sayfanın kendi
   <style> bölümündeydi; admin blok editörünün önizlemesi de görsün diye buraya taşındı. */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.equipment-tile figure {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0 0 14px;
    overflow: hidden;
    border-radius: 2px;
}

.equipment-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-tile h6 {
    margin-bottom: 6px;
}

.equipment-tile p {
    font-size: 13px;
    opacity: .7;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

/* Örme sayfası (Production/Knitting.cshtml) panel kartlarındaki açıklama
   (.post-categories) yazısı beyaz. Şablon, açık renk başlık modunda
   (.change-header) bu yazıları !important ile siyaha çeviriyor. */
.panel-content .post-categories li span,
.change-header .panel-content .post-categories li span {
    color: #fff !important;
}

/* Dil seçimi (TR/EN), _Navbar.cshtml: masaüstü/tablette başlıkta "Menu"nün
   solunda (.header-lang), mobilde açılır menüde listenin altında (.language-switch). */
header .header-lang {
    float: right;
    position: relative;
    right: -30px; /* "Menu" düğmesi de şablonda 30px sağa kaydırılmış */
    z-index: 10;
    display: flex;
    gap: 10px;
    margin-right: 15px;
    pointer-events: initial;
    overflow: visible;
}

header .header-lang a {
    color: inherit;
    opacity: .55;
    text-decoration: none;
    transition: opacity .2s ease;
}

header .header-lang a:hover,
header .header-lang a.active {
    opacity: 1;
}

header .header-lang a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

nav .language-switch {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    header .header-lang {
        display: none;
    }

    nav .language-switch {
        display: flex !important;
        margin: 30px 0 0 0;
        padding-left: 20px;
    }
}

/* Şablonun açılış ekranı (sahte yüzde sayacı) kullanılmıyor; yerine
   _Layout.cshtml <head>'deki gerçek yükleme spinner'ı (html.is-loading) geldi. */
.preloader-wrap {
    display: none !important;
}

/* Footer "Sonraki bölüm" giriş efekti: kaydırmaya bağlı, site.js her karede
   transform: translateY(0..100px) yazar. Ekrana girerken 100px aşağıda
   (bottom:-100px gibi), sayfanın en altında 0'da. Geçiş (transition) yok;
   hareketi doğrudan kaydırma (smooth-scrollbar) yumuşatır. */
.next-chapter-sheet {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .next-chapter-sheet {
        transform: none !important;
    }
}

/* Ürünler kartları (Products.cshtml .product-cards): kart boş görünür; fare
   üzerine gelince ok, "Fabric", başlık ve açıklama sırayla opacity:0'dan 1'e,
   aşağıdan yukarı kayarak gelir, ayrılınca geri iner. Animasyon yalnızca
   yazılarda; kartın görseli değişmez. Şablonun (scripts.js) kendi hover
   animasyonu iç span'lara satır içi stil yazdığı için o span'lar burada
   !important ile sabitlenir, hareketi kapsayıcı div'ler yapar. */
.product-cards .item-caption {
    opacity: 1 !important;
}

/* Yazının okunması için alttaki koyu geçiş; yazılarla birlikte belirir. */
.product-cards .item-caption::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity .5s ease;
}

.product-cards .item:hover .item-caption::before {
    opacity: 1;
}

.product-cards .item-arrow i,
.product-cards .item-cat span,
.product-cards .item-title span {
    opacity: 1 !important;
    transform: none !important;
}

.product-cards .item-arrow,
.product-cards .item-cat,
.product-cards .item-title,
.product-cards .item-desc {
    opacity: 0;
    /* transform değil translate: şablonun mobilde .item-arrow'a verdiği scale bozulmasın */
    translate: 0 40px;
    transition: opacity .35s ease, translate .35s ease;
}

.product-cards .item:hover .item-arrow,
.product-cards .item:hover .item-cat,
.product-cards .item:hover .item-title {
    opacity: 1;
    translate: 0 0;
    transition: opacity .7s cubic-bezier(.16,1,.3,1), translate .7s cubic-bezier(.16,1,.3,1);
}

.product-cards .item:hover .item-desc {
    opacity: .85;
    translate: 0 0;
    transition: opacity .7s cubic-bezier(.16,1,.3,1), translate .7s cubic-bezier(.16,1,.3,1);
}

.product-cards .item:hover .item-cat { transition-delay: .07s; }
.product-cards .item:hover .item-title { transition-delay: .14s; }
.product-cards .item:hover .item-desc { transition-delay: .21s; }

/* Dokunmatik ekranlarda hover yok: yazılar hep görünür. */
@media (hover: none) {
    .product-cards .item-caption::before,
    .product-cards .item-arrow,
    .product-cards .item-cat,
    .product-cards .item-title {
        opacity: 1;
        translate: none;
    }

    .product-cards .item-desc {
        opacity: .85;
        translate: none;
    }
}

.product-cards .item-desc {
    max-width: min(380px, 70%);
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
}

@media (max-width: 767px) {
    .product-cards .item-desc {
        max-width: none;
        font-size: 14px;
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-cards .item-caption * {
        transition: none !important;
        translate: none !important;
    }
}

/* ------------------------------------------------------------------
   Admin blok editörü blokları (wwwroot/js/admin-visual-editor.js).
   Editörle eklenen ızgara, görsel, video, alıntı ve boşluk blokları
   WordPress blok sınıflarını kullanır (Milteks paneliyle aynı işaretleme);
   sitede ve editör önizlemesinde bu kurallarla görünür.
   ------------------------------------------------------------------ */
.wp-block-columns {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 2em 4em;
    box-sizing: border-box;
    margin-bottom: 1.75em;
}

.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-columns.are-vertically-aligned-bottom { align-items: flex-end; }

.wp-block-column {
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
.wp-block-column.is-vertically-aligned-center { align-self: center; }
.wp-block-column.is-vertically-aligned-bottom { align-self: flex-end; }

.wp-block-image,
.wp-block-video {
    margin: 0 0 1em;
}

.wp-block-image img,
.wp-block-video video {
    display: block;
    width: 100%;
    height: auto;
}

.wp-block-quote {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
    border-left: 3px solid currentColor;
}

.wp-block-spacer { clear: both; }

.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

@media (max-width: 781px) {
    .wp-block-columns {
        flex-wrap: wrap;
    }

    .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Görsel / video büyütme penceresi (wwwroot/js/media-lightbox.js).
   İçerik görsellerine tıklanınca açılır; oklar, noktalar, klavye ve kaydırma ile gezilir. */
.ml-zoomable {
  cursor: zoom-in;
}

.ml-lock,
.ml-lock body {
  overflow: hidden !important;
}

.ml-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9990; /* şablonun özel imlecinin (#magic-cursor, 10000) altında */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 120px 96px;
  box-sizing: border-box;
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  cursor: default;
}

.ml-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s;
}

.ml-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ml-media {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  object-fit: contain;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .35s ease, transform .35s ease;
}

video.ml-media {
  background: #000;
  width: min(100%, 1280px);
}

.ml-media.is-ready {
  opacity: 1;
  transform: none;
}

.ml-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #8a8a8a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, opacity .2s ease;
}

.ml-btn:hover,
.ml-btn:focus-visible {
  color: #171717;
  transform: scale(1.06);
}

.ml-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ml-btn[hidden] {
  display: none;
}

.ml-nav {
  top: 50%;
  width: 64px;
  height: 64px;
  margin-top: -32px;
}

.ml-nav:hover,
.ml-nav:focus-visible {
  transform: scale(1.06);
}

.ml-nav:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.ml-prev { left: 32px; }
.ml-next { right: 32px; }

.ml-close {
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
}

.ml-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.ml-dots[hidden],
.ml-counter[hidden] {
  display: none;
}

.ml-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.ml-dot:hover { background: rgba(255, 255, 255, .6); }
.ml-dot.is-active { background: #fff; transform: scale(1.15); }

.ml-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  letter-spacing: .08em;
}

@media (max-width: 767px) {
  .ml-lightbox {
    padding: 72px 16px 88px;
  }

  .ml-media {
    border-radius: 16px;
  }

  /* Mobilde oklar görselin altında, noktaların iki yanında durur. */
  .ml-nav {
    top: auto;
    bottom: 20px;
    width: 48px;
    height: 48px;
    margin-top: 0;
  }

  .ml-prev { left: 16px; }
  .ml-next { right: 16px; }

  .ml-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .ml-dots,
  .ml-counter {
    bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-lightbox,
  .ml-media,
  .ml-btn,
  .ml-dot {
    transition: none;
  }
}

/* Galeri bölümlerinde (data-lightbox) görsel pencerede açılır; sayfaya gitmek için başlık linki kullanılır. */
[data-lightbox] figcaption a {
  color: inherit;
  text-decoration: none;
}

[data-lightbox] figcaption a:hover {
  text-decoration: underline;
}
