
/* CST Image Gallery — Liquid Glass */
.cstl-ftg-wrap {
  --cstl-blue: #16469b;
  position: relative; isolation: isolate; padding: 26px 18px 30px; margin: 0 auto;
  max-width: 1400px; box-sizing: border-box; overflow: hidden;
  border: 1px solid rgba(255,255,255,.82); border-radius: 22px;
  background-color: #f3f6fa;
  background-image: linear-gradient(135deg,rgba(255,255,255,.78),rgba(230,237,247,.58)),
    repeating-linear-gradient(0deg,rgba(102,119,143,.09) 0,rgba(102,119,143,.09) 1px,transparent 1px,transparent 4px),
    repeating-linear-gradient(90deg,rgba(102,119,143,.08) 0,rgba(102,119,143,.08) 1px,transparent 1px,transparent 4px);
  box-shadow: 0 18px 48px rgba(20,48,89,.09),inset 0 1px 0 rgba(255,255,255,.9);
}
.cstl-ftg-wrap:before { content:""; position:absolute; z-index:-1; top:-90px; right:-70px; width:260px; height:260px; border-radius:50%; background:rgba(135,184,255,.2); filter:blur(18px); pointer-events:none; }
.cstl-ftg-heading { text-align:center; margin:0 auto 28px; padding:0 8px; }
.cstl-ftg-heading h2 { margin:0 0 12px; color:var(--cstl-blue); font-size:clamp(23px,2.2vw,32px); font-weight:600; line-height:1.25; letter-spacing:-.025em; }
.cstl-ftg-heading p { margin:0; color:#26354b; font-size:14px; line-height:1.7; }
.cstl-ftg-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.cstl-ftg-item { position:relative; display:block; overflow:hidden; padding:0; border:1px solid rgba(255,255,255,.92); border-radius:15px; background:rgba(255,255,255,.42); cursor:zoom-in; aspect-ratio:1.45/1; min-width:0; text-align:left; box-shadow:0 8px 22px rgba(19,43,78,.11),inset 0 1px 0 rgba(255,255,255,.8); transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease; }
.cstl-ftg-item:after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:linear-gradient(135deg,rgba(255,255,255,.22),transparent 40%,rgba(10,42,94,.08)); }
.cstl-ftg-item img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .45s ease,filter .3s ease; }
.cstl-ftg-item:focus-visible { outline:3px solid #193d91; outline-offset:3px; }
.cstl-ftg-zoom { position:absolute; z-index:1; right:10px; bottom:10px; display:grid; place-items:center; width:36px; height:36px; border:1px solid rgba(255,255,255,.82); border-radius:50%; color:#123c82; background:rgba(255,255,255,.62); -webkit-backdrop-filter:blur(14px) saturate(160%); backdrop-filter:blur(14px) saturate(160%); box-shadow:0 5px 15px rgba(10,30,65,.15),inset 0 1px 0 rgba(255,255,255,.95); font-size:24px; line-height:1; opacity:.95; transition:background .2s ease,transform .2s ease; }
@media (hover:hover) and (pointer:fine) { .cstl-ftg-item:hover { transform:translateY(-3px); border-color:#fff; box-shadow:0 15px 30px rgba(19,43,78,.17),inset 0 1px 0 #fff; } .cstl-ftg-item:hover img { transform:scale(1.055); } .cstl-ftg-item:hover .cstl-ftg-zoom { background:rgba(255,255,255,.82); transform:scale(1.06); } }
.cstl-ftg-view-all { text-align:center; padding-top:24px; }
.cstl-ftg-view-all a { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:42px; padding:10px 22px; border:1px solid rgba(255,255,255,.82); border-radius:999px; background:rgba(22,70,155,.76); -webkit-backdrop-filter:blur(16px) saturate(150%); backdrop-filter:blur(16px) saturate(150%); box-shadow:0 8px 22px rgba(20,57,119,.2),inset 0 1px 0 rgba(255,255,255,.38); color:#fff!important; text-decoration:none!important; font-size:14px; font-weight:600; transition:color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease; }
.cstl-ftg-view-all a:hover { background:rgba(255,255,255,.38); color:#16469b!important; box-shadow:0 8px 24px rgba(20,57,119,.13),inset 0 1px 0 #fff; transform:translateY(-1px); }
.cstl-ftg-empty { padding:18px; border:1px dashed #aabbd2; border-radius:12px; background:rgba(255,255,255,.55); color:#26354b; }
.cstl-ftg-lightbox { position:fixed; inset:0; z-index:999999; display:none; align-items:center; justify-content:center; padding:26px 68px; background-color:rgba(12,20,35,.86); background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.045) 0,rgba(255,255,255,.045) 1px,transparent 1px,transparent 4px),repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0,rgba(255,255,255,.04) 1px,transparent 1px,transparent 4px); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); box-sizing:border-box; }
.cstl-ftg-lightbox.is-open { display:flex; }
.cstl-ftg-lightbox img { display:block; max-width:100%; max-height:88vh; width:auto; height:auto; object-fit:contain; border:1px solid rgba(255,255,255,.42); border-radius:10px; box-shadow:0 18px 60px rgba(0,0,0,.4); }
.cstl-ftg-lb-close,.cstl-ftg-lb-prev,.cstl-ftg-lb-next { position:absolute; display:grid; place-items:center; width:46px; height:46px; padding:0; border:1px solid rgba(255,255,255,.58); border-radius:50%; background:rgba(255,255,255,.16); -webkit-backdrop-filter:blur(16px) saturate(150%); backdrop-filter:blur(16px) saturate(150%); color:#fff; box-shadow:0 7px 22px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.35); font-size:29px; cursor:pointer; transition:background .2s ease,transform .2s ease; }
.cstl-ftg-lb-close:hover,.cstl-ftg-lb-prev:hover,.cstl-ftg-lb-next:hover { background:rgba(255,255,255,.3); }
.cstl-ftg-lb-close { top:18px; right:18px; font-size:34px; }
.cstl-ftg-lb-prev { left:15px; top:50%; transform:translateY(-50%); }
.cstl-ftg-lb-next { right:15px; top:50%; transform:translateY(-50%); }
.cstl-ftg-lb-counter { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); color:#fff; font-size:13px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); padding:7px 13px; border-radius:999px; }
@media(max-width:767px) {
 .cstl-ftg-wrap { padding:20px 10px 24px; border-radius:16px; }
 .cstl-ftg-heading { margin-bottom:18px; }
 .cstl-ftg-heading p { font-size:12px; }
 .cstl-ftg-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
 .cstl-ftg-item { aspect-ratio:1.18/1; border-radius:11px; }
 .cstl-ftg-lightbox { padding:54px 10px; }
 .cstl-ftg-lightbox img { max-height:78vh; }
 .cstl-ftg-lb-prev,.cstl-ftg-lb-next { top:auto; bottom:10px; transform:none; width:42px; height:42px; }
 .cstl-ftg-lb-prev { left:calc(50% - 54px); }
 .cstl-ftg-lb-next { right:calc(50% - 54px); }
 .cstl-ftg-lb-close { top:10px; right:10px; }
}
@media(max-width:380px) { .cstl-ftg-grid { gap:6px; } .cstl-ftg-item { aspect-ratio:1/1; } }
@media(prefers-reduced-motion:reduce) { .cstl-ftg-item,.cstl-ftg-item img,.cstl-ftg-zoom,.cstl-ftg-view-all a { transition:none; } }
