/* =========================
   CAMERA SWITCHER
========================= */

.portal-camera-switcher {
    margin-top: 20px;
}

.portal-camera-switcher__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.portal-camera-switcher__tab {
    appearance: none;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.portal-camera-switcher__tab:hover {
    border-color: #bfbfbf;
}

.portal-camera-switcher__tab.is-active {
    background: #0E8766;
    color: #fff;
    border-color: #0E8766;
}

.portal-camera-switcher__viewer {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.portal-camera__embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.portal-camera__embed iframe,
.portal-camera__embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.portal-camera__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.portal-camera-switcher .state {
    padding: 20px;
    border-radius: 10px;
    background: #f5f5f5;
    text-align: center;
    color: #666;
}

.portal-camera-switcher .state p {
    margin: 0 0 10px;
}

.portal-camera-switcher .button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    background: #0E8766;
    color: #fff;
    text-decoration: none;
}

.portal-camera-switcher .button:hover {
    background: #166528;
}

/* =========================
   CAMARAS OBRA
========================= */

.portal-camera {
    margin-top: 20px;
}

.portal-camera__embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.portal-camera__embed iframe,
.portal-camera__embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.portal-camera__image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* =========================
   FALLBACK / STATE
========================= */

.portal-camera .state {
    padding: 20px;
    border-radius: 10px;
    background: #f5f5f5;
    text-align: center;
    color: #666;
}

.portal-camera .state p {
    margin: 0 0 10px;
}

/* =========================
   BOTÃO (se usares external_link)
========================= */

.portal-camera .button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    background: #0E8766;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.portal-camera .button:hover {
    background: #166528;
}