/* ═══════════════════════════════════════════════════════════════════════════
   Cloe Instagram Gallery — Frontend Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Section ─────────────────────────────────────────────────────────── */
.cloe-ig-section {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Heading ─────────────────────────────────────────────────────────── */
.cloe-ig-heading {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.2;
}

.cloe-ig-subtitle {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: #6b6b6b;
    line-height: 1.7;
    margin: 0 auto 20px;
    max-width: 600px;
}

/* ─── Instagram Handle ────────────────────────────────────────────────── */
.cloe-ig-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    color: #c9a96e;
    text-decoration: none;
    margin-bottom: 28px;
    transition: opacity 0.3s ease;
}

.cloe-ig-handle:hover {
    opacity: 0.8;
    color: #c9a96e;
}

.cloe-ig-handle svg {
    flex-shrink: 0;
}

/* ─── Grid ────────────────────────────────────────────────────────────── */
.cloe-ig-grid {
    display: grid;
    grid-template-columns: repeat(var(--cloe-ig-cols, 4), 1fr);
    gap: 6px;
    width: 100%;
}

/* ─── Grid Item ───────────────────────────────────────────────────────── */
.cloe-ig-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    background: #f0ece6;
}

.cloe-ig-item img,
.cloe-ig-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cloe-ig-item:hover img,
.cloe-ig-item:hover .cloe-ig-video {
    transform: scale(1.06);
}

/* ─── Hover Overlay (centre icon) ────────────────────────────────────── */
.cloe-ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.cloe-ig-item:hover .cloe-ig-overlay {
    opacity: 1;
}

/* ─── Bottom info panel (stats + caption) — always visible ───────────── */
.cloe-ig-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 10px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
    z-index: 1;
}

/* ─── Stats row ───────────────────────────────────────────────────────── */
.cloe-ig-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.cloe-ig-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* ─── Caption ─────────────────────────────────────────────────────────── */
.cloe-ig-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    color: #fff;
    line-height: 1.45;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cloe-ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cloe-ig-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .cloe-ig-heading {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .cloe-ig-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }
}
