/* ============================= */
/* Core Wrapper */
/* ============================= */

.photoez-wrapper {
    background: #0f0f12;
    padding: 50px 40px 120px 40px;
    color: #ffffff;
    min-height: 100vh;
}

/* ============================= */
/* Pricing Banner */
/* ============================= */

.photoez-pricing-banner {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #222;
    color: #000;
}

/* ============================= */
/* Gallery Grid */
/* ============================= */

.photoez-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.photoez-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.15s ease;
}

.photoez-item:hover {
    transform: scale(1.01);
}

.photoez-item img {
    width: 100%;
    display: block;
    position: relative; /* keep image below selection circle */
    z-index: 1;
}

/* ============================= */
/* Photo Number Badge            */
/* ============================= */

.photoez-photo-num {
    position: absolute;
    top: 8px;
    left: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    z-index: 10;
    pointer-events: none;
    line-height: 1.6;
}

/* ============================= */
/* Zoom / View Larger Button     */
/* ============================= */

.photoez-zoom-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 11;
    line-height: 1;
    padding: 0;
}

.photoez-item:hover .photoez-zoom-btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .photoez-zoom-btn {
        opacity: 1;
        width: 32px;
        height: 32px;
    }
}

/* ============================= */
/* Selection Circle */
/* ============================= */

.photoez-select {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #32CD32;
    border: 3px solid #fff;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    margin: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transform: scale(0.5);
}

.photoez-select-check {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.photoez-item.selected .photoez-select {
    opacity: 1;
    transform: scale(1);
}

.photoez-item.selected img {
    opacity: 0.65;
}

@media (max-width: 768px) {
    .photoez-select {
        width: 56px;
        height: 56px;
    }
    .photoez-select-check {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .photoez-select {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }
}

/* ============================= */
/* Floating Checkout Bar */
/* ============================= */

.photoez-checkout-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #111111 !important;
    border-top: 3px solid #00fffb !important;
    padding: 20px 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 2147483647 !important;
    box-sizing: border-box;
}

.photoez-checkout-bar,
.photoez-checkout-bar * {
    color: #ffffff !important;
    font-size: 16px !important;
}

.photoez-checkout-bar .photoez-total {
    color: #00fffb !important;
    font-weight: 700 !important;
}

.photoez-checkout-bar button {
    background: #00fffb !important;
    border: none !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

.photoez-checkout-bar button:disabled {
    opacity: .4 !important;
    cursor: not-allowed !important;
}

/* ============================= */
/* Lightbox */
/* ============================= */

.photoez-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.photoez-lightbox-inner {
    position: relative;
    text-align: center;
    display: inline-block;
    padding-bottom: 80px; /* room for counter if needed */
}

.photoez-lightbox img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 8px;
    display: block;
}

.photoez-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.photoez-arrow:hover {
    color: #00fffb;
}

.photoez-arrow.left { left: -60px; }
.photoez-arrow.right { right: -60px; }

.photoez-counter-overlay {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #bbbbbb;
}

/* Close button in top-right, visible on mobile */
.photoez-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000000;
    padding: 6px 12px;
    font-size: 15px;
    color: #fff;
    background: rgba(0,0,0,0.7);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
}

.photoez-close:hover {
    color: #00fffb;
    background: rgba(0,0,0,0.9);
}

@media (max-width: 768px) {
    .photoez-close {
        font-size: 16px;
        padding: 8px 14px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    body::after {
        content: "PHOTOEZ MOBILE CSS";
        position: fixed;
        bottom: 5px;
        right: 5px;
        z-index: 9999999;
        background: red;
        color: #fff;
        padding: 4px 6px;
        font-size: 10px;
    }
}
/* Mobile-specific adjustments */
@media (max-width: 768px) {
    /* Make the image a bit shorter so there's room for the Close pill */
    .photoez-lightbox img {
        max-height: 65vh; /* was 75vh */
    }

    /* Force the Close button above everything on mobile */
    .photoez-close {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 2147483647 !important; /* very high */
        padding: 8px 14px !important;
        font-size: 16px !important;
        color: #000 !important;
        background: #ffeb3b !important; /* bright yellow to be obvious */
        border-radius: 999px !important;
        border: 2px solid #000 !important;
        cursor: pointer !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }
}
@media (max-width: 768px) {
    .photoez-close {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 2147483647 !important;
        padding: 8px 14px !important;
        font-size: 18px !important;
        color: #000 !important;          /* BLACK text */
        background: #00fffb  !important;  /* BRIGHT YELLOW background */
        border-radius: 999px !important;
        border: 2px solid #000 !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }
}
