:root {
    --navy: #081826;
    --navy2: #0d2537;
    --gold: #d4ad62;
    --gold2: #f1d18d;
    --cream: #f7f4ed;
    --soft: #f4f7f8;
    --text: #17212b;
    --muted: #6c7a86;
    --cyan: #bce9f3;
    --green: #b6f3d2;
    --pink: #ef4aa8;
    --red: #e8001e;
    --gold2: #f5c400;
    --white: #ffffff;
    --dark: #0c0c0c;
    --darker: #080808;
    --adh-yellow: #f5c400;
    --adh-gold: #d4ad62;
    --adh-ink: #15191f;
}

* {
    font-family: "Kanit", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: .025;
    pointer-events: none;
    z-index: 0;
}

body.gallery-fancybox-open {
    overflow: hidden !important;
}


.title-gold {
    color: var(--gold);
}

.circuit-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.circuit-bg svg {
    width: 100%;
    height: 100%;
    opacity: .03;
}

.glow-red {
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232, 0, 30, .18) 0%, transparent 65%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 7s ease-in-out infinite;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

.section-pad {
    padding: 76px 0;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 34px;
}

.section-title:before,
.section-title:after {
    content: "";
    width: 38px;
    height: 3px;
    border-radius: 99px;
    background: var(--gold);
}

.top-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 24px;
    z-index: 20;
    background: transparent;
    border-bottom: 0;
    pointer-events: none;
}

.top-menu .container {
    pointer-events: none;
}

.top-menu .dropdown {
    pointer-events: auto;
}

.hamburger-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 1.6rem;
    display: grid;
    place-items: center;
    transition: .25s ease;
    padding-top: 4px;
}

.hamburger-btn:hover {
    background: var(--gold);
    color: #111;
    transform: translateY(-2px);
}

.dropdown-menu-custom {
    min-width: 260px;
    border: 0;
    border-radius: 15px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    margin-top: 10px !important;
}

.dropdown-menu-custom .dropdown-item {
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    color: #142536;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: #f4ead7;
    color: #000;
}

.hero {
    min-height: 760px;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}

.hero:after {
    content: "";
    position: absolute;
    inset: auto -10% -35% -10%;
    height: 360px;
    background: linear-gradient(180deg, rgba(212, 173, 98, .0), rgba(212, 173, 98, .18));
    transform: rotate(-2deg);
}

.hero-logo {
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .36));
}

.hero-subtitle {
    color: var(--gold2);
    font-weight: 800;
    letter-spacing: .05em;
}

.hero-title {
    font-size: clamp(1.35rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1.25;
    max-width: 900px;
    margin: auto;
    color: var(--gold2);
}

.hero-caption {
    color: rgba(255, 255, 255, .72);
    max-width: 760px;
    margin: 18px auto 0;
}

.dna-line {
    display: flex;
    align-items: center;
    gap: .5rem;
    animation: fadeUp .8s .2s ease both;
    padding: 2rem;
}

.dna-line .line-seg {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--red));
}

.dna-line .line-seg.r {
    background: linear-gradient(90deg, var(--red), transparent);
}

.dna-dot {
    width: 8px;
    height: 8px;
    border: 2px solid var(--red);
    border-radius: 50%;
}

.dna-line span {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--red);
}

.banner-slider {
    margin-top: 54px;
    margin-bottom: 54px;
    position: relative;
    z-index: 2;
}

.feature-banner {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #ddd;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
    isolation: isolate;
}

.feature-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s ease;
}

.feature-banner:hover img {
    transform: scale(1.06);
}

.feature-banner:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 58%, rgba(0, 0, 0, .35));
}

.artist-strip {
    background: var(--gold);
}

.artist-card {
    text-align: center;
    transition: .35s ease;
    display: block;
    color: #111;
}

.artist-card:hover {
    transform: translateY(-10px);
    color: #111;
}

.artist-card .avatar {
    width: 100%;
    height: 250px;
    border: 9px solid #111;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .28);
    transition: .35s ease;
    background: #111;
}

.artist-card:hover .avatar {
    filter: saturate(1.1) contrast(1.04);
    box-shadow: 0 22px 45px rgba(0, 0, 0, .38);
}

.artist-card p {
    margin: 1rem 0 0;
    font-size: 1rem;
    font-weight: 700;
}

.portrait-grid {
    background: #f7f7f7;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: auto;
}

.mini-grid a {
    display: block;
}

.mini-grid img {
    height: 130px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 4px solid #141414;
    transition: .35s;
    width: 100%;
}

.mini-grid img:hover {
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .22);
}

.gallery-filter {
    max-width: 1050px;
    margin: 0 auto 34px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.gallery-search-wrap {
    position: relative;
    min-width: min(100%, 330px);
}

.gallery-search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6ba7b8;
}

.gallery-filter .search {
    width: 100%;
    border: 0;
    background: #eaf7fb;
    border-radius: 999px;
    padding: 12px 18px 12px 42px;
    font-size: .9rem;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(70, 150, 170, .12);
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pill {
    border: 0;
    background: #c6edf7;
    border-radius: 999px;
    padding: 10px 25px;
    font-size: .85rem;
    font-weight: 700;
    color: #316274;
    transition: .25s;
}

.pill:hover,
.pill.active {
    background: var(--gold);
    color: #111;
    transform: translateY(-2px);
}

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

.art-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .08);
    transition: .35s ease;
    position: relative;
    display: block;
    color: #fff;
}

.art-card img {
    width: 100%;
    aspect-ratio: 1.2/1;
    object-fit: cover;
}

.art-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .15);
}

.art-card .art-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 14px 14px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .76));
    opacity: 0;
    transition: .3s;
    text-align: left;
}

.art-card:hover .art-info {
    opacity: 1;
}

.art-card .view-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(8, 24, 38, .82);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .75rem;
    opacity: 0;
    transition: .3s;
}

.art-card:hover .view-badge {
    opacity: 1;
}


/* gallery card */
.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: .35s;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card .overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 14px;

    color: #fff;

    background: linear-gradient(transparent,
            rgba(0, 0, 0, .82));
}

.gallery-card .view-image {
    position: absolute;
    top: 14px;
    right: 14px;

    background: rgba(0, 0, 0, .65);
    color: #fff;

    padding: 8px 12px;

    border-radius: 999px;

    opacity: 0;
    transition: .25s;
}

.gallery-card:hover .view-image {
    opacity: 1;
}

/* FANCYBOX */

.gallery-fancybox .fancybox__content {
    padding: 0 !important;
    background: transparent !important;
}

.gallery-facebook-popup {
    width: min(1400px, 96vw);
    height: min(92vh, 920px);

    display: flex;

    overflow: hidden;

    border-radius: 20px;

    background: #fff;
}

/* LEFT */

.gallery-facebook-image {
    flex: 1;

    background: #000;

    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-facebook-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* RIGHT */

.gallery-facebook-panel {
    width: 420px;

    display: flex;
    flex-direction: column;

    background: #fff;

    border-left: 5px solid var(--gold);

    overflow: hidden;
}

.artist-box {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 20px;

    border-bottom: 1px solid #eee;
}

.artist-box img {
    width: 58px;
    height: 58px;

    border-radius: 50%;
    object-fit: cover;
}

.artist-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.artist-info small {
    color: #777;
}

.gallery-content {
    flex: 1;
    overflow: auto;

    padding: 22px;
}

.gallery-content h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 16px;
}

.gallery-content .detail {
    line-height: 1.8;
    color: #444;
}

.comment-box-popup {
    padding: 10px;

    border-top: 1px solid #eee;

    background: #fafafa;
}

.comment-item {
    margin-top: 12px;
}

.comment-item strong {
    display: block;
}

/* SCROLLBAR */

.gallery-content::-webkit-scrollbar {
    width: 8px;
}

.gallery-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 999px;
}

/* gallery card */


.view-image,
.artist-work-card .view-image,
.workshop-gallery-card .view-image {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .92);
    color: #111;
    font-size: .78rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(-4px);
    transition: .24s ease;
}

.view-image,
.artist-work-card:hover .view-image,
.workshop-gallery-card:hover .view-image {
    opacity: 1;
    transform: none;
}

.empty-state-data {
    text-align: center;
    color: var(--muted);
    padding: 36px;
    background: #f7fafb;
    border-radius: 20px;
}

.page-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #c6edf7;
    color: #174b5b;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
}

.workshop {
    background: #e9e5cf;
}

.workshop-hero {
    border-radius: 24px;
    overflow: hidden;
    background: #aef0cf;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .12);
}

.workshop-copy {
    padding: 42px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.workshop-copy h3 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 900;
    line-height: .9;
    color: #16a468;
    margin-bottom: 24px;
}

.workshop-copy .namesub {
    margin: 1rem 0 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.text-limit {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-gradient {
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(90deg, #f5b337, #ef4aa8);
    box-shadow: 0 14px 25px rgba(239, 74, 168, .25);
}

.workshop-art {
    background: #07251b;
    padding: 28px;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.workshop-art img {
    border: 12px solid #111;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.workshop-card img {
    border-radius: 14px;
    aspect-ratio: 1.15/1;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.workshop-card h6 {
    font-weight: 900;
    margin-top: 14px;
    margin-bottom: 6px;
}

.workshop-card p {
    font-size: .82rem;
    color: var(--muted);
}

.media-card {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    height: 100%;
    transition: .3s;
}

.media-card:hover {
    transform: translateY(-6px);
}

.media-card img {
    border-radius: 13px;
    aspect-ratio: 1.25/1;
    object-fit: cover;
    width: 100%;
}

.video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    transition: .3s;
}

.video-thumb:hover {
    transform: translateY(-6px);
}

.video-thumb img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .82);
    color: #0c5f87;
    font-size: 1.6rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

footer {
    background: var(--navy);
    color: #fff;
    padding: 30px 0 30px;
    border-top: 6px solid var(--gold);
}

footer .logo {
    width: 120px;
    margin: auto;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
}

.social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: var(--gold2);
    background: rgba(255, 255, 255, .08);
    margin: 0 5px;
    text-decoration: none;
    transition: .25s;
}

.social a:hover {
    background: var(--gold);
    color: #111;
    transform: translateY(-4px);
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

[data-animate].show {
    opacity: 1;
    transform: none;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide a, .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#scrollTopBtn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background-color: var(--adh-yellow);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(.9);
    transition: opacity .28s ease, transform .28s ease, box-shadow .25s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#scrollTopBtn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

#scrollTopBtn:active {
    transform: translateY(-2px) scale(.98);
}

.fancybox__caption {
    font-family: "Kanit", sans-serif;
    line-height: 1.65;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111;
    background: #f4ead7;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .78rem;
    font-weight: 800;
}

@media (min-width: 992px) {
    .gallery-fancybox .fancybox__container {
        --fancybox-bg: rgba(8, 8, 8, .94);
    }

    .gallery-fancybox .fancybox__slide {
        padding: 34px;
    }

    .gallery-fancybox .fancybox__content {
        width: 100% !important;
        height: calc(100vh - 68px) !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #050505;
    }

    .gallery-fancybox .fancybox__image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .gallery-fancybox .fancybox__caption {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: min(386px, 34vw);
        height: 100vh;
        max-width: none;
        padding: 36px 28px;
        background: #fff;
        color: var(--adh-ink);
        overflow: hidden;
        border-left: 6px solid var(--adh-gold);
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .gallery-fancybox .fancybox__caption h3 {
        flex: 0 0 auto;
        font-weight: 900;
        margin-bottom: 16px;
    }

    .gallery-fancybox .fancybox__caption p {
        flex: 0 0 auto;
        margin-bottom: 12px;
    }

    .gallery-fancybox .fancybox__caption .detail,
    .gallery-fancybox .fancybox__caption p:last-child {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-right: 10px;
    }

    .gallery-fancybox .fancybox__caption .detail strong {
        display: block;
        margin-bottom: 8px;
        color: var(--adh-red);
    }

    .gallery-fancybox .fancybox__caption .detail::-webkit-scrollbar,
    .gallery-fancybox .fancybox__caption p:last-child::-webkit-scrollbar {
        width: 8px;
    }

    .gallery-fancybox .fancybox__caption .detail::-webkit-scrollbar-thumb,
    .gallery-fancybox .fancybox__caption p:last-child::-webkit-scrollbar-thumb {
        background: var(--adh-gold);
        border-radius: 999px;
    }
}

/* Tablet */
@media(max-width:991px) {
    .mini-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .gallery-facebook-popup {
        width: 100vw;
        height: 100vh;

        border-radius: 0;

        flex-direction: column;
    }

    .gallery-facebook-image {
        height: 48vh;
        flex: none;
    }

    .gallery-facebook-panel {
        width: 100%;
        flex: 1;

        border-left: 0;
        border-top: 5px solid var(--gold);
    }

    .feature-banner {
        height: 230px;
    }
}

@media(max-width:575px) {
    .section-pad {
        padding: 54px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .gallery-facebook-image {
        height: 42vh;
    }

    .gallery-content {
        padding: 16px;
    }

    .gallery-content h3 {
        font-size: 20px;
    }

    .mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .workshop-copy {
        padding: 28px;
    }

    .hero {
        min-height: auto;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
        height: 44px;
    }

    .feature-banner {
        height: 200px;
        border-radius: 18px;
    }
}