:root {
    --v5-blue: #0F4C81;
    /* Classic Blue */
    --v5-bone: #FFFFFF;
    /* White Background */
    --v5-text: #2c3e50;
    --v5-accent: #FF9A76;
    /* Peach Accent */
}

body {
    background-color: var(--v5-bone);
    color: var(--v5-text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

/* Navbar */
.navbar {
    padding: 1.5rem 5%;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link,
.navbar.scrolled .dropdown,
.navbar.scrolled .dropdown-toggle,
.navbar.scrolled .navbar-toggler {
    color: var(--v5-text);
    opacity: 1;
    pointer-events: auto;
}

.navbar-dark.scrolled .navbar-toggler-icon {
    filter: invert(1);
}

.navbar .dropdown,
.navbar .dropdown-toggle {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.navbar.navbar-light .navbar-brand,
.navbar.navbar-light .nav-link,
.navbar.navbar-light .dropdown,
.navbar.navbar-light .dropdown-toggle,
.navbar.navbar-light .navbar-toggler {
    opacity: 1;
    pointer-events: auto;
}

.navbar.scrolled .back-link {
    color: var(--v5-text);
    opacity: 1;
    pointer-events: auto;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--v5-blue);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .navbar .container-fluid {
        flex-wrap: nowrap !important;
    }
}

.nav-link {
    color: var(--v5-text);
    font-weight: 500;
    margin-left: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--v5-accent);
}

.btn-cv {
    background: var(--v5-accent);
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-cv:hover {
    background: var(--v5-blue);
    color: var(--v5-accent);
}

/* Hero Section (Archer Monroe Style) */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, #ffffff 0%, var(--v5-bone) 100%);
    padding-bottom: 0 !important;
}

.hero-img {
    width: auto;
    max-width: 100%;
    height: 95vh;
    object-fit: contain;
    object-position: bottom;
    filter: grayscale(10%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    display: block;
    margin-bottom: 0;
    height: 100%;
    width: auto;
    position: relative;
    z-index: 10;
}

.hero-img-wrapper {
    position: relative;
    display: inline-block;
    height: 95vh;
    width: auto;
}

/* Floating Hero Tiles */
.floating-tile {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.tile-img {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--v5-blue);
    transition: transform 0.3s ease;
}

.floating-tile:hover .tile-img {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.tile-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--v5-text);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Individual tile positioning and depth */
/* Left side tiles */
.tile-1 {
    top: 20%;
    left: -15%;
    animation-delay: 0s;
    z-index: 15;
}

.tile-3 {
    top: 50%;
    left: -25%;
    animation-delay: 2.5s;
    z-index: 2;
    opacity: 0.6;
    filter: blur(1px);
}

.tile-3 .tile-img {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.tile-5 {
    top: 75%;
    left: -10%;
    animation-delay: 4.5s;
    z-index: 15;
}

.tile-5 .tile-img {
    color: var(--v5-accent);
    border: 2px solid rgba(255, 154, 118, 0.3);
}

.tile-7 {
    top: 5%;
    left: -5%;
    animation-delay: 2.5s;
    z-index: 2;
    opacity: 0.6;
    filter: blur(1px);
}

.tile-7 .tile-img {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* Right side tiles */
.tile-2 {
    top: 10%;
    right: -10%;
    animation-delay: 1.5s;
    z-index: 15;
}

.tile-2 .tile-img {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    color: var(--v5-accent);
}

.tile-4 {
    top: 35%;
    right: -25%;
    animation-delay: 2s;
    z-index: 5;
}

.tile-6 {
    top: 60%;
    right: -20%;
    animation-delay: 0.5s;
    z-index: 15;
}

.tile-6 .tile-img {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.tile-8 {
    top: 85%;
    right: -5%;
    animation-delay: 1s;
    z-index: 2;
    opacity: 0.7;
    filter: blur(1px);
}

.tile-8 .tile-img {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
}

.hero-title {
    font-size: 6.8vw;
    font-weight: 700;
    color: var(--v5-blue);
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 0;
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--v5-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 100dvh;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
    }

    .hero .row {
        align-items: flex-start !important;
    }

    .hero .col-lg-4 {
        padding-top: 8rem;
        margin-bottom: 2rem;
    }

    .hero-img-wrapper {
        margin-top: auto;
        height: 50vh;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-img {
        height: 50vh;
        width: auto;
        max-width: 100%;
        object-fit: cover;
        object-position: top;
    }

    /* Adjust tiles for mobile */
    .floating-tile {
        transform: scale(0.6);
        transform-origin: center;
        animation: none;
        /* Disable animation to save performance on mobile */
    }

    .tile-label {
        display: none;
    }

    /* Keep tiles close to the image on mobile */
    .tile-1 {
        top: 5%;
        left: 0%;
    }

    .tile-2 {
        top: 0%;
        left: 60%;
    }

    .tile-3 {
        top: 30%;
        left: 5%;
    }

    .tile-4 {
        top: 25%;
        right: 0%;
    }

    .tile-5 {
        top: 60%;
        left: 0%;
    }

    .tile-6 {
        top: 5%;
        left: 35%;
    }

    .tile-7 {
        top: 10%;
        left: 20%;
        display: flex;
    }

    .tile-8 {
        top: 40%;
        right: 20%;
        display: flex;
    }

    .hero-title {
        font-size: 20vw;
    }
}

/* About Section (Milka Clark Style) */
.about-section {
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text h2 {
    font-size: 3rem;
    line-height: 0.9;
    margin-bottom: 2rem;
    color: var(--v5-text);
}

.about-content {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    max-width: 600px;
}

.about-img {
    flex: 1;
    text-align: right;
}

.about-card {
    background: #EAEAEA;
    padding: 2rem;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
}

.about-card img {
    border-radius: 10px;
    max-width: 300px;
}

/* Masonry Grid (New Style) */
.masonry-grid {
    columns: 3 300px;
    column-gap: 2rem;
    padding: 0 5% 5rem;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.masonry-item:hover .masonry-img {
    transform: scale(1.05);
}

.masonry-content {
    padding: 2rem;
}

.masonry-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #999;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.masonry-meta .category {
    color: var(--v5-accent);
}

.masonry-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--v5-text);
    margin-bottom: 1.2rem;
}

.masonry-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.masonry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f5f5f5;
}

.view-more {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--v5-text);
}

.read-time {
    font-size: 0.75rem;
    color: #bbb;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .masonry-grid {
        columns: 1;
    }
}

.grid-loading {
    column-span: all;
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 5rem 0;
}

/* Stats Strip */
.stats-section {
    padding: 4rem 5%;
    background: white;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--v5-blue);
    margin: 0;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #777;
}

/* Article Hero Section */
.article-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: white;
    margin-bottom: 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 5% 4rem;
    max-width: 1000px;
}

.article-category-badge {
    display: inline-block;
    background: var(--v5-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.article-hero .article-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: font-size 0.3s ease;
}

.article-hero .article-title.long-title {
    font-size: 3rem;
}

@media (max-width: 900px) {
    .article-hero {
        padding-top: 5rem;
    }

    .article-hero .article-title {
        font-size: 2.5rem;
    }

    .article-hero .article-title.long-title {
        font-size: 2rem;
    }

    .hero-content-inner {
        padding: 0 5% 2rem;
        /* Less bottom padding on mobile */
    }
}

.article-hero .article-meta {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 20px;
    font-weight: 500;
}

/* Post list specific styles */
.articles-grid {
    padding: 0 5% 5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Mobile Adaptive Styles */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 5%;
        background: rgba(250, 249, 246, 0.95);
    }

    .navbar-brand {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.2;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        flex-direction: column;
    }

    .hero .row {
        flex-direction: column;
    }

    .hero-img {
        height: 50vh;
        width: 100%;
        object-fit: cover;
        object-position: top center;
        margin-top: auto;
    }

    .hero-title {
        font-size: 15vw;
        text-align: center;
        margin-bottom: 1rem;
    }

    .col-lg-4.text-end {
        text-align: center !important;
    }

    .hero-subtitle {
        text-align: center;
    }

    .about-section {
        padding: 4rem 5%;
        gap: 2rem;
        text-align: center;
        flex-direction: column;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .stats-section {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .grid-item.large,
    .grid-item.wide {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Overrides for Features (Filters & Pagination) */
.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.filter-bar-controls {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1.5rem; /* extra right padding for the button */
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    color: var(--v5-text);
    box-sizing: border-box;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--v5-blue);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0056b3; /* darker blue */
}

.date-filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    box-sizing: border-box;
}

.date-input {
    padding: 0.8rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    color: var(--v5-text);
    box-sizing: border-box;
    flex: 0 1 auto;
    width: 150px;
    cursor: pointer;
}

.date-separator {
    color: #777;
    font-weight: bold;
    flex-shrink: 0;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

@media (max-width: 576px) {
    .filter-bar-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    .search-input-wrapper {
        width: 100%;
        min-width: 0;
    }
    .date-filter-group {
        width: 100%;
        justify-content: space-between;
    }
    .date-input {
        flex: 1;
        width: 100%;
        min-width: 0;
        padding: 0.8rem 0.5rem; /* reduce horizontal padding on mobile */
    }
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--v5-text);
    transition: all 0.3s;
    margin: 0.2rem;
}

.filter-btn:hover {
    border-color: var(--v5-accent);
    color: var(--v5-accent);
}

.filter-btn.active {
    background: var(--v5-blue);
    color: var(--v5-accent);
    border-color: var(--v5-blue);
}

.search-input {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    outline: none;
    min-width: 250px;
}

.search-input:focus {
    border-color: var(--v5-accent);
}

.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-item.active .page-link {
    background-color: var(--v5-accent);
    border-color: var(--v5-accent);
    color: white;
}

.page-link {
    color: var(--v5-blue);
    transition: all 0.3s;
}

.page-link:hover {
    color: var(--v5-accent);
}

.card-footer-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--v5-blue);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-footer-link:hover {
    color: var(--v5-accent);
}

.card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.meta-tag {
    border: 1px solid #eee;
    padding: 2px 8px;
    border-radius: 10px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--v5-text);
    line-height: 1.3;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

/* ===========================
   Gallery / Carousel Section
   =========================== */

.gallery-section {
    width: 100%;
    overflow: hidden;
}

/* --- Desktop: Diamond Gallery 3×3 --- */
.gallery-desktop {
    background: linear-gradient(160deg, #ffffff 0%, #fbfdff 100%);
    padding: 60px 5% 90px;
    overflow: hidden;
}

.gallery-label {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: #FF9A76;
    margin-bottom: 48px;
    text-transform: uppercase;
}

/* 3-row staggered diamond container */
.diamond-grid-9 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Each row: 3 diamonds side by side */
.diamond-row {
    display: flex;
    gap: 120px;
}

/* Row overlap: less negative = more vertical breathing room */
.diamond-row+.diamond-row {
    margin-top: -42px;
}

/* Even row (4 diamonds) is naturally wider and symmetric — no translateX needed */
.row-even {
    /* No offset: 4 diamonds centered = symmetric stagger automatically */
}

/* --- Diamond card base --- */
.diamond-outer {
    width: 210px;
    height: 210px;
    transform: rotate(45deg);
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    animation: diamondFadeIn 0.6s ease both;
}

/* Staggered entrance delays (row × 3 + col) */
.diamond-row:nth-child(1) .diamond-outer:nth-child(1) {
    animation-delay: 0.05s;
}

.diamond-row:nth-child(1) .diamond-outer:nth-child(2) {
    animation-delay: 0.12s;
}

.diamond-row:nth-child(1) .diamond-outer:nth-child(3) {
    animation-delay: 0.19s;
}

.diamond-row:nth-child(2) .diamond-outer:nth-child(1) {
    animation-delay: 0.26s;
}

.diamond-row:nth-child(2) .diamond-outer:nth-child(2) {
    animation-delay: 0.33s;
}

.diamond-row:nth-child(2) .diamond-outer:nth-child(3) {
    animation-delay: 0.40s;
}

.diamond-row:nth-child(2) .diamond-outer:nth-child(4) {
    animation-delay: 0.47s;
}

.diamond-row:nth-child(3) .diamond-outer:nth-child(1) {
    animation-delay: 0.54s;
}

.diamond-row:nth-child(3) .diamond-outer:nth-child(2) {
    animation-delay: 0.61s;
}

.diamond-row:nth-child(3) .diamond-outer:nth-child(3) {
    animation-delay: 0.68s;
}

@keyframes diamondFadeIn {
    from {
        opacity: 0;
        transform: rotate(45deg) scale(0.75);
    }

    to {
        opacity: 1;
        transform: rotate(45deg);
    }
}

/* Hover: scale up while keeping 45° rotation */
.diamond-outer:hover {
    transform: rotate(45deg) scale(1.07);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
}

/* Inner: counter-rotate so image appears upright */
.diamond-inner {
    position: absolute;
    /* Extend beyond the box so corners are covered after rotation */
    top: -27%;
    left: -27%;
    width: 154%;
    height: 154%;
    transform: rotate(-45deg);
    overflow: hidden;
}

.diamond-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

/* Zoom icon overlay (shown on hover, also rotated to cancel parent) */
.diamond-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
    /* counter-rotate so icon appears upright */
    transform: rotate(-45deg);
}

.diamond-zoom-icon i {
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s ease;
}


/* Hover effects on children */
.diamond-outer:hover .diamond-inner img {
    transform: scale(1.1);
}

.diamond-outer:hover .diamond-zoom-icon {
    background: rgba(0, 0, 0, 0.35);
}

.diamond-outer:hover .diamond-zoom-icon i {
    opacity: 1;
    transform: scale(1);
}


/* --- Lightbox Overlay --- */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.lightbox-content img {
    max-width: 88vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    display: block;
}

/* Caption bar below lightbox image */
.lightbox-caption {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(15, 20, 30, 0.92);
    border-radius: 0 0 12px 12px;
    padding: 14px 20px;
    max-width: 88vw;
    box-sizing: border-box;
    animation: captionSlideUp 0.4s ease 0.15s both;
}

.lightbox-caption-icon {
    color: var(--v5-accent);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 3px;
}

#lightbox-caption-text {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.2px;
}

@keyframes captionSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, transform 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--v5-accent);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
}

@keyframes lightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Mobile: Bootstrap Carousel --- */
#photoCarousel {
    background: #000;
}

#photoCarousel .carousel-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

#photoCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    transition: background-color 0.3s, transform 0.3s;
}

#photoCarousel .carousel-indicators .active {
    background-color: var(--v5-accent);
    transform: scale(1.3);
}

#photoCarousel .carousel-control-prev-icon,
#photoCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    padding: 16px;
    background-size: 50%;
}

@media (max-width: 991.98px) {
    #photoCarousel .carousel-item img {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    #photoCarousel .carousel-item img {
        height: 200px;
    }
}

/* ===================================
   Gallery V2 – Timeline (gt-*)
   =================================== */

.gt-section {
    padding: 90px 0 100px;
    background: linear-gradient(180deg, #f0f5fc 0%, #ffffff 100%);
    overflow: hidden;
}

/* Header */
.gt-header {
    text-align: center;
    margin-bottom: 52px;
}

.gt-eyebrow {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--v5-accent);
    margin-bottom: 14px;
}

.gt-section .gt-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--v5-blue);
    margin: 0;
    line-height: 1.15;
}

/* ---- Year Bar ---- */
.gt-yearbar-wrap {
    overflow-x: auto;
    padding: 0 6% 4px;
    margin-bottom: 56px;
    scrollbar-width: none;
}

.gt-yearbar-wrap::-webkit-scrollbar {
    display: none;
}

.gt-yearbar {
    display: flex;
    align-items: center;
    width: max-content;
    margin: 0 auto;
}

/* Each year button */
.gt-yr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.3s;
    flex-shrink: 0;
}

.gt-yr-dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c8d5e8;
    transition: all 0.35s ease;
}

.gt-yr-lbl {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8fa3bb;
    transition: color 0.3s;
    white-space: nowrap;
}

.gt-yr:hover .gt-yr-dot {
    background: var(--v5-accent);
    transform: scale(1.3);
}

.gt-yr:hover .gt-yr-lbl {
    color: var(--v5-blue);
}

.gt-yr.active .gt-yr-dot {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 2.5px solid var(--v5-accent);
    box-shadow: 0 0 0 4px rgba(255, 154, 118, 0.18);
    transform: scale(1);
}

.gt-yr.active .gt-yr-lbl {
    color: var(--v5-blue);
    font-weight: 700;
    font-size: 0.88rem;
}

/* Connecting line between years */
.gt-yl {
    flex: 1;
    min-width: 28px;
    height: 1px;
    background: #d0dcea;
    position: relative;
    top: -10px;
    /* align with dots row */
    flex-shrink: 0;
}

/* ---- Stage ---- */
.gt-stage {
    display: flex;
    align-items: center;
    padding: 0 3%;
    gap: 0;
    min-height: 380px;
}

/* Nav Buttons */
.gt-nav-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    border: none;
    background: var(--v5-blue);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.25);
}

.gt-nav-btn:hover {
    background: var(--v5-accent);
    transform: scale(1.06);
}

.gt-nav-btn:disabled {
    background: #c8d5e8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Slide content wrapper */
.gt-slide-wrap {
    flex: 1;
    padding: 0 40px;
    overflow: hidden;
}

/* ---- Slide Card ---- */
.gt-slide-fade {
    display: flex;
    align-items: center;
    gap: 64px;
    animation: gtSlideIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes gtSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main image */
.gt-img-box {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 76, 129, 0.14);
    position: relative;
}

.gt-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gt-img-box:hover img {
    transform: scale(1.05);
}

/* Text box */
.gt-txt-box {
    flex: 1;
    padding-left: 40px;
    border-left: 3px solid var(--v5-accent);
    position: relative;
}

/* Large year number */
.gt-yr-accent {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--v5-blue);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -2px;
}

/* Slide title */
.gt-slide-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--v5-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px;
}

/* Description */
.gt-slide-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #5a6a7e;
    line-height: 1.85;
    margin: 0;
    max-width: 480px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .gt-slide-fade {
        flex-direction: column;
        gap: 36px;
    }

    .gt-img-box {
        width: 100%;
        height: 260px;
    }

    .gt-txt-box {
        border-left: none;
        border-top: 3px solid var(--v5-accent);
        padding-left: 0;
        padding-top: 28px;
    }

    .gt-yr-accent {
        font-size: 3.2rem;
    }

    .gt-stage {
        padding: 0 12px;
    }

    .gt-slide-wrap {
        padding: 0 16px;
    }

    .gt-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .gt-section .gt-title {
        font-size: 2.2rem;
    }

    .gt-img-box {
        height: 220px;
    }

    .gt-yr-accent {
        font-size: 2.8rem;
    }

    .gt-slide-wrap {
        padding: 0 8px;
    }

    .gt-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* ===================================
   Gallery V3 – Bento Mosaic (gv3-*)
   =================================== */

.gv3-section {
    padding: 90px 5% 100px;
    background: #fff;
}

.gv3-header {
    text-align: center;
    margin-bottom: 48px;
}

.gv3-eyebrow {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--v5-accent);
    margin-bottom: 14px;
}

.gv3-section .gv3-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--v5-blue);
    margin: 0;
    line-height: 1.15;
}

/* ---- CSS Grid: 3 col × 5 row ---- */
/*
  Row 1–2 (Group A):  [1 tall] [2 top ] [4 tall]
                      [1 tall] [3 bot ] [4 tall]
  Row 3–4 (Group B):  [5 tall] [6 top ] [8 tall]
                      [5 tall] [7 bot ] [8 tall]
  Row 5  (Footer):    [9 nar ] [10 wide        ]
*/

.gv3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    grid-template-rows: repeat(5, 190px);
    gap: 14px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Group A */
.gv3-item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
}

/* tall left   */
.gv3-item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
}

/* top mid     */
.gv3-item:nth-child(3) {
    grid-area: 2 / 2 / 3 / 3;
}

/* bottom mid  */
.gv3-item:nth-child(4) {
    grid-area: 1 / 3 / 3 / 4;
}

/* tall right  */

/* Group B */
.gv3-item:nth-child(5) {
    grid-area: 3 / 1 / 5 / 2;
}

/* tall left   */
.gv3-item:nth-child(6) {
    grid-area: 3 / 2 / 4 / 3;
}

/* top mid     */
.gv3-item:nth-child(7) {
    grid-area: 4 / 2 / 5 / 3;
}

/* bottom mid  */
.gv3-item:nth-child(8) {
    grid-area: 3 / 3 / 5 / 4;
}

/* tall right  */

/* Footer */
.gv3-item:nth-child(9) {
    grid-area: 5 / 1 / 6 / 2;
}

/* narrow left  */
.gv3-item:nth-child(10) {
    grid-area: 5 / 2 / 6 / 4;
}

/* wide right   */

/* ---- Item base ---- */
.gv3-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    box-shadow: 0 4px 18px rgba(15, 76, 129, 0.09);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gv3-item:hover {
    box-shadow: 0 16px 48px rgba(15, 76, 129, 0.22);
    transform: translateY(-3px);
}

.gv3-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.gv3-item:hover img {
    transform: scale(1.07);
}

/* ---- Hover overlay ---- */
.gv3-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 76, 129, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.gv3-overlay i {
    color: #fff;
    font-size: 1.9rem;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.gv3-item:hover .gv3-overlay {
    background: rgba(15, 76, 129, 0.38);
}

.gv3-item:hover .gv3-overlay i {
    opacity: 1;
    transform: scale(1);
}

/* ---- Responsive: tablet (2-col) ---- */
@media (max-width: 991.98px) {
    .gv3-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(6, 170px);
    }

    /* Reset explicit placement */
    .gv3-item {
        grid-area: auto;
    }

    /* Reassign for 2-col bento */
    .gv3-item:nth-child(1) {
        grid-area: 1 / 1 / 3 / 2;
    }

    /* tall */
    .gv3-item:nth-child(2) {
        grid-area: 1 / 2 / 2 / 3;
    }

    .gv3-item:nth-child(3) {
        grid-area: 2 / 2 / 3 / 3;
    }

    .gv3-item:nth-child(4) {
        grid-area: 3 / 1 / 4 / 2;
    }

    .gv3-item:nth-child(5) {
        grid-area: 3 / 2 / 5 / 3;
    }

    /* tall */
    .gv3-item:nth-child(6) {
        grid-area: 4 / 1 / 5 / 2;
    }

    .gv3-item:nth-child(7) {
        grid-area: 5 / 1 / 7 / 2;
    }

    /* tall */
    .gv3-item:nth-child(8) {
        grid-area: 5 / 2 / 6 / 3;
    }

    .gv3-item:nth-child(9) {
        grid-area: 6 / 2 / 7 / 3;
    }

    .gv3-item:nth-child(10) {
        grid-area: 7 / 1 / 8 / 3;
        grid-auto-rows: 170px;
    }

    /* wide banner */

    .gv3-grid {
        grid-template-rows: repeat(7, 170px);
    }
}

/* ---- Responsive: mobile (2-col equal) ---- */
@media (max-width: 575.98px) {
    .gv3-section {
        padding: 60px 4% 70px;
    }

    .gv3-section .gv3-title {
        font-size: 2.2rem;
    }

    .gv3-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
        gap: 12px;
    }

    /* Reset all explicit tablet/desktop placements */
    .gv3-item {
        grid-area: auto !important;
        height: auto !important;
    }

    /* Alternating pattern: Full width, then two half-width */
    .gv3-item:nth-child(1),
    .gv3-item:nth-child(4),
    .gv3-item:nth-child(7),
    .gv3-item:nth-child(10) {
        grid-column: 1 / -1;
        grid-row: span 1;
    }
}