/* ==========================================================================
   ALBUM CARDS STRUCTURE
   ========================================================================== */
.gallery-page {
    padding: 60px 20px;
    min-height: 60vh;
}

.albums-grid, .photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.album-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 21, 75, 0.1);
    border-color: var(--primary-color);
}

.album-cover {
    position: relative;
    height: 200px;
    background-color: #eaeaea;
}

.album-cover img, .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(74, 21, 75, 0.85);
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.album-card h3 {
    padding: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-align: center;
}

/* ==========================================================================
   SINGLE ALBUM DISPLAY & INTERACTIONS
   ========================================================================== */
.hidden {
    display: none !important;
}

.btn-back {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
}

.album-view-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-left: 5px solid var(--accent-color);
    padding-left: 12px;
}

.photo-item {
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}