/* Gallery interaction/layout adapted from GMS, copyright (c) 2026 Chance to Choose.
 * Modified for EventsRoomHire, October 2026. See GMS-LICENSE.txt; no additional
 * redistribution rights to the GMS-derived code are granted by this package. */
.erh-gallery{position:relative;border:1px solid #7775;border-radius:.35rem;padding:1rem;margin:.4rem 0}.erh-gallery-heading{font-size:1.35rem;font-weight:700;margin-bottom:1rem}.erh-gallery-grid{display:flex;flex-wrap:wrap;gap:1rem}.erh-gallery-card,.erh-gallery-add{position:relative;width:190px;height:190px;border:2px solid #7775;border-radius:.5rem;overflow:hidden;background:Canvas;color:CanvasText}.erh-gallery-card img{width:100%;height:100%;object-fit:cover}.erh-gallery-add{display:flex;align-items:center;justify-content:center;cursor:pointer;background:#7772}.erh-gallery-add span:first-child{font-size:4rem;font-weight:700;line-height:1}.erh-gallery-add input{position:absolute;width:1px;height:1px;opacity:0}.erh-gallery-tools{position:absolute;inset:.35rem .35rem auto .35rem;display:flex;justify-content:space-between;pointer-events:none}.erh-gallery-tools button,.erh-gallery-edit{pointer-events:auto;border:0;border-radius:.45rem;padding:.55rem;background:#eee;color:#555;font-size:1.15rem;cursor:pointer}.erh-gallery-edit{position:absolute;right:.35rem;bottom:.35rem}.erh-gallery-handle{cursor:grab}.erh-gallery-modal{position:fixed;z-index:10050;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;padding:1rem}.erh-gallery-modal[hidden]{display:none}.erh-gallery-dialog{width:min(620px,100%);background:Canvas;color:CanvasText;border-radius:.5rem;padding:1.25rem;box-shadow:0 .5rem 2rem #0008}.erh-gallery-dialog label{display:block;font-weight:600;margin:.8rem 0}.erh-gallery-dialog input,.erh-gallery-dialog textarea{display:block;width:100%;box-sizing:border-box;margin-top:.3rem;padding:.55rem;color:CanvasText;background:Canvas;border:1px solid #888;border-radius:.25rem}.erh-gallery-actions{display:flex;gap:.5rem;justify-content:flex-end}.erh-gallery-actions button{padding:.55rem 1rem}.erh-gallery-status{margin-top:.65rem}.erh-gallery-card[draggable=true]{cursor:grab}.erh-gallery-card.erh-dragging{opacity:.45}.erh-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}


.erh-gallery-handle{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.erh-gallery-handle:active{cursor:grabbing}.erh-gallery-card img{-webkit-user-drag:none;user-select:none}.erh-gallery-card.erh-drop-target{outline:3px solid currentColor;outline-offset:3px}.erh-gallery-handle:focus-visible{outline:3px solid currentColor;outline-offset:2px}

.erh-drag-ghost{position:fixed;z-index:11000;opacity:.5;pointer-events:none!important;object-fit:cover;border-radius:.5rem;box-shadow:0 8px 24px #0005;user-select:none;-webkit-user-drag:none}

.erh-gallery-grid{position:relative}.erh-gallery-card.erh-insertion-gap{opacity:1;border:2px dashed currentColor;background:transparent}.erh-gallery-card.erh-insertion-gap>*{opacity:0;pointer-events:none}

.erh-gallery{color:inherit}.erh-gallery-dialog{max-height:90vh;overflow:auto}.erh-gallery-add:focus-within{outline:3px solid currentColor}

.erh-gallery-dialog input,.erh-gallery-dialog textarea{background:inherit;color:inherit;font:inherit}.erh-gallery-dialog h3{color:inherit}
.erh-gallery-add{color:inherit}

.erh-gallery-actions button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(1)}
