* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: black;
    font-family: sans-serif;
    color: white;
}

.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: 20vw;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: calc((100vw - 20vw - (1180px + 4vw)) / 2);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    max-height: 868px;
    width: 100%;
    padding: 0 10px;
}

.logo-box {
    margin-bottom: 20px;
}

.logo-box img {
    width: 130px;
    height: auto;
    display: block;
}

.thumbnails {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 100%;
    scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnails img {
    width: 100%;
    height: auto;
    margin-bottom: 1vh;
    object-fit: cover;
    cursor: pointer;
}

.main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #000;
}

.main-image-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2vw;
    position: relative;
}

.main-image-wrapper img {
    max-width: 1136px;
    max-height: 748px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 4px solid #111;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: black;
}

.device-overlay {
    position: absolute;
    top: 25px;
    right: 50%;
    transform: translateX(568px);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.popup .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
}

.message {
    padding: 2em;
    font-size: 2em;
    text-align: center;
}

.message img {
    width: 130px;
    display: block;
    margin: 0 auto 30px auto;
}