
/* ==========================================
   GALLERY - MODERN MINIMALIST DESIGN
   LPK AKTIF MUDA KOOPERATIF
========================================== */

:root {
    --primary: #20211e;
    --secondary: #777970;
    --background: #f6f5f1;
    --white: #ffffff;
    --accent: #d96b45;
    --border: #e8e7e1;

    --content-width: 1240px;
    --header-height: 76px;
    --radius: 15px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--primary);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

/* ==========================================
   HEADER
========================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-container {
    width: min(var(--content-width), calc(100% - 64px));
    min-height: var(--header-height);
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 120px;
    object-fit: contain;
}

.logo-text {
    display: none;
}

/* NAVIGATION */

.navbar ul {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.navbar a {
    position: relative;
    display: inline-flex;
    align-items: center;

    min-height: 44px;

    color: #55564f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition: 0.3s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--accent);

    transform: scaleX(0);
    transform-origin: left;

    transition: 0.3s ease;
}

.navbar a:hover {
    color: var(--primary);
}

.navbar a:hover::after {
    transform: scaleX(1);
}

/* CONTACT BUTTON */

.navbar .nav-contact {
    padding: 11px 21px;
    min-height: auto;

    border: 1px solid var(--primary);
    border-radius: 50px;

    color: var(--primary);

    transition: 0.3s ease;
}

.navbar .nav-contact::after {
    display: none;
}

.navbar .nav-contact:hover {
    background: var(--primary);
    color: var(--white);
}

/* MENU TOGGLE */

.menu-toggle {
    display: none;
}

/* ==========================================
   MAIN GALLERY
========================================== */

.gallery-container {
    width: min(var(--content-width), calc(100% - 64px));

    margin: auto;
    padding: 75px 0 100px;

    flex: 1;
}

.featured-project {
    width: 100%;
}

.featured-info {
    width: 100%;
}

/* GALLERY TITLE */

#projectTitle {
    margin-bottom: 35px;

    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;

    letter-spacing: -2px;
    line-height: 1.1;

    color: var(--primary);
}

#projectTitle::after {
    content: "";

    display: block;

    width: 48px;
    height: 4px;

    margin-top: 18px;

    border-radius: 10px;
    background: var(--accent);
}

/* ==========================================
   GALLERY GRID
========================================== */

.featured-gallery {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.featured-gallery-item {
    position: relative;
    overflow: hidden;

    aspect-ratio: 4 / 3;

    border-radius: var(--radius);

    background: #e7e5de;

    isolation: isolate;
}

.featured-gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: inherit;

    pointer-events: none;
}

.featured-gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    cursor: zoom-in;

    transition:
        transform 0.6s ease,
        filter 0.4s ease;
}

.featured-gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.04);
}

/* ==========================================
   FOOTER
========================================== */

.footer {
    width: 100%;

    background: var(--primary);
    color: var(--white);
}

.section-container {
    width: min(var(--content-width), calc(100% - 64px));
    margin: auto;
}

.footer-content {
    min-height: 190px;

    padding: 42px 0 38px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;
}

.footer h3 {
    margin-bottom: 12px;

    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;

    letter-spacing: 1px;
}

.footer p {
    max-width: 360px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;
    line-height: 1.8;
}

.footer .copyright {
    align-self: flex-end;

    font-size: 12px;
    text-align: right;
}

/* ==========================================
   LIGHTBOX
========================================== */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 90px;

    background: rgba(13, 14, 13, 0.97);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* LIGHTBOX IMAGE */

.lightbox-content {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-width: 0;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 5px;

    user-select: none;
    -webkit-user-drag: none;
}

/* LIGHTBOX BUTTONS */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    color: white;
    font-size: 24px;

    cursor: pointer;

    transition: 0.25s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    transform: scale(1.08);
}

/* CLOSE */

.lightbox-close {
    top: 25px;
    right: 30px;

    font-size: 30px;
}

/* PREVIOUS */

.lightbox-prev {
    left: 28px;
}

/* NEXT */

.lightbox-next {
    right: 28px;
}

/* COUNTER */

.lightbox-counter {
    position: absolute;

    bottom: -38px;
    left: 0;
    right: 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: 13px;
    text-align: center;

    font-variant-numeric: tabular-nums;
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 900px) {

    .nav-container,
    .gallery-container,
    .section-container {
        width: calc(100% - 44px);
    }

    .navbar ul {
        gap: 20px;
    }

    .navbar a {
        font-size: 12px;
    }

    .gallery-container {
        padding-top: 55px;
        padding-bottom: 75px;
    }

    .featured-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 600px) {

    /* HEADER */

    .header {
        position: sticky;
        top: 0;
    }

    .nav-container {
        width: calc(100% - 32px);

        min-height: auto;

        padding: 9px 0 10px;

        display: flex;
        flex-wrap: wrap;
        gap: 5px 12px;
    }

    .logo img {
        width: 43px;
        height: 43px;
    }

    /* MOBILE NAVIGATION */

    .navbar {
        width: 100%;

        overflow-x: auto;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .navbar::-webkit-scrollbar {
        display: none;
    }

    .navbar ul {
        display: flex;

        width: max-content;
        min-width: 100%;

        justify-content: space-between;

        gap: 20px;

        padding: 2px 0 4px;
    }

    .navbar a {
        min-height: 32px;

        white-space: nowrap;

        font-size: 11px;
    }

    .navbar a::after {
        bottom: 0;
    }

    .navbar .nav-contact {
        min-height: 30px;
        padding: 7px 13px;
    }

    .menu-toggle {
        display: none;
    }

    /* GALLERY */

    .gallery-container {
        width: calc(100% - 32px);

        padding: 38px 0 55px;
    }

    #projectTitle {
        margin-bottom: 24px;

        font-size: 31px;
        letter-spacing: -1.3px;
    }

    #projectTitle::after {
        width: 38px;
        height: 3px;

        margin-top: 13px;
    }

    /* 2 COLUMNS ON MOBILE */

    .featured-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .featured-gallery-item {
        aspect-ratio: 1 / 1;

        border-radius: 10px;
    }

    .featured-gallery-item img {
        transition: none;
    }

    /* FOOTER */

    .footer-content {
        width: calc(100% - 32px);

        min-height: auto;

        padding: 30px 0 25px;

        display: flex;
        flex-direction: column;

        gap: 24px;
    }

    .footer h3 {
        font-size: 13px;
    }

    .footer p {
        font-size: 12px;
    }

    .footer .copyright {
        align-self: flex-start;

        text-align: left;
    }

    /* LIGHTBOX MOBILE */

    .lightbox {
        padding: 62px 12px 74px;
    }

    .lightbox-content {
        width: 100%;
        height: 100%;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 78vh;

        border-radius: 3px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;

        font-size: 20px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;

        font-size: 27px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: -34px;
        font-size: 12px;
    }

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 360px) {

    .nav-container {
        width: calc(100% - 24px);
    }

    .navbar ul {
        gap: 15px;
    }

    .gallery-container,
    .section-container,
    .footer-content {
        width: calc(100% - 24px);
    }

    .featured-gallery {
        gap: 7px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}
