body {
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    background-color: #eee8dd; /* nature-sand */
    color: #2b4522; /* nature-forest */
}
h1, h2, h3, h4, .font-serif { font-family: 'Playfair Display', serif; }
::selection { background-color: #2b4522; color: #eee8dd; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #eee8dd; }
::-webkit-scrollbar-thumb { background: rgba(43, 69, 34, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(43, 69, 34, 0.6); }

.reveal {
    opacity: 1;
    transform: none;
}

.hero-img {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    transform: scale(1.15) translateX(-5%);
    transform-origin: center center;
}

.member-card, .member-card * {
    cursor: grab !important;
    touch-action: none !important; /* Mencegah layar ikut scroll saat foto ditarik di HP */
}
.member-card:active, .member-card:active * {
    cursor: grabbing !important;
}

.member-card:hover .member-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Editorial Staggered Grid untuk Desktop */
@media (min-width: 768px) {
    .member-card:nth-child(even) {
        margin-top: 80px;
    }
}

/* Tipografi Nomor Air (Watermark) */
.pillar-card {
    position: relative;
    overflow: hidden;
}
.pillar-num {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 10rem;
    line-height: 1;
    font-family: 'Playfair Display', serif;
    color: rgba(244, 241, 234, 0.03); /* Warna transparan halus */
    z-index: 0;
    pointer-events: none;
    transition: color 0.5s ease;
}
.pillar-card:hover .pillar-num {
    color: rgba(244, 241, 234, 0.08);
}

/* ── Instagram Feed & Story Highlights Section (KKN Gintara 1) ── */
#arsip-dokumentasi,
#arsip-dokumentasi button,
#arsip-dokumentasi input,
#arsip-dokumentasi a,
#arsip-dokumentasi p,
#arsip-dokumentasi span,
#arsip-dokumentasi strong,
#arsip-dokumentasi h3,
#arsip-dokumentasi h4,
#ig-post-modal,
#ig-post-modal button,
#ig-post-modal input,
#ig-post-modal a,
#ig-post-modal p,
#ig-post-modal span,
#ig-post-modal strong,
#ig-post-modal h3,
#ig-post-modal h4 {
    font-family: 'Google Sans', 'DM Sans', sans-serif;
}

#ig-post-modal i,
#ig-post-modal [class*="fa-"] {
    font-family: var(--_fa-family, "Font Awesome 7 Pro") !important;
}

#arsip-dokumentasi .font-serif {
    font-family: 'Playfair Display', serif;
}


.ig-highlight-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px 16px;
}
.ig-highlight-scroll::-webkit-scrollbar {
    display: none;
}

.ig-highlight-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.ig-highlight-ring {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 9999px;
    padding: 2.5px;
    background: rgba(43, 69, 34, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.18s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    transform: scale(1);
    transform-origin: center center;
}

/* Saat diklik (active atau loading), scale menjadi 95 */
.ig-highlight-btn:active .ig-highlight-ring,
.ig-highlight-btn.loading .ig-highlight-ring {
    transform: scale(0.95);
    background: #2b4522;
}

/* Loading Spinner Ring Effect ala Instagram Story */
.ig-highlight-btn.loading .ig-highlight-ring::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent 0%, #8aa86e 35%, #2b4522 70%, #1b2e16 100%);
    animation: igHighlightRingSpin 0.75s linear infinite;
    z-index: 0;
}

@keyframes igHighlightRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ig-highlight-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: #F8F5EB;
    border: 2px solid #eee8dd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}
.ig-highlight-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ig-highlight-inner img[src$=".svg"],
.ig-highlight-inner img.object-contain {
    object-fit: contain;
    padding: 8px;
}

.ig-highlight-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #2b4522;
    max-width: 82px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

/* Post Card Grid (Instagram Modern Vertical Grid 3:4) */
.ig-post-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #e5ded2;
    cursor: pointer;
    border-radius: 0;
    transform: scale(1);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.ig-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.ig-post-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 42, 22, 0.42); /* Warna hijau halus transparan tanpa menutupi foto */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .ig-post-overlay {
        display: flex;
    }
    .ig-post-card:hover .ig-post-overlay {
        opacity: 1;
    }
}
@media (hover: none), (pointer: coarse), (max-width: 767px) {
    .ig-post-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Instagram Tab Feed Slider Track (Slide Animation Kiriman <-> Reels) */
#ig-feed-slider-viewport {
    position: relative;
    width: auto;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
@media (min-width: 640px) {
    #ig-feed-slider-viewport {
        width: 100%;
    }
}
#ig-feed-slider-track {
    display: flex;
    width: 200%;
    will-change: transform;
    transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Skeleton Loading Shimmer Animation */
.ig-skeleton-shimmer {
    position: absolute;
    inset: 0;
    background-color: #ded6c7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.ig-shimmer-wave {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: igShimmerWave 1.4s infinite ease-in-out;
}

@keyframes igShimmerWave {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Instagram Post Modal (Authentic Instagram Desktop Dark Theme) */
#ig-post-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}
#ig-post-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
#ig-post-modal.closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s step-end;
}

#ig-modal-viewport {
    position: relative;
    width: auto;
    max-width: min(96vw, 1400px);
    height: 88vh;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transform: scale(0.78);
    opacity: 0;
    transform-origin: center center;
    transition: transform 0.32s cubic-bezier(0.34, 1.35, 0.64, 1), opacity 0.26s ease, width 0.2s ease, max-width 0.2s ease;
    will-change: transform, opacity;
}
#ig-post-modal.active #ig-modal-viewport {
    transform: scale(1);
    opacity: 1;
}
#ig-post-modal.closing #ig-modal-viewport {
    transform: scale(0.78);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}

/* Modal Controls Animation (Close Button & Nav Arrows) */
#ig-post-modal > button {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
#ig-post-modal.active > button {
    opacity: 1;
    transform: scale(1);
}
#ig-post-modal.closing > button {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#ig-post-modal > button[onclick*="prevIgPost"],
#ig-post-modal > button[onclick*="nextIgPost"] {
    transform: translateY(-50%) scale(0.9);
}
#ig-post-modal.active > button[onclick*="prevIgPost"],
#ig-post-modal.active > button[onclick*="nextIgPost"] {
    transform: translateY(-50%) scale(1);
}
#ig-post-modal.closing > button[onclick*="prevIgPost"],
#ig-post-modal.closing > button[onclick*="nextIgPost"] {
    transform: translateY(-50%) scale(0.9);
}

/* Interactions Modal (Likes & Collaborators) Zoom Animation */
#ig-interactions-modal {
    opacity: 0;
    transition: opacity 0.24s ease;
}
#ig-interactions-modal > div {
    transform: scale(0.82);
    opacity: 0;
    transform-origin: center center;
    transition: transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1), opacity 0.22s ease;
    will-change: transform, opacity;
}
#ig-interactions-modal.active {
    opacity: 1;
}
#ig-interactions-modal.active > div {
    transform: scale(1);
    opacity: 1;
}
#ig-interactions-modal.closing {
    opacity: 0;
}
#ig-interactions-modal.closing > div {
    transform: scale(0.82);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.ig-modal-dialog {
    background: #000000;
    color: #ffffff;
    width: 100%;
    height: 88vh;
    max-height: 88vh;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px #262626;
    will-change: transform, filter;
    flex-shrink: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.ig-modal-media-col {
    position: relative;
    height: 100%;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.2s ease, flex 0.2s ease;
}

@media (max-width: 860px) {
    #ig-post-modal {
        padding: 8px !important;
    }
    #ig-modal-viewport {
        width: 100% !important;
        max-width: min(96vw, 540px) !important;
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 8px !important;
    }
    .ig-modal-dialog {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        border-radius: 8px !important;
        -webkit-overflow-scrolling: touch;
    }
    .ig-modal-media-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        height: auto !important;
        max-height: 52vh !important;
        min-height: 250px !important;
    }
    #ig-modal-details-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        border-left: none !important;
        border-top: 1px solid #262626 !important;
    }
    .ig-modal-scroll-area {
        max-height: none !important;
        overflow-y: visible !important;
    }
}

/* Like Heart Pop Animation */
.like-pop {
    animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Custom Sleek Scrollbar for IG Modal Caption & Comments */
.ig-modal-scroll-area,
#ig-modal-scrollable {
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.ig-modal-scroll-area::-webkit-scrollbar,
#ig-modal-scrollable::-webkit-scrollbar {
    width: 6px;
}
.ig-modal-scroll-area::-webkit-scrollbar-track,
#ig-modal-scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.ig-modal-scroll-area::-webkit-scrollbar-thumb,
#ig-modal-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
}
.ig-modal-scroll-area::-webkit-scrollbar-thumb:hover,
#ig-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ── Ambient Wandering 2D Floating Motion for Repost Element ── */
@keyframes igAmbientWander {
    0% {
        transform: translate(0px, 0px);
    }
    16% {
        transform: translate(9px, -13px);
    }
    34% {
        transform: translate(16px, -4px);
    }
    50% {
        transform: translate(11px, 11px);
    }
    68% {
        transform: translate(-7px, 9px);
    }
    84% {
        transform: translate(-11px, -7px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

@keyframes igAvatarSubtleBob1 {
    0%, 100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    35% {
        transform: translate(3px, -5px) rotate(2deg);
    }
    70% {
        transform: translate(-3px, 4px) rotate(-1.5deg);
    }
}

@keyframes igAvatarSubtleBob2 {
    0%, 100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    40% {
        transform: translate(-4px, 5px) rotate(-2deg);
    }
    75% {
        transform: translate(4px, -4px) rotate(1.5deg);
    }
}

.ig-repost-wander {
    animation: igAmbientWander 26s cubic-bezier(0.42, 0, 0.58, 1) infinite;
    will-change: transform;
}

.ig-avatar-bob-1 {
    animation: igAvatarSubtleBob1 16s ease-in-out infinite;
    will-change: transform;
}

.ig-avatar-bob-2 {
    animation: igAvatarSubtleBob2 20s ease-in-out infinite;
    will-change: transform;
}

/* Pause wander during user hover/interaction so it is easy to click */
.ig-repost-wander:hover {
    animation-play-state: paused;
}

/* Khusus Modal Interaksi Postingan (Hanya Menggunakan Font Google Sans, kecuali Icon FontAwesome) */
#ig-interactions-modal,
#ig-interactions-modal *:not(i):not([class*="fa-"]) {
    font-family: 'Google Sans', sans-serif !important;
}

/* ── Instagram Story Highlight Viewer Modal (Authentic Web Story Experience) ── */
#ig-story-modal {
    position: fixed;
    inset: 0;
    z-index: 10005;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#ig-story-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.ig-story-card-active {
    position: relative;
    width: auto;
    max-width: 440px;
    height: 100%;
    max-height: 820px;
    aspect-ratio: 9 / 16;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    will-change: transform, filter, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}
@media (max-width: 1024px) {
    #ig-story-modal {
        background-color: #000000;
        padding: 0 !important;
    }
    .ig-story-card-active {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    #story-stage-track {
        width: 100vw !important;
        height: 100dvh !important;
    }
    #story-main-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    .ig-story-card-active.story-opening-zoom {
        animation: storyMobileZoomIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
        transform-origin: center center;
        will-change: transform, opacity, border-radius;
    }
}

@keyframes storyMobileZoomIn {
    0% {
        transform: scale(0.78);
        opacity: 0.15;
        border-radius: 24px !important;
        filter: brightness(0.85);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        border-radius: 0 !important;
        filter: brightness(1);
    }
}
.ig-story-side-card {
    position: relative;
    width: 200px;
    aspect-ratio: 9 / 16;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #181818;
    cursor: pointer;
    opacity: 0.42;
    transform: scale(0.85);
    filter: blur(1.5px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
    user-select: none;
    will-change: transform, filter, opacity;
}
.ig-story-side-card.card-outer {
    width: 170px;
    aspect-ratio: 9 / 16;
    height: auto;
    opacity: 0.26;
    transform: scale(0.74);
    filter: blur(2.5px);
}
.story-preview-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform-origin: center center;
    will-change: transform;
}
.ig-story-side-card.card-outer .story-preview-badge {
    transform: scale(1.14865); /* Kompensasi skala 0.74 x 1.14865 = 0.85, sehingga ukuran logo dan nama feed card tangga 2 100% sama dengan tangga 1 */
}
.story-progress-seg {
    flex: 1;
    min-width: 3px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.story-progress-fill {
    height: 100%;
    background: #ffffff;
    width: 0%;
    border-radius: 9999px;
    will-change: width;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.6);
}
#story-backdrop-blur {
    filter: blur(28px) saturate(140%) brightness(0.75);
    transform: scale(1.25);
    will-change: opacity, transform;
}
#story-main-img {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    transition: opacity 0.22s cubic-bezier(0.2, 0, 0, 1);
    will-change: opacity;
}

/* Proteksi video player: Sembunyikan opsi download dan menu titik 3 bawaan */
video::-internal-media-controls-download-button {
    display: none !important;
}
video::-webkit-media-controls-download-button {
    display: none !important;
}
video::-webkit-media-controls-overflow-button {
    display: none !important;
}