.ih-container {
    width: 100%;
    max-width: 100%;
}

.ih-image-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.ih-image {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Hotspot wrapper */
.ih-hotspot {
    position: absolute;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    line-height: normal;
}

.ih-hotspot:focus {
    outline: none;
}

.ih-hotspot:focus .ih-hotspot-circle {
    box-shadow: 0 0 0 3px rgba(252, 183, 22, 0.4);
}

/* Outer circle: 28x28, #FCB716 */
.ih-hotspot-circle {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FCB716;
    transition: transform 0.15s ease;
}

.ih-hotspot:hover .ih-hotspot-circle,
.ih-hotspot.is-active .ih-hotspot-circle {
    transform: scale(1.1);
}

/* Inner circle: 10x10, #1D1D1B, centered */
.ih-hotspot-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1D1D1B;
    transform: translate(-50%, -50%);
}

/* Hotspot content shown ABOVE the circle */
.ih-hotspot-content {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(29, 29, 27, 0.8);
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 6px;
    width: max-content;
    max-width: min(200px, 80vw);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 10;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
    cursor: default;
}

/* Tooltip arrow pointing down to circle */
.ih-hotspot-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(29, 29, 27, 0.8);
    border-bottom: 0;
}

/* Show on hover, focus, or when activated by tap */
.ih-hotspot:hover .ih-hotspot-content,
.ih-hotspot:focus .ih-hotspot-content,
.ih-hotspot.is-active .ih-hotspot-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Content typography reset */
.ih-hotspot-content p {
    margin: 0 0 8px;
    color: #ffffff;
}
.ih-hotspot-content p:last-child {
    margin-bottom: 0;
}
.ih-hotspot-content a {
    color: #FCB716;
    text-decoration: underline;
}
.ih-hotspot-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 6px 0;
    border-radius: 4px;
}
.ih-hotspot-content ul,
.ih-hotspot-content ol {
    margin: 0 0 8px;
    padding-left: 18px;
    color: #ffffff;
}
.ih-hotspot-content h1,
.ih-hotspot-content h2,
.ih-hotspot-content h3,
.ih-hotspot-content h4,
.ih-hotspot-content h5,
.ih-hotspot-content h6 {
    color: #ffffff;
    margin: 0 0 6px;
}

/* Edge handling: hotspots near left/right edges */
.ih-hotspot.ih-edge-left .ih-hotspot-content {
    left: 0;
    transform: translateX(0) translateY(8px);
}
.ih-hotspot.ih-edge-left:hover .ih-hotspot-content,
.ih-hotspot.ih-edge-left:focus .ih-hotspot-content,
.ih-hotspot.ih-edge-left.is-active .ih-hotspot-content {
    transform: translateX(0) translateY(0);
}
.ih-hotspot.ih-edge-left .ih-hotspot-content::after {
    left: 14px;
    transform: translateX(0);
}

.ih-hotspot.ih-edge-right .ih-hotspot-content {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(8px);
}
.ih-hotspot.ih-edge-right:hover .ih-hotspot-content,
.ih-hotspot.ih-edge-right:focus .ih-hotspot-content,
.ih-hotspot.ih-edge-right.is-active .ih-hotspot-content {
    transform: translateX(0) translateY(0);
}
.ih-hotspot.ih-edge-right .ih-hotspot-content::after {
    left: auto;
    right: 14px;
    transform: translateX(0);
}
