
/* css/gallery.css */

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gallery-title {
    font-size: 2rem;
    margin: 0;
}

.back-to-albums-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-albums-btn:hover {
    background-color: #f4f6f9;
    border-color: #ccc;
}

/* Album Grid Styles */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.album-card {
    text-decoration: none;
    color: var(--dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.album-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.album-name {
    padding: 1rem;
    font-weight: 600;
    background-color: #fff;
    text-align: center;
}

/* Image Grid Styles */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.image-grid-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-grid-item:hover img {
    transform: scale(1.1);
}

.image-grid-item::after {
    content: '\f00e'; /* Font Awesome search-plus icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-grid-item:hover::after {
    opacity: 1;
}
