/* =========================================================
   SEA MARINE GALLERY PAGE
   NAVBAR CSS IS NOT INCLUDED HERE
========================================================= */


/* =========================================================
   BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family: "Poppins", sans-serif;

    background: #061a2b;

    color: #ffffff;

    overflow-x: hidden;
}


/* =========================================================
   BODY BACKGROUND EFFECT
========================================================= */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -2;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(0, 174, 255, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 35%,
            rgba(0, 94, 255, 0.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(0, 211, 255, 0.08),
            transparent 30%
        );
}

body::after {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    opacity: .25;
}


/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    position: relative;

    min-height: 100vh;

    padding: 180px 5% 100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 28%,
            rgba(0, 187, 255, .08),
            transparent 32%
        ),
        radial-gradient(
            circle at 82% 58%,
            rgba(0, 82, 255, .16),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 65%,
            rgba(0, 193, 255, .08),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #071a2c 0%,
            #061a2b 50%,
            #041526 100%
        );
}


/* =========================================================
   DECORATIVE LIGHT
========================================================= */

.gallery-section::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    top: 160px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(21, 188, 255, .09),
            transparent 65%
        );

    filter: blur(20px);

    pointer-events: none;
}

.gallery-section::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    right: -180px;
    top: 450px;

    background:
        radial-gradient(
            circle,
            rgba(15, 93, 255, .13),
            transparent 65%
        );

    filter: blur(20px);

    pointer-events: none;
}


/* =========================================================
   HEADING
========================================================= */

.gallery-heading {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1000px;

    margin: 0 auto 70px;

    text-align: center;
}

.gallery-small-title {
    display: inline-block;

    margin-bottom: 25px;

    color: #1bbcff;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: 9px;

    text-transform: uppercase;

    text-shadow:
        0 0 18px rgba(27, 188, 255, .45);
}

.gallery-heading h1 {
    margin: 0 0 38px;

    color: #a1eaff;

    font-family: "DM Serif Display", serif;

    font-size: clamp(65px, 7vw, 105px);

    font-weight: 400;

    line-height: 1;

    text-shadow:
        0 0 25px rgba(81, 205, 255, .14);
}

.gallery-heading p {
    max-width: 850px;

    margin: auto;

    color: #cbdbea;

    font-size: 19px;

    line-height: 1.9;
}


/* =========================================================
   HEADING DECORATION
========================================================= */

.heading-decoration {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    margin-bottom: 35px;
}

.heading-decoration span {
    width: 140px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #16bfff
        );

    box-shadow:
        0 0 10px rgba(0, 191, 255, .6);
}

.heading-decoration span:last-child {
    background:
        linear-gradient(
            90deg,
            #16bfff,
            transparent
        );
}

.heading-decoration i {
    color: #1bbdff;

    font-size: 31px;

    text-shadow:
        0 0 15px rgba(24, 190, 255, .7);
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    position: relative;

    z-index: 3;

    width: 100%;
    max-width: 1500px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    grid-auto-rows: 90px;

    gap: 20px;
}


/* =========================================================
   GALLERY ITEM
========================================================= */

.gallery-item {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(88, 200, 255, .16);
    border-radius: 19px;

    background:
        rgba(255, 255, 255, .035);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .05);

    isolation: isolate;

    opacity: 0;

    transform:
        translateY(40px)
        scale(.98);

    transition:
        opacity .8s ease,
        transform .8s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.gallery-item.show {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.gallery-item:hover {
    transform:
        translateY(-7px)
        scale(1.01);

    border-color:
        rgba(35, 195, 255, .55);

    box-shadow:
        0 28px 60px rgba(0, 0, 0, .48),
        0 0 30px rgba(0, 185, 255, .14);
}

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s cubic-bezier(.2, .7, .2, 1),
        filter .6s ease;
}

.gallery-item:hover img {
    transform: scale(1.09);

    filter:
        brightness(.73)
        saturate(1.1);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(2, 15, 28, .02) 25%,
            rgba(2, 13, 25, .15) 48%,
            rgba(1, 10, 20, .88) 100%
        );

    opacity: .65;

    transition: opacity .45s ease;

    z-index: 1;

    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}


/* =========================================================
   VIEW ICON
========================================================= */

.view-icon {
    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 4;

    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(66, 200, 255, .3);
    border-radius: 50%;

    color: #ffffff;

    background:
        rgba(3, 25, 42, .65);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    opacity: 0;

    transform: scale(.7);

    transition:
        opacity .4s ease,
        transform .4s ease;
}

.gallery-item:hover .view-icon {
    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   33 IMAGE POSITIONS
========================================================= */

.gallery-item:nth-child(1) {
    grid-column: span 5;
    grid-row: span 5;
}

.gallery-item:nth-child(2) {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item:nth-child(3) {
    grid-column: span 3;
    grid-row: span 3;
}

.gallery-item:nth-child(4) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(5) {
    grid-column: span 3;
    grid-row: span 5;
}

.gallery-item:nth-child(6) {
    grid-column: span 5;
    grid-row: span 4;
}

.gallery-item:nth-child(7) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(8) {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item:nth-child(9) {
    grid-column: span 4;
    grid-row: span 5;
}

.gallery-item:nth-child(10) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(11) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(12) {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item:nth-child(13) {
    grid-column: span 3;
    grid-row: span 4;
}

.gallery-item:nth-child(14) {
    grid-column: span 5;
    grid-row: span 4;
}

.gallery-item:nth-child(15) {
    grid-column: span 4;
    grid-row: span 5;
}

.gallery-item:nth-child(16) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(17) {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item:nth-child(18) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(19) {
    grid-column: span 4;
    grid-row: span 5;
}

.gallery-item:nth-child(20) {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item:nth-child(21) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(22) {
    grid-column: span 5;
    grid-row: span 4;
}

.gallery-item:nth-child(23) {
    grid-column: span 3;
    grid-row: span 4;
}

.gallery-item:nth-child(24) {
    grid-column: span 4;
    grid-row: span 5;
}

.gallery-item:nth-child(25) {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item:nth-child(26) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(27) {
    grid-column: span 4;
    grid-row: span 5;
}

.gallery-item:nth-child(28) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(29) {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item:nth-child(30) {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item:nth-child(31) {
    grid-column: span 5;
    grid-row: span 4;
}

.gallery-item:nth-child(32) {
    grid-column: span 3;
    grid-row: span 4;
}

.gallery-item:nth-child(33) {
    grid-column: span 4;
    grid-row: span 4;
}


/* =========================================================
   LAPTOP
========================================================= */

@media screen and (max-width: 1199px) {

    .gallery-section {
        padding: 155px 4% 90px;
    }

    .gallery-heading {
        margin-bottom: 60px;
    }

    .gallery-heading h1 {
        font-size: clamp(58px, 7vw, 90px);
    }

    .gallery-heading p {
        font-size: 17px;
    }

    .gallery-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        grid-auto-rows: 100px;

        gap: 15px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 2;
        grid-row: span 4;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(14),
    .gallery-item:nth-child(22),
    .gallery-item:nth-child(31) {
        grid-column: span 3;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 992px) {

    .gallery-section {
        min-height: auto;

        padding: 135px 4% 80px;
    }

    .gallery-heading {
        margin-bottom: 50px;
    }

    .gallery-small-title {
        font-size: 14px;

        letter-spacing: 6px;
    }

    .gallery-heading h1 {
        font-size: clamp(50px, 9vw, 78px);
    }

    .heading-decoration span {
        width: 90px;
    }

    .gallery-heading p {
        font-size: 15px;

        line-height: 1.8;
    }

    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows: 210px;

        gap: 14px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(14),
    .gallery-item:nth-child(22),
    .gallery-item:nth-child(31) {
        grid-column: span 2;
        grid-row: span 2;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 768px) {

    .gallery-section {
        padding: 125px 20px 80px;
    }

    .gallery-heading {
        margin-bottom: 40px;
    }

    .gallery-small-title {
        margin-bottom: 18px;

        font-size: 10px;

        letter-spacing: 4px;
    }

    .gallery-heading h1 {
        margin-bottom: 25px;

        font-size: clamp(40px, 13vw, 56px);
    }

    .heading-decoration {
        gap: 9px;

        margin-bottom: 22px;
    }

    .heading-decoration span {
        width: 55px;
    }

    .heading-decoration i {
        font-size: 20px;
    }

    .gallery-heading p {
        font-size: 13px;

        line-height: 1.75;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 230px;

        gap: 12px;
    }

    .gallery-item:nth-child(n),
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(14),
    .gallery-item:nth-child(22),
    .gallery-item:nth-child(31) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item {
        width: 100%;

        border-radius: 15px;
    }

    .view-icon {
        top: 12px;
        right: 12px;

        width: 38px;
        height: 38px;

        opacity: 1;

        transform: scale(1);
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 400px) {

    .gallery-section {
        padding: 110px 12px 50px;
    }

    .gallery-heading h1 {
        font-size: 40px;
    }

    .heading-decoration span {
        width: 42px;
    }

    .gallery-heading p {
        font-size: 12px;
    }

    .gallery-grid {
        grid-auto-rows: 210px;

        gap: 10px;
    }

    .gallery-item {
        border-radius: 13px;
    }

}