/* ── DPP Trend Gallery — Frontend CSS ── */

/* ── Gallery Grid ───────────────────────────────────────────────────────── */
.dpptg-gallery-section {
    padding: 24px 0 48px;
}
.dpptg-gallery-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e63946;
    display: inline-block;
}

.dpptg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) {
    .dpptg-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
    .dpptg-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (min-width: 1200px) {
    .dpptg-gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
}

/* ── Photo Card ─────────────────────────────────────────────────────────── */
.dpptg-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
    transition: transform .25s ease, box-shadow .25s ease;
}
.dpptg-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.dpptg-item-inner {
    width: 100%;
    padding-top: 133%; /* 3:4 portrait */
    position: relative;
    background: #1a1a2e;
}
.dpptg-item-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.dpptg-item:hover .dpptg-item-img {
    transform: scale(1.05);
}

/* Hover overlay */
.dpptg-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}
.dpptg-item:hover .dpptg-item-overlay { opacity: 1; }

.dpptg-item-zoom {
    color: #fff;
    font-size: 28px;
    line-height: 1;
    align-self: center;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.dpptg-item-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    align-self: flex-start;
}

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.dpptg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.dpptg-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.dpptg-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 20, .88);
    backdrop-filter: blur(6px);
}
.dpptg-lb-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(.92);
    transition: transform .3s ease;
}
.dpptg-lightbox.active .dpptg-lb-inner {
    transform: scale(1);
}

/* Image frame */
.dpptg-lb-frame {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    position: relative;
}
.dpptg-lb-img {
    width: 100%;
    display: block;
    max-height: 72vh;
    object-fit: contain;
    background: #0d0d1a;
}

/* Close button */
.dpptg-lb-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s;
}
.dpptg-lb-close:hover { background: #e63946; }

/* Link section */
.dpptg-lb-link-wrap {
    margin-top: 16px;
    width: 100%;
}
.dpptg-lb-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .25s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.dpptg-lb-link-btn:hover {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230,57,70,.4);
    color: #fff;
    text-decoration: none;
}
.dpptg-lb-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.dpptg-lb-link-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.dpptg-lb-link-text {
    overflow: hidden;
}
.dpptg-lb-link-label {
    font-size: 11px;
    opacity: .7;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.dpptg-lb-link-url {
    font-size: 12px;
    opacity: .6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.dpptg-lb-link-arrow {
    font-size: 18px;
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform .2s;
}
.dpptg-lb-link-btn:hover .dpptg-lb-link-arrow {
    transform: translateX(4px);
}

/* No link state */
.dpptg-lb-no-link {
    text-align: center;
    color: rgba(255,255,255,.3);
    font-size: 12px;
    margin-top: 10px;
    letter-spacing: .5px;
}

/* Empty state */
.dpptg-gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

/* ── Homepage Shortcode / Widget ─────────────────────────────────────────── */
.dpptg-hp-wrap {
    width: 100%;
}

/* ১টি ছবি — পুরো width */
.dpptg-hp-grid.dpptg-hp-count-1 {
    display: block;
}
.dpptg-hp-grid.dpptg-hp-count-1 .dpptg-hp-item {
    width: 100%;
}

/* ২–৩টি ছবি — grid */
.dpptg-hp-grid:not(.dpptg-hp-count-1) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

/* "আরো দেখুন" link */
.dpptg-hp-more {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.dpptg-hp-more:hover {
    background: #e63946;
    color: #fff;
    text-decoration: none;
}
