/* Before & after gallery */
.gfv-cases { --c-navy: #0B2540; --c-teal: #0B7A76; --c-teal4: #3FB8B0; --c-ice: #EEF5F7; --c-ink: #1B2733; --c-muted: #5B6B7A; --c-line: #D9E2E8; }
.gfv-cases *, .gfv-cases *::before, .gfv-cases *::after { box-sizing: border-box; }
.gfv-cases__bar { margin-bottom: 28px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; box-shadow: 0 10px 30px -24px rgba(11, 37, 64, .5); overflow: hidden; }
.gfv-cases__tab[aria-selected="true"] { background: var(--c-navy); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 37, 64, .6); }
.gfv-cases__tab[aria-selected="true"] span { background: var(--c-teal4); color: var(--c-navy); }
.gfv-cases__select select:focus-visible, .gfv-cases__reset:focus-visible { outline: 3px solid var(--c-teal4); outline-offset: 2px; }
.gfv-cases__tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 14px; align-items: end; padding: 18px; }
.gfv-cases__select { display: grid; gap: 6px; min-width: 0; }
.gfv-cases__select > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.gfv-cases__select select { width: 100%; min-height: 46px; padding: 10px 40px 10px 14px; border: 1.5px solid var(--c-line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230B2540' stroke-width='1.6'%3E%3Cpath d='M2 4.5l4 4 4-4'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; color: var(--c-ink); font: 600 15px/1.2 var(--wp--preset--font-family--body, sans-serif); appearance: none; cursor: pointer; }
.gfv-cases__select select:hover { border-color: var(--c-teal4); }
.gfv-cases__select.is-set select { border-color: var(--c-teal); background-color: var(--c-ice); color: var(--c-navy); }
.gfv-cases__status { display: grid; justify-items: end; gap: 4px; padding-bottom: 4px; }
.gfv-cases__count { margin: 0; font-size: 14px; color: var(--c-muted); white-space: nowrap; }
.gfv-cases__count strong { color: var(--c-navy); font-size: 16px; }
.gfv-cases__reset { padding: 0; border: 0; background: none; color: var(--c-teal); font: 700 14px/1.2 var(--wp--preset--font-family--body, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gfv-cases__reset[hidden] { display: none; }

.gfv-cases__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gfv-case { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.gfv-case:hover { box-shadow: 0 16px 34px -20px rgba(11, 37, 64, .45); transform: translateY(-2px); }
.gfv-case[hidden] { display: none; }
.gfv-case.is-target { outline: 3px solid var(--c-teal4); outline-offset: 3px; }
.gfv-case__media { position: relative; display: block; padding: 0; border: 0; background: var(--c-ice); cursor: zoom-in; aspect-ratio: 1 / 1; }
.gfv-case__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gfv-case__media::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255, 255, 255, .9); }
.gfv-case__tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; font: 700 11px/1 var(--wp--preset--font-family--body, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.gfv-case__tag--before { left: 12px; background: rgba(11, 37, 64, .78); color: #fff; }
.gfv-case__tag--after { left: calc(50% + 12px); background: var(--c-teal); color: #fff; }
.gfv-case__zoom { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; 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='%230B2540' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transition: opacity .2s; }
.gfv-case__media:hover .gfv-case__zoom, .gfv-case__media:focus-visible .gfv-case__zoom { opacity: 1; }
.gfv-case__body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.gfv-case__top { margin: 0; min-height: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gfv-case__code { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--c-muted); }
.gfv-case__chips { display: inline-flex; gap: 6px; }
.gfv-case__chips span { padding: 3px 9px; border-radius: 999px; background: var(--c-ice); color: var(--c-navy); font-size: 12px; font-weight: 700; }
.gfv-case__title { margin: 0; font-size: 20px; line-height: 1.3; color: var(--c-navy); }
.gfv-case__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; padding-top: 12px; border-top: 1px solid var(--c-line); }
.gfv-case__meta div { min-width: 0; }
.gfv-case__wide { grid-column: 1 / -1; }
.gfv-case__meta dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.gfv-case__meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.gfv-case__note { margin: 0; font-size: 12px; color: var(--c-muted); }

.gfv-cases__none { padding: 24px; text-align: center; color: var(--c-muted); }
.gfv-cases__none button { border: 0; background: none; color: var(--c-teal); font-weight: 700; text-decoration: underline; cursor: pointer; }

.gfv-cases__lightbox { max-width: min(92vw, 1000px); padding: 0; border: 0; border-radius: 16px; background: #fff; overflow: hidden; }
.gfv-cases__lightbox::backdrop { background: rgba(11, 37, 64, .82); }
.gfv-cases__lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; }
.gfv-cases__lbcap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px 18px; }
.gfv-cases__lbcap h3 { margin: 2px 0 4px; font-size: 20px; color: var(--c-navy); }
.gfv-cases__lbcode { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.gfv-cases__lbsum { margin: 0; font-size: 14px; color: var(--c-muted); }
.gfv-cases__lbask { flex: 0 0 auto; padding: 11px 16px; border-radius: 10px; background: #25D366; color: var(--c-navy); font-weight: 700; font-size: 14px; text-decoration: none; }
.gfv-cases__lbask:hover { background: #1FBE5B; }
.gfv-cases__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); font-size: 24px; line-height: 1; cursor: pointer; color: var(--c-navy); }

.gfv-case__top .gfv-case__chips { margin-left: auto; }

/* Results timeline */
.gfv-batl { list-style: none; margin: 0 0 var(--wp--preset--spacing--50, 32px); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.gfv-batl__step { position: relative; padding: 22px 18px 18px; border: 1px solid #D9E2E8; border-radius: 14px; background: #fff; }
.gfv-batl__step::before { content: ""; position: absolute; top: -1px; left: 18px; right: 18px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #C9D6E2, #3FB8B0); }
.gfv-batl__step.is-final { background: #0B2540; border-color: #0B2540; color: #C9D6E2; }
.gfv-batl__step.is-final h3, .gfv-batl__step.is-final .gfv-batl__mo { color: #fff; }
.gfv-batl__step.is-final::before { background: #3FB8B0; }
.gfv-batl__step.is-final a { color: #3FB8B0; }
.gfv-batl__mo { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0B7A76; }
.gfv-batl__step h3 { margin: 4px 0 8px; font-size: 19px; color: #0B2540; }
.gfv-batl__step p:last-child { margin: 0; font-size: 14.5px; line-height: 1.55; }

/* Gallery in numbers */
.gfv-cstats__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.gfv-cstats__tile { padding: 20px; border-radius: 14px; background: #fff; border: 1px solid #E4DCCF; }
.gfv-cstats__tile p { margin: 0; font-size: 14px; line-height: 1.45; color: #5B6B7A; }
.gfv-cstats__tile .gfv-cstats__num { margin-bottom: 4px; font-family: var(--wp--preset--font-family--display, serif); font-size: 34px; font-weight: 700; line-height: 1.1; color: #0B2540; font-variant-numeric: tabular-nums; }
.gfv-cstats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gfv-cstats__dist { padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid #E4DCCF; }
.gfv-cstats__dist h3 { margin: 0 0 12px; font-size: 15px; color: #0B2540; }
.gfv-cstats__dist dl { margin: 0; display: grid; gap: 10px; }
.gfv-cstats__dist dt { font-size: 13px; color: #1B2733; }
.gfv-cstats__dist dd { margin: 3px 0 0; display: flex; align-items: center; gap: 8px; }
.gfv-cstats__bar { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #0B7A76 var(--w), #EEF2F4 var(--w)); }
.gfv-cstats__dist b { min-width: 18px; font-size: 13px; text-align: right; color: #0B2540; font-variant-numeric: tabular-nums; }
.gfv-cstats__asof { margin: 12px 0 0; font-size: 13px; color: #5B6B7A; }

.gfv-answer { padding: 14px 18px; border-left: 4px solid #3FB8B0; border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, .75); font-size: 16px; line-height: 1.6; }

@media (max-width: 1000px) {
	.gfv-batl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gfv-batl__step.is-final { grid-column: 1 / -1; }
	.gfv-cstats__tiles, .gfv-cstats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.gfv-batl, .gfv-cstats__grid { grid-template-columns: minmax(0, 1fr); }
	.gfv-cstats__tile .gfv-cstats__num { font-size: 28px; }
}
@media (max-width: 1000px) { .gfv-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.gfv-cases__tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gfv-cases__status { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
@media (max-width: 620px) {
	.gfv-cases__grid { grid-template-columns: minmax(0, 1fr); }
	.gfv-cases__tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
	.gfv-cases__select > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.gfv-cases__select select { min-height: 44px; padding: 9px 32px 9px 12px; font-size: 14px; background-position: right 11px center; }
	.gfv-cases__status { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; padding: 2px 2px 0; }
	.gfv-cases__count { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .gfv-case { transition: none; } .gfv-case:hover { transform: none; } }
