.test {
    width: 100%;
    height: 100%;
}

h1 {
    font-size: 20px text-transform: uppercase;
    color: white;
    text-align: center;
    margin: 5px 0;
}

.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 200px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
    background: #000;
    object-fit: cover;
    overflow: hidden;
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #0006);
}

.swiper-slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f00, #000);
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease-in-out;
    mix-blend-mode: multiply;
}

.swiper-slide:hover:before {
    opacity: 0.8;
}

.swiper-slide img {
    position: absolute;
    width: 150%;
    left: -100px;
}

.swiper-slide .content {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    padding: 20px;
    align-items: flex-end;
}

.swiper-slide .content h2 {
    color: #fff;
    transition: 0.5s ease-in-out;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 20px;
    transform: translateY(200px);
}

.swiper-slide:hover .content h2 {
    transform: translateY(0px);
    transition-delay: 0.6s;
}

.swiper-slide .content p {
    color: #fff;
    transition: 0.5s ease-in-out;
    font-size: 14px;
    transform: translateY(200px);
}

.swiper-slide:hover .content p {
    transform: translateY(0px);
    transition-delay: 0.7s;
}

.swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    background: rgba(189, 195, 199, 1.0);
}

.swiper-pagination-bullet-active:nth-child(n+1):nth-child(-n+7) {
    background: #ff7675;
}

.swiper-pagination-bullet-active:nth-child(n+8):nth-child(-n+13) {
    background: #e84393;
}

.swiper-pagination-bullet-active:nth-child(n+14):nth-child(-n+17) {
    background: #6c5ce7;
}

.swiper-pagination-bullet-active:nth-child(n+18):nth-child(-n+23) {
    background: #0984e3;
}

.swiper-pagination-bullet-active:nth-child(n+24):nth-child(-n+26) {
    background: #81ecec;
}

.swiper-pagination-bullet-active:nth-child(n+27):nth-child(-n+28) {
    background: #fdcb6e;
}

.swiper-pagination-bullet-active:nth-child(n+29) {
    background: #ff7675;
}

.swiper-pagination-bullet-active:nth-child(n+30) {
    background: #6c5ce7;
}

.swiper-pagination {
    position: relative !important;
}

.gallery-cont {
    width: 100%;
    /* max-height: 500px; */
    overflow: hidden;
}

.gallery-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

.gallery-section h1 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem;
    color: #D7992A;
}

/* Masonry via CSS columns */
.masonry {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 600px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .masonry {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .masonry {
        column-count: 4;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #04262C;
}

/* Image fits its container, no cropping */
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Caption overlay */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.masonry-item:hover .caption {
    transform: translateY(0);
}

/* Fade-up reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section h1 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem;
    color: #D7992A;
}

/* Masonry via CSS columns */
.masonry {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 600px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .masonry {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .masonry {
        column-count: 4;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

/* 1) Start images zoomed in */
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    /* zoomed in */
    transition: transform 0.6s ease-out;
}

/* 2) On-scroll (when .active is added), zoom back out to normal */
.reveal.active img {
    transform: scale(1);
    /* normal size */
}

/* (Optional) keep a tiny hover pop */
.masonry-item:hover img {
    transform: scale(1.02);
}