@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/* ===== Base (minimal to make this file self-contained) ===== */
html, body { height: 100%; }
body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background: #f7f4ee;
    color: #2d200f;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== Header (simple) ===== */
.home {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    box-sizing: border-box;
    align-items: center;
}
.logo {
    font-size: 2rem;
    color: white;
}
.logo-img {
    width: 160px;
}

.menu-div {
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease-in-out;
    opacity: 0;
    transform: translateY(30px);
}
.menu-div:hover {
    color: gray;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 45, 21, 0.15);
    background: rgba(59, 45, 21, 0.04);
    color: #3b2d15;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(59, 45, 21, 0.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    gap: 1rem;
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* ===== Media Page Styles ===== */
.media-main {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    min-height: 100vh;
}

/* ===== Hero Section ===== */
.media-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}

.media-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #2d200f;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
}

/* ===== Pinterest Style Gallery Section (TRUE columns masonry) ===== */
.media-gallery-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 1.25rem;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 1.25rem;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide initially if JS is loaded (GSAP will show them) */
.js-loaded .gallery-item {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: auto; /* key: natural height for masonry */
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.98) contrast(1.02);
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.05) contrast(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.12) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Responsive column counts */
@media (max-width: 1400px) { .gallery-masonry { column-count: 4; } }
@media (max-width: 1200px) { .gallery-masonry { column-count: 3; column-gap: 1rem; } }
@media (max-width: 768px)  { .gallery-masonry { column-count: 2; column-gap: 0.875rem; } }
@media (max-width: 480px)  { .gallery-masonry { column-count: 1; column-gap: 1rem; } }

/* ===== Videos Section ===== */
.media-videos-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-header { margin-bottom: 2.5rem; }

.section-title {
    font-size: 1.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4b3a1a;
    margin: 0 0 0.5rem 0;
    opacity: 0;
    transform: translateY(30px);
}

.section-caption {
    font-size: 0.9rem;
    color: #5c4a24;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
}

.video-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Featured + thumbs layout */
.videos-featured {
    max-width: 980px;
    margin: 0 auto 2rem;
}

.video-featured { opacity: 1; transform: translateY(0); }
.video-wrapper-featured { padding-bottom: 56.25%; }

.videos-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.video-thumb {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.video-thumb:hover {
    transform: translateY(-4px);
    box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.9);
}

.video-thumb.is-active {
    outline: 2px solid rgba(59, 45, 21, 0.35);
    outline-offset: 2px;
}

.thumb-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.98) contrast(1.02);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.video-thumb:hover .thumb-media img {
    transform: scale(1.04);
    filter: brightness(1.03) contrast(1.05);
}

.thumb-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
    color: #fff;
    opacity: 0.95;
}

.thumb-play i {
    font-size: 1.1rem;
    transform: translateX(1px);
}

@media (max-width: 768px) {
    .videos-featured { margin-bottom: 1.25rem; }
    .videos-thumbs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .videos-thumbs { grid-template-columns: 1fr; }
}

/* GSAP initial hide */
.js-loaded .video-thumb,
.js-loaded .video-featured,
.js-loaded .more-videos-link {
    opacity: 0;
    transform: translateY(30px);
}

.more-videos-link {
    text-align: center;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 45, 21, 0.15);
    background: rgba(59, 45, 21, 0.04);
    color: #3b2d15;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-link:hover {
    background: rgba(59, 45, 21, 0.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    gap: 1rem;
}

.more-link i { transition: transform 0.3s ease; }
.more-link:hover i { transform: translateX(4px); }

/* ===== SoundCloud Section ===== */
.media-soundcloud-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.soundcloud-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(40px);
}

.soundcloud-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.soundcloud-fallback {
    display: block;
    padding: 2rem 0 0;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.soundcloud-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #ff5500;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 999px;
    border: 2px solid #ff5500;
    transition: all 0.3s ease;
}

.soundcloud-link:hover {
    background: #ff5500;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 85, 0, 0.3);
}

.soundcloud-link i { font-size: 1.5rem; }

@media (max-width: 640px) {
    .media-main {
        padding-top: 80px;
        margin-top: 30px;
    }
    .media-hero { padding: 2rem 1rem 1.5rem; }
    .media-videos-section,
    .media-soundcloud-section { padding-left: 1rem; padding-right: 1rem; }
    .section-header { margin-bottom: 2rem; }
    .soundcloud-wrapper iframe { height: 300px; }
}

/* ===== Gallery Lightbox (blurred overlay) ===== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 36px);
  
    /* hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

/* Backdrop: transparent + blur */
.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 10, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Modal content */
.gallery-lightbox__content {
    position: relative;
    z-index: 1;
    max-height: 86vh;
    display: grid;
    place-items: center;
}

/* Image */
.gallery-lightbox__img {
    width: 100%;
    height: auto;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.20);
}

/* Close button */
.gallery-lightbox__close {
    position: absolute;
    top: 0;
    right: -50px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(20, 16, 10, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 150ms ease, background 150ms ease;
}

.gallery-lightbox__close:hover {
    transform: translateY(-2px);
    background: rgba(20, 16, 10, 0.45);
}

/* Open state */
.gallery-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent background scroll when open */
body.lightbox-open {
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .home {
        padding: 12px 16px;
    }

    .logo-img {
        width: 100px;
    }
}


.blog-description {
    max-width: 72ch;
    margin: 0 auto;
    margin-top: 150px;
    text-align: justify;
    padding: 20px 20px;
}

.blog-description img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* If you ever embed iframes/videos (YouTube etc.) */
.blog-description iframe,
.blog-description video {
    max-width: 100%;
}

.blog-link {
    color: rgba(37, 68, 192);
    text-decoration: underline;
}

.italic {
    font-style: italic;
}

.blog-card-button {
    cursor: pointer;
}

.blog-description h2 {
    font-size: clamp(22px, 3.5vw, 34px);
    line-height: 1.15;
    margin: 0 0 10px;
}


.blog-description h3 {
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.25;
    margin: 22px 0 8px;
}


.blog-description p,
.blog-description li {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.65;
}


/* 6) Lists + spacing */
.blog-description ul {
    padding-left: 1.1em;
    margin: 10px 0 0;
}


.blog-description li + li {
    margin-top: 6px;
}

.img-text {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
    text-align: center;
}

.img-box {
    margin: 60px 0;
    text-align: center;
}


/* 7) Links: avoid overflow */
.blog-description a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 520px) {
    header .home {
        padding: 10px 12px;
    }


    .media-main {
        padding: 18px 12px 44px;
    }


    /* if your back arrow area gets too tight, keep it tappable */
    .menu-div a.back-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


    /* 9) Optional: if you ever place two containers that should stack */
@media (max-width: 380px) {
    header .home {
        gap: 8px;
    }
}