




/* Estilos específicos para la galería */
.gallery-page {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-header {
    margin-bottom: 3rem;
    padding: 1rem 0;
    position: relative;
}

.gallery-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}


.gallery-title h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-title p {
    color: var(--gray-600);
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* Selector de modo de vista - Estilo similar al header */
.view-mode-selector {
    position: relative;
    display: flex;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 16px;
    padding: 8px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 -1px 0 rgba(0, 0, 0, 0.05) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-mode-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(var(--primary-rgb), 0.05) 0%,
        rgba(var(--accent-rgb), 0.05) 50%,
        rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: 16px;
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; transform: translateX(-10px); }
    50% { opacity: 1; transform: translateX(10px); }
}

.selector-highlight {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(50% - 8px);
    height: calc(100% - 16px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(var(--primary-rgb), 0.4),
        0 3px 8px rgba(var(--primary-rgb), 0.2),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    z-index: 1;
    transform-origin: center;
}

.selector-highlight::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 11px 11px 6px 6px;
}

.view-mode-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 1rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    z-index: 2;
    color: var(--gray-600);
    min-width: 140px;
    justify-content: center;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transform-origin: center;
    overflow: hidden;
}

.view-mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
}

.view-mode-btn:hover::before {
    left: 100%;
}

.view-mode-btn.active {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.view-mode-btn:not(.active):hover {
    color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-mode-btn:not(.active):active {
    transform: translateY(0) scale(0.98);
}

.view-mode-btn[data-view="carousel"].active ~ .selector-highlight {
    transform: translateX(100%) scale(1.05);
}

.view-mode-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.view-mode-btn.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Estilos para álbumes */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.album-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
}

.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 16px;
}

.album-card:hover::before {
    opacity: 1;
}

.album-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.album-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.album-overlay i {
    font-size: 2rem;
    color: var(--primary);
}

.album-card:hover .album-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

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

.album-card:hover .album-cover {
    transform: scale(1.05);
}

.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    z-index: 2;
}

.album-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.album-count {
    font-size: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.album-count i {
    font-size: 0.9rem;
}

/* Estado vacío */
.no-albums {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.empty-state {
    text-align: center;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* Controles del álbum */
.album-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 100px;
    z-index: 100;
}

.album-controls.active {
    display: flex;
}

.album-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-to-albums {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.back-to-albums:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
}

.current-album-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

/* Vista de cuadrícula */
.album-view {
    display: none;
}

.album-view.active {
    display: block;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1 / 1;
    transform: scale(0.95);
    opacity: 0;
    animation: fadeInScale 0.6s forwards;
    animation-delay: calc(var(--delay) * 0.1s);
    background: var(--gray-100);
    cursor: pointer;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

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

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Vista de carrusel - Diseño circular moderno */
.carousel-view {
    display: none;
    position: relative;
    padding: 3rem 0;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.carousel-view.active-view {
    display: block;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 70vh;
    border-radius: 50px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--accent), 
        var(--primary), 
        var(--accent));
    background-size: 400% 400%;
    border-radius: 52px;
    z-index: -1;
    animation: gradientShift 4s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    transform-style: preserve-3d;
    position: relative;
}

.carousel-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    border-radius: 48px;
    z-index: 1;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--gray-50);
    border-radius: 48px;
    transform-origin: center center;
    position: relative;
    filter: brightness(0.85) contrast(1.05);
    box-shadow: 
        inset 0 20px 40px rgba(255, 255, 255, 0.1),
        inset 0 -20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-track img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%);
    border-radius: 48px;
    pointer-events: none;
}

.carousel-track img:not(.active) {
    opacity: 0.6;
    transform: scale(0.85) rotateY(-15deg);
    filter: brightness(0.7) blur(2px) contrast(1.1);
}

.carousel-track img.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    z-index: 2;
    filter: brightness(1) blur(0px) contrast(1.1) saturate(1.1);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Navegación del carrusel */
.carousel-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.carousel-nav {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.carousel-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
}

.carousel-nav:hover::before {
    left: 100%;
}

.carousel-nav:hover {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(var(--primary-rgb), 0.3),
        0 10px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.carousel-nav:active {
    transform: scale(1.05) translateY(-1px);
}

/* Info del carrusel */
.carousel-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.carousel-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gray-300), var(--gray-400));
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    transform: scale(1.4);
    box-shadow: 
        0 6px 20px rgba(var(--primary-rgb), 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.carousel-dot.active::before {
    background: rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%) scale(1.2);
}

.carousel-dot:hover:not(.active) {
    background: linear-gradient(145deg, var(--gray-400), var(--gray-500));
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-counter {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    color: var(--gray-700);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* Modal para vista ampliada */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.photo-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.photo-modal.active .modal-image {
    transform: scale(1);
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 2rem;
    z-index: 1001;
}

.modal-nav button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal-nav button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.modal-info {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    z-index: 1001;
}

/* Responsive */
@media (max-width: 1024px) {
    .album-controls {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .view-mode-selector {
        width: 100%;
    }
    
    .view-mode-btn {
        min-width: auto;
        flex: 1;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .view-mode-btn span {
        display: none;
    }
    
    .carousel-container {
        height: 50vh;
        border-radius: 30px;
    }
    
    .carousel-container::before {
        border-radius: 32px;
    }
    
    .carousel-track img {
        border-radius: 28px;
    }
    
    .carousel-nav {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .carousel-navigation {
        padding: 0 1rem;
    }
    
    .carousel-dot {
        width: 14px;
        height: 14px;
    }
    
    .carousel-dot::before {
        width: 6px;
        height: 6px;
    }
    
    .carousel-info {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .modal-nav button,
    .modal-close {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
    }
    
    .modal-nav {
        padding: 0 1rem;
    }
    
    .modal-info {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .gallery-page {
        padding: 2rem 1rem;
    }
    
    .gallery-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-mode-selector {
        width: 100%;
        padding: 6px;
        border-radius: 12px;
    }
    
    .selector-highlight {
        border-radius: 8px;
    }
    
    .view-mode-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .view-mode-btn i {
        font-size: 1.1rem;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .album-controls {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 16px;
        top: 80px;
    }
    
    .back-to-albums {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .back-to-albums span {
        display: none;
    }
    
    .current-album-title {
        font-size: 1.2rem;
    }
    
    .carousel-container {
        height: 45vh;
        border-radius: 25px;
    }
    
    .carousel-container::before {
        border-radius: 27px;
    }
    
    .carousel-track img {
        border-radius: 23px;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .carousel-dots {
        padding: 12px 20px;
        gap: 12px;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
    
    .carousel-dot::before {
        width: 5px;
        height: 5px;
    }
    
    .carousel-counter {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .album-card {
        aspect-ratio: 16 / 10;
    }
    
    .album-name {
        font-size: 1.2rem;
    }
    
    .album-count {
        font-size: 0.9rem;
    }
    
    .view-mode-selector {
        padding: 4px;
        border-radius: 10px;
    }
    
    .selector-highlight {
        border-radius: 6px;
    }
    
    .view-mode-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
        gap: 0.4rem;
    }
    
    .view-mode-btn i {
        font-size: 1rem;
    }
    
    .carousel-container {
        height: 40vh;
        border-radius: 20px;
    }
    
    .carousel-container::before {
        border-radius: 22px;
    }
    
    .carousel-track img {
        border-radius: 18px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .carousel-navigation {
        padding: 0 0.5rem;
    }
    
    .carousel-dots {
        padding: 10px 16px;
        gap: 10px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot::before {
        width: 4px;
        height: 4px;
    }
    
    .carousel-counter {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .current-album-title {
        text-align: center;
        font-size: 1.1rem;
    }
}