body.page-template-template-image {
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

body.page-template-template-image header,
body.page-template-template-image footer {
  display: none;
}

body.page-template-template-image .lms-image-board-page {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--lms-bgcolor, #f4f4f4);
}

.lms-image-board-container {
  width: 100%;
  min-height: 3rem;
  box-sizing: border-box;
  background: var(--lms-bgcolor, #f4f4f4);
  color: #1f2933;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lms-image-board-uploader {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

.lms-image-board-dropzone {
  width: 100%;
  min-height: 7rem;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  box-sizing: border-box;
  border: 2px dashed #9aa5b1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #334e68;
  text-align: center;
  cursor: pointer;
}

.lms-image-board-dropzone:focus-within,
.lms-image-board-dropzone:hover {
  border-color: #52606d;
  background: rgba(255, 255, 255, 0.88);
}

.lms-image-board-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lms-image-board-dropzone-title {
  font-size: 1rem;
  font-weight: 600;
}

.lms-image-board-dropzone-meta,
.lms-image-board-error {
  font-size: 0.88rem;
}

.lms-image-board-error {
  color: #b42318;
}

.lms-image-board-error:empty {
  display: none;
}

.lms-image-board-preview {
  position: relative;
  width: 100%;
}

.lms-image-board-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.lms-image-board-image:focus {
  outline: 3px solid rgba(47, 128, 237, 0.75);
  outline-offset: -3px;
}

.lms-image-board-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #ffffff;
  cursor: pointer;
}

.lms-image-board-delete-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lms-image-board-delete:hover,
.lms-image-board-delete:focus {
  background: rgba(17, 24, 39, 0.96);
}

.lms-image-board-confirm {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 1rem;
  box-sizing: border-box;
  background: rgba(17, 24, 39, 0.62);
}

.lms-image-board-confirm-dialog {
  width: min(20rem, 100%);
  padding: 1rem;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 1rem 2.5rem rgba(17, 24, 39, 0.28);
}

.lms-image-board-confirm-title {
  margin: 0 0 1rem;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.lms-image-board-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.lms-image-board-confirm-cancel,
.lms-image-board-confirm-delete {
  min-height: 2.4rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 0.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lms-image-board-confirm-cancel {
  background: #e5e7eb;
  color: #111827;
}

.lms-image-board-confirm-delete {
  background: #b91c1c;
  color: #ffffff;
}

.lms-image-board-confirm-cancel:hover,
.lms-image-board-confirm-cancel:focus {
  background: #d1d5db;
}

.lms-image-board-confirm-delete:hover,
.lms-image-board-confirm-delete:focus {
  background: #991b1b;
}

.lms-image-board-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.9);
  cursor: move;
}

.lms-image-board-fullscreen-image {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  transform: translate(0, 0);
  will-change: transform;
  cursor: move;
  user-select: none;
  -webkit-user-drag: none;
}

.lms-image-board-message {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: var(--lms-bgcolor, #f5f5f5);
  color: #333333;
  text-align: center;
  font-size: 1.1rem;
}
