* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    background: #ffffff;
    color: #111;
    line-height: 1.7;
}

/* HERO */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg img {
   width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.75));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 52px;
    letter-spacing: 2px;
}

.hero-content p {
    margin: 15px 0 25px;
    opacity: 0.8;
}

/* BUTTON */
.btn-ghost {
    padding: 10px 26px;
    border: 1px solid rgba(255,255,255,0.7);
    color: white;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.btn-ghost:hover {
    background: white;
    color: black;
}

/* SECTIONS */
.container {
    max-width: 800px;
    margin: auto;
    padding: 0 20px;
    text-align: center;
}

section {
    padding: 120px 0;
}

/* INTRO */
.intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.intro p {
    font-size: 18px;
    color: #444;
}

/* GALLERY */
.gallery-preview {
    padding: 60px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

/* ABOUT */
.about {
    background: #f4f4f4;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* AUTHOR */
.author h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.author .tagline {
    opacity: 0.6;
    margin-bottom: 30px;
}

.author p {
    margin-bottom: 16px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    font-size: 14px;
    color: #777;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* SMALL DETAIL (SIGNATURE) */
::selection {
    background: black;
    color: white;
}

/* =========================
   GALLERY HERO
========================= */
.gallery-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.gallery-hero-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.gallery-hero-content p {
    opacity: 0.7;
    font-size: 16px;
}

/* NAV (BACK TO HOME) */
.gallery-nav {
    position: absolute;
    top: 30px;
    left: 40px;
}

.nav-home {
    text-decoration: none;
    color: #111;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-home:hover {
    opacity: 1;
}

/* =========================
   GALLERY GRID UPGRADE
========================= */

/* Biar beda dari homepage */
.gallery-grid {
    padding: 80px 40px;
    gap: 20px;
}

/* ITEM FIX */
.gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 3;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* HOVER FEEL */
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.8);
}

/* =========================
   CAPTION (INI YANG BIKIN “NARATIVE”)
========================= */
.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0)
    );

    color: white;

    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 14px;
    opacity: 0.8;
}

/* =========================
   MOBILE FIX (IMPORTANT)
========================= */
@media (max-width: 768px) {

    .gallery-hero {
        height: auto;
        padding: 80px 20px;
    }

    .gallery-hero-content h1 {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    /* Caption selalu terlihat di HP */
    .gallery-caption {
        opacity: 1;
        transform: none;
        background: rgba(0,0,0,0.5);
    }
}

/* =========================
   GALLERY HERO (SAMA DENGAN HOME)
========================= */
.gallery-hero {
    height: 60vh;
    position: relative;
    overflow: hidden;
}

/* BACKGROUND IMAGE (SAMA PERSIS LOGIKA HOME) */
.gallery-bg img {
    position: absolute;
    inset: 0; /* 🔥 ini kunci */
    
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* 🔥 penting */

    transform: scale(1.05);
    filter: brightness(0.85);
}

/* OVERLAY (BENERIN INI) */
.gallery-hero .overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.75)
    );

    z-index: 1;
}

/* CONTENT */
.gallery-hero-content {
    position: relative;
    z-index: 2;

    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    text-align: center;
    padding: 0 20px;
}

.gallery-hero-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.gallery-hero-content p {
    opacity: 0.8;
}

/* NAV */
.gallery-nav {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 3;
}

.nav-home {
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: 0.3s;
}

.nav-home:hover {
    opacity: 1;
}

/* =========================
   STORY PAGE
========================= */

/* HERO */
.story-hero {
    height: 50vh !important;
    position: relative;
    overflow: hidden;
}

.story-bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1.05);
    filter: brightness(0.90);
}

.story-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.7)
    );
}

/* NAV */
.story-nav {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 2;
}

.nav-back {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
}

.nav-back:hover {
    opacity: 1;
}

/* TITLE */
.story-title {
    text-align: center;
    padding: 80px 20px 40px;
}

.story-title h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.story-title .meta {
    opacity: 0.6;
    font-size: 14px;
}

/* CONTENT */
.story-content {
    max-width: 700px;
    margin: auto;
    padding: 0 20px;
}

.story-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* IMAGE */
/* Matikan efek padding global section */
.story-image,
.story-reflection {
    padding: 0 !important;
}

/* Rapetin jarak image */
.story-image {
    margin: 20px 0 10px !important;
}

/* Rapetin reflection */
.story-reflection {
    margin: 10px auto 40px !important;
    max-width: 500px;
    text-align: center;
    font-style: italic;
    opacity: 0.7;
}

/* Biar image lebih rapi */
.story-image img {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #fff;
    font-size: 14px;
}

.footer-tags {
    margin-top: 8px;
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.5px;
}
