/* blog-image-controls.css - Clair Pro Theme */

/* Styles for the blog post image itself */
.blog-post-image {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 12px;
    border: 1px solid #E2E8E3;
    box-shadow: 0 4px 12px rgba(20, 83, 45, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-post-image:hover {
    box-shadow: 0 6px 18px rgba(20, 83, 45, 0.15);
    transform: translateY(-2px);
}

/* Styles for the image container */
.image-container {
    margin-bottom: 1rem;
    text-align: center;
}

.image-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.toggle-image-btn {
    background-color: #14532D;
    color: #EAF5EC;
    border: 1px solid #14532D;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.toggle-image-btn:hover {
    background-color: #0F3F22;
    border-color: #0F3F22;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(20, 83, 45, 0.2);
    transform: translateY(-1px);
}

.toggle-image-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.toggle-image-btn i {
    font-size: 14px;
}

/* Modal styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 36, 28, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    top: 50%;
    transform: translateY(-50%);
}

.image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #E2E8E3;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #FFFFFF;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.image-modal-close:hover {
    color: #7DDF9A;
}