/* This stylesheet is loaded only on the Gallery page. */
body.page .luxie-gallery {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
body.page .luxie-gallery > .wp-block-image {
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
}
body.page .luxie-gallery > .wp-block-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
}
.luxie-flow-gallery {
  --lxf-gap: 12px;
  --lxf-speed: 16;
  --lxf-height: clamp(300px, 68vh, 680px);
  width: 100%;
}
.luxie-flow-gallery [hidden] { display: none !important; }
.luxie-flow-gallery .lxf-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}
.luxie-flow-gallery .lxf-toggle {
  appearance: none;
  border: 1px solid #2e2c1d;
  border-radius: 2px;
  padding: 10px 16px;
  min-height: 44px;
  background: transparent;
  color: #2e2c1d;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.luxie-flow-gallery .lxf-toggle:hover {
  color: #f7f3ea;
  background: #2e2c1d;
}
.luxie-flow-gallery .lxf-toggle:focus-visible {
  outline: 2px solid #5b5a3f;
  outline-offset: 4px;
}
.luxie-flow-gallery .lxf-viewport {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--lxf-gap);
  height: var(--lxf-height);
  overflow: hidden;
  margin: 0;
}
.luxie-flow-gallery .lxf-column { min-width: 0; overflow: hidden; }
.luxie-flow-gallery .lxf-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: luxie-gallery-flow var(--lxf-duration) linear infinite;
  animation-delay: var(--lxf-delay, 0s);
}
.luxie-flow-gallery .lxf-sequence {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: var(--lxf-gap);
  margin: 0;
  padding: 0 0 var(--lxf-gap);
  box-sizing: border-box;
}
.luxie-flow-gallery .lxf-item {
  appearance: none;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  overflow: hidden;
  background: #e7e2d7;
  cursor: zoom-in;
  box-sizing: border-box;
}
.luxie-flow-gallery .lxf-item > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.luxie-flow-gallery.lxf-offscreen .lxf-track,
.luxie-flow-gallery.lxf-tab-hidden .lxf-track {
  animation-play-state: paused;
}
@keyframes luxie-gallery-flow {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (max-width: 1023px) {
  body.page .luxie-gallery,
  .luxie-flow-gallery .lxf-viewport {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body.page .luxie-gallery,
  .luxie-flow-gallery .lxf-viewport {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .luxie-flow-gallery .lxf-viewport,
  .luxie-flow-gallery .lxf-controls { display: none !important; }
  .luxie-flow-gallery > .luxie-gallery[hidden] { display: grid !important; }
  .luxie-flow-gallery .lxf-track { animation: none; }
}
@media print {
  .luxie-flow-gallery .lxf-viewport,
  .luxie-flow-gallery .lxf-controls { display: none !important; }
  .luxie-flow-gallery > .luxie-gallery[hidden] { display: grid !important; }
}
