/* Cap10K Photo Galleries — Archive & Single styles */

/* ---- Archive grid ---- */
.cap10k-gallery-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.cap10k-gallery-archive h1 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.cap10k-gallery-archive .archive-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}
.cap10k-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.cap10k-gallery-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    text-decoration: none;
    display: block;
    color: inherit;
}
.cap10k-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    color: inherit;
    text-decoration: none;
}
.cap10k-gallery-card-thumb {
    position: relative;
    padding-top: 66.67%;
    background: #f0f0f0;
    overflow: hidden;
}
.cap10k-gallery-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cap10k-gallery-card-thumb .no-thumb {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
    color: #fff;
    font-size: 3rem;
}
.cap10k-gallery-card-meta {
    padding: 16px;
}
.cap10k-gallery-card-meta h2 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    color: #1a1a1a;
}
.cap10k-gallery-card-meta .photo-count {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* ---- Single gallery ---- */
.cap10k-gallery-single {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}
.cap10k-gallery-single-header {
    text-align: center;
    margin-bottom: 32px;
}
.cap10k-gallery-single-header h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.cap10k-gallery-single-header .back-link {
    display: inline-block;
    color: #2d6a9f;
    text-decoration: none;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.cap10k-gallery-single-header .back-link:hover {
    text-decoration: underline;
}
.cap10k-gallery-single-header .photo-count-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.85rem;
}
.cap10k-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.cap10k-photo-item {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
}
.cap10k-photo-item a {
    display: block;
    position: absolute;
    inset: 0;
}
.cap10k-photo-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.cap10k-photo-item:hover img {
    transform: scale(1.04);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .cap10k-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .cap10k-photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; }
    .cap10k-gallery-archive h1 { font-size: 1.6rem; }
    .cap10k-gallery-single-header h1 { font-size: 1.5rem; }
}
