/* a) Remove rounded corners.
   The radius comes from the WordPress theme styling the wrapper/canvas,
   not from pannellum.css, so override it forcefully. */
.pannellum-viewer-container,
.pannellum-viewer-container .pnlm-container,
.pannellum-viewer-container .pnlm-render-container,
.pannellum-viewer-container canvas {
    border-radius: 0 !important;
}

/* b) Reliable full-page width.
   max-width:100% only fills the theme's content column. A pure-CSS 100vw
   breakout misbehaves with centered/padded theme containers and counts the
   scrollbar width, so the exact sizing is done in fullwidth.js. This rule
   just removes the column constraint and provides a sane no-JS fallback. */
.pannellum-viewer-container.pannellum-full-width {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Style the hotspot container */
.persistent-hotspot {
    position: relative;
    cursor: pointer;
}

/* Target the tooltip (Pannellum adds it as a sibling div) */
.persistent-hotspot + div.pnlm-tooltip {
    display: block !important; /* Always visible, not just on hover */
    position: absolute;
    background: rgba(0, 0, 0, 0.7); /* Dark background for readability */
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    white-space: nowrap;
    transform: translate(-50%, -100%); /* Position above hotspot */
    top: -10px; /* Adjust distance from hotspot */
    left: 50%;
    pointer-events: none; /* Allows clicking through the text */
}

/* Optional: Hide the default hover behavior if still present */
.persistent-hotspot:hover + div.pnlm-tooltip {
    display: block !important; /* Ensure it stays visible */
}
