/* Shared visual refresh for Alva Creative World portfolio pages. */
:root {
    --alva-ink: #171717;
    --alva-muted: #6d6a66;
    --alva-paper: #f7f5f1;
    --alva-line: rgba(23, 23, 23, .12);
    --alva-accent: #b37b52;
    --alva-display: "Playfair Display", Georgia, serif;
    --alva-sans: "Open Sans", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--alva-paper); color: var(--alva-ink); font-family: var(--alva-sans); }
body::selection { color: #fff; background: var(--alva-accent); }

.header_top_bg {
    background: rgba(247, 245, 241, .92) !important;
    border-bottom: 1px solid var(--alva-line);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
}
.header_top_bg header.classic { min-height: 76px; }
.header_top_bg .logo {
    color: var(--alva-ink) !important;
    font-family: var(--alva-display) !important;
    font-size: 18px !important;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.header_top_bg .logo:hover { color: var(--alva-accent) !important; }

/* Individual client galleries */
.preloader-text { background: var(--alva-ink) !important; }
.portfolio-single-content { max-width: 1440px; padding: 0 28px 72px; }
.portfolio-single-content .light-gallery {
    display: flex !important;
    gap: 14px;
    align-items: flex-start;
    height: auto !important;
    margin: 0;
}
.portfolio-single-content .light-gallery .gallery-col {
    flex: 1 1 calc(33.333% - 9.333px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.portfolio-single-content .light-gallery .gallery-item {
    display: block !important;
    float: none !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    background: transparent !important;
}
.portfolio-single-content .light-gallery .gallery-item img {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    object-fit: initial;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.portfolio-single-content .light-gallery .gallery-item:hover img { filter: none; transform: none; }
.portfolio-single-content .light-gallery .caption,
.portfolio-single-content .light-gallery .gallery-item::before,
.portfolio-single-content .light-gallery .gallery-item::after { display: none !important; }
.content .title, .content h3, .content h4 { font-family: var(--alva-display); color: var(--alva-ink); }
.content .descr { color: var(--alva-muted); letter-spacing: .04em; }
.portfolio-page .portfolio-hero-cover { background: var(--alva-ink); margin: 0; overflow: hidden; }
.portfolio-page .portfolio-hero-cover img { display: block; height: clamp(360px, 56vw, 760px); object-fit: cover; object-position: center; width: 100%; }
.portfolio-page .portfolio-detail-intro { margin: 0 auto; max-width: 820px; padding: clamp(48px, 7vw, 92px) 24px 40px; text-align: center; }
.portfolio-page .portfolio-detail-intro h1 { color: var(--alva-ink); font-family: var(--alva-display); font-size: clamp(36px, 5vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin: 0; }
.portfolio-page .portfolio-detail-intro .descr { font-size: 15px; line-height: 1.75; margin: 20px auto 0; max-width: 640px; }

@media (max-width: 767px) {
    .header_top_bg .container-fluid,
    .header_top_bg .row,
    .header_top_bg [class*="col-"] { padding-bottom: 0 !important; padding-top: 0 !important; }
    .header_top_bg header.classic { height: 72px !important; min-height: 72px !important; }
    .header_top_bg .logo { font-size: 16px !important; letter-spacing: .11em; }
    .portfolio-single-content { padding: 0 14px 44px; }
    .portfolio-single-content .light-gallery { gap: 7px; }
    .portfolio-single-content .light-gallery .gallery-col {
        flex: 1 1 calc(50% - 3.5px);
        gap: 7px;
    }
    .portfolio-page .portfolio-hero-cover img { height: min(118vw, 580px); }
    .portfolio-page .portfolio-detail-intro { padding: 42px 20px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Homepage: editorial intro and a simpler, faster portfolio browser. */
.home-page .main-wrapper { overflow: clip; }
.home-page .site-header {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100%;
}
.home-page .site-header .logo { float: none !important; margin: 0 !important; position: static !important; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
    color: var(--alva-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.site-nav a:last-child {
    border: 1px solid var(--alva-ink);
    padding: 10px 14px;
    transition: background .2s ease, color .2s ease;
}
.site-nav a:last-child:hover { background: var(--alva-ink); color: #fff; }
.home-hero { background: var(--alva-ink); }
.home-hero .row { min-height: min(650px, 75vh); }
.home-hero .image-wrap { min-height: 440px; overflow: hidden; }
.home-hero .image-wrap img { height: 100%; object-fit: cover; object-position: center; width: 100%; }
.home-hero .hero-content {
    align-items: flex-start;
    background: var(--alva-ink) !important;
    color: #f7f5f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 8vw, 132px) clamp(32px, 7vw, 112px) !important;
}
.eyebrow { color: var(--alva-accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; margin: 0 0 20px; text-transform: uppercase; }
.home-hero .hero-content .title {
    color: #fff;
    font-family: var(--alva-display);
    font-size: clamp(38px, 4.5vw, 74px);
    font-weight: 400;
    left: auto !important;
    letter-spacing: -.04em;
    line-height: .98;
    margin: 0 !important;
    max-width: none !important;
    order: 2;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
}
.home-hero .title em { color: #d8b49a; font-weight: 400; }
.home-hero .eyebrow { order: 1; }
.hero-copy { color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.8; margin: 28px 0; max-width: 460px; order: 3; }
.hero-cta { border-bottom: 1px solid #d8b49a; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .16em; order: 4; padding-bottom: 9px; text-transform: uppercase; }
.hero-cta:hover { color: #d8b49a; }
.portfolio-heading { margin: 0 auto; max-width: 750px; padding: clamp(44px, 8vw, 112px) 24px 28px; text-align: center; }
.portfolio-heading h2 { color: var(--alva-ink); font-family: var(--alva-display); font-size: clamp(34px, 4vw, 56px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; margin: 0; }
.portfolio-heading > p:last-child { color: var(--alva-muted); font-size: 15px; line-height: 1.7; margin: 18px auto 0; }
.home-page .portfolio-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 42px; padding: 0 20px; }
.home-page .portfolio-filter .btn {
    background: transparent !important;
    border: 1px solid var(--alva-line) !important;
    border-radius: 999px !important;
    box-shadow: none;
    color: var(--alva-ink) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    margin: 0 !important;
    padding: 11px 17px;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.home-page .portfolio-filter .btn:hover, .home-page .portfolio-filter .btn.active { background: var(--alva-ink) !important; border-color: var(--alva-ink) !important; color: #fff !important; }
.home-page #grid-4028 { padding: 0 clamp(14px, 3.5vw, 60px) clamp(70px, 9vw, 132px); }
.home-page .tg-layout-masonry.home-blog {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: clamp(12px, 2vw, 28px);
    height: auto !important;
    margin: 0 !important;
    width: 100% !important;
}
/* Bootstrap's .row inserts clearing pseudo-elements; in a CSS grid those become
   empty grid cells and create the large gap at the beginning of the portfolio. */
.home-page .tg-layout-masonry.home-blog::before,
.home-page .tg-layout-masonry.home-blog::after { content: none !important; display: none !important; }
.home-page .home-blog .tg-item {
    display: block;
    float: none !important;
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
}
.home-page .home-blog .tg-item[hidden] { display: none !important; }
.home-page .home-blog .tg-item-inner, .home-page .home-blog .tg-item-media-holder { background: transparent; height: 100%; }
.home-page .home-blog .tg-item-media-holder > a { background: #dfd8d0; display: block; height: 100%; overflow: hidden; position: relative; }
.home-page .home-blog .tg-item-media-inner { height: 100%; overflow: hidden; }
.home-page .home-blog .tg-item-media-content { background: transparent !important; display: none !important; }
.home-page .home-blog .tg-item-image { aspect-ratio: 4 / 5; display: block; height: 100% !important; max-height: none !important; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); width: 100% !important; }
.home-page .home-blog .tg-item:hover .tg-item-image { transform: scale(1.045); }
.home-page .home-blog .tg-item-content-holder {
    background: transparent !important;
    backdrop-filter: none !important;
    bottom: 0 !important;
    display: flex !important;
    inset: 0 !important;
    left: 0 !important;
    min-height: 100% !important;
    justify-content: center;
    padding: 18px !important;
    position: absolute !important;
    text-align: left !important;
    width: 100% !important;
}
.home-page .home-blog .tg-item-content-holder,
.home-page .home-blog .tg-item-content-holder::before,
.home-page .home-blog .tg-item-content-holder::after,
.home-page .home-blog .tg-item-title {
    border: 0 !important;
    outline: 0 !important;
}
.home-page .home-blog .tg-item-title {
    align-self: center;
    margin: 0 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
}
.home-page .home-blog .tg-item-title a,
.home-page .home-blog .tg-item-title span { color: #fff !important; font-family: var(--alva-display) !important; font-size: clamp(19px, 1.8vw, 27px) !important; font-weight: 400 !important; letter-spacing: -.02em; line-height: 1.1 !important; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.home-page #footer { bottom: auto !important; left: auto !important; position: relative !important; z-index: auto !important; }
.home-page footer { background: var(--alva-ink); border: 0; clear: both; color: rgba(255,255,255,.72); padding: 50px 0 32px; }
.home-page footer h5, .home-page footer a, .home-page footer p { color: inherit !important; }
.home-page footer h5 { color: #fff !important; font-family: var(--alva-display); font-size: 22px; font-weight: 400; letter-spacing: 0; }
.home-page footer a:hover { color: #d8b49a !important; }

@media (max-width: 767px) {
    .site-nav { gap: 12px; }
    .site-nav a:first-child { display: none; }
    .site-nav a:last-child { font-size: 9px; padding: 8px 10px; }
    .home-hero { isolation: isolate; overflow: hidden !important; position: relative !important; }
    .home-hero .row {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: clamp(480px, 85vh, 600px) !important;
        margin: 0 !important;
        position: relative !important;
    }
    .home-hero .image-wrap {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        z-index: 1 !important;
        overflow: hidden !important;
    }
    .home-hero .image-wrap img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        filter: blur(10px) brightness(.38) !important;
        transform: scale(1.1) !important;
    }
    .home-hero .hero-content,
    .home-page .home-hero .image-wrap + .hero-content,
    .home-page .home-hero .hero-content {
        align-items: center !important;
        background: transparent !important;
        background-color: transparent !important;
        justify-content: center !important;
        min-height: clamp(480px, 85vh, 600px) !important;
        padding: 44px 24px !important;
        position: relative !important;
        text-align: center !important;
        z-index: 2 !important;
        width: 100% !important;
        float: none !important;
    }
    .home-hero .hero-content .title { font-size: clamp(30px, 8vw, 42px) !important; text-align: center !important; }
    .home-hero .hero-copy { font-size: 14px !important; line-height: 1.65 !important; margin: 20px auto !important; max-width: 360px !important; text-align: center !important; }
    .home-hero .hero-cta { margin: 0 auto !important; }
    .home-page .tg-layout-masonry.home-blog { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .home-page .home-blog .tg-item-content-holder { padding: 14px !important; }
    .home-page .home-blog .tg-item-title a,
    .home-page .home-blog .tg-item-title span {
        display: block;
        font-size: clamp(15px, 4.3vw, 18px) !important;
        letter-spacing: -.035em;
        line-height: 1.1 !important;
        margin: 0 auto;
        max-width: 96%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Portfolio Album Chapter / Section headers */
.portfolio-section-block {
    margin-bottom: 56px;
}
.portfolio-section-block:last-child {
    margin-bottom: 0;
}
.portfolio-section-title {
    align-items: center;
    display: flex;
    gap: 18px;
    margin: 0 0 32px;
    text-align: center;
    justify-content: center;
}
.portfolio-section-title::before,
.portfolio-section-title::after {
    background: var(--alva-line);
    content: "";
    flex: 1;
    height: 1px;
}
.portfolio-section-title span {
    color: var(--alva-ink);
    font-family: var(--alva-display);
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 400;
    letter-spacing: -.02em;
    padding: 0 8px;
}

