 /* =========================
           SECTION
        ========================= */

        .gallery-section {
            padding: 20px 0;
        }

        .gallery-title {
            font-size: 3rem;
            font-weight: 800;
            letter-spacing: -1px;
        }

        .gallery-subtitle {
            max-width: 650px;
            margin: 15px auto 50px;
            color: #777;
            font-size: 1.05rem;
        }

        /* =========================
           GALLERY CARD
        ========================= */

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 22px;
            cursor: pointer;
            background: #fff;
            box-shadow:
                0 10px 30px rgba(0, 0, 0, .06);
        }

        .gallery-item img {
            width: 100%;
            height: 280px;
            object-fit: cover;
            display: block;

            transition:
                transform .6s cubic-bezier(.2,.8,.2,1),
                filter .6s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.08);
            filter: brightness(.72);
        }

        /* =========================
           OVERLAY
        ========================= */

        .gallery-overlay {
            position: absolute;
            inset: 0;

            display: flex;
            flex-direction: column;
            justify-content: flex-end;

            padding: 25px;

            background:
                linear-gradient(
                    to top,
                    rgba(0,0,0,.75),
                    rgba(0,0,0,0)
                );

            opacity: 0;
            transition: .4s ease;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        .gallery-overlay h5 {
            color: #fff;
            margin: 0;
            font-weight: 700;
        }

        .gallery-overlay p {
            color: rgba(255,255,255,.75);
            margin: 5px 0 15px;
            font-size: .9rem;
        }

        /* =========================
           VIEW BUTTON
        ========================= */

        .gallery-view {
            width: 45px;
            height: 45px;

            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 50%;

            background: rgba(255,255,255,.95);
            color: #111;

            font-size: 1.2rem;

            transition: .3s ease;
        }

        .gallery-view:hover {
            transform: scale(1.1);
            background: #fff;
        }

        /* =========================
           FEATURED IMAGE
        ========================= */

        .gallery-featured img {
            height: 580px;
        }

        /* =========================
           MODAL
        ========================= */

        .gallery-modal {
            background: rgba(0,0,0,.94);
        }

        .gallery-modal .modal-dialog {
            max-width: 1200px;
        }

        .gallery-modal .modal-content {
            background: transparent;
            border: 0;
        }

        .gallery-modal img {
            max-height: 75vh;
            object-fit: contain;
        }

        .modal-close {
            position: absolute;
            right: 20px;
            top: 20px;

            z-index: 10;

            width: 45px;
            height: 45px;

            border: 0;
            border-radius: 50%;

            background: rgba(255,255,255,.15);
            color: #fff;

            font-size: 1.4rem;
        }

        .modal-close:hover {
            background: rgba(255,255,255,.3);
        }

        .carousel-control-prev,
        .carousel-control-next {
            width: 60px;
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            background-color: rgba(255,255,255,.2);
            padding: 25px;
            border-radius: 50%;
            background-size: 50%;
        }

        /* =========================
           MOBILE
        ========================= */

        @media (max-width: 767px) {

            .gallery-section {
                padding: 60px 0;
            }

            .gallery-title {
                font-size: 2.2rem;
            }

            .gallery-item img {
                height: 230px;
            }

            .gallery-featured img {
                height: 350px;
            }

            .gallery-overlay {
                opacity: 1;
            }
        }