:root {
    --apollo-navy: #071733;
    --apollo-blue: #1177b4;
    --apollo-aqua: #57b9dd;
    --apollo-orange: #f59d24;
    --apollo-orange-soft: #fff3df;
    --apollo-ink: #13243b;
    --apollo-muted: #66778e;
    --apollo-line: #d8e5ee;
}
.apollo-public-gallery, .apollo-public-gallery * { box-sizing: border-box; }
.apollo-public-gallery [hidden] { display: none !important; }
.apollo-public-gallery button, .apollo-public-gallery input, .apollo-public-gallery select { font: inherit; }
.apollo-public-gallery button { -webkit-appearance: none; appearance: none; box-shadow: none; text-transform: none; }
.apollo-public-gallery .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0,0,0,0); white-space: nowrap; }
.apollo-public-gallery { width: min(1460px, 100%); display: grid; gap: 22px; margin: 0 auto; padding: clamp(10px, 2vw, 26px); color: var(--apollo-ink); font-family: inherit; }
.apollo-gallery-hero { position: relative; min-height: 310px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; overflow: hidden; padding: clamp(28px, 5vw, 68px); border: 1px solid rgba(255,255,255,.12); border-radius: 32px; color: #fff; background: radial-gradient(circle at 83% 22%, rgba(87,185,221,.32), transparent 28%), radial-gradient(circle at 68% 96%, rgba(245,157,36,.22), transparent 28%), linear-gradient(125deg, #06152e 0%, #0a2748 58%, #0d4165 100%); box-shadow: 0 24px 70px rgba(7,23,51,.2); isolation: isolate; }
.apollo-gallery-hero::before { content: ""; position: absolute; z-index: -1; top: -30%; right: 9%; width: 330px; height: 420px; border: 1px solid rgba(255,255,255,.1); border-radius: 48% 48% 18% 18%; transform: rotate(26deg); }
.apollo-gallery-hero > div:first-child { max-width: 790px; }
.apollo-gallery-hero > div > span { display: inline-flex; align-items: center; gap: 9px; color: #ffbd51; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.apollo-gallery-hero > div > span::before { content: ""; width: 28px; height: 3px; border-radius: 99px; background: var(--apollo-orange); }
.apollo-gallery-hero h2 { max-width: 850px; margin: 14px 0; color: #fff; font-size: clamp(38px, 6vw, 72px); font-weight: 900; line-height: .96; letter-spacing: -.055em; }
.apollo-gallery-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.72); font-size: clamp(13px, 1.6vw, 17px); line-height: 1.65; }
.apollo-gallery-hero__summary { min-width: 175px; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 25px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.13); backdrop-filter: blur(14px); }
.apollo-gallery-hero__summary strong { color: #fff; font-size: 44px; line-height: 1; }
.apollo-gallery-hero__summary span { color: rgba(255,255,255,.68); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apollo-gallery-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 9px; padding: 9px; border: 1px solid var(--apollo-line); border-radius: 21px; background: rgba(255,255,255,.95); box-shadow: 0 12px 36px rgba(7,23,51,.08); }
.apollo-gallery-tabs button { min-width: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 13px; border: 1px solid transparent; border-radius: 14px; color: #53667d; background: transparent; cursor: pointer; transition: .2s ease; }
.apollo-gallery-tabs button:hover { color: var(--apollo-navy); background: #f3f8fb; }
.apollo-gallery-tabs button.is-active { color: #fff; background: linear-gradient(135deg, var(--apollo-navy), #123e68); box-shadow: 0 10px 24px rgba(7,23,51,.19); }
.apollo-gallery-tabs button span { overflow: hidden; font-size: 11px; font-weight: 900; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.apollo-gallery-tabs button em { min-width: 25px; height: 25px; display: grid; place-items: center; padding: 0 6px; border-radius: 99px; color: var(--apollo-blue); background: #e5f4fb; font-size: 9px; font-style: normal; font-weight: 900; }
.apollo-gallery-tabs button.is-active em { color: var(--apollo-navy); background: #ffbd51; }
.apollo-gallery-controls { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 10px; }
.apollo-gallery-controls.has-client-filter { grid-template-columns: minmax(260px, 1fr) minmax(190px, 280px) auto; }
.apollo-gallery-search, .apollo-gallery-client { min-height: 52px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 15px; border: 1px solid var(--apollo-line); border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(7,23,51,.05); }
.apollo-gallery-search:focus-within, .apollo-gallery-client:focus-within { border-color: var(--apollo-aqua); box-shadow: 0 0 0 4px rgba(87,185,221,.14); }
.apollo-gallery-search svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: #7890a6; stroke-width: 2; }
.apollo-gallery-search input, .apollo-gallery-client select { width: 100%; min-height: 48px; margin: 0; padding: 0; border: 0 !important; outline: 0; color: var(--apollo-ink); background: transparent !important; box-shadow: none !important; font-size: 12px; }
.apollo-gallery-clear { min-height: 52px; padding: 0 19px; border: 1px solid #f1ca8c; border-radius: 15px; color: #8a5200; background: var(--apollo-orange-soft); font-size: 10px; font-weight: 900; cursor: pointer; }
.apollo-gallery-clear:hover { color: var(--apollo-navy); background: #ffe6bd; }
.apollo-gallery-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 4px; }
.apollo-gallery-result-bar > div { display: flex; align-items: center; gap: 8px; }
.apollo-gallery-result-bar > div > span { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #28ae78; box-shadow: 0 0 0 3px rgba(40,174,120,.14); }
.apollo-gallery-result-bar strong { color: var(--apollo-navy); font-size: 12px; }
.apollo-gallery-result-bar small { color: var(--apollo-muted); font-size: 10px; }
.apollo-gallery-folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.apollo-gallery-folder { min-width: 0; overflow: hidden; border: 1px solid var(--apollo-line); border-radius: 24px; background: #fff; box-shadow: 0 14px 38px rgba(7,23,51,.08); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.apollo-gallery-folder:hover { border-color: #b7d5e6; transform: translateY(-4px); box-shadow: 0 22px 48px rgba(7,23,51,.13); }
.apollo-gallery-folder > button { width: 100%; display: block; overflow: hidden; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.apollo-gallery-folder figure { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; overflow: hidden; margin: 0; background: #dce9ef; }
.apollo-gallery-folder figure::after { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(transparent, rgba(3,16,37,.54)); pointer-events: none; }
.apollo-gallery-folder figure img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.apollo-gallery-folder:hover figure img { transform: scale(1.045); }
.apollo-gallery-folder figure > span { position: absolute; z-index: 1; left: 14px; bottom: 13px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; color: #fff; background: rgba(7,23,51,.72); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.apollo-gallery-folder__body { position: relative; min-height: 210px; display: flex; flex-direction: column; padding: 26px 22px 20px; }
.apollo-gallery-folder__marker { position: absolute; top: -21px; right: 19px; width: 48px; height: 43px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 13px; background: linear-gradient(145deg, #ffbd51, #f29216); box-shadow: 0 9px 20px rgba(245,157,36,.28); }
.apollo-gallery-folder__marker::before { content: ""; width: 24px; height: 17px; border: 2px solid var(--apollo-navy); border-radius: 3px; }
.apollo-gallery-folder__marker::after { content: ""; position: absolute; top: 11px; left: 12px; width: 10px; height: 4px; border: 2px solid var(--apollo-navy); border-bottom: 0; border-radius: 3px 3px 0 0; }
.apollo-gallery-folder__body > small { width: calc(100% - 44px); overflow: hidden; margin-bottom: 6px; color: var(--apollo-blue); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.apollo-gallery-folder h3 { margin: 0 0 8px; color: var(--apollo-navy); font-size: clamp(20px, 2.4vw, 27px); font-weight: 900; line-height: 1.08; letter-spacing: -.035em; }
.apollo-gallery-folder p { min-height: 38px; margin: 0; color: var(--apollo-muted); font-size: 11px; line-height: 1.55; }
.apollo-gallery-folder footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; margin-top: auto; padding-top: 17px; border-top: 1px solid #e7eef3; }
.apollo-gallery-folder footer span, .apollo-gallery-folder footer em { color: #718398; font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.apollo-gallery-folder footer em { justify-self: start; padding: 4px 7px; border-radius: 99px; color: #147951; background: #e8f8f1; }
.apollo-gallery-folder footer strong { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: var(--apollo-blue); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.apollo-gallery-folder footer b { font-size: 18px; line-height: 1; }
.apollo-public-gallery__empty { padding: 58px 24px; border: 1px dashed #bfd5e2; border-radius: 24px; color: var(--apollo-muted); text-align: center; background: #f7fbfd; }
.apollo-public-gallery__empty > span { width: 58px; height: 47px; display: block; margin: 0 auto 15px; border: 3px solid #9fc7dc; border-radius: 10px; }
.apollo-public-gallery__empty strong { display: block; color: var(--apollo-navy); font-size: 18px; }
.apollo-public-gallery__empty p { margin: 6px 0 0; font-size: 11px; }
.apollo-public-gallery.is-project-open > .apollo-gallery-hero,
.apollo-public-gallery.is-project-open > .apollo-gallery-tabs,
.apollo-public-gallery.is-project-open > .apollo-gallery-controls,
.apollo-public-gallery.is-project-open > .apollo-gallery-result-bar,
.apollo-public-gallery.is-project-open > .apollo-gallery-folders,
.apollo-public-gallery.is-project-open > .apollo-public-gallery__empty { display: none !important; }
.apollo-gallery-projects { display: grid; }
.apollo-public-project { overflow: hidden; border: 1px solid var(--apollo-line); border-radius: 28px; background: #fff; box-shadow: 0 22px 58px rgba(7,23,51,.12); }
.apollo-project-toolbar { position: sticky; z-index: 2; top: 8px; display: flex; align-items: center; padding: 14px 18px 0; pointer-events: none; }
.apollo-project-back { min-height: 46px; display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 0 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--apollo-navy), #123e68); box-shadow: 0 10px 26px rgba(7,23,51,.2); font-size: 10px; font-weight: 900; cursor: pointer; pointer-events: auto; }
.apollo-project-back:hover { background: linear-gradient(135deg, #0b2850, #17689c); transform: translateY(-1px); }
.apollo-project-back span { color: #ffbd51; font-size: 17px; line-height: 1; }
.apollo-public-project > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin: 18px; padding: clamp(25px, 4vw, 46px); border-radius: 22px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(87,185,221,.28), transparent 27%), linear-gradient(125deg, var(--apollo-navy), #123f68); }
.apollo-public-project > header > div { min-width: 0; }
.apollo-public-project > header span { color: #ffbd51; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.apollo-public-project h2 { margin: 8px 0; color: #fff; font-size: clamp(29px, 4.5vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -.045em; }
.apollo-public-project p { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; }
.apollo-public-project header aside { min-width: 125px; display: grid; justify-items: center; gap: 3px; padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); }
.apollo-public-project header aside strong { color: #fff; font-size: 34px; line-height: 1; }
.apollo-public-project header aside span { color: rgba(255,255,255,.62); font-size: 7px; }
.apollo-public-project__stages { display: flex; gap: 7px; overflow-x: auto; margin: 0 18px; padding: 0 0 14px; scrollbar-width: thin; }
.apollo-public-project__stages button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid #cfdee8; border-radius: 99px; color: #61758b; background: #fff; font-size: 9px; font-weight: 900; cursor: pointer; }
.apollo-public-project__stages button.is-active { border-color: var(--apollo-navy); color: #fff; background: var(--apollo-navy); }
.apollo-public-project__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 18px 18px; }
.apollo-public-photo { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; border-radius: 15px; background: #dfeaf1; cursor: pointer; }
.apollo-public-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .22s ease; }
.apollo-public-photo:hover img { transform: scale(1.04); }
.apollo-public-photo span { position: absolute; left: 9px; bottom: 9px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(7,23,51,.76); font-size: 8px; font-weight: 900; text-transform: uppercase; backdrop-filter: blur(8px); }
.apollo-public-lightbox-open { overflow: hidden !important; overscroll-behavior: none; }
body.apollo-public-lightbox-open { touch-action: none; }
.apollo-public-lightbox { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; color: #fff; background: rgba(2,10,25,.96); box-shadow: none; }
.apollo-public-lightbox[open] { display: block; }
.apollo-public-lightbox::backdrop { background: rgba(2,10,25,.88); backdrop-filter: blur(7px); }
.apollo-public-lightbox__viewport { position: absolute; inset: 0; width: 100%; max-width: 100vw; height: 100%; max-height: 100dvh; display: grid; place-items: center; padding: 62px 84px 18px; overflow: hidden; }
.apollo-public-lightbox__frame { min-width: 0; max-width: calc(100vw - 168px); max-height: calc(100dvh - 80px); display: flex; align-items: stretch; justify-content: center; }
.apollo-public-lightbox__stage { position: relative; flex: 0 0 auto; min-width: 0; min-height: 0; max-width: calc(100vw - 168px); max-height: calc(100dvh - 80px); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 16px; background: #020b18; box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.apollo-public-lightbox img { display: block; width: 100%; max-width: 100vw; height: 100%; max-height: 100dvh; object-fit: contain; object-position: center; }
.apollo-public-lightbox__frame.is-loading .apollo-public-lightbox__stage { width: min(760px, calc(100vw - 168px)); height: min(62dvh, 620px); }
.apollo-public-lightbox__close, .apollo-public-lightbox__nav { border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; background: rgba(17,119,180,.48); box-shadow: 0 12px 30px rgba(0,0,0,.25); cursor: pointer; }
.apollo-public-lightbox__close { position: fixed; z-index: 4; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: 46px; height: 46px; display: grid; place-items: center; padding: 0 0 3px; font-size: 28px; line-height: 1; }
.apollo-public-lightbox__nav { position: fixed; z-index: 3; top: 50%; width: 52px; height: 52px; display: grid; place-items: center; padding: 0 0 5px; font-size: 38px; line-height: 1; transform: translateY(-50%); }
.apollo-public-lightbox__nav.is-prev { left: max(16px, env(safe-area-inset-left, 0px)); }
.apollo-public-lightbox__nav.is-next { right: max(16px, env(safe-area-inset-right, 0px)); }
.apollo-public-lightbox__nav[hidden] { display: none; }
@media (max-width: 1080px) {
    .apollo-gallery-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apollo-public-project__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .apollo-public-gallery { gap: 15px; padding: 7px; }
    .apollo-gallery-hero { min-height: 340px; align-items: flex-start; flex-direction: column; justify-content: flex-end; padding: 27px 21px; border-radius: 23px; }
    .apollo-gallery-hero h2 { font-size: clamp(37px, 12vw, 55px); }
    .apollo-gallery-hero__summary { min-width: 0; width: 100%; grid-template-columns: auto 1fr; justify-items: start; padding: 14px 17px; }
    .apollo-gallery-hero__summary strong { font-size: 30px; }
    .apollo-gallery-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 7px; border-radius: 17px; scrollbar-width: thin; }
    .apollo-gallery-tabs button { min-width: 165px; min-height: 49px; }
    .apollo-gallery-controls { grid-template-columns: 1fr; }
    .apollo-gallery-clear { min-height: 46px; }
    .apollo-gallery-result-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .apollo-gallery-folders { grid-template-columns: 1fr; gap: 14px; }
    .apollo-gallery-folder { border-radius: 20px; }
    .apollo-gallery-folder figure { height: auto; }
    .apollo-gallery-folder__body { min-height: 190px; padding: 24px 18px 18px; }
    .apollo-public-project { border-radius: 20px; }
    .apollo-project-toolbar { top: 5px; padding: 10px 12px 0; }
    .apollo-project-back { width: 100%; justify-content: center; }
    .apollo-public-project > header { align-items: flex-start; flex-direction: column; margin: 12px; padding: 24px 18px; border-radius: 17px; }
    .apollo-public-project header aside { width: 100%; grid-template-columns: auto 1fr; justify-items: start; padding: 12px 14px; }
    .apollo-public-project__stages { margin: 0 12px; }
    .apollo-public-project__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 12px 12px; }
    .apollo-public-photo { border-radius: 11px; }
    .apollo-public-lightbox__viewport { padding: 62px 8px max(10px, env(safe-area-inset-bottom, 0px)); }
    .apollo-public-lightbox__frame { max-width: calc(100vw - 16px); max-height: calc(100dvh - 72px); }
    .apollo-public-lightbox__stage { max-width: calc(100vw - 16px); max-height: calc(100dvh - 72px); border-radius: 12px; }
    .apollo-public-lightbox img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 72px); }
    .apollo-public-lightbox__frame.is-loading .apollo-public-lightbox__stage { width: calc(100vw - 16px); height: min(58dvh, 520px); }
    .apollo-public-lightbox__nav { width: 44px; height: 44px; font-size: 31px; background: rgba(7,23,51,.72); }
    .apollo-public-lightbox__nav.is-prev { left: 10px; }
    .apollo-public-lightbox__nav.is-next { right: 10px; }
}
@media (max-width: 390px) {
    .apollo-public-project__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .apollo-gallery-folder, .apollo-gallery-folder figure img, .apollo-public-photo img { transition: none; }
}
