/* action icons */
a:has(svg.bi) {
  text-decoration: none;
}

/* hover only visibility */
.hover-container .hover-only {
  opacity: 0;
  transition: opacity 0.1s ease;
}

.hover-container:hover .hover-only, .hover-container:focus-within .hover-only {
  opacity: 1;
}

.file-dropzone {
  border: 2px dashed #bbb;
  border-radius: 8px;
  padding: 40px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  width: 100%;
}

.file-dropzone.dragover {
  background-color: #f8f9fa;
  border-color: #0d6efd;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.upload-zone {
  max-width: 900px;
}

.pictures-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.picture-thumb {
  width: 140px;
}

.sortable-item {
  cursor: grab;
}

.sortable-item.dragging {
  opacity: 0.5;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  padding: 40px;
  text-align: center;
  background: #f5f5f5;
  font-size: 24px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Page title (global) */
.page-title {
  font-size: 1.75rem;          /* h1이지만 과하지 않게 */
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #212529;              /* Bootstrap body color */
  position: relative;
}

/* subtle underline accent */
.page-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 0.4rem;
  background-color: var(--bs-primary);
  border-radius: 999px;
}

/* optional subtitle */
.page-subtitle {
  font-size: 0.95rem;
  color: #6c757d;              /* text-muted */
  margin-top: -0.25rem;
  margin-bottom: 1.5rem;
}

/* Back link (global) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.back-link__icon {
  font-size: 1rem;
  transition: transform 0.15s ease;
}

/* hover */
.back-link:hover {
  color: var(--bs-primary);
  text-decoration: none;
}

.back-link:hover .back-link__icon {
  transform: translateX(-2px);
}

/* hotwire inline edit */
[data-controller="hotwire-inline-edit"]:empty::before {
  content: attr(data-hotwire-inline-edit-blank-placeholder-value);
  color: #999;
  cursor: pointer;
}

[data-controller="hotwire-inline-edit"] {
  .fit-1 { width: 1em; }
  .fit-2 { width: 2em; }
  .fit-3 { width: 3em; }
  .fit-4 { width: 4em; }
  .fit-5 { width: 5em; }
  .fit-6 { width: 6em; }
  .fit-7 { width: 7em; }
  .fit-8 { width: 8em; }
  .fit-9 { width: 9em; }
  .fit-10 { width: 10em; }
  .fit-15 { width: 15em; }
  .fit-20 { width: 20em; }
  .fit-25 { width: 25em; }
  .fit-30 { width: 30em; }

  .fit-full { width: 100%; }
  .fit-auto { width: auto; }
}

img.persona-thumbnail {
  width: 150px;
  border-radius: 8px;
}

.persona-picture {
  width: 100%;
  text-align: center;
  img.persona-large {
    width: 800px;
    border-radius: 12px;
  }
}
