/* Gallery List Styles */
.galleries-page {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.125rem;
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: var(--pill-border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-cover {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--exif-box-bg);
}

.gallery-cover-empty .no-images {
    position: absolute;
    color: #999;
}

.gallery-cover-empty .no-images .icon {
    width: 3rem;
    height: 3rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
}

.gallery-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0,0,0,0.5);
    padding: 0.25rem 0.75rem;
    border-radius: var(--pill-border-radius-md);
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
    font-size: 1.25rem;
}

.gallery-info p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Gallery Detail Styles */
.gallery-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    margin-bottom: 2rem;
}

.gallery-header h1 {
    font-size: 2rem;
    margin: 1rem 0;
}

.gallery-description {
    color: #666;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.gallery-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.gallery-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.gallery-edit-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 0.875rem;
}

.gallery-edit-link:hover {
    text-decoration: underline;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-image {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: var(--pill-border-radius-md);
    background: #f5f5f5;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--green-pastel);
    border: 1px solid var(--pill-border);
    border-radius: var(--pill-border-radius-lg);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: var(--green-light);
    border-color: var(--green-dark);
    color: white;
}