/* =========================================
   1. VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
    --ptrans-bg: #ffffff;
    --ptrans-text: #111827;
    --ptrans-radius: 12px;
    --ptrans-transition-ease: cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Z-Index Layering */
    --z-overlay: 999990;
    --z-ghost: 9999998;
    --z-close-btn: 9999999;
    --z-progress: 99999999;
}

/* Prevent double scrollbars when overlay is active */
body.ptrans-overlay-active {
    overflow: hidden !important;
    height: 100vh;
    touch-action: none;
}

/* =========================================
   2. PROGRESS BAR & LOADER
   ========================================= */
/* Top Progress Bar (YouTube Style) */
#ptrans-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: #2563eb; /* Accent Blue */
    z-index: var(--z-progress);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    transition: width 0.2s ease, opacity 0.2s ease;
}

/* Overlay Container */
#ptrans-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--ptrans-bg);
    z-index: var(--z-overlay);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#ptrans-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

/* Central Spinner (Fallback) */
#ptrans-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    color: var(--ptrans-text);
}

#ptrans-loader svg {
    animation: ptransSpin 1s linear infinite;
    width: 100%;
    height: 100%;
}

@keyframes ptransSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Content Wrapper */
#ptrans-content-wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    contain: content;
    background-color: var(--ptrans-bg);
}

.ptrans-injected {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* =========================================
   3. GHOST IMAGE & CLOSE BUTTON
   ========================================= */
.ptrans-ghost {
    position: fixed !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    z-index: var(--z-ghost) !important;
    pointer-events: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-origin: top left;
    will-change: top, left, width, height, border-radius; 
    backface-visibility: hidden;
}

#ptrans-close-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: var(--z-close-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

#ptrans-overlay.active #ptrans-close-btn {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.5s;
}

#ptrans-close-btn:hover {
    background-color: #000000;
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

#ptrans-close-btn svg {
    stroke-width: 2.5px;
}

/* =========================================
   4. FILTERS & SEARCH
   ========================================= */
.ptrans-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.ptrans-filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ptrans-filter-btn:hover,
.ptrans-filter-btn.active {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

.ptrans-search-bar {
    margin-bottom: 25px;
    text-align: center;
}

#ptrans-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: border-color 0.2s;
}

#ptrans-search:focus {
    border-color: #2563eb;
}

/* =========================================
   5. GRID LAYOUTS
   ========================================= */
.ptrans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    margin-bottom: 40px;
}

.ptrans-masonry {
    column-count: 3;
    column-gap: 24px;
    width: 100%;
    margin-bottom: 40px;
}

.ptrans-masonry .ptrans-card {
    break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
}

/* =========================================
   6. CARD STYLES & VIDEO
   ========================================= */
.ptrans-card {
    display: block;
    position: relative;
    border-radius: var(--ptrans-radius);
    overflow: hidden;
    background-color: #f3f4f6;
    text-decoration: none;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ptrans-grid .ptrans-card { aspect-ratio: 4 / 3; }

.ptrans-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Image Fit Logic */
.ptrans-grid .ptrans-card img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s var(--ptrans-transition-ease);
    display: block;
}

.ptrans-masonry .ptrans-card img {
    position: relative;
    width: 100%;
    height: auto !important;
    display: block;
    transition: transform 0.7s var(--ptrans-transition-ease);
}

.ptrans-card:hover img {
    transform: scale(1.08);
}

/* Video Hover */
.ptrans-hover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.ptrans-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    z-index: 5;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.ptrans-card:hover .ptrans-card-info {
    transform: translateY(0);
    opacity: 1;
}

.ptrans-card-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* =========================================
   7. GRID DESIGN PRESETS (15 Types)
   ========================================= */
.design-std { border-radius: 12px; }
.design-min { box-shadow: none !important; border: 1px solid #eee; border-radius: 8px; }
.design-dark { background-color: #1a1a1a; border: 1px solid #333; }
.design-glass .ptrans-card-info { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.2); }
.design-polaroid { padding-bottom: 50px; background: white; border: 1px solid #ddd; }
.design-polaroid .ptrans-card-info { background: transparent; color: #333; bottom: 0; height: 50px; padding: 12px; opacity: 1; transform: none; text-align: center; }
.design-polaroid .ptrans-card-info h3 { text-shadow: none; font-size: 1rem; }
.design-bold { border: 4px solid #000; border-radius: 0; }
.design-soft { border-radius: 30px; }
.design-sharp { border-radius: 0; }
.design-float { box-shadow: 0 15px 35px rgba(0,0,0,0.15); border-radius: 20px; transform: translateY(-5px); }
.design-overlay .ptrans-card-info { height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); opacity: 0; text-align: center; }
.design-overlay:hover .ptrans-card-info { opacity: 1; }
.design-neumorph { background: #e0e0e0; box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff; border: none; }
.design-brutalist { border: 2px solid #000; box-shadow: 6px 6px 0px #000; border-radius: 0; transition: box-shadow 0.2s, transform 0.2s; }
.design-brutalist:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px #000; }
.design-outline { outline: 2px solid #000; outline-offset: -8px; }
.design-gradient { position: relative; border: 4px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(45deg, #f09, #3023AE) border-box; }
.design-material { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); border-radius: 4px; }

/* =========================================
   8. CARD HOVER EFFECTS (15 Types)
   ========================================= */
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); z-index: 5; }
.hover-zoom:hover img { transform: scale(1.15); }
.hover-glow:hover { box-shadow: 0 0 25px rgba(243, 109, 37, 0.6); transform: translateY(-3px); }
.hover-gray img { filter: grayscale(100%); transition: filter 0.3s; }
.hover-gray:hover img { filter: grayscale(0%); transform: scale(1.05); }
.hover-slide .ptrans-card-info { transform: translateY(100%); opacity: 1; }
.hover-slide:hover .ptrans-card-info { transform: translateY(0); }
.hover-dark:hover img { filter: brightness(0.6); transform: scale(1.02); }
.hover-rotate:hover { transform: rotate(2deg) scale(1.03); z-index: 5; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.hover-blur:hover img { filter: blur(4px); transform: scale(1.05); }
.hover-flash .ptrans-card-inner::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.4); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.hover-flash:hover .ptrans-card-inner::after { opacity: 1; animation: ptransFlash 0.5s forwards; }
.hover-shrink:hover { transform: scale(0.95); }
.hover-pan:hover img { transform: scale(1.2) translate(-10px, -10px); }
.hover-border:hover { border: 4px solid var(--ptrans-text); }
.hover-shadow:hover { box-shadow: inset 0 0 50px rgba(0,0,0,0.8); }
.hover-bounce:hover { animation: ptransBounce 0.6s ease; }
.hover-push:hover .ptrans-card-info { padding-bottom: 40px; }
.hover-push:hover img { transform: translateY(-10px) scale(1.05); }
.hover-none:hover { transform: none; box-shadow: none; }

@keyframes ptransBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ptransFlash { 0% { opacity: 0; } 50% { opacity: 0.6; } 100% { opacity: 0; } }

/* =========================================
   9. HERO STYLES
   ========================================= */
.ptrans-hero-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background-color: #111;
    margin-bottom: 2rem;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.ptrans-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
    will-change: transform;
}

/* Parallax Modifier */
.ptrans-hero-img.ptrans-parallax {
    height: var(--ptrans-parallax-scale, 120%);
    margin-top: calc( (var(--ptrans-parallax-scale, 120%) - 100%) / -2 );
}

.ptrans-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    padding: 40px;
    justify-content: flex-end; /* Default */
}

/* Base Typography */
.ptrans-hero-overlay h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0; /* JS handles animation */
}

.ptrans-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    font-weight: 600;
    opacity: 0;
}

/* Split Text Helpers */
.ptrans-split-text { opacity: 1 !important; animation: none !important; }
.ptrans-char, .ptrans-word { display: inline-block; opacity: 0; transform: translateY(20px); }

/* --- HERO PRESETS (15) --- */
.hero-cinematic .ptrans-hero-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); justify-content: flex-end; }
.hero-editorial .ptrans-hero-overlay { justify-content: center; align-items: center; text-align: center; background: rgba(0,0,0,0.3); }
.hero-modern-left .ptrans-hero-overlay { justify-content: center; padding-left: 10%; background: linear-gradient(to right, rgba(0,0,0,0.8), transparent); }
.hero-vogue .ptrans-hero-overlay { justify-content: center; align-items: center; }
.hero-vogue h1 { font-size: 5rem; mix-blend-mode: overlay; }
.hero-minimal .ptrans-hero-overlay { background: none; }
.hero-glass .ptrans-hero-content { background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.2); padding: 40px; border-radius: 16px; width: 60%; margin: 0 auto; text-align: center; pointer-events: auto; }
.hero-glass .ptrans-hero-overlay { justify-content: center; }
.hero-split .ptrans-hero-overlay { width: 50%; background: #111; height: 100%; justify-content: center; left: 0; top: 0; }
.hero-boxed { padding: 60px; } .hero-boxed .ptrans-hero-content { background: #fff; color: #111; padding: 40px; } .hero-boxed h1 { color: #111; text-shadow: none; }
.hero-bottom-bar .ptrans-hero-overlay { background: transparent; } .hero-bottom-bar .ptrans-hero-content { background: #111; width: 100%; padding: 30px; position: absolute; bottom: 0; left: 0; }
.hero-gradient-mesh .ptrans-hero-overlay { background: radial-gradient(circle at 10% 20%, rgb(69, 86, 255) 0%, rgb(255, 69, 69) 90%); opacity: 0.8; mix-blend-mode: multiply; }
.hero-floating .ptrans-hero-content { background: #fff; color: #111; padding: 20px 40px; border-radius: 50px; display: inline-block; box-shadow: 0 20px 40px rgba(0,0,0,0.2); } .hero-floating h1 { color: #111; text-shadow: none; font-size: 2rem; }
.hero-neon h1 { text-shadow: 0 0 10px #ff00de, 0 0 40px #ff00de; color: #fff; }
.hero-dark-mode .ptrans-hero-overlay { background: rgba(0,0,0,0.7); }
.hero-top-left .ptrans-hero-overlay { justify-content: flex-start; align-items: flex-start; padding-top: 80px; }
.hero-framed .ptrans-hero-overlay { border: 20px solid #fff; margin: 20px; box-sizing: border-box; justify-content: flex-end; }

/* --- HERO ANIMATIONS --- */
.anim-fade-up h1 { animation-name: ptransFadeUp; }
@keyframes ptransFadeUp { to { opacity: 1; transform: translateY(0); } }

.anim-zoom-in h1 { animation-name: ptransZoomIn; }
@keyframes ptransZoomIn { 0%{opacity:0; transform:scale(0.8);} 100%{opacity:1; transform:scale(1);} }

.anim-blur h1 { animation-name: ptransBlur; }
@keyframes ptransBlur { 0%{opacity:0; filter:blur(10px);} 100%{opacity:1; filter:blur(0);} }

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .ptrans-masonry { column-count: 2; }
}

@media (max-width: 767px) {
    .ptrans-grid { grid-template-columns: 1fr; gap: 16px; }
    .ptrans-masonry { column-count: 1; }
    .ptrans-card-info { opacity: 1; transform: translateY(0); padding: 16px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); }
    .hero-split .ptrans-hero-overlay { width: 100%; height: 50%; bottom: 0; top: auto; }
    .hero-glass .ptrans-hero-content { width: 90%; }
    .ptrans-hero-overlay h1 { font-size: 2rem; }
    #ptrans-close-btn { top: 15px; right: 15px; width: 40px; height: 40px; }
}/* =========================================
   1. VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
    --ptrans-bg: #ffffff;
    --ptrans-text: #111827;
    --ptrans-radius: 12px;
    --ptrans-transition-ease: cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Z-Index Layering */
    --z-overlay: 999990;
    --z-ghost: 9999998;
    --z-close-btn: 9999999;
    --z-progress: 99999999;
}

/* Prevent double scrollbars when overlay is active */
body.ptrans-overlay-active {
    overflow: hidden !important;
    height: 100vh;
    touch-action: none;
}

/* =========================================
   2. PROGRESS BAR & LOADER
   ========================================= */
/* Top Progress Bar (YouTube Style) */
#ptrans-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: #2563eb; /* Accent Blue */
    z-index: var(--z-progress);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    transition: width 0.2s ease, opacity 0.2s ease;
}

/* Overlay Container */
#ptrans-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--ptrans-bg);
    z-index: var(--z-overlay);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#ptrans-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

/* Central Spinner (Fallback) */
#ptrans-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    color: var(--ptrans-text);
}

#ptrans-loader svg {
    animation: ptransSpin 1s linear infinite;
    width: 100%;
    height: 100%;
}

@keyframes ptransSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Content Wrapper */
#ptrans-content-wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    contain: content;
    background-color: var(--ptrans-bg);
}

.ptrans-injected {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* =========================================
   3. GHOST IMAGE & CLOSE BUTTON
   ========================================= */
.ptrans-ghost {
    position: fixed !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    z-index: var(--z-ghost) !important;
    pointer-events: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-origin: top left;
    will-change: top, left, width, height, border-radius; 
    backface-visibility: hidden;
}

#ptrans-close-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: var(--z-close-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

#ptrans-overlay.active #ptrans-close-btn {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.5s;
}

#ptrans-close-btn:hover {
    background-color: #000000;
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

#ptrans-close-btn svg {
    stroke-width: 2.5px;
}

/* =========================================
   4. FILTERS & SEARCH
   ========================================= */
.ptrans-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.ptrans-filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ptrans-filter-btn:hover,
.ptrans-filter-btn.active {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

.ptrans-search-bar {
    margin-bottom: 25px;
    text-align: center;
}

#ptrans-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: border-color 0.2s;
}

#ptrans-search:focus {
    border-color: #2563eb;
}

/* =========================================
   5. GRID LAYOUTS
   ========================================= */
.ptrans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    margin-bottom: 40px;
}

.ptrans-masonry {
    column-count: 3;
    column-gap: 24px;
    width: 100%;
    margin-bottom: 40px;
}

.ptrans-masonry .ptrans-card {
    break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
}

/* =========================================
   6. CARD STYLES & VIDEO
   ========================================= */
.ptrans-card {
    display: block;
    position: relative;
    border-radius: var(--ptrans-radius);
    overflow: hidden;
    background-color: #f3f4f6;
    text-decoration: none;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ptrans-grid .ptrans-card { aspect-ratio: 4 / 3; }

.ptrans-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Image Fit Logic */
.ptrans-grid .ptrans-card img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s var(--ptrans-transition-ease);
    display: block;
}

.ptrans-masonry .ptrans-card img {
    position: relative;
    width: 100%;
    height: auto !important;
    display: block;
    transition: transform 0.7s var(--ptrans-transition-ease);
}

.ptrans-card:hover img {
    transform: scale(1.08);
}

/* Video Hover */
.ptrans-hover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.ptrans-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    z-index: 5;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.ptrans-card:hover .ptrans-card-info {
    transform: translateY(0);
    opacity: 1;
}

.ptrans-card-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* =========================================
   7. GRID DESIGN PRESETS (15 Types)
   ========================================= */
.design-std { border-radius: 12px; }
.design-min { box-shadow: none !important; border: 1px solid #eee; border-radius: 8px; }
.design-dark { background-color: #1a1a1a; border: 1px solid #333; }
.design-glass .ptrans-card-info { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.2); }
.design-polaroid { padding-bottom: 50px; background: white; border: 1px solid #ddd; }
.design-polaroid .ptrans-card-info { background: transparent; color: #333; bottom: 0; height: 50px; padding: 12px; opacity: 1; transform: none; text-align: center; }
.design-polaroid .ptrans-card-info h3 { text-shadow: none; font-size: 1rem; }
.design-bold { border: 4px solid #000; border-radius: 0; }
.design-soft { border-radius: 30px; }
.design-sharp { border-radius: 0; }
.design-float { box-shadow: 0 15px 35px rgba(0,0,0,0.15); border-radius: 20px; transform: translateY(-5px); }
.design-overlay .ptrans-card-info { height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); opacity: 0; text-align: center; }
.design-overlay:hover .ptrans-card-info { opacity: 1; }
.design-neumorph { background: #e0e0e0; box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff; border: none; }
.design-brutalist { border: 2px solid #000; box-shadow: 6px 6px 0px #000; border-radius: 0; transition: box-shadow 0.2s, transform 0.2s; }
.design-brutalist:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px #000; }
.design-outline { outline: 2px solid #000; outline-offset: -8px; }
.design-gradient { position: relative; border: 4px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(45deg, #f09, #3023AE) border-box; }
.design-material { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); border-radius: 4px; }

/* =========================================
   8. CARD HOVER EFFECTS (15 Types)
   ========================================= */
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); z-index: 5; }
.hover-zoom:hover img { transform: scale(1.15); }
.hover-glow:hover { box-shadow: 0 0 25px rgba(243, 109, 37, 0.6); transform: translateY(-3px); }
.hover-gray img { filter: grayscale(100%); transition: filter 0.3s; }
.hover-gray:hover img { filter: grayscale(0%); transform: scale(1.05); }
.hover-slide .ptrans-card-info { transform: translateY(100%); opacity: 1; }
.hover-slide:hover .ptrans-card-info { transform: translateY(0); }
.hover-dark:hover img { filter: brightness(0.6); transform: scale(1.02); }
.hover-rotate:hover { transform: rotate(2deg) scale(1.03); z-index: 5; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.hover-blur:hover img { filter: blur(4px); transform: scale(1.05); }
.hover-flash .ptrans-card-inner::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.4); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.hover-flash:hover .ptrans-card-inner::after { opacity: 1; animation: ptransFlash 0.5s forwards; }
.hover-shrink:hover { transform: scale(0.95); }
.hover-pan:hover img { transform: scale(1.2) translate(-10px, -10px); }
.hover-border:hover { border: 4px solid var(--ptrans-text); }
.hover-shadow:hover { box-shadow: inset 0 0 50px rgba(0,0,0,0.8); }
.hover-bounce:hover { animation: ptransBounce 0.6s ease; }
.hover-push:hover .ptrans-card-info { padding-bottom: 40px; }
.hover-push:hover img { transform: translateY(-10px) scale(1.05); }
.hover-none:hover { transform: none; box-shadow: none; }

@keyframes ptransBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ptransFlash { 0% { opacity: 0; } 50% { opacity: 0.6; } 100% { opacity: 0; } }

/* =========================================
   9. HERO STYLES
   ========================================= */
.ptrans-hero-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background-color: #111;
    margin-bottom: 2rem;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.ptrans-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
    will-change: transform;
}

/* Parallax Modifier */
.ptrans-hero-img.ptrans-parallax {
    height: var(--ptrans-parallax-scale, 120%);
    margin-top: calc( (var(--ptrans-parallax-scale, 120%) - 100%) / -2 );
}

.ptrans-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    padding: 40px;
    justify-content: flex-end; /* Default */
}

/* Base Typography */
.ptrans-hero-overlay h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0; /* JS handles animation */
}

.ptrans-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    font-weight: 600;
    opacity: 0;
}

/* Split Text Helpers */
.ptrans-split-text { opacity: 1 !important; animation: none !important; }
.ptrans-char, .ptrans-word { display: inline-block; opacity: 0; transform: translateY(20px); }

/* --- HERO PRESETS (15) --- */
.hero-cinematic .ptrans-hero-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); justify-content: flex-end; }
.hero-editorial .ptrans-hero-overlay { justify-content: center; align-items: center; text-align: center; background: rgba(0,0,0,0.3); }
.hero-modern-left .ptrans-hero-overlay { justify-content: center; padding-left: 10%; background: linear-gradient(to right, rgba(0,0,0,0.8), transparent); }
.hero-vogue .ptrans-hero-overlay { justify-content: center; align-items: center; }
.hero-vogue h1 { font-size: 5rem; mix-blend-mode: overlay; }
.hero-minimal .ptrans-hero-overlay { background: none; }
.hero-glass .ptrans-hero-content { background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.2); padding: 40px; border-radius: 16px; width: 60%; margin: 0 auto; text-align: center; pointer-events: auto; }
.hero-glass .ptrans-hero-overlay { justify-content: center; }
.hero-split .ptrans-hero-overlay { width: 50%; background: #111; height: 100%; justify-content: center; left: 0; top: 0; }
.hero-boxed { padding: 60px; } .hero-boxed .ptrans-hero-content { background: #fff; color: #111; padding: 40px; } .hero-boxed h1 { color: #111; text-shadow: none; }
.hero-bottom-bar .ptrans-hero-overlay { background: transparent; } .hero-bottom-bar .ptrans-hero-content { background: #111; width: 100%; padding: 30px; position: absolute; bottom: 0; left: 0; }
.hero-gradient-mesh .ptrans-hero-overlay { background: radial-gradient(circle at 10% 20%, rgb(69, 86, 255) 0%, rgb(255, 69, 69) 90%); opacity: 0.8; mix-blend-mode: multiply; }
.hero-floating .ptrans-hero-content { background: #fff; color: #111; padding: 20px 40px; border-radius: 50px; display: inline-block; box-shadow: 0 20px 40px rgba(0,0,0,0.2); } .hero-floating h1 { color: #111; text-shadow: none; font-size: 2rem; }
.hero-neon h1 { text-shadow: 0 0 10px #ff00de, 0 0 40px #ff00de; color: #fff; }
.hero-dark-mode .ptrans-hero-overlay { background: rgba(0,0,0,0.7); }
.hero-top-left .ptrans-hero-overlay { justify-content: flex-start; align-items: flex-start; padding-top: 80px; }
.hero-framed .ptrans-hero-overlay { border: 20px solid #fff; margin: 20px; box-sizing: border-box; justify-content: flex-end; }

/* --- HERO ANIMATIONS --- */
.anim-fade-up h1 { animation-name: ptransFadeUp; }
@keyframes ptransFadeUp { to { opacity: 1; transform: translateY(0); } }

.anim-zoom-in h1 { animation-name: ptransZoomIn; }
@keyframes ptransZoomIn { 0%{opacity:0; transform:scale(0.8);} 100%{opacity:1; transform:scale(1);} }

.anim-blur h1 { animation-name: ptransBlur; }
@keyframes ptransBlur { 0%{opacity:0; filter:blur(10px);} 100%{opacity:1; filter:blur(0);} }

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .ptrans-masonry { column-count: 2; }
}

@media (max-width: 767px) {
    .ptrans-grid { grid-template-columns: 1fr; gap: 16px; }
    .ptrans-masonry { column-count: 1; }
    .ptrans-card-info { opacity: 1; transform: translateY(0); padding: 16px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); }
    .hero-split .ptrans-hero-overlay { width: 100%; height: 50%; bottom: 0; top: auto; }
    .hero-glass .ptrans-hero-content { width: 90%; }
    .ptrans-hero-overlay h1 { font-size: 2rem; }
    #ptrans-close-btn { top: 15px; right: 15px; width: 40px; height: 40px; }
}