/*
Theme Name: LMP Weddings E-Album
Theme URI: https://ealbums.lmpweddings.in/
Author: LMP Weddings
Description: Minimal, elegant and responsive WordPress theme for wedding e-albums. Designed to host DearFlip / Real3D Flipbook shortcodes without interfering with plugin markup.
Version: 1.0.1
License: GPL-2.0-or-later
Text Domain: lmp-weddings-ealbum
*/

:root {
    --lmp-max-width: 1200px;
    --lmp-side-padding: clamp(18px, 4vw, 56px);
    --lmp-title-size: clamp(26px, 3.4vw, 48px);
    --lmp-subtitle-size: clamp(16px, 1.5vw, 23px);
    --lmp-footer-size: 14px;
    --lmp-overlay: rgba(0,0,0,0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #111;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #fff;
    background-color: #111;
    font-family: Georgia, "Times New Roman", serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/*
 * The background is attached to the theme shell rather than plugin elements.
 * This keeps DearFlip/Real3D styles isolated from the theme.
 */
.lmp-ealbum {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image:
        linear-gradient(var(--lmp-overlay), var(--lmp-overlay)),
        url("https://ealbums.lmpweddings.in/wp-content/uploads/2026/08/album_bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.lmp-ealbum__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    max-width: var(--lmp-max-width);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px) var(--lmp-side-padding) 24px;
    display: flex;
    flex-direction: column;
}

.lmp-ealbum__header {
    text-align: center;
    flex: 0 0 auto;
}

.lmp-ealbum__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(260px, 58vw);
    max-height: 105px;
    margin: 0 auto clamp(24px, 4vw, 38px);
    object-fit: contain;
}

.lmp-ealbum__eyebrow {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: var(--lmp-subtitle-size);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12em;
    text-transform: none;
    text-shadow: 0 1px 12px rgba(0,0,0,.28);
}

.lmp-ealbum__title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: var(--lmp-title-size);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.035em;
    text-shadow: 0 2px 16px rgba(0,0,0,.32);
    overflow-wrap: anywhere;
}

.lmp-ealbum__album {
    width: 100%;
    margin: clamp(30px, 5vw, 52px) auto 34px;
    flex: 1 0 auto;
    display: block;
}

/*
 * IMPORTANT:
 * No generic selectors are applied inside the shortcode wrapper.
 * The flipbook plugin owns its own markup, sizing and JavaScript.
 */
.lmp-ealbum__shortcode {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.lmp-ealbum__footer {
    flex: 0 0 auto;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 8px;
}

.lmp-ealbum__instagram {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: var(--lmp-footer-size);
    letter-spacing: 0.09em;
    text-shadow: 0 1px 10px rgba(0,0,0,.35);
    transition: opacity .2s ease, transform .2s ease;
}

.lmp-ealbum__instagram:hover,
.lmp-ealbum__instagram:focus-visible {
    color: #fff;
    opacity: .82;
    transform: translateY(-1px);
}

.lmp-ealbum__instagram-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

@media (max-width: 767px) {
    .lmp-ealbum {
        background-attachment: scroll;
        background-position: center center;
    }

    .lmp-ealbum__inner {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .lmp-ealbum__logo {
        max-width: min(210px, 58vw);
        max-height: 82px;
        margin-bottom: 22px;
    }

    .lmp-ealbum__eyebrow {
        letter-spacing: 0.08em;
    }

    .lmp-ealbum__album {
        margin-top: 28px;
        margin-bottom: 26px;
    }
}

/* WordPress admin bar compensation */
.admin-bar .lmp-ealbum {
    min-height: calc(100vh - 32px);
}

@media (max-width: 782px) {
    .admin-bar .lmp-ealbum {
        min-height: calc(100vh - 46px);
    }
}


/*
 * Real3D FlipBook transparency fix.
 * Scoped to this theme's shortcode wrapper; flipbook pages and controls
 * are not otherwise styled here.
 */
.lmp-ealbum__shortcode .real3dflipbook,
.lmp-ealbum__shortcode .real3dflipbook-container,
.lmp-ealbum__shortcode .real3dflipbook-container-bg,
.lmp-ealbum__shortcode .flipbook-container,
.lmp-ealbum__shortcode .flipbook-container-bg {
    background: transparent !important;
    background-color: transparent !important;
}
