/* === HS Instagram Section === */
:root {
    --hs-color-point: #d32978;
}
.hs-instagram {
    padding: 60px 0 80px;
    background: #fefaf3;
}

.hs-instagram__inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.hs-instagram__header {
    margin-bottom: 36px;
}

.hs-instagram__label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hs-instagram__label-text {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--hs-color-point);
    white-space: nowrap;
}

.hs-instagram__label-line {
    flex: 1;
    height: 1px;
    background: var(--hs-color-point);
}

.hs-instagram__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.hs-instagram__desc strong {
    display: block;
    font-size: 1.15rem;
    color: var(--hs-color-point);
    font-weight: 700;
    margin-top: 2px;
}

/* Grid - horizontal scroll */
.hs-instagram__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.hs-instagram__grid::-webkit-scrollbar {
    height: 4px;
}

.hs-instagram__grid::-webkit-scrollbar-track {
    background: transparent;
}

.hs-instagram__grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* Card */
.hs-instagram__card {
    flex: 0 0 280px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    scroll-snap-align: start;
    transition: box-shadow 0.3s ease;
}

.hs-instagram__card:hover {
    box-shadow: 0 4px 16px rgba(211, 41, 120, 0.15);
}

/* Card header - mimics Instagram post top bar */
.hs-instagram__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.hs-instagram__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-instagram__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1.5px solid #fff;
    box-sizing: border-box;
}

/* 프로필 사진 없을 때 fallback */
.hs-instagram__avatar:not(:has(img))::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ccc;
    border: 1.5px solid #fff;
}

.hs-instagram__handle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #262626;
}

/* Card image */
.hs-instagram__card-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.hs-instagram__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hs-instagram__inner {
        padding: 0 20px;
    }

    .hs-instagram__card {
        flex: 0 0 180px;
    }

    .hs-instagram__desc {
        font-size: 0.88rem;
    }

    .hs-instagram__desc strong {
        font-size: 1rem;
    }

    .hs-instagram__label-text {
        font-size: 0.9rem;
    }

    .hs-instagram {
        padding: 48px 0 60px;
    }
}
