#photos-section {
    padding-top: 2rem;
}

.photos-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
}

#photos-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.95rem;
}

#photos-breadcrumb .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius-sm);
}

#photos-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent);
    background-color: var(--glass);
}

#photos-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

#photos-breadcrumb .breadcrumb-divider {
    color: var(--text-secondary);
    opacity: 0.5;
    margin: 0 0.3rem;
}

#photos-token-select {
    min-width: 250px;
}

#photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.8rem;
}

.photo-card, .album-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
    border: 1px solid transparent;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.photo-card:hover, .album-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 224, 255, 0.5);
    z-index: 10;
}

.album-card-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.album-card:hover .album-card-icon {
    transform: scale(1.1);
}

.album-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.album-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.photo-card {
    padding: 0;
    justify-content: flex-end;
}

.photo-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.photo-card:hover .photo-card-img {
    transform: scale(1.08);
}

.photo-card-caption {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 20%, transparent 100%);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.photo-card:hover .photo-card-caption {
    opacity: 1;
    transform: translateY(0);
}

#photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2050;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

#photo-lightbox.active {
    display: flex;
}

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

.photo-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: var(--border-radius-sm);
}

.photo-lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 50px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.photo-lightbox-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

#photo-lightbox-prev {
    left: 2vw;
}
#photo-lightbox-next {
    right: 2vw;
}

#photo-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    top: 20px;
    right: 20px;
}

.photo-lightbox-caption {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,15,0.8);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    text-align: center;
    max-width: 70vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}