.allach-album-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 15px 0;
}

.allach-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.allach-gallery-card {
    background: #fff;
    border: 1px solid #c5cbd0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.allach-img-wrap {
    position: relative;
}

.allach-album-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 2;
}

.allach-gallery-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.allach-gallery-card img:hover {
    opacity: 0.9;
}

.allach-gallery-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.allach-gallery-info h4 {
    margin: 0 0 6px 0;
    font-size: 1.15em;
    color: #222;
}

.allach-gallery-info .desc {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    color: #444;
}

.allach-gallery-info .meta {
    margin: 0 0 8px 0;
    font-size: 0.85em;
    color: #666;
}

.allach-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.allach-delete-btn {
    color: #bc2a4d !important;
    font-weight: bold;
    font-size: 0.9em;
}

.allach-comments-box {
    margin-top: auto;
    border-top: 1px solid #e2e6ea;
    padding-top: 8px;
    font-size: 0.9em;
}

.allach-comments-header {
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
}

.allach-comment-item {
    background: #f6f8fa;
    padding: 5px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    color: #333;
    position: relative;
    padding-right: 20px;
}

.allach-del-comment {
    position: absolute;
    right: 6px;
    top: 3px;
    color: #bc2a4d !important;
    font-weight: bold;
    text-decoration: none;
}

.allach-comment-form {
    display: flex;
    gap: 5px;
    margin-top: 6px;
}

.allach-comment-form input[type="text"] {
    flex-grow: 1;
    min-width: 0;
}

.allach-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.allach-lightbox img {
    max-width: 92%;
    max-height: 82vh;
    border-radius: 4px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.allach-lightbox-close {
    position: absolute;
    top: 18px;
    right: 28px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

#allach-lightbox-caption {
    color: #f1f1f1;
    margin-top: 12px;
    font-size: 1.1em;
    text-align: center;
}

.allach-comments-box {
    display: block !important;
    visibility: visible !important;
    background: #f0f2f5 !important;
    color: #222 !important;
    padding: 8px !important;
    margin-top: 10px !important;
    border-radius: 4px !important;
}
.allach-comment-form input[type="text"] {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #888 !important;
    padding: 4px 6px !important;
}

.allach-comments-box,
.allach-comment-form {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}
.allach-comments-box {
    flex-direction: column !important;
}