/* Comment Images — Esenin theme */

/* ============================================
   Button & Loader
   ============================================ */

.esn-comment-image-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--es-color-secondary);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    position: relative;
    border: none;
}

.edit-comment-form-footer .esn-comment-image-btn svg {
    fill: none;
    stroke: var(--es-color-secondary);
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.esn-comment-image-btn svg {
    fill: var(--es-color-secondary);
    width: 16px;
    height: 16px;
}

.esn-comment-image-btn:hover {
    background: var(--es-color-highlight-background);
    color: var(--es-color-secondary);
}

.esn-comment-image-btn.is-loading {
    opacity: 0.55;
    pointer-events: none;
    color: var(--es-color-secondary);
	background: transparent !important;
}

.esn-comment-image-loader-wrapper {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.esn-comment-image-btn.is-loading .esn-comment-image-loader-wrapper {
    display: block;
}

.esn-comment-image-btn.is-loading svg:not(.esn-comment-image-loader) {
    opacity: 0;
}

/* Guest button — visible but not interactive */
body:not(.logged-in) .esn-comment-image-btn-guest {
    opacity: 0.5;
    cursor: pointer;
}

.esn-comment-image-loader {
    width: 20px;
    height: 20px;
    color: var(--es-color-secondary);
	
}

.esn-comment-image-loader circle {
    stroke-dasharray: 31.416;
    stroke-dashoffset: 31.416;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* ============================================
   Main Form
   ============================================ */

.comment-form-esn .form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0;
}

.esn-form-submit-with-image {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.esn-form-submit-with-image .form-submit-actions {
    margin-left: auto;
}

.esn-comment-images-preview {
    display: none;
    flex-wrap: wrap;
    width: 100%;
}

/* ============================================
   Edit Form
   ============================================ */

.edit-comment-form {
    margin-top: 10px;
}

.edit-comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--es-color-border);
    border-radius: var(--es-border-radius, 8px);
    background: var(--es-color-input, #fff);
    color: var(--es-color-text, #333);
    font-size: 14px;
    resize: vertical;
}

.edit-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.edit-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-comment-actions .save-comment-btn,
.edit-comment-actions .cancel-edit-btn {
    white-space: nowrap;
}

.edit-comment-form .esn-comment-image-preview {
    margin-top: 5px;
}

/* ============================================
   Preview Items
   ============================================ */

.esn-comment-image-preview {
    display: inline-flex;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: var(--es-thumbnail-border-radius);
    overflow: hidden;
    border: 1px solid var(--es-color-border);
    background: color-mix(in srgb, var(--es-color-highlight-background) 70%, transparent);
    flex-shrink: 0;
    margin-right: 5px;
}

.esn-comment-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esn-comment-image-remove {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 50%;
    background: var(--es-color-highlight-background);
    color: var(--es-color-primary);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, transform 0.15s ease;
	border: 1px solid var(--es-color-border);
	font-weight: 700;
}

.esn-comment-image-remove:hover {
    background: #f33e58;
    transform: scale(1.04);
	border: 1px solid #f33e58;
}

.esn-comment-edit-tools {
    margin-top: 0.5rem;
}

.esn-comment-edit-tools .esn-comment-image-btn {
    margin-bottom: 0.35rem;
}

/* ============================================
   Display in Comments — Main Feed
   ============================================ */

.esn-comment-image { 
  display: block; 
  width: fit-content; 
  height: auto; 
  max-width: 340px; 
  max-height: 540px; 
  border-radius: 12px; 
  overflow: hidden; 
  border: 1px solid var(--es-color-border); 
  margin: 10px 0; 
} 

.esn-comment-image img { 
  width: 100%; 
  max-height: 540px; 
  object-fit: contain; 
  display: block; 
  border-radius: var(--es-thumbnail-border-radius); 
}

/* Группа изображений (2-3 фото) */
.esn-comment-images[data-count="2"] {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 10px 0;
    max-width: 100%;
}

.esn-comment-images[data-count="2"] .esn-comment-image {
    flex: 1 1 50%;
    max-width: calc(50% - 2.5px);
    max-height: 200px;
    margin: 0;
}

.esn-comment-images[data-count="2"] .esn-comment-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.esn-comment-images[data-count="3"] {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 10px 0;
    max-width: 100%;
}

.esn-comment-images[data-count="3"] .esn-comment-image {
    flex: 1 1 33.333%;
    max-width: calc(33.333% - 3.33px);
    max-height: 200px;
    margin: 0;
}

.esn-comment-images[data-count="3"] .esn-comment-image img {
    object-fit: cover;
	height: 100%;
    width: 100%;
}

/* Группа изображений (4 фото) */
.esn-comment-images[data-count="4"] { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 5px; 
  margin: 10px 0; 
  max-width: 100%; 
} 

.esn-comment-images[data-count="4"] .esn-comment-image { 
  width: 100%; 
  max-height: 200px; 
  height: 200px; 
  margin: 0; 
} 

.esn-comment-images[data-count="4"] .esn-comment-image img { 
  object-fit: cover; 
  width: 100%;
  height: 100%; 
  max-height: 100%; 
}

/* Группа изображений (5 фото — 2 + 3) */
.esn-comment-images[data-count="5"] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
    max-width: 100%;
}

.esn-comment-images[data-count="5"] .esn-comment-image:nth-child(-n+2) {
    flex: 1 1 calc(50% - 2.5px);
    max-width: calc(50% - 2.5px);
    max-height: 200px;
    margin: 0;
}

.esn-comment-images[data-count="5"] .esn-comment-image:nth-child(n+3) {
    flex: 1 1 calc(33.333% - 3.33px);
    max-width: calc(33.333% - 3.33px);
    max-height: 180px;
    margin: 0;
}

.esn-comment-images[data-count="5"] .esn-comment-image img {
    object-fit: cover;
	height: 100%;
    width: 100%;
}

.esn-comment-image:hover {
    filter: brightness(95%);
    cursor: zoom-in;
}

/* ============================================
   Display in Comments — Widget (pcc-content)
   ============================================ */

.pcc-content .esn-comment-image { 
  display: block; 
  width: fit-content; 
  height: auto; 
  max-width: 340px; 
  max-height: 540px; 
  border-radius: 12px; 
  overflow: hidden; 
  border: 1px solid var(--es-color-border); 
  margin: 10px 0; 
} 

.pcc-content .esn-comment-image img { 
  width: 100%; 
  max-height: 540px; 
  object-fit: contain; 
  display: block; 
  border-radius: var(--es-thumbnail-border-radius); 
}

/* Группа в pcc-content (2-3 фото) */
.pcc-content .esn-comment-images[data-count="2"] {
     display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 10px 0;
    max-width: 100%;
}

.pcc-content .esn-comment-images[data-count="2"] .esn-comment-image {
    flex: 1 1 50%;
    max-width: calc(50% - 2.5px);
    max-height: 200px;
    margin: 0;
}
.pcc-content .esn-comment-images[data-count="2"] .esn-comment-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.pcc-content .esn-comment-images[data-count="3"] {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 10px 0;
    max-width: 100%;
}

.pcc-content .esn-comment-images[data-count="3"] .esn-comment-image {
    flex: 1 1 33.333%;
    max-width: calc(33.333% - 3.33px);
    max-height: 200px;
    margin: 0;
}
.pcc-content .esn-comment-images[data-count="3"] .esn-comment-image img {
    object-fit: cover;
	height: 100%;
    width: 100%;
}

/* Группа в pcc-content (4 фото) */
.pcc-content .esn-comment-images[data-count="4"] {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 5px; 
  margin: 10px 0; 
  max-width: 100%; 
}

.pcc-content .esn-comment-images[data-count="4"] .esn-comment-image {
  width: 100%; 
  max-height: 200px; 
  height: 200px; 
  margin: 0; 
}
.pcc-content .esn-comment-images[data-count="4"] .esn-comment-image img { 
  object-fit: cover; 
  width: 100%;
  height: 100%; 
  max-height: 100%; 
}

/* Группа в pcc-content (5 фото — 2 + 3) */
.pcc-content .esn-comment-images[data-count="5"] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
    max-width: 100%;
}

.pcc-content .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(-n+2) {
    flex: 1 1 calc(50% - 2.5px);
    max-width: calc(50% - 2.5px);
    max-height: 200px;
    margin: 0;
}

.pcc-content .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(n+3) {
    flex: 1 1 calc(33.333% - 3.33px);
    max-width: calc(33.333% - 3.33px);
    max-height: 180px;
    margin: 0;
}
.pcc-content .esn-comment-images[data-count="5"] .esn-comment-image img {
    object-fit: cover;
	height: 100%;
    width: 100%;
}

.pcc-content .esn-comment-image:hover {
    filter: brightness(95%);
}

/* ============================================
   Display in Comments — Widget (recent-comments)
   ============================================ */

.recent-comments .pcc-content .esn-comment-image {
  display: block; 
  width: fit-content; 
  height: auto; 
  max-width: 180px; 
  max-height: 180px; 
  border-radius: 12px; 
  overflow: hidden; 
  border: 1px solid var(--es-color-border); 
  margin: 5px 0; 
}
.recent-comments .pcc-content .esn-comment-image img{
  width: 100%; 
  max-height: 180px;
  object-fit: contain; 
  display: block; 
  border-radius: var(--es-thumbnail-border-radius); 
}

/* Группа в recent-comments (2-3 фото) */
.recent-comments .pcc-content .esn-comment-images[data-count="2"] {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    vertical-align: bottom;
	margin: 5px 0; 
}

.recent-comments .pcc-content .esn-comment-images[data-count="2"] .esn-comment-image {
    width: 100%; 
    max-height: 140px;
	max-width: none;
    margin: 0;
}
.recent-comments .pcc-content .esn-comment-images[data-count="2"] .esn-comment-image img {
  object-fit: cover; 
  width: 100%;
  height: 100%; 
  max-height: 100%; 
}


.recent-comments .pcc-content .esn-comment-images[data-count="3"] {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    vertical-align: bottom;
	margin: 5px 0; 
}

.recent-comments .pcc-content .esn-comment-images[data-count="3"] .esn-comment-image {
    width: 100%; 
    max-height: 80px;
    max-width: none;
    margin: 0;
}
.recent-comments .pcc-content .esn-comment-images[data-count="3"] .esn-comment-image img {
  object-fit: cover; 
  width: 100%;
  height: 100%; 
  max-height: 100%; 
}

/* Группа в recent-comments (4 фото) */
.recent-comments .pcc-content .esn-comment-images[data-count="4"] {
    display: grid;
    grid-template-columns: repeat(2, 80px);
    gap: 3px;
    vertical-align: top;
	margin: 5px 0; 
}

.recent-comments .pcc-content .esn-comment-images[data-count="4"] .esn-comment-image {
    width: 100%; 
    max-height: 80px;
    margin: 0;
}
.recent-comments .pcc-content .esn-comment-images[data-count="4"] .esn-comment-image img {
  object-fit: cover; 
  width: 100%;
  height: 100%; 
  max-height: 100%; 
}

/* Группа в recent-comments (5 фото — 2 + 3) */
.recent-comments .pcc-content .esn-comment-images[data-count="5"] {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    vertical-align: top;
	margin: 5px 0; 
}

.recent-comments .pcc-content .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(-n+2) {
    width: 80px;
    height: 80px;
    margin: 0;
}

.recent-comments .pcc-content .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(n+3) {
    width: 60px;
    height: 60px;
    margin: 0;
}
.recent-comments .pcc-content .esn-comment-images[data-count="5"] .esn-comment-image img {
  object-fit: cover; 
  width: 100%;
  height: 100%; 
  max-height: 100%; 
}

.recent-comments .pcc-content .esn-comment-image:hover {
    filter: brightness(95%);
}

/* ============================================
   Display in Comments — PC Footer (in post card)
   ============================================ */

.post-card .pc-footer-comments-block .pc-footer-comment-content .esn-comment-image {
    width: 20px;
    height: 20px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
    border-radius: 6px;
    flex-shrink: 0;
    border: none;
}

.post-card .pc-footer-comments-block .pc-footer-comment-content .esn-comment-images {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
    vertical-align: middle;
    white-space: nowrap;
    margin: 0;
	border-radius: 6px;
}

.post-card .pc-footer-comments-block .pc-footer-comment-content .esn-comment-images .esn-comment-image {
    width: 20px;
    height: 20px;
    margin: 0;
	
}
.post-card .pc-footer-comments-block .pc-footer-comment-content .esn-comment-image img,
.post-card .pc-footer-comments-block .pc-footer-comment-content .esn-comment-images .esn-comment-image img {
	border-radius: 6px;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.post-card .pc-footer-comments-block .pc-footer-comment-content .esn-comment-image:hover {
    filter: brightness(96%);
}

/* ============================================
   Admin (wp-admin)
   ============================================ */

/* Одиночное изображение в админке */
body.wp-admin .esn-comment-image,
body.admin-bar .esn-comment-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 170px !important;
    max-height: 270px !important;
    margin: 5px 0 !important;
    clear: both !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #ddd !important;
	cursor: default !important;
}

body.wp-admin .esn-comment-image img,
body.admin-bar .esn-comment-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Группа в админке (2 фото — одна строка) */
body.wp-admin .esn-comment-images[data-count="2"],
body.admin-bar .esn-comment-images[data-count="2"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    margin: 5px 0 !important;
    max-width: 100% !important;
}

body.wp-admin .esn-comment-images[data-count="2"] .esn-comment-image,
body.admin-bar .esn-comment-images[data-count="2"] .esn-comment-image {
    flex: 1 1 50% !important;
    width: calc(50% - 2.5px) !important;
    max-height: 120px !important;
    margin: 0 !important;
}

body.wp-admin .esn-comment-images[data-count="2"] .esn-comment-image img,
body.admin-bar .esn-comment-images[data-count="2"] .esn-comment-image img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Группа в админке (3 фото — одна строка) */
body.wp-admin .esn-comment-images[data-count="3"],
body.admin-bar .esn-comment-images[data-count="3"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    margin: 5px 0 !important;
    max-width: 100% !important;
}

body.wp-admin .esn-comment-images[data-count="3"] .esn-comment-image,
body.admin-bar .esn-comment-images[data-count="3"] .esn-comment-image {
    flex: 1 1 33.333% !important;
    width: calc(33.333% - 3.33px) !important;
    max-height: 120px !important;
    margin: 0 !important;
}

body.wp-admin .esn-comment-images[data-count="3"] .esn-comment-image img,
body.admin-bar .esn-comment-images[data-count="3"] .esn-comment-image img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Группа в админке (4 фото — 2 строки по 2) */
body.wp-admin .esn-comment-images[data-count="4"],
body.admin-bar .esn-comment-images[data-count="4"] {
    display: inline-grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    margin: 5px 0 !important;
    max-width: 100% !important;
}

body.wp-admin .esn-comment-images[data-count="4"] .esn-comment-image,
body.admin-bar .esn-comment-images[data-count="4"] .esn-comment-image {
    max-height: 120px !important;
    margin: 0 !important;
}

body.wp-admin .esn-comment-images[data-count="4"] .esn-comment-image img,
body.admin-bar .esn-comment-images[data-count="4"] .esn-comment-image img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Группа в админке (5 фото — 2 строки: 2 + 3) */
body.wp-admin .esn-comment-images[data-count="5"],
body.admin-bar .esn-comment-images[data-count="5"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin: 5px 0 !important;
    max-width: 100% !important;
}

body.wp-admin .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(-n+2),
body.admin-bar .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(-n+2) {
    flex: 1 1 calc(50% - 2.5px) !important;
    width: calc(50% - 2.5px) !important;
    max-height: 130px !important;
    margin: 0 !important;
}

body.wp-admin .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(n+3),
body.admin-bar .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(n+3) {
    flex: 1 1 calc(33.333% - 3.33px) !important;
    max-width: calc(33.333% - 3.33px) !important;
    max-height: 130px !important;
    margin: 0 !important;
}

body.wp-admin .esn-comment-images[data-count="5"] .esn-comment-image img,
body.admin-bar .esn-comment-images[data-count="5"] .esn-comment-image img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}


/* ============================================
   Notifications
   ============================================ */

#esn-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    pointer-events: none;
}

.esn-notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--es-layout-elements-border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    line-height: 1.4;
    pointer-events: auto;
    animation: esn-slide-in 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.esn-notification-error {
    background: #f33e58;
    color: #fff;
}

.esn-notification-success {
    background: #00ad64;
    color: #fff;
}

.esn-notification-icon {
	display: none;
}

.esn-notification-text {
    flex: 1;
}

.esn-notification-close {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: 0.7;
    flex-shrink: 0;
    padding: 0 2px;
    transition: opacity 0.15s ease;
}

.esn-notification-close:hover {
    opacity: 1;
}

@keyframes esn-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Mini Thumbnails in Admin Dashboard Widget
   ============================================ */

body.wp-admin #dashboard_activity .esn-comment-image-mini,
body.admin-bar #dashboard_activity .esn-comment-image-mini {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 2px !important;
    vertical-align: middle !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: none !important;
}

body.wp-admin #dashboard_activity .esn-comment-image-mini img,
body.admin-bar #dashboard_activity .esn-comment-image-mini img {
    width: 20px !important;
    height: 20px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 4px !important;
}

body.wp-admin #dashboard_activity .esn-comment-images[data-count],
body.admin-bar #dashboard_activity .esn-comment-images[data-count] {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

body.wp-admin #dashboard_activity .esn-comment-image,
body.admin-bar #dashboard_activity .esn-comment-image {
    cursor: default !important;
    filter: none !important;
}

/* ============================================
   Mini Thumbnails in Notifications
   ============================================ */

.esn-notification-message .esn-comment-image-mini,
.esn-notification-message .esn-comment-image-mini img {
    display: inline-block !important;
    width: 20px !important;
    height: 18px !important;
    margin: 0 1px !important;
    vertical-align: middle !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: none !important;
}

.esn-notification-message .esn-comment-image-mini img {
    width: 20px !important;
    height: 18px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 4px !important;
}

.esn-notification-message .esn-comment-images[data-count] {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.esn-notification-message .esn-comment-image {
    cursor: pointer !important;
    filter: none !important;
}

.esn-notification-message .esn-comment-image img,
.esn-notification-message .esn-comment-images .esn-comment-image img {
    width: 20px !important;
    height: 18px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

/* ============================================
   Mobile Adaptation
   ============================================ */

@media (max-width: 768px) {
    #esn-notifications {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .esn-notification {
        font-size: 13px;
        padding: 10px 14px;
    }

    .edit-comment-form-footer {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .edit-comment-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .edit-comment-actions .save-comment-btn,
    .edit-comment-actions .cancel-edit-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .esn-comment-image-btn {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .edit-comment-images-preview {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .esn-comment-image-preview {
        width: 40px;
        height: 40px;
    }

    .esn-form-submit-with-image {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .esn-form-submit-with-image .esn-comment-image-btn {
        width: 28px;
        height: 28px;
    }

    .esn-comment-image-btn.is-loading,
    .esn-comment-image-loader-wrapper {
        background: transparent;
    }

    .esn-form-submit-with-image .form-submit-actions {
        display: flex;
        align-items: center;
    }

    .pcc-content .esn-comment-image,
    .esn-comment-image {
        max-width: 100%;
        max-height: 300px;
    }

    .pcc-content .esn-comment-images[data-count="2"] .esn-comment-image,
    .pcc-content .esn-comment-images[data-count="3"] .esn-comment-image,
    .esn-comment-images[data-count="2"] .esn-comment-image,
    .esn-comment-images[data-count="3"] .esn-comment-image {
        max-height: 120px;
    }

    .pcc-content .esn-comment-images[data-count="4"] .esn-comment-image,
    .pcc-content .esn-comment-images[data-count="5"] .esn-comment-image,
    .esn-comment-images[data-count="4"] .esn-comment-image,
    .esn-comment-images[data-count="5"] .esn-comment-image {
        max-height: 100px;
    }

	.pcc-content .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(-n+2),
    .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(-n+2) {
        max-height: 120px;
    }
 
    .pcc-content .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(n+3),
    .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(n+3) {
        max-height: 100px;
    }

    .recent-comments .esn-comment-image {
        max-width: 100%;
        max-height: 150px;
    }

    .recent-comments .esn-comment-images[data-count="2"] .esn-comment-image,
    .recent-comments .esn-comment-images[data-count="3"] .esn-comment-image {
        max-height: 80px;
    }

    .recent-comments .esn-comment-images[data-count="4"] .esn-comment-image,
    .recent-comments .esn-comment-images[data-count="5"] .esn-comment-image {
        max-height: 80px;
    }

    .recent-comments .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(-n+2) {
        max-height: 100px;
    }

    .recent-comments .esn-comment-images[data-count="5"] .esn-comment-image:nth-child(n+3) {
        max-height: 80px;
    }
}
