:root {
    --primary-color: #FF6B35;
    --white: #FFFFFF;
    --black: #000000;
    --text-color: #1A202C;
    --dark-bg: #1e1e1e;
    --light-gray: #f5f5f5;
    --medium-gray: #666666;
    --dark-gray: #333333;
    --border-gray: #888888;
    --blue-accent: #1a73e8;
    --light-blue: #87CEEB;
    --card-bg: #E8F0FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.hero {
    position: relative;
    padding: 120px 20px 80px;
}

.hero-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 520px;
    z-index: 0;
}

.hero-card {
    position: relative;
    z-index: 1;
    max-width: 1290px;
    margin: auto;
    background: url('/images/hero_slider.svg');
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    min-height: 500px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    flex: 1;
    padding: 60px;
    margin-left: 19px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    text-align: center;
}

.hero-separator {
    position: absolute;
    top: 0;
    left: 56%;
    transform: translateX(-50%);
    height: 100%;
    pointer-events: none;
}

.hero-separator img {
    height: 100%;
    width: auto;
}

@media (max-width: 900px) {
    .hero-card {
        flex-direction: column;
    }

    .hero-content {
        padding: 40px 30px;
        text-align: center;
    }

    .hero-separator {
        display: none;
    }

    .hero-image,
    .hero-content {
        padding: 0;
    }

}

.project-section {
    margin: 40px 0;
    padding: 0 15px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-image {
    padding: 15px;
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.project-info {
    padding: 15px;
}

.project-label {
    color: var(--blue-accent);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: bold;
    display: block;
}

.project-info h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-info p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn_action {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn_action:hover {
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image,
    .project-info {
        padding: 10px;
    }

    .project-info h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .project-section {
        margin: 30px 0;
    }

    .project-card {
        margin-bottom: 30px;
        gap: 15px;
    }

    .project-info h2 {
        font-size: 22px;
    }

    .btn_action {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.partenaire-section {
    background-color: #eb652b10;
    margin: 40px 0;
    padding: 40px 15px;
    width: 100%;
}

.partenaire_card {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-color);
    text-align: center;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.bg-gradient-to-top {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
}

.card-img-container {
    min-height: 300px;
    width: 100%;
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 8px 30px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .partenaire-section {
        padding: 30px 10px;
        margin: 30px 0;
    }

    .project-info h2 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1,
    h2,
    h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.partenariat-section {
    padding: 60px 20px;
    margin: 0 auto;
}

.partenariat-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.partenariat-item {
    text-align: center;
    padding: 20px 15px;
}

.partenariat-icone {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #82b0ed6c;
    color: var(--blue-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.partenariat-icone i {
    font-size: 24px;
}

.partenariat.info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partenariat.info p {
    color: var(--medium-gray);
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
}

.partenariat.info span {
    font-size: 0.7rem;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .partenariat-card {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .partenariat-section {
        padding: 50px 20px;
    }

    .partenariat-card {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .partenariat-item {
        padding: 20px;
    }

    .partenariat.info span {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .partenariat-section {
        padding: 40px 15px;
    }

    .partenariat-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .partenariat-icone {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .partenariat-icone i {
        font-size: 20px;
    }

    .partenariat.info p {
        font-size: 0.85rem;
    }

    .partenariat.info span {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .partenariat-card {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        gap: 15px;
    }

    .partenariat-section {
        padding: 30px 10px;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .partenariat-item {
        padding: 20px 15px;
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .partenariat-icone {
        margin: 0;
        flex-shrink: 0;
    }

    .partenariat.info {
        flex: 1;
    }

    .partenariat.info span {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .partenariat-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .partenariat-icone {
        margin: 0 auto;
    }

    .title {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }
}

.plan-action-section {
    background-color: #eb652b10;
    margin: 40px auto;
    padding: 60px 15px;
    width: 80%;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.plan-action-card {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    z-index: 2;
}

.plan-action-card h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.plan-action {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-action-item {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.plan-action-icone {
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.plan-action-info p {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.plan-action-info span {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.plan-action-img {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.plan-action-img img {
    border-radius: 24px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.plan-action-img.overlapping-img {
    position: absolute;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 45%;
    min-width: 300px;
    z-index: 3;
}

@media (min-width: 1200px) {
    .plan-action-section {
        padding-right: 180px;
    }

    .plan-action-img.overlapping-img {
        right: -100px;
        max-width: 40%;
    }
}

@media (max-width: 1199px) {
    .plan-action-img.overlapping-img {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }

    .plan-action-section {
        overflow: hidden;
        padding-right: 15px;
    }
}

@media (max-width: 992px) {
    .plan-action-section {
        flex-direction: column;
        gap: 50px;
        padding: 40px 20px;
        width: 95%;
    }

    .plan-action-card {
        margin-left: 0;
        max-width: 100%;
    }

    .plan-action-card h3 {
        font-size: 1.8rem;
        text-align: center;
    }

    .plan-action-img,
    .plan-action-img.overlapping-img {
        max-width: 100%;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .plan-action-section {
        margin: 20px auto;
        padding: 30px 15px;
        width: 100%;
        border-radius: 15px;
    }

    .plan-action-card h3 {
        font-size: 1.6rem;
    }

    .plan-action-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px 20px;
    }

    .plan-action-icone {
        font-size: 2rem;
    }

    .plan-action-info p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .plan-action-card h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .plan-action-item {
        padding: 20px 15px;
    }

    .plan-action-info p {
        font-size: 1.1rem;
    }

    .plan-action-info span {
        font-size: 0.9rem;
    }
}

.enjeux-section {
    background: url('/images/fond.svg');
    margin: 40px auto;
    padding: 60px 15px;
    width: 100%;
}

.enjeux-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.detail-enjeux {
    padding: 20px;
}

.detail-enjeux h3 {
    color: var(--white, #ffffff);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-enjeux p {
    color: var(--white, #ffffff);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btnplus {
    background: var(--white, #ffffff) !important;
    color: var(--primary-color, #eb652b) !important;
    padding: 14px 32px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btnplus:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: #f8f9fa !important;
}

.detail-enjeux-card {
    padding: 15px;
}

.enjeux-triangle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: center;
}

.item-1 {
    grid-column: 1;
    grid-row: 1;
}

.item-2 {
    grid-column: 1;
    grid-row: 2;
}

.item-3 {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: center;
    max-height: 220px;
}

.detail-enjeux-item {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.detail-enjeux-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.detail-enjeux-icone {
    color: var(--blue-accent, #2c5aa0);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(44, 90, 160, 0.1);
    border-radius: 50%;
}

.detail-enjeux-icone i {
    font-size: 18px;
}

.detail-enjeux.info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-enjeux.info p {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.row.justify-content-md-center,
.row {
    gap: 20px 0;
}

.col-12.col-lg-6.p-3 {
    display: flex;
}

@media (max-width: 1200px) {
    .enjeux-card {
        max-width: 95%;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .enjeux-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-enjeux {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }

    .detail-enjeux h3 {
        font-size: 2rem;
    }

    .detail-enjeux-card {
        max-width: 700px;
        margin: 0 auto;
    }

    .row.justify-content-md-center {
        justify-content: center !important;
    }

    .item-3 {
        height: auto;
    }
}

@media (max-width: 768px) {
    .enjeux-section {
        padding: 40px 15px;
        margin: 30px auto;
    }

    .detail-enjeux h3 {
        font-size: 1.8rem;
    }

    .detail-enjeux p {
        font-size: 1rem;
    }

    .detail-enjeux-item {
        padding: 25px 15px;
    }

    .detail-enjeux-icone {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .detail-enjeux-icone i {
        font-size: 28px;
    }

    .detail-enjeux.info p {
        font-size: 1.1rem;
    }

    .enjeux-triangle {
        grid-template-columns: 1fr;
    }

    .item-1,
    .item-2,
    .item-3 {
        grid-column: auto;
        grid-row: auto;
    }

}

@media (max-width: 576px) {
    .enjeux-section {
        padding: 30px 10px;
        margin: 20px auto;
    }

    .detail-enjeux h3 {
        font-size: 1.6rem;
    }

    .detail-enjeux p {
        font-size: 0.95rem;
    }

    .btnplus {
        padding: 12px 25px;
        font-size: 13px;
    }

    .detail-enjeux-item {
        padding: 20px 15px;
    }

    .detail-enjeux-icone {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .detail-enjeux-icone i {
        font-size: 24px;
    }

    .detail-enjeux.info p {
        font-size: 1rem;
    }

    .col-12.col-lg-6.p-3 {
        padding: 10px !important;
    }
}

.zone-section {
    margin: 40px auto;
    padding: 60px 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ports {
    padding: 2rem;
}

.ports-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    grid-template-areas:
        "kaolack dakar foundiougne"
        "saintl1 dakar zig";
}

.kaolack {
    grid-area: kaolack;
}

.dakar {
    grid-area: dakar;
}

.foundiougne {
    grid-area: foundiougne;
}

.saint-louis-1 {
    grid-area: saintl1;
}

.saint-louis-2 {
    grid-area: zig;
}

.port-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.port-card h3 {
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.port-card:not(.dakar) img {
    height: 180px;
}

.dakar img {
    height: 450px;
}


@media (max-width: 900px) {
    .ports-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "dakar dakar"
            "kaolack foundiougne"
            "saintl1 zig";
    }

    .dakar img {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .ports-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "dakar"
            "kaolack"
            "foundiougne"
            "saintl1"
            "zig";
    }

    .port-card img {
        height: 200px;
    }
}

.modern-gallery-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--blue-accent) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.gallery-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.gallery-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.gradient-text {
    background: linear-gradient(45deg, 
        var(--primary-color), 
        #FF8C42, 
        #FFB347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-top: 10px;
}

.gallery-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.gallery-subtitle::before,
.gallery-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.gallery-subtitle::before {
    left: -50px;
}

.gallery-subtitle::after {
    right: -50px;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 20px;
    height: 700px;
    position: relative;
    margin-bottom: 60px;
}

.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(235, 101, 43, 0.15);
    z-index: 10;
}

.large-item {
    grid-column: 1 / span 5;
    grid-row: 1 / span 5;
}

.small-item:nth-child(2) {
    grid-column: 7 / span 5;
    grid-row: 2 / span 6;
}

.small-item:nth-child(3) {
    grid-column: 7 / span 5;
    grid-row: 8 / span 6;
}

.medium-item {
    grid-column: 1 / span 6;
    grid-row: 6 / span 8;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) contrast(1.1);
}

.grid-item:hover .gallery-img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.2);
}

/* Overlay minimaliste */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}
.decorative-element {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 1;
}

.decorative-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
}

.decorative-line {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--primary-color), 
        transparent);
}

/* Navigation */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.nav-dot::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s;
}

.nav-dot:hover::after {
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1200px) {
    .modern-grid {
        height: 600px;
        gap: 15px;
    }
    
    .large-item {
        grid-column: 1 / span 7;
    }
    
    .small-item:nth-child(2),
    .small-item:nth-child(3) {
        grid-column: 8 / span 5;
    }
}

@media (max-width: 992px) {
    .modern-gallery-section {
        padding: 60px 20px;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 300px);
        height: auto;
        gap: 20px;
    }
    
    .grid-item {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    .gallery-title {
        font-size: 3rem;
    }
    
    .decorative-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .modern-grid {
        grid-template-rows: repeat(4, 250px);
    }
    
    .image-label {
        font-size: 1.2rem;
    }
    
    .gallery-subtitle::before,
    .gallery-subtitle::after {
        width: 20px;
    }
    
    .gallery-subtitle::before {
        left: -30px;
    }
    
    .gallery-subtitle::after {
        right: -30px;
    }
}

@media (max-width: 576px) {
    .modern-gallery-section {
        padding: 40px 15px;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }
    
    .modern-grid {
        grid-template-rows: repeat(4, 200px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-grid {
    animation: fadeInUp 1s ease-out;
}