/*gallery-vdo.css / โครงสร้างหลัก : ส่วนคลังภาพและวิดีโอ */
.gallery-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    font-family: "Prompt", sans-serif;
    color: #f0f0f0;
}

/* หัวข้อใหญ่ */
.gallery-section .gallery-section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 1px;

    /* Metallic Gold Gradient */
    background: linear-gradient(
        90deg,
        #6e5a24 0%,
        #957e33 25%,
        #e8d18b 50%,
        #957e33 75%,
        #6e5a24 100%
    );
    -webkit-background-clip: text;
    color: transparent;

    /* Metallic Shine */
    text-shadow:
        0 0 8px rgba(149, 126, 51, 0.55),
        0 0 14px rgba(149, 126, 51, 0.35),
        2px 2px 4px rgba(0,0,0,0.55);
}

/* BLOCK */
.gallery-block {
    margin-bottom: 40px;
    background: rgba(255,255,255,0.05);
    padding: 20px 25px;
    border-radius: 10px;
}

.gallery-block h3 {
    font-size: 24px;
    margin-bottom: 15px;

    /* Metallic Gold Gradient */
    background: linear-gradient(
        90deg,
        #6e5a24 0%,
        #957e33 25%,
        #e8d18b 50%,
        #957e33 75%,
        #6e5a24 100%
    );
    -webkit-background-clip: text;
    color: transparent;

    /* Metallic Shine */
    text-shadow:
        0 0 8px rgba(149, 126, 51, 0.55),
        0 0 14px rgba(149, 126, 51, 0.35),
        2px 2px 4px rgba(0,0,0,0.55);
}

/* GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.gallery-grid img,
.gallery-grid video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 7px;
    border: 2px solid rgba(212,175,55,0.4);
    box-shadow: 0 0 10px rgba(212,175,55,0.15);
}
/*--แก้จอเอียง--*/
/* ============================
   ⭐ Tablet (≤ 900px)
============================ */
@media (max-width: 900px) {

    .gallery-wrapper {
        max-width: 95%;
    }

    .gallery-section-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-grid img,
    .gallery-grid video {
        height: 200px;
    }
}

/* ============================
   ⭐ Mobile (≤ 600px)
============================ */
@media (max-width: 600px) {

    .gallery-wrapper {
        max-width: 95%;
        padding: 0 10px;
    }

    .gallery-section {
        padding: 15px;
        margin: 20px auto;
    }

    .gallery-section-title {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-grid img,
    .gallery-grid video {
        height: auto;
    }
}

/* ============================
   ⭐ Mobile Landscape (เอียงจอ)
   ความสูงน้อย → ลดขนาดภาพ + ลดช่องไฟ
============================ */
@media (max-height: 500px) and (max-width: 1024px) {

    .gallery-wrapper {
        max-width: 95%;
        padding: 0 10px;
    }

    .gallery-section-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-grid img,
    .gallery-grid video {
        height: 150px;
    }
}


