.room {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 1920px;
    height: 1080px;

    transform-origin: center center;
    transform:
        translate(-50%, -50%)
        scale(min(
            calc(100vw / 1920px),
            calc(100vh / 1080px)
        ));
}

.room-background {
    position: absolute;

    left: 0;
    top: 0;

    width: 1920px;
    height: 1080px;

    object-fit: contain;
    display: block;
}

.room-label {
    position: absolute;
    z-index: 2;

    top: 40px;
    left: 40px;

    padding: 10px 14px;

    background: rgba(255, 255, 255, 0.9);
    border: 2px solid black;
}

.room-label strong,
.room-label span {
    display: block;
}

.room-label span {
    margin-top: 4px;
}

.room-back {
    position: absolute;
    z-index: 4;

    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);

    padding: 10px 16px;

    background: rgba(255, 255, 255, 0.9);
    border: 2px solid black;

    color: black;
    font-family: monospace;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.room-back:hover {
    background: yellow;
}

/* =========================
       SVG HOTSPOT DEBUG
   ========================= */

.room-hotspots.debug polygon {
    opacity: 1;
}

.room-hotspots:not(.debug) polygon {
    fill: transparent !important;
    stroke: transparent !important;
}

/* =========================
         MINI MAP 
   ========================= */

.minimap-open {
    position: absolute;
    z-index: 20;

    left: calc(50% + 82px);
    bottom: 40px;

    padding: 10px 16px;

    background: rgba(255, 255, 255, 0.9);
    border: 2px solid black;

    color: black;
    font-family: monospace;
    font-size: 16px;
    cursor: pointer;
}

.minimap-open:hover {
    background: yellow;
}

.minimap-overlay {
    position: fixed;
    z-index: 1000;

    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;
}

.minimap-content {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 760px;
    height: 600px;
    max-width: 80vw;
    max-height: 80vh;

    padding: 48px 28px 28px;

    background: #c0c0c0;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #404040;
    border-bottom: 3px solid #404040;

    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.minimap-content::before {
    content: "Dom's Museum — Map";

    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;

    height: 28px;
    padding: 4px 8px;

    box-sizing: border-box;

    background: #000080;
    color: white;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
}

#minimap-image {
    display: block;

    width: auto;
    height: auto;
    max-width: 700px;
    max-height: 480px;

    object-fit: contain;

    background: white;
    border: 3px solid #808080;
    box-shadow: inset 1px 1px 0 #404040;
}

.minimap-close {
    position: absolute;
    z-index: 1002;

    top: 12px;
    right: 16px;

    width: 24px;
    height: 24px;

    padding: 0;

    box-sizing: border-box;

    background: #c0c0c0;
    color: black;

    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 18px;
    cursor: pointer;
}

.minimap-close:hover {
    background: #d8d8d8;
}


/* =========================
         PHOTO VIEWER
   ========================= */

.album-overlay {
    position: fixed;
    z-index: 1000;

    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;
}

.album-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 760px;
    height: 800px;
    max-width: 80vw;
    max-height: 85vh;

    padding: 48px 28px 28px;

    background: #c0c0c0;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #404040;
    border-bottom: 3px solid #404040;

    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.album-content::before {
    content: "Dom's Museum — Photo Viewer";

    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;

    height: 28px;
    padding: 4px 8px;

    box-sizing: border-box;

    background: #000080;
    color: white;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
}

#album-photo {
    display: block;

    width: auto;
    height: auto;
    max-width: 700px;
    max-height: 65vh;

    object-fit: contain;

    background: white;
    border: 3px solid #808080;
    box-shadow: inset 1px 1px 0 #404040;
}

.photo-number {
    margin-top: 12px;

    color: black;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.album-close,
.album-arrow {
    position: absolute;
    z-index: 1002;

    box-sizing: border-box;

    background: #c0c0c0;
    color: black;

    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
}

.album-close {
    top: 12px;
    right: 16px;

    width: 24px;
    height: 24px;

    padding: 0;

    font-size: 16px;
    line-height: 18px;
}

.album-arrow {
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 60px;

    font-size: 22px;
}

.album-close:hover,
.album-arrow:hover {
    background: #d8d8d8;
}

.album-close:active,
.album-arrow:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.album-previous {
    position: absolute;
    z-index: 1002;
    left: calc(50% - 70px);
    top: calc(50% + 315px);
    transform: none;
}

.album-next {
    position: absolute;
    z-index: 1002;
    left: calc(50% + 28px);
    top: calc(50% + 315px);
    transform: none;
}
