/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-width: 320px;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* =========================
   THEMES
========================= */
body[data-theme="dark"] {
    --bg-main: #0b1020;
    --bg-secondary: #12182b;
    --bg-card: rgba(27, 34, 58, 0.82);
    --text-main: #f8f7ff;
    --text-soft: #d9d4f2;
    --accent: #b388ff;
    --accent-strong: #8b5cf6;
    --accent-hover: #c4a7ff;
    --border: rgba(196, 167, 255, 0.22);
    --shadow: rgba(124, 58, 237, 0.25);
    --hero-glow: radial-gradient(circle, rgba(179, 136, 255, 0.28) 0%, rgba(179, 136, 255, 0) 70%);
}

body[data-theme="light"] {
    --bg-main: #fff7f7;
    --bg-secondary: #fff0f0;
    --bg-card: rgba(255, 255, 255, 0.88);
    --text-main: #341818;
    --text-soft: #6e4141;
    --accent: #d04b4b;
    --accent-strong: #b93131;
    --accent-hover: #e66a6a;
    --border: rgba(208, 75, 75, 0.20);
    --shadow: rgba(208, 75, 75, 0.18);
    --hero-glow: radial-gradient(circle, rgba(208, 75, 75, 0.22) 0%, rgba(208, 75, 75, 0) 70%);
}

body {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
    color: var(--text-main);
}

/* =========================
   GLOBAL
========================= */
a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

main {
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================
   HEADER / NAVBAR
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(10, 15, 30, 0.55);
    border-bottom: 1px solid var(--border);
}

body[data-theme="light"] .site-header {
    background: rgba(255, 247, 247, 0.78);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 1.55rem;
    font-weight: bold;
    color: var(--text-main);
    line-height: 1.2;
    max-width: 520px;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.theme-btn {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.25s ease;
}

.theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    padding: 70px 20px 40px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-glow);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: center;
}

.hero-text {
    padding: 20px 0;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 0.04em;
}

.hero-text h1 {
    font-size: 3.6rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-soft);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: bold;
    transition: 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    box-shadow: 0 10px 30px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* =========================
   PROFILE CARD
========================= */
.profile-card {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    top: -60px;
    right: -60px;
    background: var(--hero-glow);
}

.profile-card-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    width: 100%;
    text-align: center;
}

.profile-photo-wrapper {
    width: 230px;
    height: 230px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 16px 40px var(--shadow);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.profile-card-content h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.profile-role {
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto;
}

/* =========================
   QUICK SECTION
========================= */
.quick-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.quick-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.quick-card h3 {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 1.2rem;
}

.quick-card p {
    color: var(--text-soft);
    line-height: 1.7;
}

/* =========================
   INTERNAL PAGES
========================= */
.page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.page-header {
    margin-bottom: 40px;
}

.page-tag {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 0.04em;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header p {
    max-width: 800px;
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 1.05rem;
}

.info-grid,
.projects-grid,
.contact-grid,
.gallery-grid {
    display: grid;
    gap: 20px;
}

.info-grid,
.contact-grid {
    grid-template-columns: repeat(2, 1fr);
}

.projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
}

.info-card,
.project-card,
.gallery-card,
.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px var(--shadow);
}

.info-card h2,
.project-card h2,
.timeline-item h2 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.info-card p,
.project-card p,
.timeline-item p {
    color: var(--text-soft);
    line-height: 1.7;
}

.project-card .btn {
    margin-top: 18px;
}

.timeline {
    display: grid;
    gap: 20px;
}

.gallery-card {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-weight: bold;
}

.tech-list {
    margin-top: 12px;
    padding-left: 20px;
}

.tech-list li {
    margin-bottom: 8px;
    color: var(--text-soft);
}

/* =========================
   PROJECTS PAGE PREMIUM
========================= */
.projects-section-block {
    margin-bottom: 60px;
}

.section-intro {
    margin-bottom: 24px;
}

.section-intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-intro p {
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 850px;
}

.premium-projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

.premium-project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    position: relative;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.premium-project-card:hover .project-card-image img {
    transform: scale(1.02);
}

.project-card-content {
    padding: 24px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(179, 136, 255, 0.14);
    color: var(--accent);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: bold;
}

body[data-theme="light"] .project-badge {
    background: rgba(208, 75, 75, 0.10);
}

.soft-badge {
    color: var(--text-main);
}

.project-type {
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--text-main);
}

.project-tech-preview {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.project-tech-preview li {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.empty-state-card {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 12px 30px var(--shadow);
}

.empty-state-card h3 {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 1.25rem;
}

.empty-state-card p {
    color: var(--text-soft);
    line-height: 1.8;
}

/* =========================
   IMAGE DISPLAY SYSTEM
========================= */
.tone-dark {
    background:
        linear-gradient(180deg, rgba(8, 14, 34, 0.95) 0%, rgba(14, 22, 48, 0.98) 100%);
}

.tone-light {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 244, 248, 0.98) 100%);
}

.fit-contain img {
    object-fit: contain;
}

.fit-cover img {
    object-fit: cover;
}

.project-card-image.fit-contain img {
    object-fit: contain;
    padding: 4px;
}

.project-card-image.fit-cover {
    padding: 0;
}

.project-card-image.fit-cover img {
    object-fit: cover;
}

.project-detail-image.fit-contain img {
    object-fit: contain;
    padding: 12px;
}

.project-detail-image.fit-cover {
    padding: 0;
}

.project-detail-image.fit-cover img {
    object-fit: cover;
}

.detail-gallery-item.fit-contain {
    padding: 14px;
}

.detail-gallery-item.fit-contain img {
    object-fit: contain;
}

.detail-gallery-item.fit-cover {
    padding: 0;
}

.detail-gallery-item.fit-cover img {
    object-fit: cover;
}

/* =========================
   PROJECT DETAIL PAGE
========================= */
.project-detail-page {
    padding-top: 50px;
}

.project-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 36px;
}

.project-detail-image {
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 40px var(--shadow);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-detail-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
}

.project-detail-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 16px 40px var(--shadow);
}

.project-detail-header h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.project-lead {
    color: var(--text-soft);
    line-height: 1.9;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.project-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.project-content-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.project-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 110px;
}

.project-main-content {
    display: grid;
    gap: 20px;
}

.modern-tech-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.modern-tech-list li {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-soft);
    margin-bottom: 0;
}

.content-list {
    padding-left: 20px;
    margin-top: 12px;
}

.content-list li {
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 10px;
}

.sidebar-btn {
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 16px;
}

.detail-gallery-item {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 260px;
}

body[data-theme="dark"] .detail-gallery-item.tone-dark,
body[data-theme="dark"] .project-card-image.tone-dark,
body[data-theme="dark"] .project-detail-image.tone-dark {
    background:
        linear-gradient(180deg, rgba(7, 13, 31, 0.98) 0%, rgba(15, 23, 50, 0.98) 100%);
}

body[data-theme="dark"] .detail-gallery-item.tone-light,
body[data-theme="dark"] .project-card-image.tone-light,
body[data-theme="dark"] .project-detail-image.tone-light {
    background:
        linear-gradient(180deg, rgba(250, 250, 252, 0.98) 0%, rgba(236, 238, 244, 0.98) 100%);
}

body[data-theme="light"] .detail-gallery-item.tone-dark,
body[data-theme="light"] .project-card-image.tone-dark,
body[data-theme="light"] .project-detail-image.tone-dark {
    background:
        linear-gradient(180deg, rgba(15, 21, 42, 0.98) 0%, rgba(24, 31, 58, 0.98) 100%);
}

body[data-theme="light"] .detail-gallery-item.tone-light,
body[data-theme="light"] .project-card-image.tone-light,
body[data-theme="light"] .project-detail-image.tone-light {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 240, 240, 0.98) 100%);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .logo {
        max-width: 360px;
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 14px;
    }

    .project-content-layout {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .project-detail-hero,
    .project-detail-grid,
    .premium-projects-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-image {
        min-height: 300px;
    }

    .project-detail-image img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .logo {
        max-width: 75%;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
        gap: 14px;
    }

    .nav-links.show {
        display: flex;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .profile-card {
        min-height: auto;
    }

    .profile-card-content {
        padding: 24px;
    }

    .profile-photo-wrapper {
        width: 180px;
        height: 180px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .page-section {
        padding: 40px 16px 60px;
    }

    .page-header h1,
    .project-detail-header h1 {
        font-size: 2.2rem;
    }

    .info-grid,
    .projects-grid,
    .contact-grid,
    .gallery-grid,
    .project-detail-grid,
    .detail-gallery {
        grid-template-columns: 1fr;
    }

    .project-card-image {
        height: 220px;
    }

    .project-detail-image {
        min-height: 260px;
    }

    .project-detail-image img,
    .detail-gallery-item img {
        min-height: 220px;
    }

    .detail-gallery-item {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 16px;
    }

    .logo {
        font-size: 1.05rem;
        max-width: 70%;
    }

    .hero {
        padding: 30px 16px 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons,
    .project-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .quick-section {
        padding: 20px 16px 60px;
    }

    .profile-photo-wrapper {
        width: 150px;
        height: 150px;
    }

    .profile-card-content h2 {
        font-size: 1.35rem;
    }

    .project-detail-header {
        padding: 24px 20px;
    }

    .project-card-image {
        height: 200px;
        padding: 14px;
    }

    .detail-gallery-item.fit-contain {
        padding: 10px;
    }
}

/* =========================
   PORTFOLIO CARDS IN PROJETS
========================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 12px 30px var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    position: relative;
    overflow: hidden;
}

.portfolio-card h2 {
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.portfolio-summary {
    color: var(--text-soft);
    line-height: 1.8;
}

.portfolio-card-middle h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.portfolio-competence-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding-left: 0;
}

.portfolio-competence-list li {
    color: var(--text-soft);
    line-height: 1.6;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.portfolio-card-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================
   PORTFOLIO BUT3 FEATURED CARD
========================= */
.portfolio-card-featured {
    border: 1px solid rgba(179, 136, 255, 0.38);
    box-shadow: 0 22px 60px var(--shadow);
    background:
        linear-gradient(180deg, rgba(179, 136, 255, 0.08) 0%, rgba(27, 34, 58, 0) 100%),
        var(--bg-card);
    transform: translateY(-2px);
}

body[data-theme="light"] .portfolio-card-featured {
    border: 1px solid rgba(208, 75, 75, 0.28);
    background:
        linear-gradient(180deg, rgba(208, 75, 75, 0.07) 0%, rgba(255, 255, 255, 0) 100%),
        var(--bg-card);
}

/* =========================
   PORTFOLIO DETAIL PAGE
========================= */
.portfolio-detail-page {
    padding-top: 50px;
}

.portfolio-header {
    margin-bottom: 30px;
}

.portfolio-lead {
    max-width: 900px;
}

.portfolio-meta {
    margin-top: 18px;
}

.portfolio-intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 30px var(--shadow);
    margin-bottom: 24px;
}

.portfolio-intro-card h2 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.portfolio-intro-card p {
    color: var(--text-soft);
    line-height: 1.9;
}

.portfolio-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.portfolio-content-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.portfolio-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 110px;
}

.portfolio-main-content {
    display: grid;
    gap: 20px;
}

.portfolio-competence-block {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.portfolio-competence-block li {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-soft);
    line-height: 1.6;
}

.portfolio-section-card p {
    color: var(--text-soft);
    line-height: 1.9;
}

.portfolio-traces-gallery {
    grid-template-columns: repeat(2, 1fr);
}

.portfolio-bottom-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

/* =========================
   PORTFOLIO DETAIL REWORK
========================= */
.portfolio-competence-section {
    display: grid;
    gap: 24px;
}

.portfolio-competence-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.portfolio-competence-header p {
    color: var(--text-soft);
    line-height: 1.8;
}

.portfolio-ac-list {
    display: grid;
    gap: 24px;
}

.portfolio-ac-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    background: var(--bg-secondary);
}

.portfolio-ac-head {
    margin-bottom: 18px;
}

.portfolio-ac-code {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.portfolio-ac-head h3 {
    font-size: 1.35rem;
    line-height: 1.4;
}

.portfolio-axis-block + .portfolio-axis-block {
    margin-top: 20px;
}

.portfolio-axis-block h4 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.portfolio-axis-block p {
    color: var(--text-soft);
    line-height: 1.9;
}

.portfolio-inline-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.portfolio-competence-block li span {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* =========================
   PORTFOLIO RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-content-layout,
    .portfolio-content-layout-featured {
        grid-template-columns: 1fr;
    }

    .portfolio-sidebar {
        position: static;
    }

    .portfolio-featured-hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-overview-grid,
    .portfolio-traces-gallery {
        grid-template-columns: 1fr;
    }

    .portfolio-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================
   GALLERY CAPTIONS
========================= */
.detail-gallery-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 26px var(--shadow);
}

.gallery-caption {
    padding: 16px 18px 18px;
}

.gallery-caption h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.gallery-caption p {
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================
   PORTFOLIO PREVIEW CARDS
========================= */
.portfolio-preview-groups {
    display: grid;
    gap: 16px;
}

.portfolio-preview-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.portfolio-preview-group h4 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1rem;
}

/* =========================
   PORTFOLIO RESPONSIVE EXTRA
========================= */
@media (max-width: 768px) {
    .portfolio-inline-gallery {
        grid-template-columns: 1fr;
    }

    .portfolio-ac-card {
        padding: 20px;
    }

    .portfolio-competence-header h2 {
        font-size: 1.65rem;
    }

    .portfolio-ac-head h3 {
        font-size: 1.2rem;
    }
}

/* =========================
   PARCOURS TIMELINE
========================= */
.parcours-page {
    padding-top: 50px;
}

.parcours-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 20px;
}

.parcours-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        rgba(179, 136, 255, 0.10) 0%,
        rgba(179, 136, 255, 0.95) 18%,
        rgba(179, 136, 255, 0.95) 82%,
        rgba(179, 136, 255, 0.10) 100%
    );
    border-radius: 999px;
}

body[data-theme="light"] .parcours-timeline::before {
    background: linear-gradient(
        to bottom,
        rgba(208, 75, 75, 0.10) 0%,
        rgba(208, 75, 75, 0.90) 18%,
        rgba(208, 75, 75, 0.90) 82%,
        rgba(208, 75, 75, 0.10) 100%
    );
}

.parcours-step {
    position: relative;
    width: 50%;
    padding-bottom: 34px;
}

.parcours-step.is-left {
    left: 0;
    padding-right: 34px;
}

.parcours-step.is-right {
    left: 50%;
    padding-left: 34px;
}

.parcours-step-marker {
    position: absolute;
    top: 34px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 7px var(--shadow);
    z-index: 2;
}

.parcours-step.is-left .parcours-step-marker {
    right: -9px;
}

.parcours-step.is-right .parcours-step-marker {
    left: -9px;
}

.parcours-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 40px var(--shadow);
    backdrop-filter: blur(12px);
}

.parcours-step-main {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: start;
}

.parcours-step-period {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}

.parcours-step-text h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--text-main);
}

.parcours-step-location {
    color: var(--text-soft);
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.5;
}

.parcours-step-summary {
    color: var(--text-soft);
    line-height: 1.8;
}

.parcours-step-visuals {
    display: grid;
    gap: 16px;
}

.parcours-logo-box,
.parcours-image-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.parcours-logo-box {
    min-height: 120px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parcours-logo-box img {
    width: 100%;
    height: 84px;
    object-fit: contain;
}

.parcours-image-box {
    min-height: 210px;
}

.parcours-image-box img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.parcours-children {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

.parcours-child-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
}

.parcours-child-logo {
    min-height: 72px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.parcours-child-logo img {
    width: 100%;
    height: 52px;
    object-fit: contain;
}

.parcours-child-content h3,
.parcours-child-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

/* =========================
   PARCOURS JOURNEY BANNER
========================= */
.parcours-journey-banner {
    margin: 18px 0 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 22px 20px;
    box-shadow: 0 16px 40px var(--shadow);
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    position: relative;
}

.journey-flag {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.journey-flag img {
    width: 100%;
    height: 78px;
    object-fit: contain;
    display: block;
}

.journey-path-area {
    position: relative;
    min-height: 110px;
    width: 100%;
}

.journey-dashed-line {
    position: absolute;
    inset: 0;
}

.journey-dashed-line::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 55%;
    height: 46px;
    transform: translateY(-50%);
    border-top: 4px dashed var(--accent);
    border-radius: 50% / 100%;
    opacity: 0.9;
}

.journey-plane {
    position: absolute;
    left: 6%;
    top: 58%;
    transform: translate(-50%, -50%) rotate(10deg);
    font-size: 1.7rem;
    line-height: 1;
    color: var(--accent);
    text-shadow: 0 0 14px var(--shadow);
    animation: fly-across 6s ease-in-out infinite;
    will-change: left, top, transform;
}

@keyframes fly-across {
    0% {
        left: 6%;
        top: 58%;
        transform: translate(-50%, -50%) rotate(10deg);
    }
    20% {
        left: 24%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    45% {
        left: 46%;
        top: 46%;
        transform: translate(-50%, -50%) rotate(8deg);
    }
    65% {
        left: 66%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(16deg);
    }
    85% {
        left: 84%;
        top: 57%;
        transform: translate(-50%, -50%) rotate(24deg);
    }
    100% {
        left: 92%;
        top: 54%;
        transform: translate(-50%, -50%) rotate(18deg);
    }
}

/* =========================
   PARCOURS RESPONSIVE
========================= */
@media (max-width: 980px) {
    .parcours-timeline::before {
        left: 18px;
        transform: none;
    }

    .parcours-step,
    .parcours-step.is-left,
    .parcours-step.is-right {
        width: 100%;
        left: 0;
        padding-left: 48px;
        padding-right: 0;
    }

    .parcours-step.is-left .parcours-step-marker,
    .parcours-step.is-right .parcours-step-marker {
        left: 9px;
        right: auto;
    }

    .parcours-step-main {
        grid-template-columns: 1fr;
    }

    .parcours-journey-banner {
        grid-template-columns: 110px 1fr 110px;
        gap: 14px;
        padding: 18px 16px;
    }

    .journey-flag {
        margin: 0;
    }

    .journey-flag img {
        height: 60px;
    }

    .journey-path-area {
        min-height: 90px;
    }

    .journey-dashed-line::before {
        left: 6%;
        right: 6%;
        height: 36px;
        border-top-width: 3px;
    }

    .journey-plane {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .parcours-step-card {
        padding: 20px;
    }

    .parcours-step-text h2 {
        font-size: 1.5rem;
    }

    .parcours-image-box,
    .parcours-image-box img {
        min-height: 190px;
        height: 190px;
    }

    .parcours-child-card {
        grid-template-columns: 1fr;
    }

    .parcours-child-logo {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .parcours-step,
    .parcours-step.is-left,
    .parcours-step.is-right {
        padding-left: 40px;
    }

    .parcours-timeline::before {
        left: 14px;
    }

    .parcours-step.is-left .parcours-step-marker,
    .parcours-step.is-right .parcours-step-marker {
        left: 5px;
    }

    .parcours-step-card {
        padding: 18px;
        border-radius: 22px;
    }

    .parcours-image-box,
    .parcours-image-box img {
        min-height: 170px;
        height: 170px;
    }

    .parcours-journey-banner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 14px;
        text-align: center;
    }

    .journey-flag {
        max-width: 130px;
        margin: 0 auto;
    }

    .journey-flag img {
        height: 50px;
    }

    .journey-path-area {
        min-height: 70px;
    }

    .journey-dashed-line::before {
        left: 14%;
        right: 14%;
        top: 54%;
        height: 24px;
        border-top-width: 3px;
    }

    .journey-plane {
        font-size: 1.15rem;
    }
}

/* =========================
   PROFIL PAGE REWORK
========================= */
.profil-page,
.contact-page {
    padding-top: 50px;
}

.profil-hero,
.contact-hero {
    margin-bottom: 36px;
}

.profil-intro {
    max-width: 900px;
}

.profil-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.icon-link-card,
.contact-icon-card {
    min-width: 120px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 12px 30px var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    font-weight: bold;
}

.icon-link-card:hover,
.contact-icon-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--accent);
}

.icon-link-symbol,
.contact-icon-symbol {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: bold;
}

.profil-section {
    margin-bottom: 42px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card h2 {
    margin-bottom: 18px;
}

.skill-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-bubbles span {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.2;
}

.soft-bubbles span {
    background: rgba(179, 136, 255, 0.12);
}

body[data-theme="light"] .soft-bubbles span {
    background: rgba(208, 75, 75, 0.10);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.language-card h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.language-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.flag {
    font-size: 2rem;
    line-height: 1;
}

.language-level {
    color: var(--text-main);
    font-weight: bold;
    margin: 0;
}

.association-card h2 {
    margin-bottom: 14px;
}

.association-card p + p {
    margin-top: 14px;
}

.association-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.interest-card {
    position: relative;
    overflow: hidden;
}

.interest-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.interest-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.interest-card p {
    color: var(--text-soft);
    line-height: 1.75;
}

/* =========================
   CONTACT PAGE REWORK
========================= */
.contact-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card-large {
    grid-column: 1 / -1;
}

.contact-lead {
    color: var(--text-soft);
    line-height: 1.85;
    max-width: 900px;
    margin-bottom: 24px;
}

.contact-direct-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-info-card h2 {
    margin-bottom: 12px;
}

.contact-inline-link {
    color: var(--accent);
    word-break: break-word;
}

.contact-inline-link:hover {
    text-decoration: underline;
}

/* =========================
   PROFIL / CONTACT RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .skills-grid,
    .languages-grid,
    .interest-grid,
    .contact-grid-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profil-quick-links,
    .contact-direct-links {
        flex-direction: column;
        align-items: stretch;
    }

    .icon-link-card,
    .contact-icon-card {
        width: 100%;
        justify-content: flex-start;
    }

    .skill-bubbles {
        gap: 10px;
    }

    .skill-bubbles span {
        width: 100%;
        border-radius: 14px;
    }
}

/* =========================
   PROFIL PAGE FINAL FIXES
========================= */
.flag-img {
    width: 38px;
    height: 26px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.association-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: start;
}

.association-logo-box {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-secondary);
    min-height: 160px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.association-logo {
    width: 100%;
    max-width: 110px;
    height: auto;
    object-fit: contain;
}

.association-content h2 {
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .association-layout {
        grid-template-columns: 1fr;
    }

    .association-logo-box {
        max-width: 180px;
    }
}

/* =========================
   CV ACTIONS
========================= */

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.cv-actions .btn {
    min-width: 130px;
    text-align: center;
}

@media (max-width: 480px) {
    .cv-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-actions .btn {
        width: 100%;
    }
}

/* =========================
   GALLERY CAROUSEL
========================= */

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px var(--shadow);
    transition: transform 0.25s ease;
}

.carousel-item:hover {
    transform: translateY(-5px) scale(1.02);
}

.carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.carousel-item p {
    padding: 12px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 2rem;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 8px 20px var(--shadow);
    transition: 0.25s ease;
}

.carousel-btn:hover {
    color: var(--accent);
    border: 1px solid var(--accent);
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

/* =========================
   GALERIE PREMIUM
========================= */
.galerie-page {
    padding-top: 50px;
}

.galerie-hero {
    margin-bottom: 34px;
}

.galerie-intro {
    max-width: 920px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.gallery-filter-btn {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.25s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.gallery-category + .gallery-category {
    margin-top: 44px;
}

.gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px 10px;
    width: 100%;
    scrollbar-width: none;
}

.gallery-carousel-track::-webkit-scrollbar {
    display: none;
}

.gallery-carousel-item {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-carousel-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.gallery-carousel-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
}

.gallery-carousel-caption {
    padding: 16px;
}

.gallery-carousel-caption h3 {
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.gallery-carousel-caption p {
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.95rem;
}

.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 24px var(--shadow);
    transition: 0.25s ease;
}

.gallery-carousel-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.gallery-carousel-btn.prev {
    left: -12px;
}

.gallery-carousel-btn.next {
    right: -12px;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 12px 30px var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-masonry-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.gallery-masonry-item img {
    width: 100%;
    display: block;
    cursor: pointer;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 20, 0.88);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox-content {
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.gallery-lightbox-content img {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: var(--bg-secondary);
}

.gallery-lightbox-text {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-lightbox-text h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.gallery-lightbox-text p {
    color: var(--text-soft);
    line-height: 1.8;
}

.gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2100;
    transition: 0.25s ease;
}

.gallery-lightbox-close:hover {
    color: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 1024px) {
    .gallery-masonry {
        column-count: 2;
    }

    .gallery-lightbox-content {
        grid-template-columns: 1fr;
    }

    .gallery-lightbox-content img {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .gallery-carousel-item {
        min-width: 260px;
        max-width: 260px;
    }

    .gallery-carousel-item img {
        height: 190px;
    }

    .gallery-carousel-btn {
        display: none;
    }

    .gallery-masonry {
        column-count: 1;
    }

    .gallery-lightbox {
        padding: 16px;
    }

    .gallery-lightbox-text {
        padding: 20px;
    }

    .gallery-lightbox-text h3 {
        font-size: 1.35rem;
    }
}