/* Instagram Feed Marquee — self-contained, no theme dependency */

.igf-demo-notice {
    display: inline-block;
    background: #fef9ec;
    border: 1px solid #dba617;
    border-radius: 4px;
    padding: 6px 14px;
    margin: 0 0 10px;
    font-size: 13px;
    color: #3c434a;
}
.igf-demo-notice a { color: #0073aa; }

/* Demo gradient tile */
.igf-demo-tile {
    width: 100%;
    height: 100%;
}

/* Follow button */
.igf-follow-wrap {
    text-align: center;
    margin-top: 32px;
}

.igf-follow-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    box-shadow: 0 4px 20px rgba(131, 58, 180, 0.4), 0 2px 8px rgba(253, 29, 29, 0.25);
    -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.igf-follow-btn:hover {
    opacity: 0.9;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    text-decoration: none;
}

.igf-follow-btn-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 54px;
    background: rgba(0, 0, 0, 0.18);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.igf-follow-btn-icon svg {
    display: block;
}

.igf-follow-btn-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 26px 0 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    min-height: 54px;
}

.igf-wrap {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
}

.igf-marquee {
    overflow: hidden;
    width: 100%;
}

.igf-marquee__track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    will-change: transform;
    -webkit-animation: igf-scroll 35s linear infinite;
    animation: igf-scroll 35s linear infinite;
}

.igf-wrap:hover .igf-marquee__track {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.igf-item {
    display: block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.igf-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    -webkit-transition: -webkit-transform 0.3s ease, -webkit-filter 0.3s ease;
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-filter: brightness(0.95);
    filter: brightness(0.95);
}

.igf-item:hover img {
    -webkit-transform: scale(1.06);
    transform: scale(1.06);
    -webkit-filter: brightness(1);
    filter: brightness(1);
}

@-webkit-keyframes igf-scroll {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes igf-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .igf-marquee__track {
        -webkit-animation: none;
        animation: none;
    }
}

@media (max-width: 768px) {
    .igf-item {
        width: 150px;
        height: 150px;
    }
}

/* Front-page section wrapper */
.igf-front-section .igf-wrap {
    margin-top: 24px;
}
