.fv-block,
.fv-dialog {
  box-sizing: border-box;
  font-family: inherit;
  color: #242b27;
  --fv-accent: #b25436;
  --fv-bg: #f4f1eb;
  --fv-radius: 16px;
  --fv-gap: 16px;
}
.fv-block *,
.fv-dialog * {
  box-sizing: border-box;
}
.fv-block {
  padding: 28px;
  background: var(--fv-bg);
  border: 1px solid #deded655;
  border-radius: var(--fv-radius);
  max-width: 100%;
  container-type: inline-size;
}
.fv-block-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.fv-eyebrow {
  font-size: 11px !important;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: #6d766f;
  display: block;
  margin-bottom: 9px;
}
.fv-block h2 {
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.fv-block p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: #666e66;
  max-width: 500px;
}
.fv-count {
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid #c6cbbf;
  padding: 7px 10px;
  border-radius: 99px;
  margin-top: 5px;
}
.fv-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--fv-gap);
}
.fv-gallery > a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: calc(var(--fv-radius) * 0.7);
  background: #e6e3db;
  color: #fff;
  isolation: isolate;
}
.fv-gallery > a:after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #1c252b80);
  pointer-events: none;
}
.fv-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fv-gallery a:hover img {
  transform: scale(1.035);
}
.fv-gallery a:focus-visible {
  outline: 3px solid var(--fv-accent);
  outline-offset: 4px;
}
.fv-photo-number {
  position: absolute;
  top: 12px;
  left: 12px;
  font:
    10px ui-monospace,
    monospace;
  background: #ffffffca;
  color: #36433e;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.fv-thumbnail-caption {
  position: absolute;
  left: 14px;
  right: 26px;
  bottom: 14px;
  z-index: 2;
  font-size: 12px;
  line-height: 1.4;
  max-width: 180px;
}
.fv-expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  font-size: 18px;
}
.fv-block-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-size: 12px;
  color: #626c62;
}
.fv-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none !important;
  color: white !important;
  background: var(--fv-accent);
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  white-space: nowrap;
  min-height: 44px;
}
.fv-status:empty {
  display: none;
}
.fv-status:not(:empty) {
  margin-top: 14px;
}
.fv-layout-compact .fv-gallery {
  gap: 8px;
}
.fv-layout-showcase .fv-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fv-empty {
  padding: 32px 0;
}
.fv-dialog {
  position: fixed;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  max-width: 1600px;
  max-height: 1200px;
  margin: auto;
  padding: 0;
  border: 1px solid #d2d7d0;
  border-radius: 18px;
  background: #f7f7f3;
  box-shadow: 0 30px 130px #071b1880;
  overflow: hidden;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  display: none;
  grid-template-rows: auto auto auto minmax(160px, 1fr) auto auto auto auto;
}
.fv-dialog[open] {
  display: flex;
  flex-direction: column;
}
.fv-dialog::backdrop {
  background: #0c1815be;
  backdrop-filter: blur(5px);
}
.fv-dialog-fallback {
  z-index: 2147483000;
}
.fv-dialog-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #e1e5de;
  flex-shrink: 0;
}
.fv-dialog-title {
  flex: 1;
  min-width: 0;
}
.fv-dialog-title h2 {
  font-size: 20px !important;
  font-weight: 550;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fv-dialog-title .fv-eyebrow {
  font-size: 10px !important;
  margin-bottom: 4px;
}
.fv-close {
  width: 44px;
  height: 44px;
  border: 1px solid #dce0d8;
  background: transparent;
  border-radius: 50%;
  font-size: 27px;
  color: inherit;
  cursor: pointer;
}
.fv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid #e0e5dd;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.fv-segment,
.fv-toolbar-actions,
.fv-zoom-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.fv-segment {
  padding: 3px;
  background: #e9ede7;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
}
.fv-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  min-width: 36px;
  padding: 8px 11px;
  border: 1px solid #dce1d8;
  background: #fff;
  border-radius: 6px;
  font:
    500 11px system-ui,
    sans-serif;
  line-height: 1.25;
  cursor: pointer;
  color: #37423c;
}
.fv-tool:disabled {
  opacity: 0.45;
  cursor: default;
}
.fv-tool[hidden],
.fv-dialog [hidden] {
  display: none !important;
}
.fv-tool:hover,
.fv-tool[aria-pressed="true"] {
  background: #284e43;
  color: #fff;
  border-color: #284e43;
}
.fv-segment .fv-tool {
  border-color: transparent;
  background: transparent;
}
.fv-segment .fv-tool[aria-pressed="true"] {
  background: #fff;
  color: #173b30;
  box-shadow: 0 1px 4px #18332120;
}
.fv-dialog :focus-visible {
  outline: 3px solid var(--fv-accent);
  outline-offset: 3px;
}
.fv-guide {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 24px;
  background: #f0eee7;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.fv-guide strong {
  font-size: 12px;
  font-weight: 600;
}
.fv-guide p {
  font-size: 11px;
  line-height: 1.5;
  color: #656c62;
  margin: 0;
  flex: 1;
  min-width: 150px;
}
.fv-guide-steps {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.fv-guide-steps button {
  font-size: 11px;
  min-height: 30px;
  background: transparent;
  border-color: #d4dacd;
}
.fv-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  flex: 1;
  min-height: 180px;
  background: #d9dcd5;
  position: relative;
  overflow: hidden;
}
.fv-stage-compare,
.fv-stage-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fv-stage-board {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.fv-pane {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: #e7e5dd;
  touch-action: none;
  cursor: grab;
  isolation: isolate;
  outline-offset: -4px !important;
}
.fv-pane[data-zoomed="true"] {
  cursor: grab;
}
.fv-pane:active {
  cursor: grabbing;
}
.fv-pane-active {
  box-shadow: inset 0 0 0 2px var(--fv-accent);
}
.fv-inspection-image {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}
.fv-pane-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    11px system-ui,
    sans-serif;
  pointer-events: none;
}
.fv-pane-caption > span:last-child {
  background: #fffc;
  padding: 6px 9px;
  border-radius: 5px;
  line-height: 1.3;
}
.fv-pane-index {
  width: 25px;
  height: 25px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.fv-has-grid .fv-pane:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, #fff8 1px, transparent 1px),
    linear-gradient(to bottom, #fff8 1px, transparent 1px);
  background-size: 25% 25%;
  z-index: 1;
}
.fv-is-reveal {
  display: block;
}
.fv-is-reveal .fv-pane {
  position: absolute;
  inset: 0;
}
.fv-is-reveal:after {
  content: "";
  position: absolute;
  left: var(--fv-reveal, 50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px #2224;
  z-index: 3;
  pointer-events: none;
}
.fv-is-reveal[data-vertical="true"]:after {
  left: 0;
  right: 0;
  top: var(--fv-reveal, 50%);
  width: auto;
  height: 2px;
  bottom: auto;
}
.fv-reveal-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  padding: 10px 24px;
  border-top: 1px solid #dce2d6;
  flex-shrink: 0;
}
.fv-reveal-slider input {
  max-width: 500px;
  flex: 1;
  accent-color: #294d45;
  min-height: 30px;
}
.fv-inspector-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-top: 1px solid #dce2d6;
  flex-shrink: 0;
}
.fv-zoom-value {
  min-width: 48px;
  text-align: center;
  font:
    11px ui-monospace,
    monospace;
}
.fv-gesture-hint {
  flex: 1;
  text-align: center;
  color: #717a6b;
  font-size: 11px;
}
.fv-image-position {
  font-size: 12px;
  min-width: 35px;
  text-align: center;
}
.fv-filmstrip {
  padding: 10px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid #dce2d6;
  background: #fff;
}
.fv-film-thumb {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  background: #edeee7;
  padding: 0;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
}
.fv-film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fv-film-thumb span {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 10px;
  background: #fff;
  padding: 1px 4px;
  border-radius: 2px;
}
.fv-film-thumb[aria-pressed="true"] {
  border-color: var(--fv-accent);
}
.fv-live {
  font-size: 11px;
  line-height: 1.5;
  padding: 7px 24px;
  margin: 0;
  color: #657060;
  flex-shrink: 0;
}
.fv-live:empty {
  display: none;
}
.fv-presentation .fv-toolbar,
.fv-presentation .fv-guide,
.fv-presentation .fv-filmstrip,
.fv-presentation .fv-inspector-footer,
.fv-presentation .fv-live {
  display: none;
}
.fv-print-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -10000px;
  bottom: 0;
  border: 0;
}
.fv-dialog .fv-stage-board .fv-pane-caption > span:last-child {
  font-size: 11px;
}
@container (max-width:600px) {
  .fv-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fv-block-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .fv-block-heading {
    margin-bottom: 16px;
  }
  .fv-thumbnail-caption {
    font-size: 11px;
  }
}
@media (max-width: 680px) {
  .fv-block {
    padding: 18px;
  }
  .fv-dialog {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .fv-dialog-header {
    padding: 12px 14px;
    gap: 8px;
  }
  .fv-dialog-title h2 {
    font-size: 15px !important;
  }
  .fv-toolbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .fv-toolbar-actions {
    gap: 4px;
  }
  .fv-tool {
    font-size: 11px;
    min-height: 40px;
    padding: 8px;
  }
  .fv-guide {
    padding: 8px 12px;
    gap: 6px;
  }
  .fv-guide p {
    display: none;
  }
  .fv-guide-steps button {
    font-size: 10px;
    padding: 5px;
    min-height: 32px;
  }
  .fv-stage-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fv-pane-caption {
    left: 5px;
    right: 5px;
    bottom: 6px;
    gap: 5px;
  }
  .fv-pane-caption > span:last-child {
    font-size: 10px;
    padding: 4px;
  }
  .fv-pane-index {
    width: 20px;
    height: 20px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .fv-inspector-footer {
    padding: 8px 10px;
    gap: 5px;
  }
  .fv-gesture-hint {
    display: none;
  }
  .fv-zoom-tools {
    margin-right: auto;
  }
  .fv-filmstrip {
    padding: 8px 12px;
  }
  .fv-live {
    padding: 5px 12px;
  }
  .fv-dialog-header > .fv-tool {
    font-size: 10px;
    max-width: 80px;
  }
  .fv-film-thumb {
    width: 48px;
    height: 48px;
  }
  .fv-block-footer > span {
    font-size: 11px;
  }
  .fv-reveal-slider {
    padding: 3px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fv-gallery img {
    transition: none;
  }
}
@media print {
  .fv-dialog,
  .fv-block {
    display: none !important;
  }
}
.fv-pane-reset {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid #c6cec0;
  border-radius: 50%;
  background: #fff;
  color: #3d5445;
  cursor: pointer;
  font-size: 20px;
}
.fv-eyebrow,
.fv-dialog .fv-gesture-hint,
.fv-dialog .fv-live {
  color: #56654e;
}
.fv-gallery > a:after {
  background: linear-gradient(transparent, #1c252bb3);
}
.fv-dialog::backdrop {
  backdrop-filter: none;
}
@media (max-width: 680px) {
  .fv-dialog button {
    min-width: 44px;
    min-height: 44px;
  }
}
