/*
fn preloader

*/
.preloaderfn {
    /* position: fixed;
    
    
    background: black;*/
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloaderfn svg {
    width: 300px;
    height: auto;
}

/* Done preloader */

.logoh {
    max-height: 50px;
    /* filter: brightness(0%); */
    filter: brightness(0%) invert(1);
}

.logohb {
    max-height: 60px;
    /* filter: brightness(0%); */
    filter: brightness(0%);
}

.bannerlogo {
    max-height: 140px;
    margin-top: 120px;
    filter: brightness(0%);
}

.fntoppad {
    padding-top: 10px;
}

.nopadding {
    padding: 0;
}

.ar {
    text-align: right;
    direction: rtl;
    font-family: "El Messiri", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.arfont {
    font-family: "El Messiri", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.justifytxt {
    text-align: justify;
}

.link-with-arrow.ar {
    float: left;
    padding-left: 25px;
}

.link-with-arrow.ar:after {
    content: "";
}
.link-with-arrow.ar:before {
    left: 0;
    content: "\f177";
    font: var(--fa-font-solid);
    font-size: 14px;
    position: absolute;
    top: 5px;
    transition: allease 0.3s;
    -webkit-transition: allease 0.3s;
    -moz-transition: all ease 0.3s;
    -ms-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
}

.fnwhiteback {
    background-color: #ffffff;
}

/* custom nav */
.fndesknav {
}

.fndesknav .fndeskactivenav,
.fndesknav .fndeskactivenav:before {
    text-decoration: underline;
    text-underline-offset: 8px;
    padding-bottom: 8px;
    text-decoration-thickness: 2px;
}

.fnmobnav {
    text-align: left;
    padding-left: 20px;
}

.mobmenulogo {
    text-align: left;
    padding-left: 20px;
    padding-top: 10px;
    position: absolute;
    width: 20%;
}

.fnmobnav .fnmobactivenav,
.fnmobnav .fnmobactivenav::before {
    text-decoration: underline;
    text-underline-offset: 12px;
    padding-bottom: 8px;
}
/* end custom nav */

/* Music Albums */

.album img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.album-title {
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}
.fnmusicalbumtype {
    text-align: center;
}

.fn-album-title {
    font-size: calc(1rem);
}

/* Music Player */
.disabled-song {
    opacity: 0.5;
    pointer-events: none; /* Prevent clicking */
    cursor: not-allowed;
}

/* Biography Page */

.bio {
    text-align: justify;
}

.bio .attachment__caption {
    display: none;
}

.bio h2 {
    font-size: 2rem;
}

.bio img {
    max-width: 100%;
    height: auto; /* Ensures aspect ratio is preserved */
    display: block; /* Prevents inline spacing issues */
}

.biographyen figure {
    float: right;
    margin: 0 0 0 15px;
    max-width: 50%;
}

.biographyar figure {
    float: left;
    margin: 0 15px 0 0;
    max-width: 50%;
}

/* Ensure images float only on larger screens */
@media (min-width: 768px) {
    .biographyen figure {
        float: right;
        margin: 0 0 15px 15px;
        max-width: 50%;
    }

    .biographyar figure {
        float: left;
        margin: 0 15px 15px 0;
        max-width: 50%;
    }
}

/* On smaller screens, stack content */
@media (max-width: 767px) {
    .biographyen figure,
    .biographyar figure {
        float: none; /* Remove floating */
        display: block;
        margin: 15px auto; /* Center images */
        max-width: 100%; /* Full width on small screens */
    }
}

/* End Biography page */

/* News Page */

.newsimg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* Adjustments for smaller screens */
@media (max-width: 576px) {
    .newsimg {
        max-height: 250px; /* Reduce max-height on small devices */
    }
}

/* End News page */

/* GALLERY PAGE */
/* Gallery Section */
.gallery-container-fn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
}

/* Album Card */
.gallery-item-fn {
    width: 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* text-align: center; */
    padding: 5px;
    border: 2px solid #000; /* Elegant black border */
}

/* Hover Effect */
.gallery-item-fn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Album Cover Image */
.gallery-item-fn img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    /* padding: 10px; */
    background: #000; /* Black frame around the image */
}

/* Album Title */
/* .gallery-title {
            font-size: 18px;
            font-weight: bold;
            color: #000;
            margin-top: 10px;
        } */

/* Arabic Title */
/* .gallery-title.ar {
            font-size: 16px;
            color: #666;
        }  */

/* Event Badge */
/* .event-badge {
    background: #000;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 12px;
    display: inline-block;
    border-radius: 8px;
    margin-top: 10px;
} */

/* Loading Indicator */
#loading-indicator-fn {
    text-align: center;
    font-size: 16px;
    color: #000;
    margin-top: 20px;
    display: none;
}
/* END GALLERY PAGE */

/* Videos Page */
#vidpg_preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 9999;
}

/* Video container styling */
/* .vidpg_video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
} */
.vidpg_video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* No gap between videos */
    margin: 0; /* Remove any extra margins */
    width: 100%; /* Ensure full width */
}

.vidpg_video-box {
    width: 100%;
    cursor: pointer;
    text-align: center;
    position: relative;
}

/* .vidpg_video-box {
    width: 300px;
    cursor: pointer;
    text-align: center;
    position: relative;
} */

@media screen and (max-width: 750px) {
    .vidpg_video-box {
        width: 100%;
    }
}

.vidpg_video-box img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.vidpg_video-box:hover img {
    transform: scale(1.05);
}

/* Play icon overlay */
.vidpg_play-icon {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out;
}

.vidpg_play-icon::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.vidpg_video-box:hover .vidpg_play-icon {
    opacity: 1;
}

.vidpg_video-title {
    font-size: 14px;
    margin-top: 8px;
    color: #333;
}

#vidpg_loading {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    display: none;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: red;
    font-size: 18px;
    font-weight: bold;
}
/* End Videos Page */
