/* DREAMSPIRE_REHOMING_GALLERY_V1 */
#panel-rehoming-days [data-rehoming-flat] {
  width:min(1120px,calc(100% - 40px));
  padding:40px 0 72px;
  margin:0 auto;
}
#panel-rehoming-days .ds-rg-heading {margin:0 0 28px;padding:0;}
#panel-rehoming-days .ds-rg-heading h1 {
  margin:0;color:#1f3351;
  font:500 clamp(34px,4vw,52px)/1.1 Fraunces,Georgia,serif;
  letter-spacing:-.035em;
}
#panel-rehoming-days .ds-rg-heading p {
  margin:12px 0 0;color:#69717d;font:400 14px/1.6 'DM Sans',system-ui,sans-serif;
}
#panel-rehoming-days .ds-rg-grid {columns:3;column-gap:16px;}
#panel-rehoming-days .ds-rg-photo {
  display:block;break-inside:avoid;appearance:none;width:100%;margin:0 0 16px;
  padding:0;border:0;border-radius:12px;overflow:hidden;background:#f1ede7;cursor:zoom-in;
}
#panel-rehoming-days .ds-rg-photo img {display:block;width:100%;height:auto;}
.ds-rg-photo:focus-visible,.ds-rg-viewer button:focus-visible {outline:3px solid #b89961;outline-offset:4px;}
.ds-rg-message {color:#687386;font:400 14px/1.6 system-ui,sans-serif;}
.ds-rg-message[hidden],.ds-rg-viewer [hidden],#ds-rehoming-admin-mount [hidden] {display:none!important;}
dialog.ds-rg-viewer {
  inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;
  margin:0;padding:64px 68px 50px;border:0;background:rgba(10,17,29,.97);color:#fff;
}
.ds-rg-viewer::backdrop {background:rgba(10,17,29,.95);}
.ds-rg-viewer .ds-rg-full {display:block;width:100%;height:100%;object-fit:contain;}
.ds-rg-viewer button {
  position:absolute;display:grid;place-items:center;width:44px;height:44px;padding:0;
  border:1px solid #ffffff40;border-radius:50%;background:#ffffff10;color:#fff;
  font:400 32px/1 system-ui;cursor:pointer;
}
.ds-rg-close {top:16px;right:16px;}
.ds-rg-prev {top:calc(50% - 22px);left:12px;}
.ds-rg-next {top:calc(50% - 22px);right:12px;}
.ds-rg-position {position:absolute;bottom:12px;left:0;right:0;margin:0;text-align:center;font:400 13px/1.6 system-ui;}
#ds-rehoming-admin-mount {color:#1f3351;}
.ds-rg-admin-head {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;}
.ds-rg-admin-head h2 {margin:0 0 8px;}
.ds-rg-admin-head p,.ds-rg-admin-help {margin:0;color:#667080;font-size:14px;line-height:1.6;}
.ds-rg-admin-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;}
.ds-rg-admin-toolbar label {font-size:12px;display:grid;gap:5px;}
.ds-rg-admin-toolbar input {max-width:100%;border:1px solid #ccd1d7;border-radius:8px;padding:10px;font:inherit;}
.ds-rg-count {font-weight:600;}
.ds-rg-picker {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:20px;}
.ds-rg-pick {position:relative;display:block;min-width:0;border:2px solid #e5e1da;border-radius:12px;overflow:hidden;cursor:pointer;background:#fff;}
.ds-rg-pick.is-selected {border-color:#9b814c;background:#fcf8ef;}
.ds-rg-pick input {position:absolute;top:10px;left:10px;z-index:1;width:22px;height:22px;accent-color:#1f3351;cursor:pointer;}
.ds-rg-pick:focus-within {outline:2px solid #9b814c;outline-offset:3px;}
.ds-rg-pick-image {display:grid;place-items:center;aspect-ratio:4/5;background:#f2eee8;color:#7a8088;font-size:12px;}
.ds-rg-pick-image img {display:block;width:100%;height:100%;object-fit:cover;}
.ds-rg-pick-name {display:block;padding:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;}
@media(max-width:650px) {
  #panel-rehoming-days [data-rehoming-flat] {width:calc(100% - 28px);padding-top:28px;}
  #panel-rehoming-days .ds-rg-grid {columns:2;column-gap:10px;}
  #panel-rehoming-days .ds-rg-photo {margin-bottom:10px;border-radius:8px;}
  dialog.ds-rg-viewer {padding:64px 12px 64px;}
  .ds-rg-viewer .ds-rg-prev,.ds-rg-viewer .ds-rg-next {top:auto;bottom:10px;}
  .ds-rg-position {bottom:22px;pointer-events:none;}
  .ds-rg-admin-head,.ds-rg-admin-toolbar {align-items:flex-start;flex-direction:column;}
  .ds-rg-picker {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
}
