.flow-gallery {
  padding: 34px 7vw 58px;
  background: #0b0c0e;
}

.flow-gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.flow-gallery-eyebrow,
.flow-catalog-heading > span {
  color: #aaaeb4;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.flow-gallery-heading h2,
.flow-catalog-heading h2 {
  margin: 8px 0 0;
  color: #f5f5f5;
  font: 600 clamp(1.8rem, 3vw, 2.8rem)/1.08 Oswald, sans-serif;
}

.flow-gallery-heading p {
  max-width: 400px;
  margin: 0;
  color: #aeb2b7;
  font-size: .9rem;
  line-height: 1.6;
}

.flow-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #303238;
  background: #15171a;
}

.flow-gallery-open {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}

.flow-gallery-main {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.flow-gallery-open:hover .flow-gallery-main,
.flow-gallery-open:focus-visible .flow-gallery-main {
  transform: scale(1.025);
}

.flow-gallery-body {
  padding: 17px 19px 19px;
}

.flow-gallery-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #aeb2b7;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.flow-gallery-body h3 {
  margin: 7px 0 0;
  color: #f6f6f6;
  font: 600 1.45rem/1.2 Oswald, sans-serif;
}

.flow-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.flow-gallery-thumbs button {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}

.flow-gallery-thumbs button[aria-pressed="true"] {
  border-color: #e8e8e8;
  outline: 1px solid #555b63;
  outline-offset: 2px;
}

.flow-gallery-thumbs button:focus-visible,
.flow-gallery-open:focus-visible,
.flow-gallery-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.flow-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #303238;
}

.flow-gallery-footer p {
  max-width: 800px;
  margin: 0;
  color: #aeb2b7;
  font-size: .81rem;
  line-height: 1.65;
}

.flow-gallery-footer a {
  flex: none;
  color: #fff;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.flow-catalog-heading {
  padding: 0 7vw;
}

.flow-catalog-heading h2 {
  color: #191b1e;
}

.flow-catalog-heading + .category-products {
  padding-top: 18px;
}

@media (max-width: 900px) {
  .flow-gallery { padding: 28px 6vw 46px; }
  .flow-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-catalog-heading { padding-inline: 6vw; }
}

@media (max-width: 600px) {
  .flow-gallery { padding: 22px 20px 38px; }
  .flow-gallery-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 18px; }
  .flow-gallery-heading p { font-size: .84rem; }
  .flow-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow-gallery-body { padding: 15px 17px 17px; }
  .flow-gallery-footer { align-items: start; flex-direction: column; gap: 12px; padding: 16px; }
  .flow-catalog-heading { padding-inline: 20px; }
}
