.comments-modal-dialog {
  width: min(940px, 100%);
  height: min(720px, calc(100vh - 40px));
}

.comments-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  flex: 1;
  min-height: 0;
}

.comments-modal-post {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: auto;
  background: #15171b;
}

.comments-modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 510px;
  object-fit: contain;
  background: #15171b;
  transform-origin: center center;
  transition: none;
  /* CSS 3D kompozitörü büyük görselleri yakınlaştırırken bulanıklaştırabiliyor. */
  will-change: auto;
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: zoom-in;
}

.comments-modal-image.is-zoomed {
  cursor: grab;
}

.comments-modal-image.is-zoomed:active {
  cursor: grabbing;
}

.mobile-media-actions,
.mobile-media-close {
  display: none;
}

.comments-modal-post-copy {
  padding: 18px 20px;
  color: #fff;
  background: #15171b;
}

.comments-modal-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.comments-modal-author strong {
  font-size: 16px;
}

.comments-modal-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.comments-modal-author-info span {
  color: #7f8792;
  font-size: 12px;
}

.comments-modal-author-info svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.comments-modal-post-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-modal-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.comments-modal-side .comments-list {
  flex: 1;
  min-height: 0;
}

.comments-modal-side .comment-modal-form {
  flex: 0 0 auto;
}

.comments-modal-dialog.has-media .comments-modal-gallery {
  display: flex;
  flex-direction: row;
  grid-template-columns: none;
  grid-auto-rows: none;
  height: 100%;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.comments-modal-dialog.has-media .comments-modal-gallery .comments-modal-image {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  max-height: none;
  scroll-snap-align: start;
  object-fit: contain;
}

.comments-modal-side {
  position: relative;
}

.comments-modal-side-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #20232a;
  background: #edf0f4;
}

.comments-modal-side-close svg {
  width: 18px;
  height: 18px;
}

.comments-modal-side-close:hover {
  background: #dfe3e8;
}

.comments-modal-dialog.text-only .comments-modal-side-close {
  display: none;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #20232a;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transform: translateY(-50%);
}

.gallery-prev {
  left: 14px;
  right: auto;
}

.gallery-next {
  right: 14px;
}

.gallery-prev svg,
.gallery-next svg {
  width: 21px;
  height: 21px;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: #fff;
}

.image-picker {
  cursor: pointer;
}

.post-image-preview {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(125px, 1fr);
  gap: 4px;
  max-height: 430px;
  overflow: auto;
  margin-top: 14px;
  padding: 3px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #e9ebf0;
}

.post-image-preview.has-preview {
  display: grid;
}

.post-image-preview::after {
  content: attr(data-error);
  display: block;
  grid-column: 1 / -1;
  color: #c32645;
  font-size: 12px;
}

.post-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 125px;
  border-radius: 7px;
  object-fit: cover;
}

.post-image-preview .preview-item {
  position: relative;
  min-width: 0;
  min-height: 125px;
  overflow: hidden;
  border-radius: 7px;
}

.post-image-preview[data-count="1"] {
  grid-template-columns: 1fr;
}

.post-image-preview[data-count="1"] .preview-item,
.post-image-preview[data-count="1"] img {
  min-height: 240px;
}

.post-image-preview[data-count="3"] .preview-item:first-child,
.post-image-preview[data-count="4"] .preview-item:first-child,
.post-image-preview[data-count="5"] .preview-item:first-child {
  grid-row: span 2;
}

.post-image-preview .preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 23, 29, .82);
  font-size: 19px;
  line-height: 1;
}

.post-image-preview .preview-remove:hover {
  background: #e41e3f;
}

.post-image-preview .preview-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 18, 26, .52);
  font-size: 28px;
  font-weight: 700;
  pointer-events: none;
}

.upload-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dbe7ff;
  border-radius: 11px;
  color: #285da8;
  background: #f4f8ff;
}

.upload-status[hidden] {
  display: none;
}

.upload-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.upload-status-row strong {
  flex: 1;
}

.upload-status-row span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.upload-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #bcd2fa;
  border-top-color: #1877f2;
  border-radius: 50%;
  animation: upload-spin .75s linear infinite;
}

.upload-progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #dce8fb;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #1877f2;
  transition: width .15s ease;
}

.upload-status small {
  display: block;
  margin-top: 7px;
  color: #6b7f9f;
}

.upload-status.is-error {
  border-color: #ffd1d9;
  color: #bf2946;
  background: #fff3f5;
}

.upload-status.is-error .upload-progress {
  background: #ffdfe5;
}

.upload-status.is-error .upload-progress span {
  background: #e41e3f;
}

@keyframes upload-spin {
  to { transform: rotate(360deg); }
}

.comments-modal-dialog.text-only .comments-modal-body {
  display: flex;
  flex-direction: column;
}

.comments-modal-dialog.text-only .comments-modal-post {
  flex: 0 0 auto;
  max-height: 230px;
  overflow: auto;
  color: #20232a;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.comments-modal-dialog.text-only .comments-modal-post-copy {
  color: #20232a;
  background: #fff;
}

.comments-modal-dialog.text-only .comments-modal-side {
  flex: 1;
}

/* Mobil/tablet medya görüntüleyici override. */
@media (max-width: 860px) {
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-header { display: none; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-body { position: relative; display: block; height: 100%; background: #050507; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-post { position: absolute; inset: 0; z-index: 3; display: block; height: 100%; max-height: none; background: #050507; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery { position: absolute; inset: 0; display: block; height: 100%; max-height: none; overflow: hidden; background: #050507; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image { position: absolute; inset: 0; display: none; width: 100%; height: 100%; max-height: none; object-fit: contain; flex: none; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image.mobile-media-active { display: block; }
  .comments-modal-dialog.mobile-media-viewer-open .gallery-prev,
  .comments-modal-dialog.mobile-media-viewer-open .gallery-next { display: none; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: min(78vh,760px); max-height: 78vh; overflow: hidden; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -12px 35px rgba(0,0,0,.3); transform: translateY(100%); transition: transform .24s ease; pointer-events: none; }
  .comments-modal-dialog.mobile-media-viewer-open.mobile-comments-panel-open .comments-modal-side { transform: translateY(0); pointer-events: auto; }
  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-actions { position: absolute; left: 14px; bottom: 92px; z-index: 6; display: flex; flex-direction: column; gap: 16px; }
  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-close { position: absolute; top: 14px; right: 14px; z-index: 7; display: grid; }
}

.post-media-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 1 / 1;
  gap: 3px;
  overflow: hidden;
}

.post-media-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.post-media-gallery .post-image {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}

.post-media-count-1 {
  display: block;
  aspect-ratio: 1.65 / 1;
}

.post-media-count-1 .post-image {
  height: auto;
  max-height: 620px;
  aspect-ratio: 1.65 / 1;
}

.post-media-count-2 {
  grid-template-rows: minmax(0, 1fr);
  aspect-ratio: 1.65 / 1;
}

.post-media-count-3 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.post-media-count-3 .post-image:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.post-media-count-3 .post-image:nth-child(2),
.post-media-count-3 .post-image:nth-child(3) {
  grid-column: 2;
}

.post-media-count-5 {
  grid-template-rows: repeat(6, minmax(0, 1fr));
}

.post-media-count-5 .post-image:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.post-media-count-5 .post-image:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.post-media-count-5 .post-image:nth-child(3) {
  grid-column: 1;
  grid-row: 4 / span 3;
}

.post-media-count-5 .post-image:nth-child(4) {
  grid-column: 2;
  grid-row: 3 / span 2;
}

.post-media-count-5 .post-image:nth-child(5) {
  grid-column: 2;
  grid-row: 5 / span 2;
}

.post-image-hidden {
  display: none !important;
}

.post-media-more {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 33.333%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .48);
  font-size: 30px;
  font-weight: 700;
  pointer-events: none;
}

.comments-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  max-height: 510px;
  overflow: auto;
}

.comments-modal-gallery .comments-modal-image {
  display: block;
  width: 100%;
  height: 250px;
  max-height: none;
  object-fit: cover;
}

.comments-modal-count-1 {
  display: block;
}

.comments-modal-count-1 .comments-modal-image {
  height: auto;
  max-height: 510px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .post-media-gallery {
    aspect-ratio: 1 / 1;
  }

  .post-media-gallery .post-image,
  .post-media-count-1 .post-image {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }

  .post-media-count-1 {
    aspect-ratio: 1.35 / 1;
  }

  .post-media-more {
    font-size: 24px;
  }

  .comments-modal-gallery {
    max-height: 23vh;
  }

  .comments-modal-gallery .comments-modal-image,
  .comments-modal-count-1 .comments-modal-image {
    height: 23vh;
    max-height: 23vh;
  }

  .comments-modal-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .comments-modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .comments-modal-post {
    flex: 0 0 auto;
    max-height: 35vh;
    background: #fff;
  }

  .comments-modal-image {
    max-height: 23vh;
    object-fit: cover;
  }

  .comments-modal-post-copy {
    padding: 12px 14px;
    color: #20232a;
    background: #fff;
  }

  .comments-modal-author {
    margin-bottom: 7px;
  }

  .comments-modal-post-copy p {
    font-size: 13px;
  }

  .comments-modal-side {
    flex: 1;
    min-height: 0;
  }

  .comments-modal-side .comments-list {
    padding: 10px 14px;
  }

  .comments-modal-dialog.text-only .comments-modal-post {
    max-height: 230px;
  }
}

/* Görsel yakınlaştırma görüntüleyicisi: dosyanın sonunda kalarak eski medya kurallarını ezer. */
@media (max-width: 860px) {
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-body {
    position: relative !important;
    display: block !important;
    height: 100% !important;
    background: #050507 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-post {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #050507 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #050507 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image {
    position: absolute !important;
    inset: 0 !important;
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    flex: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image.mobile-media-active {
    display: block !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .gallery-prev,
  .comments-modal-dialog.mobile-media-viewer-open .gallery-next,
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-header {
    display: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-side {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 8 !important;
    width: 100% !important;
    height: min(78vh, 760px) !important;
    max-height: 78vh !important;
    overflow: hidden !important;
    border-radius: 18px 18px 0 0 !important;
    background: #fff !important;
    transform: translateY(100%) !important;
    transition: transform .24s ease !important;
    pointer-events: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open.mobile-comments-panel-open .comments-modal-side {
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-actions {
    position: absolute !important;
    left: auto !important;
    right: 14px !important;
    top: auto !important;
    bottom: 28px !important;
    z-index: 9 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    transform: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-action {
    width: 48px !important;
    height: 48px !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption {
    position: absolute !important;
    left: 16px !important;
    right: 82px !important;
    bottom: 16px !important;
    z-index: 7 !important;
    max-width: calc(100% - 98px) !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75) !important;
    pointer-events: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-post-copy {
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author {
    gap: 8px !important;
    margin: 0 0 5px !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author img {
    width: 30px !important;
    height: 30px !important;
    border-color: rgba(255, 255, 255, .9) !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author strong,
  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author-info span,
  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author-info svg {
    color: #fff !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-post-copy p {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 10 !important;
    display: grid !important;
  }
}

.media-quality-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  color: #1769ee;
  background: #eaf2ff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  vertical-align: middle;
}

.post-card {
  position: relative;
  overflow: visible;
}

.post-head {
  position: relative;
}

.post-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(340px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}

.post-menu::before {
  content: '';
  position: absolute;
  top: -9px;
  right: 13px;
  width: 18px;
  height: 18px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}

.post-menu[hidden] {
  display: none;
}

.post-menu form,
.post-menu button {
  width: 100%;
}

.post-menu button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #20232a;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.post-menu button > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.post-menu .post-delete-form button > span::after {
  content: 'Çöp kutusundaki içerikler 30 gün sonra silinir.';
  color: #737b87;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.post-menu button > span strong {
  font-size: inherit;
  font-weight: 600;
}

.post-menu button > span small {
  color: #737b87;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.post-menu button:hover {
  color: #c32645;
  background: #fff1f3;
}

.post-menu .post-edit-button,
.post-menu .post-delete-form {
  border-top: 1px solid #e2e5e9;
}

.post-menu .post-edit-button {
  border-radius: 0;
}

.post-menu .post-delete-form button {
  color: #c32645;
  border-radius: 0 0 8px 8px;
}

.post-menu button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

@media (max-width: 860px) {
  .post-menu {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 35px rgba(15, 23, 42, .24);
  }

  .post-menu::before {
    display: none;
  }

  .post-menu button {
    min-height: 54px;
    padding: 12px 15px;
    font-size: 16px;
  }

  .post-menu button svg {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
}

/* Uzun/boşluksuz gönderi metinleri görselin üstüne taşmasın. */
.post-card .post-copy {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.5;
}

/* Son mobil override: yorum satırındaki bilgiler diğer eski kurallara ezilmesin. */
@media (max-width: 860px) {
  .comments-modal-side .comment-item > img.avatar-small {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
  }

  .comments-modal-side .comment-item .comment-text,
  .comments-modal-side .comment-item .comment-text strong,
  .comments-modal-side .comment-item .comment-text p {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  .comments-modal-side .comment-item .comment-meta,
  .comments-modal-side .comment-item .comment-meta span,
  .comments-modal-side .comment-item .comment-reply-button {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .comments-modal-side .comment-item .comment-meta {
    align-items: center !important;
  }

  .comments-modal-side .comment-item .comment-meta span {
    display: inline !important;
    margin-top: 0 !important;
  }

  .comments-modal-side .comment-item .comment-like-button {
    padding: 6px 3px !important;
    font-size: 15px !important;
  }

  .comments-modal-side .comment-item .comment-like-button svg,
  .comments-modal-side .comment-item .comment-like-button .ti {
    width: 22px !important;
    height: 22px !important;
    font-size: 22px !important;
  }

  .comments-modal-side .comments-modal-post-copy .comments-modal-author > img.avatar-small {
    width: 52px !important;
    height: 52px !important;
  }

  .comments-modal-side .comments-modal-author-info strong {
    font-size: 19px !important;
  }

  .comments-modal-side .comments-modal-author-info span {
    font-size: 15px !important;
  }

  .comments-modal-side .comment-modal-form textarea {
    min-height: 44px !important;
    height: 44px !important;
    padding: 9px 0 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
  }

  .comments-modal-side .comment-modal-form .comment-submit-text {
    font-size: 17px !important;
    line-height: 1.3 !important;
    white-space: nowrap;
  }
}

/* Gönderi başlığındaki kullanıcı bilgilerini daha okunaklı tut. */
.post-card .post-head {
  gap: 12px;
}

.post-card .post-head > .avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  flex: 0 0 52px;
}

.post-card .post-author {
  gap: 6px;
}

.post-card .post-author strong {
  font-size: 18px;
  line-height: 1.15;
}

.post-card .post-author > span {
  font-size: 15px;
  line-height: 1.25;
}

.post-card .post-author > span svg {
  width: 16px;
  height: 16px;
  margin: 0 3px;
  vertical-align: -3px;
}

.post-card .post-author .verified {
  width: 19px;
  height: 19px;
  margin-left: 5px;
  vertical-align: -4px;
}

.post-card .post-author .verified svg {
  width: 19px;
  height: 19px;
  margin: 0;
}

.post-card .media-quality-badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 600px) {
  .post-card .post-head > .avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-basis: 48px;
  }

  .post-card .post-author strong {
    font-size: 17px;
  }

  .post-card .post-author > span {
    font-size: 14px;
  }
}

@media (max-width: 860px) {
  .post-card .post-meta {
    min-height: 44px;
    padding: 2px 4px;
    font-size: 15px;
  }

  .post-card .post-meta .reaction-trigger {
    gap: 7px;
    font-size: 15px;
  }

  .post-card .post-meta .reaction-trigger .heart-icon {
    width: 23px;
    height: 23px;
  }

  .post-card .post-actions {
    min-height: 56px;
  }

  .post-card .post-actions button,
  .post-card .post-actions a {
    min-height: 56px;
    gap: 9px;
    font-size: 16px;
    font-weight: 600;
  }

  .post-card .post-actions button svg,
  .post-card .post-actions a svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.1;
  }

  /* Mobil yorum satırları: alanın genişliğini değiştirmeden okunabilir ölçüler. */
  .comments-modal-side .comment-item > .avatar-small {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .comments-modal-side .comment-text,
  .comments-modal-side .comment-item p {
    font-size: 16px;
    line-height: 1.4;
  }

  .comments-modal-side .comment-text strong {
    font-size: 16px;
  }

  .comments-modal-side .comment-meta {
    gap: 11px;
    margin-top: 6px;
    font-size: 14px;
  }

  .comments-modal-side .comment-meta span,
  .comments-modal-side .comment-reply-button {
    font-size: 14px;
  }

  .comments-modal-side .comment-like-button {
    gap: 4px;
    padding: 5px 3px;
    font-size: 13px;
  }

  .comments-modal-side .comment-like-button svg,
  .comments-modal-side .comment-like-button .ti {
    width: 22px;
    height: 22px;
    font-size: 22px;
  }

  .comments-modal-side .comments-modal-author .avatar-small {
    width: 46px;
    height: 46px;
  }

  .comments-modal-side .comments-modal-author-info strong {
    font-size: 17px;
  }

  .comments-modal-side .comments-modal-author-info span {
    font-size: 14px;
  }
}

/* Oluşturma modalı: görsel oranını korur, ancak modal sınırının dışına taşmaz. */
.post-modal-dialog .post-image-preview {
  max-height: min(360px, 42vh);
  overflow: hidden;
}

.post-modal-dialog .post-image-preview[data-count="1"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(360px, 42vh);
  max-height: min(360px, 42vh);
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  background: #f1f3f6;
}

.post-modal-dialog .post-image-preview[data-count="1"] .preview-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.post-modal-dialog .post-image-preview[data-count="1"] img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #f1f3f6;
}

.comments-modal-dialog.mobile-media-viewer-open .mobile-media-action.liked {
  color: #ff2d55 !important;
}

@media (max-width: 860px) {
  .post-modal-dialog .post-image-preview {
    flex: 0 0 auto;
    max-height: 180px;
    margin-top: 12px;
  }

  .post-modal-dialog .post-image-preview img,
  .post-modal-dialog .post-image-preview .preview-item {
    min-height: 120px;
  }

  .post-modal-dialog .post-image-preview[data-count="1"] .preview-item,
  .post-modal-dialog .post-image-preview[data-count="1"] img {
    min-height: 160px;
  }

  .post-modal-dialog .upload-status {
    flex: 0 0 auto;
    margin-top: 12px;
    font-size: 14px;
  }

  .post-modal-dialog .upload-status-row {
    font-size: 14px;
  }

  .post-modal-dialog .upload-status small {
    font-size: 13px;
  }

  .post-modal-dialog .post-image-preview[data-count="1"] {
    display: grid;
    place-items: center;
    height: 220px;
    max-height: 220px;
    padding: 0;
    overflow: hidden;
  }

  .post-modal-dialog .post-image-preview[data-count="1"] .preview-item {
    width: 100%;
    height: 220px;
    min-height: 0;
  }

  .post-modal-dialog .post-image-preview[data-count="1"] img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #f1f3f6;
  }
}

/* Tek görseli kartta kırpmadan, yüklenen orijinal oranıyla göster. */
.post-media-count-1 .post-image {
  object-fit: contain;
  background: #f1f3f6;
  image-rendering: auto;
}

/* Facebook tipi dinamik tek görsel çerçevesi: sabit oran ve zorunlu kırpma yok. */
.post-media-count-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  max-height: 720px;
  aspect-ratio: auto;
  overflow: hidden;
  background: #f1f3f6;
}

.post-media-count-1 .post-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  aspect-ratio: auto;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .post-media-count-1 {
    max-height: 620px;
  }

  .post-media-count-1 .post-image {
    max-height: 620px;
  }
}

/* Instagram tipi oran sistemi: desteklenen aralık 3:4 ile 1.91:1. */
.post-media-count-1 {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: var(--media-ratio, 1.65);
  overflow: hidden;
  background: #f1f3f6;
}

.post-media-count-1 .post-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
}

.post-modal-dialog .post-image-preview[data-count="1"] {
  display: block;
  width: 100%;
  height: min(360px, 42vh);
  max-height: min(360px, 42vh);
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  background: #f1f3f6;
}

.post-modal-dialog .post-image-preview[data-count="1"] .preview-item,
.post-modal-dialog .post-image-preview[data-count="1"] img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* Oran dışı görseller, desteklenen en yakın çerçevede kontrollü kırpılır. */
.post-media-count-1.media-ratio-crop .post-image,
.post-modal-dialog .post-image-preview[data-count="1"].media-ratio-crop img {
  object-fit: cover;
}

/* Mobil/tablet medya görüntüleyici: son sırada kalarak normal galeri kurallarını geçersiz kılar. */
@media (max-width: 860px) {
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-header { display: none; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-body { position: relative; display: block; height: 100%; background: #050507; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-post { position: absolute; inset: 0; z-index: 3; display: block; height: 100%; max-height: none; background: #050507; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery { position: absolute; inset: 0; display: block; height: 100%; max-height: none; overflow: hidden; background: #050507; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image { position: absolute; inset: 0; display: none; width: 100%; height: 100%; max-height: none; object-fit: contain; flex: none; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image.mobile-media-active { display: block; }
  .comments-modal-dialog.mobile-media-viewer-open .gallery-prev,
  .comments-modal-dialog.mobile-media-viewer-open .gallery-next { display: none; }
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: min(78vh,760px); max-height: 78vh; overflow: hidden; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -12px 35px rgba(0,0,0,.3); transform: translateY(100%); transition: transform .24s ease; pointer-events: none; }
  .comments-modal-dialog.mobile-media-viewer-open.mobile-comments-panel-open .comments-modal-side { transform: translateY(0); pointer-events: auto; }
  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-actions { position: absolute; left: 14px; bottom: 92px; z-index: 6; display: flex; flex-direction: column; gap: 16px; }
  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-close { position: absolute; top: 14px; right: 14px; z-index: 7; display: grid; }
}

@media (max-width: 860px) {
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-header {
    display: none;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-body {
    position: relative;
    display: block;
    height: 100%;
    background: #050507;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-post {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    height: 100%;
    max-height: none;
    background: #050507;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery {
    position: absolute;
    inset: 0;
    display: block;
    height: 100%;
    max-height: none;
    overflow: hidden;
    background: #050507;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    flex: none;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image.mobile-media-active {
    display: block;
  }

  .comments-modal-dialog.mobile-media-viewer-open .gallery-prev,
  .comments-modal-dialog.mobile-media-viewer-open .gallery-next {
    display: none;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-side {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    height: min(78vh, 760px);
    max-height: 78vh;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, .3);
    transform: translateY(100%);
    transition: transform .24s ease;
    pointer-events: none;
  }

  .comments-modal-dialog.mobile-media-viewer-open.mobile-comments-panel-open .comments-modal-side {
    transform: translateY(0);
    pointer-events: auto;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-actions {
    position: absolute;
    left: 14px;
    bottom: 92px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-media-action,
  .mobile-media-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .46);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
  }

  .mobile-media-action svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-media-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 7;
  }

  .mobile-media-close svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
}

.comments-modal-dialog.has-media .comments-modal-header {
  display: none;
}

.comments-modal-dialog.has-media .comments-modal-body {
  height: 100%;
}

.comments-modal-dialog.has-media .comments-modal-post {
  position: relative;
  background: #101114;
  overflow: hidden;
}

.comments-modal-dialog.has-media .comments-modal-gallery {
  display: flex;
  flex-direction: row;
  grid-template-columns: none;
  height: 100%;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.comments-modal-dialog.has-media .comments-modal-gallery::-webkit-scrollbar {
  display: none;
}

.comments-modal-count-1 .gallery-prev,
.comments-modal-count-1 .gallery-next {
  display: none;
}

.comments-modal-dialog.has-media .comments-modal-gallery .comments-modal-image {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  max-height: none;
  scroll-snap-align: start;
}

.comments-modal-dialog.has-media .comments-modal-side .comments-modal-post-copy,
.comments-modal-dialog.text-only .comments-modal-side .comments-modal-post-copy {
  padding: 16px;
  color: #20232a;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.comments-modal-author form {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: 0;
}

.modal-follow {
  padding: 6px 10px;
  border-radius: 7px;
  color: #1877f2;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 700;
}

.modal-follow.following {
  color: #59616d;
  background: #edf0f4;
}

.comments-modal-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 11px 16px 4px;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.comments-modal-actions button {
  display: grid;
  place-items: center;
  padding: 0;
  color: #20232a;
  background: transparent;
}

.comments-modal-actions > form {
  display: block;
}

.comments-modal-actions .modal-favorite-form {
  margin-left: auto;
}

.comments-modal-actions .modal-icon-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.comments-modal-actions .modal-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.comments-modal-actions [data-repost-action] { display: none !important; }

.modal-action-count {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.comments-modal-actions .modal-icon-button.liked {
  color: #e41e3f;
}

.comments-modal-actions .modal-icon-button .heart-icon {
  fill: none;
  stroke: currentColor;
}

.comments-modal-actions .modal-icon-button.liked .heart-icon {
  fill: none;
  stroke: #e41e3f;
}

.comments-modal-actions .modal-icon-button.favorite-icon.active {
  color: #1877f2;
  background: transparent;
}

.comments-modal-actions .modal-icon-button.favorite-icon.active svg {
  color: #1877f2;
  fill: #1877f2;
  stroke: #1877f2;
}

.comments-modal-actions .modal-icon-button .heart-icon,
.comments-modal-actions .modal-icon-button [data-lucide="message-circle"],
.comments-modal-actions .modal-icon-button [data-lucide="send"],
.comments-modal-actions .modal-icon-button [data-lucide="bookmark"] {
  width: 25px;
  height: 25px;
}

.comments-modal-actions .repost-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comments-modal-actions button:hover {
  color: #e41e3f;
}

.comments-modal-actions button svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comments-modal-actions .modal-icon-button .ti {
  display: inline-block;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  font-size: 25px;
  line-height: 1;
}

.comments-modal-actions .modal-icon-button .heart-icon.ti {
  color: inherit;
}

.comments-modal-actions .modal-icon-button [data-lucide="message-circle"],
.comments-modal-actions .modal-icon-button svg.lucide-message-circle {
  width: 25px;
  height: 25px;
}

.comments-modal-actions .modal-icon-button [data-lucide="send"],
.comments-modal-actions .modal-icon-button svg.lucide-send {
  width: 25px;
  height: 25px;
}

.comments-modal-actions .save-action {
  margin-left: auto;
}

.comments-modal-like-count {
  padding: 3px 16px 8px;
  color: #20232a;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.comment-modal-form .comment-submit-text {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  color: #1877f2;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.comment-modal-form .comment-submit-text:hover {
  color: #0f5fc4;
  background: transparent;
}

.comments-modal-side .comment-modal-form {
  gap: 11px;
  padding: 12px 16px;
}

.comments-modal-side .comment-modal-form .avatar-small {
  width: 32px;
  height: 32px;
  border: 0;
  box-shadow: none;
}

.comments-modal-side .comment-modal-form textarea {
  min-width: 0;
  min-height: 38px;
  height: 38px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7ccd5 transparent;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.comments-modal-side .comment-modal-form textarea:focus {
  border: 0;
  box-shadow: none;
}

.comments-modal-side .comment-modal-form textarea::-webkit-scrollbar,
.comments-modal-side .comments-list::-webkit-scrollbar {
  width: 5px;
}

.comments-modal-side .comment-modal-form textarea::-webkit-scrollbar-track,
.comments-modal-side .comments-list::-webkit-scrollbar-track {
  background: transparent;
}

.comments-modal-side .comment-modal-form textarea::-webkit-scrollbar-thumb,
.comments-modal-side .comments-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7ccd5;
}

.comments-modal-side .comment-modal-form textarea::-webkit-scrollbar-thumb:hover,
.comments-modal-side .comments-list::-webkit-scrollbar-thumb:hover {
  background: #aeb5c0;
}

.comments-modal-side .comment-modal-form .comment-submit-text {
  flex: 0 0 auto;
  color: #9bb5ff;
}

.comments-modal-side .comment-modal-form .comment-submit-text.is-ready {
  color: #1877f2;
}

@media (min-width: 601px) {
  .post-card > .post-media-open {
    width: calc(100% + 34px);
    margin-left: -17px;
  }
}

.comments-modal-side .comments-list {
  padding: 15px 16px;
}

.comments-modal-side .comment-item strong {
  font-size: 15px;
  line-height: 1.35;
}

.comments-modal-side .comment-item {
  border-bottom: 0;
}

.comments-modal-side .comment-item p {
  display: inline;
  margin: 0 0 0 5px;
  font-size: 15px;
  line-height: 1.5;
}

.comments-modal-side .comment-item .comment-meta span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.comment-content {
  min-width: 0;
  flex: 1;
}

.comment-text {
  color: #20232a;
  font-size: 14px;
  line-height: 1.5;
}

.comment-text strong {
  font-weight: 700;
}

.comment-mention {
  color: #1877f2 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.comment-text p {
  color: #20232a;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  color: #8a8996;
  font-size: 13px;
}

.comment-reply-button {
  padding: 0;
  color: #6f7480;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.comment-reply-button:hover {
  color: #1877f2;
}

.comment-like-form {
  flex: 0 0 auto;
  margin-left: auto;
}

.comment-like-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  color: #6d7480;
  background: transparent;
  font-size: 11px;
}

.comment-like-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.comment-like-button .ti {
  width: 17px;
  height: 17px;
  font-size: 17px;
  line-height: 1;
}

.comment-like-button.liked {
  color: #e41e3f;
}

.comment-like-button.liked svg {
  fill: none;
  stroke: #e41e3f;
}

.comment-replies-toggle {
  display: block;
  margin: -2px 0 2px 58px;
  padding: 0;
  border: 0;
  color: #6f7480;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.comment-replies-toggle:hover {
  color: #1877f2;
}

.comment-replies {
  margin-left: 42px;
  padding-left: 15px;
  border-left: 2px solid #edf0f4;
}

.comment-reply {
  padding-top: 8px;
}

.comments-modal-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #4b5563;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
}

.comments-modal-stats strong,
.comments-modal-stats span {
  color: #20232a;
  font-weight: 700;
}

.comments-modal-stats form {
  margin-left: auto;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1877f2;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 700;
}

.favorite-button svg {
  width: 17px;
  height: 17px;
}

.favorite-button.active {
  color: #fff;
  background: #1877f2;
}

.favorites-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
}

.reaction-trigger,
.reaction-trigger:hover,
.reaction-trigger:focus {
  text-decoration: none;
}

.favorites-heading h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.favorites-heading p {
  margin: 0;
  color: #7f8792;
  font-size: 13px;
}

.favorites-heading > svg {
  width: 30px;
  height: 30px;
  color: #1877f2;
}

.comments-modal-dialog.text-only .comments-modal-post {
  display: none;
}

.comments-modal-dialog.text-only .comments-modal-body {
  display: flex;
  flex-direction: column;
}

.comments-modal-dialog.text-only .comments-modal-side {
  flex: 1;
}

/* Düzenleme modalında mevcut görseller ve yeni seçilen görseller ayrı tutulur. */
.post-existing-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 4px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f1f3f6;
}

.post-existing-preview[hidden] {
  display: none;
}

.existing-preview-item {
  position: relative;
  min-width: 0;
  height: 110px;
  overflow: hidden;
  border-radius: 8px;
  background: #e9ebf0;
}

.existing-preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.existing-preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 23, 29, .82);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .existing-preview-item {
    height: 90px;
  }
}

@media (max-width: 700px) {
  .comments-modal-dialog.has-media .comments-modal-post {
    background: #101114;
  }

  .comments-modal-dialog.has-media .comments-modal-gallery {
    height: auto;
    max-height: 23vh;
  }

  .comments-modal-dialog.has-media .comments-modal-gallery .comments-modal-image {
    height: 23vh;
    max-height: 23vh;
  }

  .comments-modal-dialog.has-media .comments-modal-post-copy {
    padding: 12px 14px;
  }

  .comments-modal-actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Görsel yakınlaştırma görüntüleyicisi: en sonda kalarak eski medya kurallarını ezer. */
@media (max-width: 860px) {
  .comments-modal.mobile-media-viewer-open {
    padding: 0 !important;
  }

  .comments-modal.mobile-media-viewer-open .comments-modal-dialog {
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-body {
    position: relative !important;
    display: block !important;
    height: 100% !important;
    min-height: 100dvh !important;
    background: #050507 !important;
  }

  .post-modal-dialog .post-image-preview {
    max-height: min(360px, 42vh) !important;
    overflow: hidden !important;
  }

  .post-modal-dialog .post-image-preview[data-count="1"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: min(360px, 42vh) !important;
    max-height: min(360px, 42vh) !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .post-modal-dialog .post-image-preview[data-count="1"] .preview-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .post-modal-dialog .post-image-preview[data-count="1"] img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-post {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #050507 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #050507 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image {
    position: absolute !important;
    inset: 0 !important;
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    flex: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-gallery .comments-modal-image.mobile-media-active {
    display: block !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .gallery-prev,
  .comments-modal-dialog.mobile-media-viewer-open .gallery-next,
  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-header {
    display: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .comments-modal-side {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 8 !important;
    width: 100% !important;
    height: min(78vh, 760px) !important;
    max-height: 78vh !important;
    overflow: hidden !important;
    border-radius: 18px 18px 0 0 !important;
    background: #fff !important;
    transform: translateY(100%) !important;
    transition: transform .24s ease !important;
    pointer-events: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open.mobile-comments-panel-open .comments-modal-side {
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-actions {
    position: absolute !important;
    left: auto !important;
    right: 14px !important;
    top: auto !important;
    bottom: 28px !important;
    z-index: 9 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    transform: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-action {
    width: 48px !important;
    height: 48px !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption {
    position: absolute !important;
    left: 16px !important;
    right: 82px !important;
    bottom: 16px !important;
    z-index: 7 !important;
    max-width: calc(100% - 98px) !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75) !important;
    pointer-events: none !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-post-copy {
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author {
    gap: 8px !important;
    margin: 0 0 5px !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author img {
    width: 30px !important;
    height: 30px !important;
    border-color: rgba(255, 255, 255, .9) !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author strong,
  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author-info span,
  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-author-info svg {
    color: #fff !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-caption .comments-modal-post-copy p {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .comments-modal-dialog.mobile-media-viewer-open .mobile-media-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 10 !important;
    display: grid !important;
  }
}
