/* Album Section */
.album-section {
    padding: 8rem 0 5rem;
    background-color: var(--light-gray);
    min-height: calc(100vh - 80px);
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.album-info h1 {
    margin-bottom: 0.5rem;
}

.album-info h1:after {
    display: none;
}

.album-date, .album-location {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.album-actions {
    display: flex;
    gap: 1rem;
}

/* Media Tabs */
.media-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active:after {
    transform: scaleX(1);
}

/* Media Filter */
.media-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark-gray);
}

.view-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.media-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--white);
    aspect-ratio: 3/4;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-item:hover img {
    transform: scale(1.05);
}

.media-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.load-more {
    text-align: center;
    margin-top: 2rem;
}

/* Video Items */
.videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.video-item {
    aspect-ratio: auto;
    height: auto;
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.video-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1110;
}

.lightbox-media {
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.lightbox-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
}

.lightbox-prev, .lightbox-next {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.lightbox-counter {
    margin: 0 1rem;
    font-size: 0.9rem;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.quality-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.quality-select, .video-quality-select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1110;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 1.5rem;
    background-color: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-info {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.video-modal-info h3 {
    margin-bottom: 0.5rem;
}

.video-modal-info p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.video-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* Download Modal */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.download-modal.active {
    display: flex;
}

.download-modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-dark);
    position: relative;
}

.close-download-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.download-modal-content h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.download-options {
    margin-bottom: 2rem;
}

.download-option {
    margin-bottom: 1rem;
}

.download-option input[type="radio"] {
    display: none;
}

.download-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-option input[type="radio"]:checked + label {
    border-color: var(--secondary-color);
    background-color: rgba(201, 161, 62, 0.05);
}

.option-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.option-info p {
    margin-bottom: 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.option-size {
    font-weight: 600;
    color: var(--primary-color);
}

.download-selection {
    margin-bottom: 2rem;
}

.selection-type {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.selection-type input[type="radio"] {
    margin-right: 0.5rem;
}

.download-actions {
    display: flex;
    gap: 1rem;
}

.download-actions .btn {
    flex: 1;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .album-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .album-actions {
        width: 100%;
    }
    
    .album-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .lightbox-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quality-options {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .media-filter {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .view-options {
        width: 100%;
        justify-content: flex-end;
    }
    
    .media-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        padding: 1rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .download-actions {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    .media-actions {
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .selection-type {
        flex-direction: column;
        align-items: flex-start;
    }
}