.gallery .gallery-title {
    font-family: var(---outfit-font);
    font-size: var(---title-font);
    color: var(---menu-bg-color);
    margin-bottom: 15px;
}

.gallery-content .gallery-tabs ul {
    background-color: var(---gallery-tab-bg);
}

.gallery-content .gallery-tabs ul li {
    font-size: var(---org-title);
}

.gallery-content .gallery-tabs ul li button {
    color: var(---accessibilities-color);
    font-family: var(---outfit-font);
}

.gallery-tabs .nav-pills .nav-link.active {
    background-color: var(---menu-bg-color) !important;
    border-radius: 0;
}

.photo-gallery,
.video-gallery,
.audio-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 0;
}

.gallery-tabs-content .photo-gallery .photo-gallery-item {
    width: 313px;
    height: 315px;
    border-radius: 5px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.photo-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    /* padding: 15px 0px; */
}
.photo-gallery .photo-gallery-item .item-image {
    height: 248px;
    overflow: hidden;
}

.photo-gallery .photo-gallery-item .item-image img {
    height: 100%;
}

.photo-gallery .photo-gallery-item .img-caption {
    font-family: var(---outfit-font);
    color: var(---menu-bg-color);
    font-size: var(---org-title);
    padding: 5px;
    text-align: center;
}

/* PAGINATION */
.pagination {
    background-color: white !important;
    justify-content: center;
    padding: 10px 0;
}

.page-item {
}

.page-link {
    font-size: 16px;
    color: green !important;
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
}

.video-gallery .video-gallery-item {
    width: 315px;
    height: 315px;
    border-radius: 5px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-gallery .video-gallery-item .gallery_video {
    height: 248px;
    overflow: hidden;
}

.video-gallery .video-gallery-item .gallery_video iframe {
    width: 100%;
    height: 100%;
}

.video-gallery .video-gallery-item .img-caption {
    font-family: var(---outfit-font);
    color: var(---menu-bg-color);
    font-size: var(---org-title);
    padding: 5px;
    display: flex;
    justify-content: center;
    align: center;
    text-align: center;
}

/* AUDIO */
.audio-gallery .audio-gallery-item {
    width: 315px;
    height: 315px;
    border-radius: 5px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.audio-gallery .audio-gallery-item .gallery_audio {
    width: 100%;
    height: 248px;
    overflow: hidden;
    object-fit: cover;
    position: relative;
    display: inline-block;
}

.audio-gallery .audio-gallery-item .gallery_audio img {
    width: 100%;
    height: 100%;
}

.audio_play_button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
}

.audio_play_button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.audio-gallery .audio-gallery-item .gallery_audio iframe {
    width: 100%;
    height: 100%;
}

.audio-gallery .audio-gallery-item .img-caption {
    font-family: var(---outfit-font);
    color: var(---menu-bg-color);
    font-size: var(---org-title);
    padding: 5px;
    display: flex;
    justify-content: center;
    align: center;
    text-align: center;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    .gallery .gallery-title {
        font-size: calc(var(---title-font) - 4px);
        margin-bottom: 10px;
    }

    .gallery-content .gallery-tabs ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }

    /* .gallery-content .gallery-tabs ul li {
        border: 2px solid red;
        font-size: calc(var(---org-title) - 2px);
        flex: 0 0 auto; 
        list-style: none; 
    } */

    .gallery-content .gallery-tabs ul li {
        /* border: 2px solid red; */
        font-size: calc(var(---org-title) - 2px);
    }

    .photo-gallery,
    .video-gallery,
    .audio-gallery {
        flex-direction: column;
        gap: 10px;
    }
    

    .audion-content{
        /* border: 2px solid green; */
        padding: 10px;
    }

    .gallery-tabs-content .photo-gallery .photo-gallery-item,
    .video-gallery .video-gallery-item,
    .audio-gallery .audio-gallery-item {
        width: 100%;
        height: 300px;
        padding: 5px;
    }

    .photo-gallery .photo-gallery-item .item-image,
    .video-gallery .video-gallery-item .gallery_video,
    .audio-gallery .audio-gallery-item .gallery_audio {
        height: auto;
    }

    .photo-gallery .photo-gallery-item .item-image img,
    .video-gallery .video-gallery-item .gallery_video iframe,
    .audio-gallery .audio-gallery-item .gallery_audio img,
    .audio-gallery .audio-gallery-item .gallery_audio iframe {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .photo-gallery .photo-gallery-item .img-caption,
    .video-gallery .video-gallery-item .img-caption,
    .audio-gallery .audio-gallery-item .img-caption {
        font-size: calc(var(---org-title) - 2px);
        padding: 3px;
    }

    .audio_play_button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* TABLET VIEW */
@media (max-width: 1024px) and (min-width: 768px) {
    .gallery .gallery-title {
        font-size: calc(var(---title-font) - 2px);
    }

    .gallery-content .gallery-tabs ul {
        background-color: var(---gallery-tab-bg);
    }

    .gallery-content .gallery-tabs ul li {
        font-size: calc(var(---org-title) - 2px);
    }

    .gallery-content .gallery-tabs ul li button {
        font-size: 14px;
    }

    .gallery-tabs .nav-pills .nav-link.active {
        background-color: var(---menu-bg-color) !important;
        border-radius: 0;
    }

    .photo-gallery,
    .video-gallery,
    .audio-gallery {
        flex-direction: row;
        gap: 10px;
    }

    .photo-gallery .photo-gallery-item,
    .video-gallery .video-gallery-item,
    .audio-gallery .audio-gallery-item {
        /* width: calc(33.33% - 10px); */
    }

    .photo-gallery .photo-gallery-item .item-image,
    .video-gallery .video-gallery-item .gallery_video,
    .audio-gallery .audio-gallery-item .gallery_audio {
    }

    .photo-gallery .photo-gallery-item .img-caption,
    .video-gallery .video-gallery-item .img-caption,
    .audio-gallery .audio-gallery-item .img-caption {
        font-size: calc(var(---org-title) - 2px);
        padding: 5px 10px;
    }

    /* Audio Play Button Size */
    .audio_play_button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
