/* ---------- CONTENT WRAPPER ---------- */
.content-inner {
  max-width: 85%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ---------- PANEL ---------- */
.slideshow-panel {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #d1d5db;
}

.slideshow-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #d1d5db;

}

/* ---------- GALLERY LAYOUT ---------- */
.slideshow-gallery {
  display: flex;
  justify-content: center;
  
}

.slideshow-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- MAIN IMAGE ---------- */
.slideshow-main {
  width: 720px;
  max-width: 100%;
}

.slideshow-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 👈 fills container */
  display: block;
}
/* ---------- THUMBNAILS ---------- */
.slideshow-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
    border-radius: 16px;
  border: 2px solid #d1d5db;
}

.thumb-wrapper {
  position: relative;
  flex-shrink: 0;
}

.slideshow-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}

.slideshow-thumb:hover {
  border-color: #2563eb;
}

/* ---------- DELETE BUTTON ---------- */
.delete-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc2626;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.delete-btn:hover {
  background: #b91c1c;
}

/* ---------- ACTION BUTTONS ---------- */
.slideshow-actions {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

/* ---------- BUTTON STYLES ---------- */
.sb-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd;
}

.sb-btn--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.sb-btn--primary:hover {
  background: #1e40af;
}

.sb-btn--secondary {
  background: #f9fafb;
  color: #111;
}

.sb-btn--secondary:hover {
  background: #f1f5f9;
}


.upload-form {
  display: inline-block;
}

/* hide the native file input completely */
.upload-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* make Upload Image look like a normal button */
.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.banner-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 👈 fills banner nicely */
  display: block;
}


.file-upload-row {
  display: flex;
  align-items: center;
}

/* Keep filename inline */
.file-input {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Hide native button */
.file-input::-webkit-file-upload-button {
  visibility: hidden;
}

/* Custom button */
.file-input::before {
  content: 'Choose File';
  display: inline-block;
  background: inherit;
  border: inherit;
  padding: inherit;
  cursor: pointer;
  margin-right: 12px;
}