/* QWOTES STYLES */
.qwotes {
  font-family: "Georgia", serif;
  color: #f1f1f1;
  display: flex;
  justify-content: center;
  margin: 2em auto;
  max-width: 700px; /* narrower on desktop */
  transform: scale(0.996);
  transition: transform 0.3s ease;
}

.qwotes:hover {
  transform: scale(1);
}

.qwotes .qw-card {
  display: flex;
  width: 100%;
  border: 1px solid #fff; /* thin white border */
  background: #000;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  overflow: hidden;
}

.qwotes .qw-img {
  flex: 1;
  background: url('/images/oneoffs/me.png') center/cover no-repeat;
  filter: grayscale(100%);
  min-height: 250px;
}

.qwotes .qw-content {
  flex: 1.4;
  padding: 1.6em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qwotes blockquote {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1em;
}

.qwotes .qw-author {
  text-align: right;
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.85;
}

.qwotes .qw-btn-wrap {
  text-align: right;
  margin-top: 0.8em;
}

.qwotes .qw-btn {
  background-color: transparent;
  color: #fff;
  border: none;
  border-bottom: 1px solid #555;
  padding: 0.4em 0.6em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.qwotes .qw-btn:hover {
  color: #ddd;
  border-bottom-color: #888;
}

/* Smooth fade animation */
.fade-in {
  animation: fadeIn 0.5s ease-in forwards;
}

.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-5px); }
}

/* Responsiveness — keep horizontal layout on all sizes */
@media (max-width: 700px) {
  .qwotes {
    max-width: 90%;
  }

  .qwotes .qw-img {
    min-height: 180px;
  }

  .qwotes blockquote {
    font-size: 0.9rem;
  }

  .qwotes .qw-author {
    font-size: 0.8rem;
  }

  .qwotes .qw-content {
    padding: 1.2em;
  }
}


/* ADDED! */
.qwotes blockquote.editing {
  outline: 1px dashed #888;
  background: rgba(255, 255, 255, 0.05);
  cursor: text;
}

.qwotes blockquote[contenteditable="true"]:focus {
  outline: 1px solid #aaa;
}
.qwotes .qw-img {
  flex: 1;
  background: url('https://via.placeholder.com/400x400?text=Portrait') center/cover no-repeat;
  filter: grayscale(100%);
  cursor: pointer;
}

.qwotes .qw-img:hover {
  filter: grayscale(99%);
}

/* Inline editing visuals */
.qwotes blockquote.editing {
  outline: 1px dashed #888;
  background: rgba(255, 255, 255, 0.05);
  cursor: text;
}

.qwotes blockquote[contenteditable="true"]:focus {
  outline: 1px solid #aaa;
}

/* Smooth quote typography with quotes */
.qwotes blockquote {
  position: relative;
  font-style: italic;
}

.qwotes blockquote::before,
.qwotes blockquote::after {
  font-size: 1.2em;
  color: #fff;
}




@media (max-width: 480px) {
  .qwotes {
    transform: scale(0.9);
  }

  .qwotes blockquote {
    font-size: 0.85rem;
  }

  .qwotes .qw-img {
    min-height: 160px;
  }
}
