
.gradient-text {
    background: linear-gradient(90deg, #ff7a18, #af002d 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: #ff7a18;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* exactly 4 per row on desktop */
    gap: 25px;
}

/* For tablets (2 per row) */
@media (max-width: 992px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile (1 per row) */
@media (max-width: 576px) {
    .instagram-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


.post-card {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    transform: scale(0.95);
}

.post-card.show {
    animation: fadeUp 0.5s ease forwards;
}

.post-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-thumb img,
.post-thumb video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.3s ease;
}

.post-thumb img:hover {
    filter: brightness(0.9);
}

.overlay-icons {
    position: absolute;
    bottom: 6px;
    left: 10px;
    display: flex;
    gap: 58px;
    background: rgb(103 194 198);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    width: 93%;
}

.post-body {
    padding: 15px;
    background: #fff;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.post-date {
    background: linear-gradient(45deg, #67c2c6, #67c2c6);
    ;
    color: #fff;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 14px;
}

.post-user {
    font-size: 15px;
    font-weight: 900;
    color: #e13625;
    margin-left: 8px;
}

.caption {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 30px;
}

.btn-page {
    background: linear-gradient(45deg, #fbd212, #f9b517);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-page:hover:not(:disabled) {
    background: linear-gradient(45deg, #af002d, #ff7a18);
}

.btn-page:disabled {
    background: #e23725;
    cursor: not-allowed;
}

#lightbox {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

#lb-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

#lb-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .post-thumb img,
    .post-thumb video {
        height: 200px;
    }
}

@media (max-width: 576px) {

    .post-thumb img,
    .post-thumb video {
        height: 180px;
    }
}
