.psmf-programme{--psmf-blue:#143bb8;--psmf-ink:#14213d;margin:2rem 0;color:inherit}.psmf-programme *{box-sizing:border-box}.psmf-grid{display:grid;grid-template-columns:repeat(var(--psmf-columns,3),minmax(0,1fr));gap:1.5rem}.psmf-card{border:1px solid #dddfe8;border-radius:16px;overflow:hidden;background:var(--wp--preset--color--base,#fff);color:var(--wp--preset--color--contrast,#14213d);box-shadow:0 6px 22px #14213d0a}.psmf-poster{display:block}.psmf-poster img{display:block;width:100%;height:auto}.psmf-poster:empty{display:none}.psmf-card-body{padding:1.4rem}.psmf-card h3{margin:.4rem 0 1rem;font-size:1.4rem;line-height:1.25}.psmf-card h3 a{color:inherit;text-decoration:none}.psmf-category{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--psmf-blue)}.psmf-details p{margin:.5rem 0;font-size:1rem}.psmf-links{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0}.psmf-links a{display:inline-block;border:1px solid currentColor;padding:.45rem .8rem;border-radius:6px;font-size:.9rem;text-decoration:none}.psmf-links a:first-child{background:#143bb8;color:#fff;border-color:#143bb8}.psmf-cover{margin:0;max-width:100%}.psmf-cover img{display:block;max-width:100%;margin-inline:auto}.psmf-single-poster{max-width:100%;height:auto} .psmf-programme a:focus-visible,.psmf-links a:focus-visible{outline:3px solid #e09c00;outline-offset:4px}@media(max-width:900px){.psmf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.psmf-grid{grid-template-columns:minmax(0,1fr)}.psmf-card-body{padding:1.1rem}.psmf-cover img{height:auto!important}}

.psmf-event-list{display:grid;gap:1.5rem}
.psmf-event-row{display:grid;grid-template-columns:minmax(0,1fr)}
.psmf-event-row .psmf-card-body{min-width:0;overflow-wrap:anywhere}
.psmf-event-row .psmf-poster img{max-width:100%}
@media(min-width:701px){
  .psmf-event-row:has(> .psmf-poster){grid-template-columns:minmax(0,30%) minmax(0,1fr);align-items:start}
}
.psmf-event-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin-top:1rem}
.psmf-event-gallery img{width:100%;height:auto;display:block}

.psmf-programme .psmf-event-title{color:inherit}

.psmf-gallery-panel{margin-block-start:1rem;min-width:0}
.psmf-gallery-panel > .psmf-event-gallery{margin-top:0}

@media (min-width:701px){
  .psmf-gallery-top:has(> .psmf-gallery-panel),
  .psmf-gallery-left:has(> .psmf-gallery-panel),
  .psmf-gallery-right:has(> .psmf-gallery-panel){
    display:grid;
    gap:1rem;
    align-items:start;
  }
  .psmf-gallery-top{grid-template-areas:"gallery" "copy"}
  .psmf-gallery-left{
    grid-template-areas:"gallery copy";
    grid-template-columns:minmax(0,25%) minmax(0,1fr);
  }
  .psmf-gallery-right{
    grid-template-areas:"copy gallery";
    grid-template-columns:minmax(0,1fr) minmax(0,25%);
  }
  .psmf-event-copy{grid-area:copy;min-width:0}
  .psmf-gallery-panel{grid-area:gallery}
  :is(.psmf-gallery-top,.psmf-gallery-left,.psmf-gallery-right) > .psmf-gallery-panel{
    margin-block-start:0;
  }
}

.psmf-programme .psmf-photo-thumb{
  display:block;width:100%;min-width:0;padding:0;border:0;background:transparent;
  color:inherit;cursor:zoom-in;
}
.psmf-gallery-panel .wp-block-gallery figure > .psmf-photo-thumb{flex:1;display:flex}
.psmf-gallery-panel .wp-block-gallery.is-cropped figure > .psmf-photo-thumb img{object-fit:cover;height:100%}
.psmf-photo-viewer{
  width:min(94vw,75rem);max-width:none;max-height:92vh;padding:0;border:0;
  border-radius:.6rem;background:#171717;color:#fff;
}
.psmf-photo-viewer::backdrop{background:#000b}
.psmf-photo-tools{display:flex;justify-content:flex-end;gap:.5rem;padding:.6rem}
.psmf-photo-tools button,.psmf-photo-linked{cursor:pointer}
.psmf-photo-stage{overflow:auto;max-height:78vh}
.psmf-photo-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:78vh;margin:auto}
.psmf-photo-stage.is-zoomed img{width:200%;max-width:none;max-height:none;margin:0}

.psmf-programme .psmf-gallery-panel :is(.psmf-event-gallery,.wp-block-gallery,.blocks-gallery-grid){
  display:grid;
  grid-template-columns:repeat(var(--psmf-photo-columns,3),minmax(0,1fr));
  align-items:start;
  gap:.5rem;
}
.psmf-programme .psmf-gallery-panel :is(.wp-block-gallery > figure.wp-block-image,.blocks-gallery-grid > li){
  width:100% !important;
  min-width:0;
  margin:0;
}
.psmf-programme .psmf-gallery-panel img{
  width:100%;
  height:auto !important;
  aspect-ratio:4 / 3;
  object-fit:cover;
}
@media (min-width:701px){
  :is(.psmf-gallery-left,.psmf-gallery-right) > .psmf-gallery-panel{
    --psmf-photo-columns:1;
    width:100%;
    max-width:220px;
  }
  .psmf-gallery-left > .psmf-gallery-panel{justify-self:end}
}
