@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

.mmp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.mmp-album {
    position: relative;
    /* border-radius: 10px; */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.mmp-album::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4); /* Overlay oscuro por defecto */
    transition: background 0.3s ease;
    z-index: 1;
}

.mmp-album:hover::before {
    background: rgba(0,0,0,0.6);
}


.mmp-album img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}



.mmp-badge {
    top: 60%;
    left: 50%;
    color: white;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 300;
    text-transform: uppercase;
}

.mmp-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
}

.mmp-album-title {
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 300;
    margin: 0 0 -10px 0;
    padding: 0;
}

.mmp-badge {
    color: white;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 300;
    text-transform: uppercase;
}

.mmp-badge span {
    display: inline-block;
}

.mmp-badge span:not(:last-child)::after {
    content: '|';
    margin: 0 5px;
}

.mmp-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.mmp-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    display: block;
}

.mmp-item img,
.mmp-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay .dashicons {
    color: white;
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.mmp-back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px 0;
}


/* Estilos para la vista individual del álbum */
.mmp-single-album {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mmp-album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.mmp-album-header h2 {
    margin: 0;
    font-size: 2em;
    color: #333;
}

.mmp-back-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mmp-back-button:hover {
    background: #135e96;
    color: white;
    transform: translateX(-5px);
}

.mmp-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mmp-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mmp-item:hover {
    transform: translateY(-5px);
}

.mmp-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-play-overlay .dashicons {
    color: white;
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mmp-item.video:hover .video-play-overlay {
    background: rgba(0,0,0,0.6);
}

.mmp-item.video:hover .dashicons {
    transform: scale(1.2);
    opacity: 1;
}








.youtube-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.mmp-slide .youtube-container {
    background: #000;
}