.detail-content, .img-cover {
    isolation: isolate !important
}

figure.image, .img-cover {
    position:relative
}

.enlarge-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    border: 0px;
    z-index:1000;
    display: inline-flex;
    gap: 5px;
}

.zoom-in-icon {
    width: 14px;
    height: 14px;
    color: #fff; /* White icon to match text */
}

.img-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 4px solid #ddd;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }

.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    transition: transform 0.3s ease;
    position: absolute;
}

.close-btn {
    position: absolute;
    top: 40px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index:9999;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 22px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}