/* -------------------------------------------------------------------
 *  DESIGN 2 - PHOTOS SECTION (Portrait 3:4)
 * ------------------------------------------------------------------- */

 .d2-photos-premium-section {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #fcfdfe 0%, #f8fafc 100%);
}

.d2-photos-header {
    text-align: center;
    margin-bottom: 50px;
}

.d2-photos-main-title {
    font-size: 2.8rem !important;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.d2-photos-main-desc {
    color: #475569;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Grid --- */
.d2-photos-grid-row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -12px;
    margin-left: -12px;
    justify-content: center !important;
}

.d2-photos-grid-col {
    position: relative;
    padding: 0 12px;
    margin-bottom: 24px;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

@media (min-width: 576px) {
    .d2-photos-grid-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (min-width: 992px) {
    .d2-photos-grid-col {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* --- Card --- */
.d2-photo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.d2-photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
    border-color: #3b82f6;
}

/* --- Image Wrap (Portrait 3:4) --- */
.d2-photo-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f1f5f9;
    position: relative;
}

.d2-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.d2-photo-card:hover .d2-photo-img {
    transform: scale(1.05);
}

/* --- Footer Link --- */
.d2-photos-footer {
    text-align: center;
    margin-top: 40px;
}

.d2-photos-view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background: transparent;
    color: #0f172a;
    border: 2px solid #0f172a;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.d2-photos-view-all-btn:hover {
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.d2-photos-view-all-btn i {
    transition: transform 0.3s ease;
}

.d2-photos-view-all-btn:hover i {
    transform: translateX(4px);
}

/* --- Empty State --- */
.d2-photos-empty {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
}

.d2-photos-empty-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.d2-photos-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.d2-photos-empty-desc {
    color: #64748b;
    font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .d2-photos-premium-section {
        padding: 60px 0 40px;
    }

    .d2-photos-main-title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .d2-photos-main-title {
        font-size: 1.8rem !important;
    }

    .d2-photos-main-desc {
        font-size: 0.95rem;
        padding: 0 16px;
    }

    .d2-photo-card {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .d2-photos-premium-section {
        padding: 40px 0 30px;
    }

    .d2-photos-header {
        margin-bottom: 30px;
    }

    .d2-photos-main-title {
        font-size: 1.5rem !important;
    }

    .d2-photos-main-desc {
        font-size: 0.9rem;
    }

    .d2-photo-card {
        padding: 8px;
        border-radius: 12px;
    }

    .d2-photo-image-wrap {
        border-radius: 8px;
    }

    .d2-photos-view-all-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .d2-photos-empty-icon {
        font-size: 2.5rem;
    }

    .d2-photos-empty-title {
        font-size: 1.2rem;
    }

    .d2-photos-empty-desc {
        font-size: 0.9rem;
    }
}

/* --- Dark Mode --- */
[data-bs-theme="dark"] .d2-photos-premium-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-bs-theme="dark"] .d2-photos-main-title {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .d2-photos-main-desc {
    color: #94a3b8;
}

[data-bs-theme="dark"] .d2-photo-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .d2-photo-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .d2-photo-image-wrap {
    background-color: #0f172a;
}

[data-bs-theme="dark"] .d2-photos-view-all-btn {
    color: #f1f5f9;
    border-color: #f1f5f9;
}

[data-bs-theme="dark"] .d2-photos-view-all-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

[data-bs-theme="dark"] .d2-photos-empty-icon {
    color: #475569;
}

[data-bs-theme="dark"] .d2-photos-empty-title {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .d2-photos-empty-desc {
    color: #94a3b8;
}