    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        overflow-y: auto; 
    }

    .card-ramais {
        width: 100%;
        margin-left: 10px;
        margin-right: 10px;
    }

    @media (min-width: 576px) {
        .card-ramais {
            width: 450px;
        }
    }

/*
    .fb-container {
        border: 1px solid #ddd;
        width: 100%;
        height: 500px;
        overflow: hidden;
    }
*/
    .photo-gallery {
        background-color: #f8f9fa;
        padding: 40px 0;
    }

    .photo-container {
        max-width: 800px;
        margin: 0 auto;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .photo-frame {
        position: relative;
        background-color: #000;
        border-radius: 4px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 600px;
        max-height: 600px;
        background: #f0f0f0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .photo-frame img {
        max-width: 100%;
        max-height: 70vh;
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        transition: all 0.6s ease;
    }

    .photo-frame.expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.95);
        border-radius: 0;
        cursor: pointer;
        min-height: 100vh;
    }

    .photo-frame.expanded img {
        max-width: 90vw;
        max-height: 90vh;
        cursor: pointer;
    }

    .photo-frame.expanded .zoom-hint {
        display: none;
    }

    .close-expanded {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10000;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 20px;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .close-expanded:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .close-expanded.show {
        display: flex;
    }

    .expanded-controls {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10000;
        display: none;
        gap: 15px;
        background: rgba(0, 0, 0, 0.7);
        padding: 10px 20px;
        border-radius: 40px;
        backdrop-filter: blur(10px);
    }

    .expanded-controls.show {
        display: flex;
    }

    .expanded-controls button {
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .expanded-controls button:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    .expanded-counter {
        color: white;
        padding: 0 15px;
        font-size: 14px;
        display: flex;
        align-items: center;
    }

    .photo-controls {
        /*margin-top: 20px; 
                        gap: 15px;
                        */
        display: flex;
        justify-content: center;

        flex-wrap: wrap;
    }

    .photo-counter {
        text-align: center;
        margin-top: 15px;
        font-size: 14px;
        color: #6c757d;
    }

    .photo-thumbnails {
        margin-top: 20px;
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 4px;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .thumbnail:hover {
        transform: scale(1.05);
        border-color: #007bff;
    }

    .thumbnail.active {
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }

    .zoom-hint {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .photo-frame:hover .zoom-hint {
        opacity: 1;
    }

    @media (max-width: 768px) {
        .photo-frame {
            height: 380px;
            max-height: 380px;
        }

        .photo-controls button {
            min-width: 80px;
            padding: 8px 16px;
            font-size: 14px;
        }

        .thumbnail {
            width: 50px;
            height: 50px;
        }

        .expanded-controls button {
            font-size: 16px;
            padding: 6px 10px;
        }
    }

    .loading {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10001;
        background: rgba(0, 0, 0, 0.8);
        padding: 20px;
        border-radius: 10px;
        color: white;
        display: none;
        text-align: center;
    }

    .loading.show {
        display: block;
    }

    .loading i {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .progress-text {
        margin-top: 10px;
        font-size: 12px;
    }

    body.expanded-mode {
        overflow: hidden;
    }