body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f3f3;
    text-align: center;
}

.album-tabs {
    margin: 20px 0;
}

.album-tabs button {
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    background: #dcdcdc;
}

.album-tabs button.active {
    background: #4F77B9;
    color: #fff;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 900px;
    margin: 20px auto;
    justify-content: center;
}

.gallery img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.05);
}

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

.modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.album-header {
    text-align: center;
    background-color: #CFDAEB;
    padding: 30px;
    font-family: Arial, sans-serif;
}

.album-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    background-color: #dcdcdc;
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background-color: #007BFF;
    color: #fff;
    border-color: #007BFF;
}

.pagination a.active {
    background-color: #007BFF;
    color: #fff;
    border-color: #007BFF;
    pointer-events: none;
}


.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    user-select: none;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sub-tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;

    button {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 6px 12px;
        background-color: rgba(0, 0, 0, 0.05);
        border: 0;
        min-height: 32px;
        border-radius: 4px;

        &.active {
            background-color: #4F77B9;
            color: white;
        }
    }
}

.media-item {
    position: relative;
    /*width: 100%;*/
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
}

.video-wrapper {
    position: relative;
    /*width: 100%;*/
    height: 200px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    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;
    color: white;
    font-size: 24px;
    z-index: 2;
}

.video-play-icon::before {
    content: '▶';
    margin-left: 5px;
}

.media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 2;
}

#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-video {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.close-video-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}
/* Add to your CSS file */
.video-left-arrow, .video-right-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    /*width: 50px;*/
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: background 0.3s;
}

.video-left-arrow:hover, .video-right-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-left-arrow {
    left: 20px;
}

.video-right-arrow {
    right: 20px;
}

/* Hide arrows when there's only one video or at boundaries */
.video-left-arrow.hidden, .video-right-arrow.hidden {
    display: none;
}