/* =========================================
   DR1059 GALLERY - ULTRA PREMIUM
   Andhavarapu Sridhar & Co.
========================================= */

.dr1059gallery {
    padding: 100px 20px;
    background: radial-gradient(circle at top, #0a0f2c, #020617);
    color: #fff;
    overflow: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* ambient animated glow */
.dr1059gallery::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 212, 255, 0.12), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.12), transparent 45%);
    animation: galleryGlow 12s ease-in-out infinite alternate;
    z-index: 0;
}

.dr1059-social-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;

    padding: 16px;
    border-radius: 16px;

    text-decoration: none;
    color: #fff;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(14px);

    transition: 0.4s ease;
}

.dr1059-social-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(124,58,237,0.12);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.dr1059-social-icon {
    font-size: 26px;
    margin-top: 4px;
}

.dr1059-social-content h3 {
    font-size: 14px;
    margin: 0;
    color: #fff;
}

.dr1059-social-content h4 {
    font-size: 12px;
    margin: 2px 0;
    color: #a5b4fc;
}

.dr1059-social-content p {
    font-size: 12px;
    color: #cbd5f5;
    margin: 6px 0;
}

.dr1059-view-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #00d4ff;
    font-weight: 600;
}

@keyframes galleryGlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* =========================================
   HEADER
========================================= */
.dr1059gallery-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 35px;
}

.dr1059gallery-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dr1059gallery-header p {
    color: #cbd5f5;
    margin-top: 8px;
    font-size: 14px;
}

/* =========================================
   TOGGLE BUTTONS (IMAGES / VIDEOS / SOCIAL)
========================================= */
.dr1059gallery-toggle {
    margin-top: 18px;
    display: inline-flex;
    gap: 16px;
    padding: 10px 16px;
    border-radius: 50px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
}

.dr1059gallery-toggle label {
    font-size: 14px;
    cursor: pointer;
    color: #cbd5f5;
    transition: 0.3s;
}

.dr1059gallery-toggle label:hover {
    color: #00d4ff;
}

.dr1059gallery-toggle input {
    margin-right: 6px;
    accent-color: #7c3aed;
}

/* =========================================
   GRID
========================================= */
.dr1059gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    position: relative;
    z-index: 2;
}

/* =========================================
   CARD - GLASS + 3D PREMIUM
========================================= */
.dr1059gallery-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);

    box-shadow: 0 10px 40px rgba(0,0,0,0.45);

    transform: translateY(25px);
    opacity: 0;
    transition: all 0.6s ease;
}

/* reveal animation */
.dr1059gallery-card.show {
    transform: translateY(0);
    opacity: 1;
}

/* hover 3D lift */
.dr1059gallery-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 70px rgba(0,0,0,0.75);
}

/* =========================================
   MEDIA BOX (NO CROPPING FIX - IMPORTANT)
========================================= */
.media-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0,0,0,0.35);
}

/* =========================================
   MEDIA ELEMENTS (IMAGE / VIDEO / IFRAME)
========================================= */
.dr1059gallery-card img,
.dr1059gallery-card video,
.dr1059gallery-card iframe {
    width: 100%;
    max-height: 360px;

    object-fit: contain;   /* ⭐ KEY FIX - NO CROPPING */
    display: block;

    border-radius: 14px;

    transition: transform 0.5s ease;
}

/* zoom effect */
.dr1059gallery-card:hover img,
.dr1059gallery-card:hover video,
.dr1059gallery-card:hover iframe {
    transform: scale(1.04);
}

/* =========================================
   SHINE EFFECT
========================================= */
.dr1059gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.12),
        transparent
    );
    transform: translateX(-100%);
}

.dr1059gallery-card:hover::after {
    animation: shineMove 0.9s forwards;
}

@keyframes shineMove {
    100% {
        transform: translateX(100%);
    }
}

/* =========================================
   CAPTION
========================================= */
.dr1059gallery-caption {
    padding: 12px 14px;
    font-size: 13px;
    color: #cbd5f5;
    text-align: center;
}

/* =========================================
   LOADING STATE
========================================= */
.dr1059gallery-loading {
    text-align: center;
    color: #94a3b8;
    padding: 30px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {

    .dr1059gallery {
        padding: 70px 15px;
    }

    .dr1059gallery-header h2 {
        font-size: 2rem;
    }

    .dr1059gallery-grid {
        gap: 16px;
    }

    .dr1059gallery-card img,
    .dr1059gallery-card video,
    .dr1059gallery-card iframe {
        max-height: 240px;
    }

    .dr1059gallery-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}