/* =================================================
           GALLERY
        ================================================= */

        .google-drive-gallery {

            column-count: 4;

            column-gap: 20px;

            width: 100%;

        }


        .drive-gallery-item {

            break-inside: avoid;

            margin-bottom: 20px;

            position: relative;

        }


        /* =================================================
           IMAGE LINK
        ================================================= */

        .drive-gallery-item > a.drive-lightbox-link {

            position: relative;

            display: block;

            overflow: hidden;

            text-decoration: none;

            line-height: 0;

        }


        .drive-gallery-item img {

            width: 100%;

            height: auto;

            display: block;

            transition:
                transform 0.4s ease;

        }


        .drive-gallery-item
        > a.drive-lightbox-link:hover
        img {

            transform: scale(1.04);

        }



        /* =================================================
           ZOOM OVERLAY
        ================================================= */

        .drive-gallery-overlay {

            position: absolute;

            inset: 0;

            display: flex;

            align-items: center;

            justify-content: center;

            background:
                rgba(0,0,0,0.35);

            opacity: 0;

            transition:
                opacity 0.3s ease;

        }


        .drive-gallery-item
        > a.drive-lightbox-link:hover
        .drive-gallery-overlay {

            opacity: 1;

        }


        .drive-zoom-icon {

            width: 58px;

            height: 58px;

            display: flex;

            align-items: center;

            justify-content: center;

            background: #ffffff;

            border-radius: 50%;

            box-shadow:
                0 5px 20px
                rgba(0,0,0,0.2);

        }


        .drive-zoom-icon svg {

            width: 28px;

            height: 28px;

        }



        /* =================================================
           LISTING ACTIONS
        ================================================= */

        .drive-gallery-actions {

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 6px;

            width: 100%;

            margin-top: 8px;

        }


        .drive-gallery-actions a,
        .drive-gallery-actions button {

            flex: 1;

            min-width: 0;

            height: 38px;

            padding: 0 8px;

            border:
                1px solid #e5e5e5;

            background: #ffffff;

            color: #333333;

            border-radius: 5px;

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 5px;

            font-family: inherit;

            font-size: 12px;

            font-weight: 500;

            line-height: 1;

            text-decoration: none;

            cursor: pointer;

            box-sizing: border-box;

            transition:
                all 0.25s ease;

        }


        .drive-gallery-actions a:hover,
        .drive-gallery-actions button:hover {

            background: #111111;

            border-color: #111111;

            color: #ffffff;

        }


        /* =================================================
           LIST ICON
        ================================================= */

        .drive-list-icon {

            font-size: 17px;

            line-height: 1;

        }


        /* =================================================
           LIST LIKE
        ================================================= */

        .drive-list-like-icon {

            font-size: 19px;

            line-height: 1;

        }


        .drive-list-like.liked {

            background: #e53935 !important;

            border-color: #e53935 !important;

            color: #ffffff !important;

        }


        .drive-list-like.liked
        .drive-list-like-icon {

            color: #ffffff;

        }



        /* =================================================
           LIGHTBOX
        ================================================= */

        .drive-lightbox {

            position: fixed;

            inset: 0;

            z-index: 999999;

            display: flex;

            align-items: center;

            justify-content: center;

            background:
                rgba(0,0,0,0.94);

            opacity: 0;

            visibility: hidden;

            transition:
                opacity 0.3s ease,
                visibility 0.3s ease;

        }


        .drive-lightbox.active {

            opacity: 1;

            visibility: visible;

        }



        /* =================================================
           LIGHTBOX WRAPPER
        ================================================= */

        .drive-lightbox-wrapper {

            position: relative;

            width:
                min(90vw, 1200px);

            height: 92vh;

            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

        }



        /* =================================================
           LIGHTBOX IMAGE
        ================================================= */

        #drive-lightbox-image {

            max-width: 100%;

            max-height:
                calc(92vh - 170px);

            width: auto;

            height: auto;

            object-fit: contain;

            display: block;

            border-radius: 2px;

        }



        /* =================================================
           TITLE
        ================================================= */

        .drive-lightbox-title {

            color: #ffffff;

            font-size: 16px;

            font-weight: 500;

            line-height: 1.4;

            margin-top: 15px;

            text-align: center;

            max-width: 80%;

            word-break: break-word;

        }



        /* =================================================
           COUNTER
        ================================================= */

        .drive-lightbox-counter {

            color:
                rgba(255,255,255,0.70);

            font-size: 14px;

            line-height: 1.4;

            margin-top: 5px;

        }



        /* =================================================
           LIGHTBOX ACTIONS
        ================================================= */

        .drive-lightbox-actions {

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 10px;

            margin-top: 18px;

        }


        .drive-action-btn {

            border:
                1px solid
                rgba(255,255,255,0.45);

            background:
                rgba(255,255,255,0.10);

            color: #ffffff;

            min-width: 110px;

            height: 42px;

            padding: 0 16px;

            border-radius: 6px;

            display: inline-flex;

            align-items: center;

            justify-content: center;

            gap: 7px;

            font-family: inherit;

            font-size: 14px;

            font-weight: 500;

            line-height: 1;

            cursor: pointer;

            text-decoration: none;

            box-sizing: border-box;

            transition:
                background 0.25s ease,
                border-color 0.25s ease,
                transform 0.25s ease;

        }


        .drive-action-btn:hover {

            background:
                rgba(255,255,255,0.22);

            border-color:
                #ffffff;

            color: #ffffff;

            transform:
                translateY(-2px);

        }


        .drive-action-icon {

            font-size: 20px;

            line-height: 1;

        }



        /* =================================================
           LIGHTBOX LIKE
        ================================================= */

        .drive-like .like-icon {

            font-size: 22px;

            line-height: 1;

        }


        .drive-like.liked {

            background: #e53935;

            border-color: #e53935;

        }


        .drive-like.liked:hover {

            background: #d32f2f;

            border-color: #d32f2f;

        }


        .drive-like.liked
        .like-icon {

            color: #ffffff;

        }



        /* =================================================
           CLOSE BUTTON
        ================================================= */

        .drive-lightbox-close {

            position: absolute;

            top: 25px;

            right: 30px;

            width: 45px;

            height: 45px;

            border: 0;

            padding: 0;

            background:
                rgba(255,255,255,0.12);

            color: #ffffff;

            font-size: 32px;

            line-height: 45px;

            text-align: center;

            border-radius: 50%;

            cursor: pointer;

            z-index: 10;

            transition:
                background 0.2s ease,
                transform 0.2s ease;

        }


        .drive-lightbox-close:hover {

            background:
                rgba(255,255,255,0.25);

            transform:
                rotate(90deg);

        }



        /* =================================================
           PREVIOUS / NEXT
        ================================================= */

        .drive-lightbox-prev,
        .drive-lightbox-next {

            position: absolute;

            top: 50%;

            transform:
                translateY(-50%);

            width: 52px;

            height: 70px;

            padding: 0;

            border: 0;

            background:
                rgba(255,255,255,0.12);

            color: #ffffff;

            font-size: 35px;

            line-height: 1;

            cursor: pointer;

            z-index: 10;

            transition:
                background 0.2s ease;

        }


        .drive-lightbox-prev:hover,
        .drive-lightbox-next:hover {

            background:
                rgba(255,255,255,0.25);

        }


        .drive-lightbox-prev {

            left: 25px;

        }


        .drive-lightbox-next {

            right: 25px;

        }



        /* =================================================
           ERROR / EMPTY
        ================================================= */

        .drive-gallery-error,
        .drive-gallery-empty {

            padding: 20px;

            text-align: center;

        }



        /* =================================================
           TABLET
        ================================================= */

        @media (max-width: 1024px) {

            .google-drive-gallery {

                column-count: 3;

            }

        }



        /* =================================================
           MOBILE
        ================================================= */

        @media (max-width: 767px) {

            .google-drive-gallery {

                column-count: 2;

                column-gap: 12px;

            }


            .drive-gallery-item {

                margin-bottom: 12px;

            }


            .drive-gallery-actions {

                gap: 4px;

                margin-top: 6px;

            }


            .drive-gallery-actions a,
            .drive-gallery-actions button {

                height: 34px;

                padding: 0 5px;

                font-size: 10px;

            }


            .drive-list-icon {

                font-size: 15px;

            }


            .drive-list-like-icon {

                font-size: 17px;

            }


            .drive-lightbox-wrapper {

                width: 94vw;

                height: 90vh;

            }


            #drive-lightbox-image {

                max-height:
                    calc(90vh - 180px);

                max-width: 94vw;

            }


            .drive-lightbox-actions {

                gap: 6px;

                margin-top: 12px;

            }


            .drive-action-btn {

                min-width: auto;

                height: 40px;

                padding: 0 10px;

                font-size: 12px;

            }


            .drive-action-icon {

                font-size: 18px;

            }


            .drive-like .like-icon {

                font-size: 20px;

            }


            .drive-lightbox-prev,
            .drive-lightbox-next {

                width: 38px;

                height: 50px;

                font-size: 25px;

            }


            .drive-lightbox-prev {

                left: 5px;

            }


            .drive-lightbox-next {

                right: 5px;

            }


            .drive-lightbox-close {

                top: 10px;

                right: 10px;

                width: 40px;

                height: 40px;

                line-height: 40px;

                font-size: 28px;

            }


            .drive-lightbox-title {

                font-size: 13px;

                max-width: 90%;

            }


            .drive-lightbox-counter {

                font-size: 12px;

            }

        }



        /* =================================================
           SMALL MOBILE
        ================================================= */

        @media (max-width: 480px) {

            .drive-gallery-actions a,
            .drive-gallery-actions button {

                font-size: 9px;

                padding: 0 4px;

            }


            .drive-lightbox-actions {

                gap: 4px;

            }


            .drive-action-btn {

                padding: 0 7px;

                font-size: 11px;

            }

        }
        
        /* =====================================================
   BULK DOWNLOAD BAR
===================================================== */

.drive-bulk-download-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}


.drive-download-selected {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}


.drive-download-selected:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


.drive-download-selected:not(:disabled):hover {
    opacity: 0.85;
}


.drive-selected-count {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 12px;
}


/* =====================================================
   IMAGE SELECT CHECKBOX
===================================================== */

.drive-image-select {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    cursor: pointer;
}


.drive-select-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.drive-select-checkmark {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


.drive-select-checkbox:checked
+ .drive-select-checkmark {
    background: #111;
}


.drive-select-checkbox:checked
+ .drive-select-checkmark::after {
    content: "✓";
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}


/* Selected image */

.drive-gallery-item.drive-image-selected {
    outline: 3px solid #00af96;
    outline-offset: -3px;
}
/* =====================================================
   LIKE BUTTON - UNLIKED STATE
   Always remain WHITE
===================================================== */

.drive-gallery-actions .drive-list-like:not(.liked),
.drive-gallery-actions .drive-list-like:not(.liked):hover,
.drive-gallery-actions .drive-list-like:not(.liked):focus,
.drive-gallery-actions .drive-list-like:not(.liked):active {

    background: #ffffff !important;

    border-color: #e5e5e5 !important;

    color: #333333 !important;

    box-shadow: none !important;

}


/* Unliked heart */

.drive-gallery-actions
.drive-list-like:not(.liked)
.drive-list-like-icon {

    color: #333333 !important;

}


/* Unliked text */

.drive-gallery-actions
.drive-list-like:not(.liked)
.drive-list-like-text {

    color: #333333 !important;

}


/* =====================================================
   LIKE BUTTON - LIKED STATE
===================================================== */

.drive-gallery-actions .drive-list-like.liked,
.drive-gallery-actions .drive-list-like.liked:hover,
.drive-gallery-actions .drive-list-like.liked:focus,
.drive-gallery-actions .drive-list-like.liked:active {

    background: #e53935 !important;

    border-color: #e53935 !important;

    color: #ffffff !important;

    box-shadow: none !important;

}


/* Liked heart */

.drive-gallery-actions
.drive-list-like.liked
.drive-list-like-icon {

    color: #ffffff !important;

}


/* Liked text */

.drive-gallery-actions
.drive-list-like.liked
.drive-list-like-text {

    color: #ffffff !important;

}
/* =====================================================
   CUSTOM SHARE POPUP
===================================================== */

.gdg-share-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.65);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}


.gdg-share-popup {
    position: relative;

    width: 100%;
    max-width: 430px;

    background: #ffffff;

    border-radius: 14px;

    padding: 28px;

    box-sizing: border-box;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.30);
}


.gdg-share-popup-close {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 34px;
    height: 34px;

    border: none;

    background: transparent;

    color: #333333;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}


.gdg-share-popup-close:hover {
    background: #f1f1f1;

    border-radius: 50%;
}


.gdg-share-popup-title {
    font-size: 22px;

    font-weight: 600;

    color: #222222;

    margin-bottom: 8px;
}


.gdg-share-popup-image-title {
    font-size: 14px;

    color: #777777;

    margin-bottom: 22px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.gdg-share-options {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}


.gdg-share-option {
    min-height: 52px;

    border: 1px solid #e2e2e2;

    background: #ffffff;

    color: #333333;

    border-radius: 8px;

    padding: 10px 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    cursor: pointer;

    font-family: inherit;

    font-size: 14px;

    font-weight: 500;

    transition: all 0.2s ease;
}


.gdg-share-option:hover {
    background: #f5f5f5;

    border-color: #cccccc;

    transform: translateY(-1px);
}


.gdg-share-option-icon {
    font-size: 18px;

    line-height: 1;

    font-weight: 600;
}


.gdg-share-link-wrapper {
    margin-top: 18px;
}


.gdg-share-link {
    width: 100%;

    height: 42px;

    border: 1px solid #dddddd;

    background: #f7f7f7;

    color: #555555;

    border-radius: 6px;

    padding: 0 12px;

    box-sizing: border-box;

    font-size: 12px;

    outline: none;
}


@media (max-width: 480px) {

    .gdg-share-popup {
        padding: 24px 18px;
    }

    .gdg-share-options {
        grid-template-columns:
            1fr;
    }

}