body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: #f0f0f0;
    margin: 0;
}

.container {
    width: 1050px;
    margin: 20px auto 40px;
    position: relative;
}

#mainImage {
    width: 1050px;
    height: 632px;
    display: block;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    object-fit: fill;
    cursor: default;
    user-select: none;
}

#imageBarContainer {
    position: relative;
    width: 1050px;
    margin: 0 auto;
}

#imageBar {
    width: 1050px;
    height: 80px;
    margin: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    background: #fff;
    position: relative;
    overflow: hidden;
    user-select: none;
    cursor: grab;
}

#imageBar:active {
    cursor: grabbing;
}

#imageBar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    height: 100%;
    transition: transform 0.35s ease-out;
}

#imageBar li {
    display: inline-block;
    width: 21px;
    height: 80px;
    margin: 0;
    padding: 0;
}

#imageBar img {
    width: 21px;
    height: 80px;
    object-fit: fill;
    cursor: pointer;
    transition: opacity 0.3s;
}

#imageBar img:hover {
    opacity: 0.35;
}

.imagebar-label {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    color: #39e6a1;
    font-size: 58px;
    font-weight: bold;
    letter-spacing: 58px;
    -webkit-text-stroke: 2px black;
    text-stroke: 2px black;
    text-shadow: 6px 6px 6px rgba(0,0,0,1);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 5;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 80px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 32px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-arrow:hover:not(:disabled) {
    opacity: 1;
    background: rgba(0,0,0,0.75);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow.left  { left: -54px; }
.nav-arrow.right { right: -54px; }

#sliderContainer {
    width: 1050px;
    height: 40px;
    margin: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rangeSlider {
    width: 1030px;
    height: 30px;
    z-index: 2;
}

.slider-bg-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: #00ced1;
    opacity: 0.9;
    text-shadow: 1px 1px 1px rgba(0,0,0,1);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
    pointer-events: none;
    user-select: none;
    z-index: 5;
}

.slider-bg-left   { left: 250px; }
.slider-bg-center { left: 450px; }
.slider-bg-right  { right: 250px; }

#instructionsWrapper {
    width: 1050px;
    margin: 30px auto 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

#instructionsToggle {
    width: 100%;
    padding: 12px 20px;
    background: #f8f8f8;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    border: none;
}

#instructionsToggle:hover { background: #eee; }

#instructionsContent {
    padding: 0 30px;
    text-align: left;
    color: #444;
    font-size: 1.1em;
    line-height: 1.7em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

#instructionsContent.open {
    max-height: 700px;
    padding: 25px 30px 30px;
}

#lens {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0,0,0,0.9);
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 4200px 2528px;
    display: none;
    z-index: 99;
    transform: translate(-50%, -50%);
}

.loupe-active #mainImage {
    cursor: none !important;
}

@media (max-width: 1200px) {
    .nav-arrow { display: none; }
}