/* Delivery Gallery (Light Theme) */



/*

 * 80% of the browser window (not 80% of a narrow theme content column).

 * margin calc centers the block even inside constrained .entry-content wrappers.

 */

.photoez-delivery-wrapper,

.photoez-wrapper,

.photoez-locked-wrapper {

    width: 80vw;

    max-width: 80vw;

    margin-left: calc(50% - 40vw);

    margin-right: calc(50% - 40vw);

    box-sizing: border-box;

}



@media (max-width: 768px) {

    .photoez-delivery-wrapper,

    .photoez-wrapper,

    .photoez-locked-wrapper {

        width: 95vw;

        max-width: 95vw;

        margin-left: calc(50% - 47.5vw);

        margin-right: calc(50% - 47.5vw);

    }

}



body.single-photoez_gallery,

body.photoez-gallery-page {

    overflow-x: clip;

}



body.single-photoez_gallery .entry-content,

body.single-photoez_gallery .page-content,

body.single-photoez_gallery .post-content,

body.single-photoez_gallery .site-content,

body.single-photoez_gallery .content-area,

body.single-photoez_gallery .hentry,

body.single-photoez_gallery article.type-photoez_gallery,

body.photoez-gallery-page .entry-content,

body.photoez-gallery-page .page-content,

body.photoez-gallery-page .post-content,

body.photoez-gallery-page .site-content,

body.photoez-gallery-page .content-area {

    max-width: 100% !important;

    width: 100% !important;

    padding-left: 0 !important;

    padding-right: 0 !important;

}



body.single-photoez_gallery .site-main,

body.single-photoez_gallery #primary,

body.single-photoez_gallery #content,

body.single-photoez_gallery .container:not(.photoez-delivery-wrapper):not(.photoez-wrapper):not(.photoez-locked-wrapper),

body.single-photoez_gallery .wrapper:not(.photoez-wrapper):not(.photoez-locked-wrapper),

body.single-photoez_gallery .ast-container,

body.single-photoez_gallery .site-inner,

body.single-photoez_gallery .inside-article,

body.single-photoez_gallery .content-wrap,

body.single-photoez_gallery .kb-row-layout-wrap .kt-row-column-wrap,

body.photoez-gallery-page .site-main,

body.photoez-gallery-page #primary,

body.photoez-gallery-page #content,

body.photoez-gallery-page .ast-container,

body.photoez-gallery-page .site-inner,

body.photoez-gallery-page .inside-article,

body.photoez-gallery-page .content-wrap {

    max-width: 100% !important;

}



.photoez-delivery-wrapper {

    margin-top: 0;

    margin-bottom: 0;

    padding: 0 0 60px;

    background: #f7f9fc;

    color: #1e293b;

    border-radius: 12px;

    overflow: hidden;

}



.photoez-delivery-wrapper--public {

    border-radius: 0;

}



.photoez-delivery-protected,

.photoez-delivery-protected img {

    -webkit-user-select: none;

    user-select: none;

    -webkit-touch-callout: none;

}



.photoez-delivery-cover {

    position: relative;

    min-height: 520px;

    max-height: 780px;

    overflow: hidden;

    background: linear-gradient(135deg, #1a3a6b 0%, #2d5a9e 50%, #22c55e 100%);

}



.photoez-delivery-cover--fallback {

    min-height: 400px;

}



.photoez-delivery-cover-img {

    width: 100%;

    height: 100%;

    min-height: 520px;

    max-height: 780px;

    object-fit: cover;

    display: block;

    pointer-events: none;

}



.photoez-delivery-cover-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 40px 24px;

    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.65));

    color: #fff;

}



.photoez-delivery-cover-title {

    margin: 10px 0 8px;

    font-size: clamp(28px, 5vw, 42px);

    font-weight: 700;

    letter-spacing: -0.02em;

    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);

    color: #fff;

}



.photoez-delivery-cover-meta {

    margin: 0;

    font-size: 15px;

    opacity: 0.92;

    max-width: 560px;

    color: #fff;

}



/* Beat theme .entry-content h1 overrides on gallery pages */

.photoez-delivery-wrapper .photoez-delivery-cover-overlay h1.photoez-delivery-cover-title,

.entry-content .photoez-delivery-wrapper .photoez-delivery-cover-overlay h1.photoez-delivery-cover-title,

.photoez-wrapper .photoez-delivery-cover-overlay h1.photoez-delivery-cover-title,

.photoez-locked-wrapper .photoez-delivery-cover-overlay h1.photoez-delivery-cover-title,

.entry-content .photoez-wrapper .photoez-delivery-cover-overlay h1.photoez-delivery-cover-title,

.entry-content .photoez-locked-wrapper .photoez-delivery-cover-overlay h1.photoez-delivery-cover-title {

    color: #fff !important;

}



.photoez-delivery-wrapper .photoez-delivery-cover-overlay .photoez-delivery-cover-meta,

.photoez-wrapper .photoez-delivery-cover-overlay .photoez-delivery-cover-meta,

.photoez-locked-wrapper .photoez-delivery-cover-overlay .photoez-delivery-cover-meta {

    color: #fff !important;

}



.photoez-delivery-actions {

    text-align: center;

    padding: 28px 20px;

}



.photoez-social-share {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 20px;

    margin: 0 20px 24px;

    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    box-shadow: 0 2px 12px rgba(26, 58, 107, 0.06);

}



.photoez-share-panel .photoez-social-share {

    margin: 16px 0 0;

    padding: 16px;

}



.photoez-social-share-label {

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    color: #64748b;

    width: 100%;

    text-align: center;

}



.photoez-social-share-buttons {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: center;

    gap: 10px;

}



.photoez-social-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    border: none;

    border-radius: 50%;

    color: #fff;

    text-decoration: none;

    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);

}



.photoez-social-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);

    color: #fff;

}



.photoez-social-btn svg {

    width: 20px;

    height: 20px;

    fill: currentColor;

}



.photoez-social-facebook { background: #1877f2; }

.photoez-social-x { background: #0f1419; }

.photoez-social-pinterest { background: #e60023; }

.photoez-social-whatsapp { background: #25d366; }

.photoez-social-email { background: #64748b; }

.photoez-social-copy { background: #1a3a6b; }



.photoez-delivery-empty {

    text-align: center;

    padding: 40px;

    background: #fff;

    border-radius: 12px;

    border: 1px solid #e2e8f0;

}



.photoez-delivery-hero {

    text-align: center;

    margin-bottom: 24px;

    padding: 28px 24px;

    background: linear-gradient(135deg, #e8eef7, #ecfdf3);

    border: 1px solid #c5d4ea;

    border-radius: 12px;

}



.photoez-delivery-hero h2 {

    margin: 0 0 8px;

    color: #1a3a6b;

    font-size: 28px;

}



.photoez-delivery-hero p {

    margin: 0;

    color: #64748b;

}



.photoez-delivery-hero--public h2 {

    margin-top: 8px;

}



.photoez-delivery-zip-btn {

    display: inline-block;

    margin: 0;

    padding: 12px 24px;

    background: #22c55e;

    color: #fff;

    font-weight: 700;

    text-decoration: none;

    border-radius: 8px;

}



.photoez-delivery-zip-btn:hover {

    background: #16a34a;

    color: #fff;

}



.photoez-shared-badge {

    display: inline-block;

    padding: 4px 10px;

    background: #1a3a6b;

    color: #fff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    border-radius: 20px;

}



.photoez-share-panel {

    margin: 0 20px 24px;

    padding: 18px 20px;

    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

}



.photoez-share-panel-header {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

}



.photoez-share-toggle {

    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 500;

    cursor: pointer;

}



.photoez-share-note {

    margin: 12px 0;

    font-size: 13px;

    color: #64748b;

}



.photoez-share-url-row {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}



.photoez-share-url {

    flex: 1;

    min-width: 220px;

    padding: 10px 12px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 13px;

    background: #f8fafc;

}



.photoez-share-copy,

.photoez-share-native {

    padding: 10px 16px;

    background: #1a3a6b;

    color: #fff;

    border: none;

    border-radius: 8px;

    font-weight: 600;

    cursor: pointer;

}



.photoez-share-copy:hover,

.photoez-share-native:hover {

    background: #153058;

}



.photoez-delivery-gallery {

    columns: 3;

    column-gap: 16px;

    padding: 0 20px;

}



.photoez-delivery-item {

    position: relative;

    break-inside: avoid;

    margin-bottom: 16px;

    background: #fff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 2px 12px rgba(26, 58, 107, 0.08);

    cursor: pointer;

}



.photoez-delivery-item img {

    width: 100%;

    height: auto;

    display: block;

}



.photoez-delivery-item .photoez-zoom-btn {

    position: absolute;

    top: 10px;

    right: 10px;

    z-index: 2;

    width: 34px;

    height: 34px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);

    color: #1a3a6b;

    font-size: 16px;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

}



.photoez-delivery-meta {

    padding: 10px 12px;

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.photoez-delivery-filename {

    font-size: 11px;

    color: #64748b;

    word-break: break-all;

}



.photoez-delivery-download {

    display: inline-block;

    padding: 8px 12px;

    background: #1a3a6b;

    color: #fff;

    text-decoration: none;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 600;

    text-align: center;

}



.photoez-delivery-download:hover {

    background: #153058;

    color: #fff;

}



@media (max-width: 900px) {

    .photoez-delivery-gallery {

        columns: 2;

    }

}



@media (max-width: 560px) {

    .photoez-delivery-gallery {

        columns: 1;

    }



    .photoez-share-url-row {

        flex-direction: column;

    }

}



/* ============================================= */
/* Dark theme for delivery (.photoez-theme-dark) */
/* Delivery defaults to light; these override.   */
/* ============================================= */
.photoez-delivery-wrapper.photoez-theme-dark {
    background: #0f0f12;
    color: #f4f4f8;
}

.photoez-theme-dark .photoez-social-share,
.photoez-theme-dark .photoez-share-panel,
.photoez-theme-dark .photoez-delivery-empty {
    background: #17171d;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: #f4f4f8;
}

.photoez-theme-dark .photoez-social-share-label,
.photoez-theme-dark .photoez-share-note,
.photoez-theme-dark .photoez-share-toggle,
.photoez-theme-dark .photoez-delivery-filename {
    color: #a8a8b8;
}

.photoez-theme-dark .photoez-delivery-hero {
    background: #17171d;
    border-color: rgba(0, 255, 251, 0.22);
}

.photoez-theme-dark .photoez-delivery-hero h2 {
    color: #ffffff;
}

.photoez-theme-dark .photoez-delivery-hero p {
    color: #a8a8b8;
}

.photoez-theme-dark .photoez-share-url {
    background: #0f0f12;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f4f4f8;
}

.photoez-theme-dark .photoez-delivery-item {
    background: #17171d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.photoez-theme-dark .photoez-delivery-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

