/* Image Popup Styles - Old School Theme */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(3px);
}

.image-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border: 2px solid #5a2800;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    max-width: 95vw;
    max-height: 95vh;
    display: none;
}

.image-popup-header {
    background: linear-gradient(135deg, #5a2800 0%, #8b4513 50%, #5a2800 100%);
    padding: 10px 15px;
    border-bottom: 2px solid #3d1c00;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.image-popup-title {
    color: #ffa800;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    margin: 0;
    text-align: center;
}

.image-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #8b0000;
    color: #fff;
    border: 1px solid #5a0000;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    line-height: 18px;
    transition: all 0.2s ease;
}

.image-popup-close:hover {
    background: #b22222;
    border-color: #8b0000;
    transform: scale(1.1);
}

.image-popup-content {
    padding: 20px;
    background: #1a1a1a;
    border-radius: 0 0 6px 6px;
    text-align: center;
}

.image-popup-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.image-popup-description {
    margin-top: 15px;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #d3d3d3;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-popup-container {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .image-popup-title {
        font-size: 12px;
    }
    
    .image-popup-content {
        padding: 15px;
    }
    
    .image-popup-image {
        max-height: 60vh;
    }
}

/* Animation for popup appearance */
.image-popup-overlay.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.image-popup-container.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Button styling for image links */
.image-link {
    display: inline-block;
    background: linear-gradient(135deg, #5a2800 0%, #8b4513 50%, #5a2800 100%);
    color: #ffa800;
    padding: 6px 12px;
    border: 1px solid #3d1c00;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
    transition: all 0.2s ease;
    cursor: pointer;
}

.image-link:hover {
    background: linear-gradient(135deg, #8b4513 0%, #cd853f 50%, #8b4513 100%);
    color: #ffd700;
    border-color: #5a2800;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}