/* Audio Full Width Layout */
.audio-media-card {
    padding: 0 !important;
    overflow: hidden;
}

.audio-full-layout {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.audio-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.audio-icon-title {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.audio-main-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.audio-title-section {
    flex: 1;
}

.audio-title-section .media-title {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.audio-title-section .media-description {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.audio-actions {
    flex-shrink: 0;
}

.audio-player-section {
    margin-bottom: 15px;
}

.custom-audio-player-full {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.custom-audio-player-full::-webkit-media-controls-panel {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
}

.custom-audio-player-full::-webkit-media-controls-play-button {
    background-color: white;
    border-radius: 50%;
    margin-right: 10px;
}

.custom-audio-player-full::-webkit-media-controls-current-time-display,
.custom-audio-player-full::-webkit-media-controls-time-remaining-display {
    color: white;
    font-weight: 500;
}

.audio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Gallery Styles with GLightbox */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-content {
    color: white;
    width: 100%;
}

.gallery-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.gallery-description {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.no-gallery-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

/* Responsive Design for Mobile */
@media (max-width: 576px) {
    .audio-full-layout {
        padding: 15px;
    }

    .audio-header-section {
        flex-direction: column;
        gap: 12px;
    }

    .audio-icon-title {
        width: 100%;
    }

    .audio-actions {
        width: 100%;
    }

    .btn-media-action {
        width: 100%;
        justify-content: center;
    }

    .audio-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .custom-audio-player-full {
        height: 45px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-overlay {
        padding: 12px;
        opacity: 1;
        background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    }

    .gallery-title {
        font-size: 0.85rem;
    }

    .gallery-description {
        font-size: 0.75rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* GLightbox Customization for Gallery */
.glightbox-container .gslide-description {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 20px;
}

.glightbox-container .gclose {
    color: white;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 15px;
    right: 15px;
}

.glightbox-container .gprev,
.glightbox-container .gnext {
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}