/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.album-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: var(--color-background);
    aspect-ratio: 1 / 1;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--color-accent);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-secondary);
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.album-card:hover .album-overlay {
    opacity: .8;
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.6);
    color: var(--color-text);
    text-align: center;
    padding: 10px;
    font-size: 1.2rem;
}

#mygallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

#mygallery img {
    max-width: 100%;
    height: auto;
}

/* Full-size Image View */
.image-view-container {
    text-align: center;
    margin-bottom: 20px;
}

.image-view-container img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    width: auto;
    border-radius: 8px;
}
