/* Modal: Background Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Content */
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90%; /* Restrict height to fit viewport */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto; /* Enable scrolling inside the modal */
    position: relative;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
}

/* Scrollbar Styling (Optional) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.conference-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Maintains a 16:9 aspect ratio */
    overflow: hidden;
}

.conference-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(103, 56, 2, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 50px;
    height: 10%;
    text-align: center;
    font-size: 0.9em;
    z-index: 3; /* Place badge above video */
}



  
  

/* Optional: For better control over video quality on different screen sizes */
@media (max-width: 768px) {
    .conference-video {
        object-fit: fill; /* On smaller screens, might want to fill for better visibility */
    }
}

/* Additional optional styles for video loading or errors */
.conference-video::before {
    content: 'Loading video...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    padding: 10px;
    border-radius: 5px;
    visibility: visible;
}

.conference-video[poster] {
    /* Hide the loading text when the video has a poster */
    &::before {
        visibility: hidden;
    }
}
