/* ================= Video Modal Styling ================= */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    /* Adds space around for better visibility */
}

/* Modal content styling */
.modal-content {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    height: auto;
    max-width: 900px;
    max-height: 90vh;
    /* Prevents excessive height on large screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Close button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: black;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: red;
}

/* Modal body */
.modal-body {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Video container */
.video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
}

/* Video iframe styling */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================= Pagination Styling ================= */
.pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
}

.pagination li {
    display: inline-block;
}

/* Pagination links */
.pagination a,
.pagination span {
    padding: 10px 14px;
    text-decoration: none;
    background-color: #f26b0a;
    /* Theme color */
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

/* Hover effect */
.pagination a:hover {
    background-color: #d35400;
    /* Darker shade on hover */
}

/* Active page */
.pagination .active span {
    background-color: #d35400;
    pointer-events: none;
}

/* Disabled navigation buttons */
.pagination .disabled span {
    background-color: #ccc;
    pointer-events: none;
}

.temples {
    position: relative;
}

.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 15px 0;
    clear: both;
    /* Fixes floating issue */
}


/* ================= Mobile Responsiveness ================= */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 80vh;
        padding: 15px;
    }

    .close-modal {
        font-size: 25px;
        top: 10px;
        right: 15px;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}