/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.5;
    color: #5a5a5a;
    background: #fff;
}

/* Page Layout */
.page {
    overflow: hidden;
    padding: 20px 0;
}

/* Artwork Container */
.artwork-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 30px;
}

/* Artwork Frame & Hooks */
.framed-artwork {
    position: relative;
    margin: 0 auto;
    width: 90%;
    max-width: 740px;
}

/* The hook element that "hangs" the frame */
.hook {
    width: 4px;
    height: 4px;
    background-color: #666;
    margin: 0 auto 40px;
    border-radius: 50%;
    box-shadow: 0 1px 0 1px #000;
    position: relative;
    z-index: 2;
}

/* The decorative wire/string - diamond shape */
.hook:before {
    content: '';
    width: 220px;
    height: 220px;
    border: 2px solid #666;
    position: absolute;
    left: 50%;
    top: 48px;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

/* Frame itself */
.frame {
    border-top: 20px solid #333;
    border-right: 20px solid #000;
    border-bottom: 20px solid #000;
    border-left: 20px solid #333;
    box-shadow: 10px 10px 0 0 rgba(68, 68, 68, 0.6);
    transform: rotate(5deg);
    z-index: 3;
    position: relative;
}

/* Inside of the frame */
.inside {
    background: linear-gradient(149deg, #d3d4d5 0%, #d3d4d5 50%, #cccccc 51%, #cccccc 100%);
    border: 10px solid #fff;
    box-shadow: 1px 1px 1px 1px rgba(189, 193, 194, 0.3) inset;
    overflow: hidden;
}

/* Image styling */
img {
    width: 100%;
    height: auto;
    display: block;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#preloader:after {
    content: "";
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 800px) {
    .hook:before {
        width: 180px;
        height: 180px;
        top: 36px
    }
    
    .frame {
        border-width: 16px;
        box-shadow: 8px 8px 0 0 rgba(68, 68, 68, 0.6);
    }
}

@media (max-width: 580px) {
    .hook:before {
        width: 160px;
        height: 160px;
    }
    
    .frame {
        border-width: 12px;
        box-shadow: 6px 6px 0 0 rgba(68, 68, 68, 0.6);
    }
    
    .inside {
        border-width: 8px;
    }
}