/* Flieten Franz Instagram Feed – styles scoped to the plugin, no dependencies. */
.ffig-section,
.ffig-section * { box-sizing: border-box; }
.ffig-section {
  --ffig-accent: #2ac7d4;
  --ffig-paper: #f5f1e9;
  --ffig-ink: #171717;
  --ffig-gap: 18px;
  --ffig-columns: 4;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(38px, 6vw, 76px) 0 clamp(25px, 4vw, 42px);
  color: var(--ffig-ink);
  background-color: var(--ffig-paper);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}
.ffig-section :where(a, button) { -webkit-tap-highlight-color: transparent; }
.ffig-section :where(a:focus-visible,button:focus-visible,.ffig-track:focus-visible) { outline: 3px solid var(--ffig-accent); outline-offset: 4px; }
.ffig-shell { max-width: 1390px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 55px); }
.ffig-topline {
  display: flex; align-items: center; gap: 9px;
  border-bottom: 2px solid var(--ffig-ink); padding: 0 0 15px;
  font-size: clamp(10px, 1vw, 12px); line-height: 1.3; letter-spacing: .16em;
  font-weight: 900; text-transform: uppercase;
}
.ffig-spark { font-size: 25px; color: var(--ffig-ink); line-height: .6; }
.ffig-topline-right { margin-left: auto; white-space: nowrap; }
.ffig-topline-right span { font-size: 16px; }
.ffig-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 32px 0 35px; }
.ffig-title-wrap { min-width: 0; }
.ffig-section h2.ffig-title {
  padding: 0; margin: 0 !important; color: var(--ffig-ink) !important;
  font-family: Impact, 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900; line-height: .92; font-size: clamp(54px, 8vw, 118px);
  letter-spacing: -.018em; text-transform: uppercase;
}
.ffig-subtitle { margin: 18px 0 0 !important; color: var(--ffig-ink); font-size: clamp(14px, 1.4vw, 18px); line-height: 1.5; font-weight: 600; }
.ffig-follow {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  flex: 0 0 auto; min-height: 53px; padding: 11px 17px;
  color: var(--ffig-ink) !important; background: var(--ffig-accent);
  border: 2px solid var(--ffig-ink); border-radius: 0; box-shadow: 4px 4px 0 var(--ffig-ink);
  text-decoration: none !important; font-size: 12px; font-weight: 900; letter-spacing: .055em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ffig-follow:hover { background: #fff; color: var(--ffig-ink) !important; transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ffig-ink); }
.ffig-follow > span { font-size: 18px; font-weight: 900; margin-left: 1px; }
.ffig-slider { min-width: 0; }
.ffig-track {
  display: flex; gap: var(--ffig-gap); padding: 0 6px 9px 0;
  margin: 0; width: 100%; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-inline: contain; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.ffig-track::-webkit-scrollbar { display: none; }
.ffig-card {
  flex: 0 0 calc((100% - (var(--ffig-columns) - 1) * var(--ffig-gap)) / var(--ffig-columns));
  min-width: 0; scroll-snap-align: start;
  padding: 0; border: 0; margin: 0;
}
.ffig-card-link {
  position: relative; overflow: hidden; display: block; width: 100%; aspect-ratio: 4/5;
  color: #fff !important; background: var(--ffig-accent); border: 2px solid var(--ffig-ink);
  border-radius: 0; text-decoration: none !important;
}
.ffig-card-link::after { content: ''; position: absolute; z-index: 1; inset: 38% 0 0; background: linear-gradient(transparent 0%, rgba(0,0,0,.14) 30%,rgba(0,0,0,.83) 100%); pointer-events: none; }
.ffig-card-link > img {
  display: block !important; margin: 0 !important; padding: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; object-position: center; border: 0 !important; border-radius: 0 !important;
  filter: saturate(1.07); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.ffig-card-link:hover > img { transform: scale(1.055); }
.ffig-number, .ffig-kind {
  position: absolute; top: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 5px 9px;
  background: var(--ffig-paper); color: var(--ffig-ink); border: 1.5px solid var(--ffig-ink);
  font-weight: 900; font-size: 11px; letter-spacing: .08em; line-height: 1;
}
.ffig-number { left: 12px; min-width: 32px; }
.ffig-kind { right: 12px; background: var(--ffig-accent); }
.ffig-caption {
  position: absolute; z-index: 2; bottom: 0; left: 0; width: 100%;
  display: flex; align-items: end; justify-content: space-between; gap: 10px;
  padding: 17px 15px 16px; text-align: left;
  color: #fff; font-size: clamp(12px, 1.05vw, 14px); line-height: 1.45;
  font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.ffig-caption-arrow { flex: 0 0 auto; font-size: 25px; line-height: .8; }
.ffig-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 25px;
  margin-top: 23px; padding-bottom: 22px;
}
.ffig-pagination { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 900; font-family: 'Arial Black', Arial, sans-serif; font-variant-numeric: tabular-nums; }
.ffig-slash { opacity: .4; font-size: 13px; }
.ffig-progress { display: block; width: 140px; height: 3px; background: #17171730; margin-left: 15px; }
.ffig-progress-inner { display: block; width: 12%; height: 100%; background: var(--ffig-ink); transition: width .2s ease; }
.ffig-arrows { display: flex; gap: 10px; }
.ffig-arrow {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 50px; padding: 0; border: 2px solid var(--ffig-ink);
  border-radius: 0 !important; background: var(--ffig-paper); color: var(--ffig-ink);
  font-size: 28px; font-family: Arial, sans-serif; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.ffig-arrow:hover:not(:disabled) { background: var(--ffig-accent); transform: translateY(-2px); }
.ffig-arrow:disabled { opacity: .28; cursor: not-allowed; }
.ffig-footnote {
  border-top: 2px solid var(--ffig-ink); padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; font-weight: 900; letter-spacing: .14em;
}
.ffig-footnote span:last-child { font-size: 22px; letter-spacing: 0; }
.ffig-empty { border: 2px dashed #aaa; background: #f9f9f9; padding: 16px; font-family: Arial,sans-serif; }
@media (max-width: 1000px) {
  .ffig-section { --ffig-columns: 3; --ffig-gap: 14px; }
  .ffig-section h2.ffig-title { font-size: clamp(51px, 7.8vw, 85px); }
}
@media (max-width: 730px) {
  .ffig-section { --ffig-columns: 2; --ffig-gap: 13px; }
  .ffig-header { flex-direction: column; align-items: start; gap: 19px; padding: 27px 0 28px; }
  .ffig-section h2.ffig-title { font-size: clamp(50px, 10vw, 75px); }
  .ffig-subtitle { margin-top: 12px !important; }
  .ffig-follow { min-height: 45px; }
}
@media (max-width: 470px) {
  .ffig-section { --ffig-columns: 1.25; --ffig-gap: 12px; }
  .ffig-shell { padding: 0 15px; }
  .ffig-topline { font-size: 9px; gap: 5px; letter-spacing: .07em; }
  .ffig-topline-right { font-size: 9px; }
  .ffig-section h2.ffig-title { font-size: clamp(44px, 13.2vw, 64px); }
  .ffig-caption { font-size: 13px; }
  .ffig-progress { width: 60px; margin-left: 5px; }
  .ffig-arrow { width: 47px; height: 45px; }
  .ffig-footnote { font-size: 8px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .ffig-section *, .ffig-section *::before, .ffig-section *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
