.gallery-hero,
.gallery-intro,
.gallery-categories,
.visual-gallery,
.gallery-cta {
    width: 100%;
}

.gallery-page {
    background: #ffffff;
    color: #171717;
}

.gallery-hero .container,
.gallery-intro .container,
.gallery-categories .container,
.visual-gallery .container,
.gallery-cta .container {
    position: relative;
    z-index: 2;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #820000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #171717;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #820000 0%, #820000 45%, #820000 100%);
    z-index: 1;
}

.gallery-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, transparent 48%, #fff 48%, #fff 49%, transparent 49%, transparent 100%);
    opacity: 0.9;
    z-index: 1;
}

.gallery-hero-content {
    position: relative;
    max-width: 760px;
    padding: 110px 0;
}

.gallery-hero-content .section-label {
    color: #ffffff;
}

.gallery-hero-content .section-label-statement {
    margin: 0 0 25px;
    color: #ffffff;
    font-family: "Red Hat Display", sans-serif;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -2px;
}

.gallery-hero-content .section-label-statement span {
    color: #fff;
}

.gallery-hero-content p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.7;
}

.gallery-intro {
    padding: 70px 0;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.gallery-intro-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(400px, 1.15fr);
    gap: 100px;
    align-items: start;
}

.gallery-intro-heading .section-sub-label {
    max-width: 500px;
    margin: 0;
    color: #171717;
    font-family: "Red Hat Display", sans-serif;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.gallery-intro-heading .section-sub-label span {
    color: #820000;
}

.gallery-intro-text {
    padding-top: 8px;
}

.gallery-intro-text .gallery-intro-descrip {
    margin: 0 0 10px;
    color: #555555;
    font-size: 18px;
    line-height: 1.8;
}

.gallery-intro-text .gallery-intro-descrip:last-child {
    margin-bottom: 0;
}

.gallery-categories {
    padding: 70px 0 70px;
    background: #f7f7f7;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading.centered {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading.centered .section-label {
    justify-content: center;
}

.section-heading .section-sub-label {
    margin: 0 0 18px;
    color: #171717;
    font-family: "Red Hat Display", sans-serif;
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.section-heading .section-sub-label span {
    color: #820000;
}

.section-heading .section-descrip {
    max-width: 650px;
    margin: 0 auto;
    color: #606060;
    font-size: 17px;
    line-height: 1.7;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    padding: 35px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: #820000;
    transition: height 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: #820000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.category-card:hover::before {
    height: 100%;
}

.category-number {
    position: absolute;
    top: 25px;
    right: 28px;
    color: #dedede;
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    transition: color 0.3s ease;
}

.category-card:hover .category-number {
    color: #ead6d6;
}

.category-icon {
    position: relative;
    width: 46px;
    height: 46px;
    margin-bottom: 35px;
    border: 1px solid #820000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon::before,
.category-icon::after,
.category-icon span {
    content: "";
    position: absolute;
    background: #820000;
}

.category-icon::before {
    width: 18px;
    height: 2px;
}

.category-icon::after {
    width: 2px;
    height: 18px;
}

.category-icon span {
    width: 9px;
    height: 9px;
    border: 1px solid #820000;
    background: #ffffff;
}

.category-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.category-content h3 {
    max-width: 270px;
    margin: 0 0 13px;
    color: #171717;
    font-family: "Red Hat Display", sans-serif;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.category-content p {
    max-width: 290px;
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
}

.category-arrow {
    position: absolute;
    right: 30px;
    bottom: 5px;
    color: #820000;
    font-family: "Red Hat Display", sans-serif;
    font-size: 25px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-arrow svg {
    height: 20px;
    width: 20px;
    stroke: #820000;
    fill: none;

}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}


.visual-gallery {
    padding: 0 0 70px 0;
    background: #f7f7f7;
}

.visual-gallery .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;
}

.visual-gallery .section-heading p {
    max-width: 420px;
    margin: 0;
    text-align: left;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: 230px;
    gap: 15px;
}

.gallery-photo-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #eeeeee 0%, #e2e2e2 100%);
    border: 1px solid #d8d8d8;
    cursor: pointer;
}

.gallery-photo-placeholder::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: none;
    pointer-events: none;
}

.gallery-photo-placeholder span {
    position: relative;
    z-index: 2;
    color: #777777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.gallery-photo-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-photo-placeholder.large {
    grid-row: span 2;
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
}

.gallery-photo-overlay span {
    color: #ffffff;
    font-family: "Red Hat Display", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
}

.gallery-photo-overlay:hover {
    background: rgba(0, 0, 0, 0.65);
}

.gallery-photo-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #eeeeee 0%, #e2e2e2 100%);
    border: 1px solid #d8d8d8;
}

.gallery-photo-placeholder span {
    position: relative;
    z-index: 2;
    color: #777777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.gallery-photo-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-photo-placeholder.large {
    grid-row: span 2;
}

.gallery-cta {
    padding: 0;
    background: #820000;
}

.gallery-cta-inner {
    min-height: 330px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
    padding: 70px 0;
}

.gallery-cta .section-label {
    color: #ffffff;
}

.cta-content h2 {
    max-width: 700px;
    margin: 0 0 18px;
    color: #ffffff;
    font-family: "Red Hat Display", sans-serif;
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1px;
}

.cta-content h2 span {
    color: #ffffff;
    opacity: 0.65;
}

.cta-content p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.7;
}

.cta-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-width: 190px;
    padding: 17px 25px;
    color: #820000;
    background: #ffffff;
    font-family: "Red Hat Display", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cta-button span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    color: #ffffff;
    background: #171717;
    transform: translateY(-3px);
}

.cta-button:hover span {
    transform: translateX(5px);
}

@media (max-width: 1100px) {
    .gallery-intro-grid {
        gap: 60px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }




}

@media (max-width: 900px) {
    .gallery-hero {
        min-height: 500px;
    }

    .gallery-hero-content {
        padding: 90px 0;
    }

    .gallery-intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }




    .visual-gallery .section-heading {
        display: block;
    }

    .visual-gallery .section-heading p {
        margin-top: 25px;
    }

    .gallery-cta-inner {
        display: block;
    }

    .cta-button {
        margin-top: 35px;
    }

}

@media (max-width: 650px) {
    .gallery-hero-content {
        padding: 75px 0;
    }

    .gallery-hero-content .section-label-statement {
        font-size: 46px;
        letter-spacing: -1px;
    }

    .gallery-hero-content p {
        font-size: 17px;
    }

    .gallery-intro,
    .gallery-categories,
    .visual-gallery {
        padding: 80px 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 260px;
    }

    .project-showcase-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 24px 30px;
    }

    .project-showcase-body {
        padding: 40px 30px;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .project-note {
        align-items: flex-start;
        padding: 22px 30px;
    }

    .gallery-photo-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-photo-placeholder.large {
        grid-row: auto;
    }

    .gallery-photo-placeholder.large {
        grid-row: auto;
    }

    .gallery-cta-inner {
        padding: 65px 0;
    }
}

@media (max-width: 450px) {
    .gallery-hero-content .section-label-statement {
        font-size: 40px;
    }

    .section-heading .section-sub-label,
    .gallery-intro-heading .section-sub-label,
    .section-heading .section-sub-label {
        font-size: 36px;
    }

    .category-card {
        padding: 30px;
    }

    .category-number {
        right: 22px;
    }

    .project-title-area h3 {
        font-size: 27px;
    }

    .cta-content h2 {
        font-size: 35px;
    }

    .cta-button {
        width: 100%;
    }
}