.zoom-wrapper {
    cursor: zoom-in;
}

.zoom-wrapper .zoom-icon {
    z-index: 5;
    background: rgba(255, 255, 255, 0.8);
    transition: 0.2s;
}

.zoom-wrapper:hover .zoom-icon {
    background: rgba(255, 255, 255, 1);
}

#imageModal .modal-content {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#imageModal img {
    max-width: 95vw;
    max-height: 95vh;
    max-height: none;
    max-width: none;
    transform: scale(1.25);
    /* Phóng to gấp 2 lần */
    transform-origin: center center;
    transition: transform 0.25s ease;
    cursor: grab;
}

.zoom-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 1060;
    /* Trên modal Bootstrap (z-index ~1055) */
}

.zoom-controls button {
    background: rgba(0, 0, 0, 0.5);
    /* mờ */
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.zoom-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 0.5rem;
    padding: 0 1rem;
}

.post-nav-button {
    flex: 1;
    padding: 0.6em 0.5em;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.post-nav-button:hover {
    background-color: #f8f8f8;
    border-color: #999;
    color: #000;
}

/* Responsive tốt hơn trên thiết bị nhỏ */
@media (max-width: 600px) {
    .post-nav-button {
        font-size: 0.9rem;
        padding: 0.5em 0.4em;
    }
}

@media (max-width: 400px) {
    .post-nav {
        flex-direction: column;
    }

    .post-nav-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}