/* ==========================================================================
   Rich Text Editor blocks - shared styles for blocks embedded in the RTE
   (Views/Partials/RichText/Components). Add each block under its own section.
   ========================================================================== */

/* --- Team Panel --- */
.team-panel{width:100%;max-width:100%}
.team-panel a{color:#0fa1db;text-decoration:none}
.team-panel__photo{width:350px;max-width:100%;height:300px;object-fit:cover;object-position:center;border:7px solid #0c678b;border-radius:0 500px 500px 0}
.team-panel__portfolio-item{position:relative;padding-left:24px}
.team-panel__portfolio-item h6{margin-bottom:8px;font-weight:400}
.team-panel h5{margin-bottom:8px;font-weight:700}
.team-panel__portfolio-item:before{content:"";position:absolute;left:0;top:.2em;width:14px;height:16px;background:url("../images/team/bullet-blue.webp") no-repeat center/contain}
.team-panel__tech{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:0;list-style:none}
.team-panel__chip{display:inline-flex;align-items:center;gap:10px;height:40px;padding:2px 13px;border:1px solid rgba(24,163,216,.43);border-radius:10px;background:#e8f9ff;font-size:12px;text-transform:uppercase}
.team-panel__chip img{width:auto;max-height:25px}
.team-panel__chip p,.team-panel__description p:last-child{margin-bottom:0}

/* --- CTA Panel --- */
.cta-panel{margin:32px 0}
/* Keep content above the .global-cta::after gradient overlay so the link is clickable */
.global-cta.cta-panel > *{position:relative;z-index:7}
.global-cta.cta-panel .btn.white-btn{display:inline-block;background-color:var(--white);color:var(--primary);text-decoration:none;letter-spacing:0;line-height:normal;cursor:pointer}
.global-cta.cta-panel .btn.white-btn:hover,.global-cta.cta-panel .btn.white-btn:focus-visible{background-color:var(--primary);color:var(--white);border:1px solid var(--white)}
.global-cta.cta-panel .btn.white-btn::after{content:"\2192";margin-left:8px;display:inline-block;transition:transform .2s ease}
.global-cta.cta-panel .btn.white-btn:hover::after{transform:translateX(4px)}

/* --- Two Column Panel --- */
.two-column-panel{margin:32px 0}
.two-column-panel img{max-width:100%;height:auto}
.two-column-panel__content>:last-child{margin-bottom:0}

/* --- Stats Panel --- */
.stats-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:32px 0}
.stats-panel__stat{display:flex;flex-direction:column;justify-content:center;padding:24px 16px;border-radius:12px;background:#d6e4ff;text-align:center}
.stats-panel__value{font-size:32px;font-weight:700;line-height:1.2;color:#000}
.stats-panel__label{margin-top:6px;font-size:12px;line-height:1.5;letter-spacing:.08em;text-transform:uppercase;color:#6b6b6b}

/* --- 3 Column Cards --- */
.three-column-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin:32px 0}
.three-column-cards__card{padding:24px 28px;border:1px solid #dfe3ec;border-left:4px solid #18a3d8;border-radius:12px;background:#f7f8fc}
.three-column-cards__card h4{margin:0 0 10px;font-size:24px;font-weight:500;line-height:1.2;color:#1f2430}
.three-column-cards__card p{font-size:15px;line-height:1.75;letter-spacing:.02em;color:#6b7080}
.three-column-cards__card>:last-child{margin-bottom:0}

/* --- Image Gallery (mosaic grid / centred slider) --- */
.image-gallery-block{margin:32px 0;container-type:inline-size}
.image-gallery__item{position:relative;margin:0;overflow:hidden;border-radius:16px;background:#e9eef7;cursor:zoom-in}
.image-gallery__item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.image-gallery__item:hover img{transform:scale(1.07)}
.image-gallery__item figcaption{position:absolute;left:0;right:0;bottom:0;padding:36px 16px 14px;color:#fff;font-size:14px;line-height:1.35;background:linear-gradient(to top,rgba(12,22,38,.78),rgba(12,22,38,0));transform:translateY(100%);transition:transform .35s ease}
.image-gallery__item:hover figcaption,.image-gallery__item:focus-within figcaption{transform:translateY(0)}
.image-gallery__zoom{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318a3d8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") no-repeat center/18px;opacity:0;transform:scale(.8);transition:opacity .3s ease,transform .3s ease}
.image-gallery__item:hover .image-gallery__zoom{opacity:1;transform:scale(1)}

/* Mosaic: tile positions (--c / --r) come from GalleryMosaic.cs. Rows are a fraction of the column width so tiles keep their proportions; the px row height is the fallback. */
.image-gallery--mosaic{--gap:14px;display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:190px;grid-auto-rows:calc((100cqw - 3 * var(--gap)) / 4 * .72);gap:var(--gap)}
.image-gallery--mosaic .image-gallery__item{grid-column:var(--c);grid-row:var(--r);box-shadow:0 6px 18px rgba(12,22,38,.08)}
@media (max-width:991.98px){
.image-gallery--mosaic{--gap:10px}
}
/* Phones and small tablets: 2 columns */
@media (max-width:767.98px){
.image-gallery--mosaic{--gap:8px;grid-template-columns:repeat(2,1fr);grid-auto-rows:140px;grid-auto-rows:calc((100cqw - var(--gap)) / 2 * .78);grid-auto-flow:dense}
.image-gallery--mosaic .image-gallery__item{grid-column:auto;grid-row:auto}
.image-gallery--mosaic .image-gallery__item.is-feature{grid-column:span 2;grid-row:span 2}
.image-gallery--mosaic .image-gallery__item.is-wide-mobile{grid-column:span 2}
}

/* Slider */
.image-gallery--slider{padding:12px 0 36px}
.image-gallery--slider .slick-track{padding:14px 0 22px}
.image-gallery--slider .image-gallery__item{margin:0 12px;aspect-ratio:16/10;box-shadow:0 14px 34px rgba(12,22,38,.18);opacity:.5;transform:scale(.82);transition:opacity .5s ease,transform .5s ease}
.image-gallery--slider .slick-center .image-gallery__item,.image-gallery--slider .slick-current .image-gallery__item{opacity:1;transform:scale(1)}
.image-gallery--slider .slick-slide{outline:none}
.image-gallery--slider .slick-dots{bottom:-8px}
.image-gallery--slider .slick-dots li button:before{font-size:12px;color:#18a3d8;opacity:.35}
.image-gallery--slider .slick-dots li.slick-active button:before{font-size:16px;opacity:1}
.image-gallery--slider .slick-arrow:before{content:none}
.image-gallery__arrow{position:absolute;top:50%;z-index:5;display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin-top:-34px;padding:0;border:0;border-radius:50%;background:#fff;color:#18a3d8;box-shadow:0 6px 18px rgba(12,22,38,.22);transition:background .25s ease,color .25s ease}
.image-gallery__arrow:hover,.image-gallery__arrow:focus-visible{background:#18a3d8;color:#fff}
.image-gallery__arrow.slick-prev{left:-8px}
.image-gallery__arrow.slick-next{right:-8px}
@media (max-width:991.98px){.image-gallery--slider .image-gallery__item{margin:0 8px}}

/* Lightbox */
.image-gallery__lightbox{width:min(1100px,94vw);max-width:none;padding:0;border:0;border-radius:16px;background:transparent;overflow:visible}
.image-gallery__lightbox::backdrop{background:rgba(8,14,26,.88);backdrop-filter:blur(4px)}
.image-gallery__lightbox figure{margin:0;text-align:center}
.image-gallery__lightbox img{display:inline-block;width:auto;height:min(60vh,520px);max-width:90vw;object-fit:contain;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
@media (max-width:767.98px){.image-gallery__lightbox img{width:88vw;height:auto;max-height:60vh}}
.image-gallery__lightbox figcaption{margin-top:12px;color:#fff;font-size:15px}
.image-gallery__close,.image-gallery__nav{position:fixed;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.95);color:#1f2430;font-size:28px;line-height:1;cursor:pointer;transition:background .2s ease,color .2s ease}
.image-gallery__close:hover,.image-gallery__nav:hover{background:#18a3d8;color:#fff}
.image-gallery__close{top:20px;right:20px;z-index:2}
.image-gallery__nav{top:50%;margin-top:-22px;z-index:2}
.image-gallery__nav--prev{left:20px}
.image-gallery__nav--next{right:20px}
@media (max-width:575.98px){.image-gallery__nav--prev{left:8px}.image-gallery__nav--next{right:8px}.image-gallery__close{top:10px;right:10px}}
